Created
June 14, 2014 11:08
-
-
Save huyu398/cbe4c6f5f2aa7f3400a0 to your computer and use it in GitHub Desktop.
Ruby Application を Windows, Mac でも簡単に使用できるように配布する ref: http://qiita.com/huyu398/items/1e02b158f87a80386d94
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ rbenv --version | |
# rbenv 0.4.0-98-g13a474c | |
$ rbenv install jruby-1.7.12 | |
$ rbenv rehash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby -S gem install rawr --source http://gems.neurogami.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby -S gem install jrubyfx | |
$ jruby -S gem install -i lib/ruby jrubyfx --no-rcod --no-ri | |
$ vim build_configuration.rb | |
$ mv src/dydx_test.rb src/jrubyfx_test.rb | |
$ vim src/jrubyfx_test.rb | |
$ jruby src/jrubyfx_test.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby -S rake rawr:clean | |
$ jruby -S rake rawr:jar | |
$ java -jar package/jar/rawr_test.jar | |
# Add 'src/' to $: | |
# Add 'lib/ruby/gems/jrubyfx-1.1.0-java/lib/' to $: | |
# Add 'lib/ruby/gems/jrubyfx-fxmlloader-0.3-java/lib/' to $: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim src/jrubyfx_test.rb | |
$ jruby -S rake rawr:clean | |
$ jruby -S rake rawr:jar | |
$ java -jar package/jar/rawr_test.jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mkdir hello_world | |
$ cd hello_world | |
$ rbenv local jruby-1.7.12 | |
$ jruby -S rawr install | |
$ ls | |
# Rakefile build_configuration.rb lib/ src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim build_configuration.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim src/hello_world.rb | |
$ jruby src/hello_world.rb | |
# Hello world! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby -S rake rawr:jar | |
$ java -jar package/jar/rawr_test.jar | |
# Add 'src/' to $: | |
# Hello world! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby -S rake rawr:bundle:exe | |
$ jruby -S rake rawr:bundle:app |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ vim build_configuration.rb | |
$ mv src/hello_world.rb src/dydx_test.rb | |
$ vim src/dydx_test.rb | |
$ jruby -S gem install dydx | |
$ jruby src/dydx_test.rb | |
# ( 2 + ( 3 * a ) ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby -S gem install -i lib/ruby dydx --no-rdoc --no-ri | |
$ vim build_configuration.rb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby -S rake rawr:clean | |
$ jruby -S rake rawr:jar | |
$ java -jar package/jar/rawr_test.jar | |
# Add 'src/' to $: | |
# Add 'lib/ruby/gems/dydx-0.1.3141/lib/' to $: | |
# ( 2 + ( 3 * a ) ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment