-
-
Notifications
You must be signed in to change notification settings - Fork 925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Creating a jruby GEM #3312
Comments
add |
Could you be more specific, please? Also, where should I add platform = 'java' exactly? |
this is part of the gemspec:
http://guides.rubygems.org/specification-reference/#platform=
it depends on how you create the gem where exactly you have to add this
platform.
|
I see. The commands I use to build and install the gem are as follows: gem build gem_name.gemspec How can these be any different from jruby? |
BTW I did try to only add s.platform = 'java' and it still gave me the same error after building and installing the gem (using the previous commands) |
I never saw the install command ! installing gems usually works: |
I ran the command: |
the error says you are not using jruby. what is |
I see now that Ruby gems are being used and not Jruby. How do I specify that Jruby Gems are being used? |
use have to use jruby and NOT native ruby:
http://jruby.org/getting-started
|
I mean, thanks for linking me to that page but I already have jruby installed and my question is, how do I make sure Gem is using the jruby gems and not the Ruby gems? |
since both Jruby and Ruby use the same following command:
|
ah - I see. better use https://github.com/sstephenson/rbenv to install jruby or RVM to |
Using |
I have a Gem wholly written in Ruby, supporting Rails. However, I want to bring it to JRuby to be usable on my Java code, and I am curious if there are any resources to make this happen? This is all I have done to bring Java to it that Ruby Gem.
These are all the dependencies the Gem supports:
However, I will be glad if there are resources you can point me to so I can learn more about bringing Ruby Gem to Java code as I feel what I have done is not enough to make it in a Java code. |
1 similar comment
I have a Gem wholly written in Ruby, supporting Rails. However, I want to bring it to JRuby to be usable on my Java code, and I am curious if there are any resources to make this happen? This is all I have done to bring Java to it that Ruby Gem.
These are all the dependencies the Gem supports:
However, I will be glad if there are resources you can point me to so I can learn more about bringing Ruby Gem to Java code as I feel what I have done is not enough to make it in a Java code. |
So I was successful in writing a jruby file and reading from a jar file.
I also created a seperate Ruby gem, installed it and used it successfully.
I would like to write a gem using Jruby (and not ruby). When I did try to do so and after installing the gem, it gave me the following error:
Is there a specific way to write a gem using jruby that is different from the way to write a gem usig ruby? If so, please direct me to a useful tutorial that helps me create a gem using jruby
thank you.
The text was updated successfully, but these errors were encountered: