public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
~/projects/jruby/tmp ➔ jruby -e "\$: << '../../maven_gem/lib'; require 'pom2gem.rb'; MavenGem::PomSpec.from_url('http://mirrors.ibiblio.org/pub/mirrors/maven2/org/clojure/clojure/1.0.0/clojure-1.0.0.pom')"
 
~/projects/jruby/tmp ➔ ls -l *.gem
-rw-r--r-- 1 headius staff 1372160 Dec 17 00:18 org.clojure.clojure-1.0.0-java.gem
 
~/projects/jruby/tmp ➔ gem install org.clojure.clojure-1.0.0-java.gem
Successfully installed org.clojure.clojure-1.0.0-java
1 gem installed
Installing ri documentation for org.clojure.clojure-1.0.0-java...
Installing RDoc documentation for org.clojure.clojure-1.0.0-java...
 
~/projects/jruby/tmp ➔ jirb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'clojure'
=> true
irb(main):003:0> import Java::clojure.lang.RT
=> Java::ClojureLang::RT
irb(main):004:0> RT.load_resource_script 'foo.clj'
=> nil
irb(main):005:0> foo = RT.var('user', 'foo')
=> #'user/foo
irb(main):006:0> foo.invoke 'Hi', 'there'
=> "Hi there"

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.