Skip to content

Instantly share code, notes, and snippets.

@jamiejackson
jamiejackson / gist:1590705
Created January 10, 2012 19:36
Install jruby-jack gem from source?
gem uninstall jruby-rack; # get rid of old jruby-rack gem
git clone https://github.com/jruby/jruby-rack.git; # clones into jruby-rack directory
cd jruby-rack; # cd into the new directory
bundle install; # shouldn't this put the gem into the gemset?
rake install_gem; # what's this for?
# delete the git source from my rails project
cd ../;
rm -rf jruby-jack;
@jamiejackson
jamiejackson / gist:1591096
Created January 10, 2012 20:49
trying to build jruby-rack
$ # in my project's rails root
$ git clone https://github.com/jruby/jruby-rack.git
$ cd jruby-rack
$ rake gem
mkdir -p target/classes
mvn org.jruby.plugins:jruby-rake-plugin:classpath -Djruby.classpath.scope=test
rake aborted!
Command failed with status (127): [mvn org.jruby.plugins:jruby-rake-plugin:cl...]
jamie@icf109118-Ubuntu:~/workspace_ruby/probs/jruby-rack$ rake gem
mvn org.jruby.plugins:jruby-rake-plugin:classpath -Djruby.classpath.scope=test
rake aborted!
Command failed with status (127): [mvn org.jruby.plugins:jruby-rake-plugin:cl...]
Tasks: TOP => spec => compile => target/classpath.rb
(See full trace by running task with --trace)
jamie@icf109118-Ubuntu:~/workspace_ruby/probs/jruby-rack$ rake gem --trace
** Invoke gem (first_time)
** Invoke target/jruby-rack-1.1.3.dev-SNAPSHOT.jar (first_time)
@jamiejackson
jamiejackson / gist:1591301
Created January 10, 2012 21:27
Install jruby-jack gem from source
$ sudo apt-get install maven2 # install maven2, if you don't have it
$ gem uninstall jruby-jack
$ gedit Gemfile # add: gem 'jruby-rack', '1.1.3.dev'
$ # while in my project's rails root
$ git clone https://github.com/jruby/jruby-rack.git
$ cd jruby-rack
$ bundle install
$ rake gem
$ gem install target/jruby-rack-1.1.3.dev.gem
$ cd ../
@jamiejackson
jamiejackson / gist:1596654
Created January 11, 2012 20:41
Where'd my Warbler go?
jamie@icf109118-Ubuntu:~/workspace_ruby/probs$ bundle config
bundle Settings are listed in order of priority. The top value will be used.
jamie@icf109118-Ubuntu:~/workspace_ruby/probs$ bundle config
Settings are listed in order of priority. The top value will be used.
jamie@icf109118-Ubuntu:~/workspace_ruby/probs$ bundle show warbler
/home/jamie/.rvm/gems/jruby-head@rails-3-test/bundler/gems/warbler-6d8c3b35d005
jamie@icf109118-Ubuntu:~/workspace_ruby/probs$ gem list warbler
jamie@icf109118-Ubuntu:~/Desktop/temp/warbler$ git branch -avv
fix_gemfile_location 6d8c3b3 changed location of ENV['BUNDLE_GEMFILE']
* master cad1fb5 [origin/master] Merge pull request #66 from GregMefford/patch-1
remotes/origin/HEAD -> origin/master
remotes/origin/fix_gemfile_location 6d8c3b3 changed location of ENV['BUNDLE_GEMFILE']
remotes/origin/master cad1fb5 Merge pull request #66 from GregMefford/patch-1
jamie@icf109118-Ubuntu:~/Desktop/temp/warbler$ git branch -avv
fix_gemfile_location 6d8c3b3 changed location of ENV['BUNDLE_GEMFILE']
* master cad1fb5 [origin/master] Merge pull request #66 from GregMefford/patch-1
remotes/origin/HEAD -> origin/master
remotes/origin/fix_gemfile_location 6d8c3b3 changed location of ENV['BUNDLE_GEMFILE']
remotes/origin/master cad1fb5 Merge pull request #66 from GregMefford/patch-1
@jamiejackson
jamiejackson / gist:1597353
Created January 11, 2012 23:05
trace of precompilation output attempt
/home/jamie/.rvm/rubies/jruby-1.6.5/bin/jruby /home/jamie/.rvm/gems/jruby-1.6.5@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
undefined method `each_logical_path' for nil:NilClass
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/home/jamie/.rvm/rubies/jruby-1.6.5/bin/jr...]
Tasks: TOP => assets:precompile
@jamiejackson
jamiejackson / gist:1602526
Created January 12, 2012 19:27
warble aborted! stack level too deep
$ warble
warble aborted!
stack level too deep
(See full trace by running task with --trace)
jamie@icf109118-Ubuntu:~/workspace_ruby/cwo_rails3/railz$ warble --trace
warble aborted!
stack level too deep
org/jruby/RubyProc.java:270:in `call'
org/jruby/RubyProc.java:220:in `call'
@jamiejackson
jamiejackson / application.css
Created January 13, 2012 04:56
What's with the CSS?
html {
padding: 18px 36px;
}
head {
display: block;
}
body {
margin: 0;