denvazh / faker_japanese Goto Github PK
View Code? Open in Web Editor NEWfaker extension for japanese names
License: MIT License
faker extension for japanese names
License: MIT License
The gem seems incompatible with faker
v1.9.0+. With the following versions defined in the Gemfile
:
gem 'faker', '1.9.1'
gem 'faker_japanese', '0.2.4'
loading the application fails with the following error:
/usr/local/rvm/gems/ruby-2.5.1/gems/bundler-1.16.3/lib/bundler/runtime.rb:84:in `rescue in block (2 levels) in require': There was an error while trying to load the
gem 'faker_japanese'. (Bundler::GemRequireError)
Gem Load Error is: wrong number of arguments (given 1, expected 0)
Backtrace for gem load error is:
/usr/local/rvm/gems/ruby-2.5.1/gems/faker_japanese-0.2.4/lib/faker_japanese.rb:27:in `initialize'
This seems due to a new Faker::String
class created in version 1.9.0 of faker
:
faker-ruby/faker@v1.8.7...v1.9.0#diff-606ca7ead800c03c3025f08d2afca96d
And by chance, the Kanji
class in the lib/faker_japanese.rb
module inherits from String
but within the Faker
module. Therefore super
in line 27 refers now to Faker::String
instead of ruby's String
.
faker_japanese/lib/faker_japanese.rb
Lines 12 to 32 in 8ab30ea
Refer to ruby's String
class, e.g. by prefixing the class name with ::
:
+ class Kanji < ::String
- class Kanji < String
in following line:
faker_japanese/lib/faker_japanese.rb
Line 13 in 8ab30ea
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.