Skip to content
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

Please add support jruby #6

Open
dmitry-ov opened this issue Mar 31, 2015 · 13 comments
Open

Please add support jruby #6

dmitry-ov opened this issue Mar 31, 2015 · 13 comments

Comments

@dmitry-ov
Copy link

✗ gem list | grep faker-russian
faker-russian (0.0.6)
✗ ruby -v
jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_20-b26 +jit [darwin-x86_64]
✗ irb
:001 > require 'faker-russian'
LoadError: no such file to load -- faker-russian
from org/jruby/RubyKernel.java:1065:in require' from /Users/dmitry/.rvm/rubies/jruby-1.7.16/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55:inrequire'
from (irb):1:in evaluate' from org/jruby/RubyKernel.java:1101:ineval'
from org/jruby/RubyKernel.java:1501:in loop' from org/jruby/RubyKernel.java:1264:incatch'
from org/jruby/RubyKernel.java:1264:in catch' from /Users/dmitry/.rvm/rubies/jruby-1.7.16/bin/irb:13:in(root)'
:002 > require 'faker'
=> true

@asiniy
Copy link
Owner

asiniy commented Mar 31, 2015

There is a windows... omg. I'm principial ubuntu user. That's why we need the help of windows user.

@asiniy
Copy link
Owner

asiniy commented Mar 31, 2015

Please wait for a few days, I'll try it on ubuntu

@dmitry-ov
Copy link
Author

This error is repeated on Mac OS X 10.10.2
jruby 1.7.16 (1.9.3p392) 2014-09-25 575b395 on Java HotSpot(TM) 64-Bit Server VM 1.8.0_20-b26 +jit [darwin-x86_64]

@dmitry-ov dmitry-ov changed the title use faker-russian with jruby Please add support jruby Mar 31, 2015
@asiniy
Copy link
Owner

asiniy commented Mar 31, 2015

Same error on linux.

It seems you need go deeper to jruby essentials. I'm not familiar with it. I'll try to find a time to fix it on the weekend.

@asiniy
Copy link
Owner

asiniy commented Mar 31, 2015

You can fasterize the solution by using experience of this issue: http://stackoverflow.com/questions/10833732/jruby-no-such-file-to-load

Just try it! If it works, feel free to modificate .travis.yml and send a pull request.

@asiniy
Copy link
Owner

asiniy commented Apr 1, 2015

Also try to

require 'faker/russian'

@dmitry-ov
Copy link
Author

I'm try: require 'faker/russian'. But call Faker::Russian.* return errors

ui git:(develop) ✗ gem list | grep faker
faker (1.4.3)
faker-russian (0.0.6)
➜ ui git:(develop) ✗ irb
jruby-1.7.16 :001 > require 'faker'
=> true
jruby-1.7.16 :002 > require 'faker/russian'
=> true
jruby-1.7.16 :003 > Faker::Russian.inn
NoMethodError: undefined method assert_valid_keys' for {}:Hash from /Users/dmitry/.rvm/gems/jruby-1.7.16@ui/gems/faker-russian-0.0.6/lib/faker/russian/inn.rb:5:ininn'
from (irb):3:in evaluate' from org/jruby/RubyKernel.java:1101:ineval'
from org/jruby/RubyKernel.java:1501:in loop' from org/jruby/RubyKernel.java:1264:incatch'
from org/jruby/RubyKernel.java:1264:in catch' from /Users/dmitry/.rvm/rubies/jruby-1.7.16/bin/irb:13:in(root)'
jruby-1.7.16 :004 >

@asiniy
Copy link
Owner

asiniy commented Apr 1, 2015

ok, so you can patch the gem for requiring activesupport special file

@dsulimchuk
Copy link

Hi, Issue is actual. Please fix it if you can. Thank a lot!

@asiniy
Copy link
Owner

asiniy commented Jan 26, 2016

Hi! Sorry, I don't have enough time to work on this

@vyalekseev
Copy link

vyalekseev commented Mar 25, 2019

Здравствуйте. А будут ли какие-нибудь обновления? Хотя бы чтобы работало на последней версии ruby.

@asiniy
Copy link
Owner

asiniy commented Mar 25, 2019

Will check in a few days

@vyalekseev
Copy link

Will check in a few days

Есть новости?=)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants