๋ฐ์ํ ๋ฌธ์ ์ ๋ํ ์ค๋ช ์ ์ ๊ณตํ์ธ์.
ruby2_keywords
v0.0.3
์ ์ ๋ฆด๋ฆฌ์ค๊ฐ ๋ฌด์ธ๊ฐ๋ฅผ ๊นจ๊ณ ํจ๋ฌ๋ฐ์ด 1.3.0์ gemspec์์ v0.0.2
์ ๊ณ ์ ๋์ง ์๋๋ค๊ณ ์๊ฐํฉ๋๋ค.ruby2_keywords
๋ฅผ v0.0.2
์ ๊ทธ๋ฉด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค.์์ธ ๋ฉ์์ง/์คํ ์ถ์ ๋๋ ๊ธฐํ ์ ์ฉํ ์ธ๋ถ ์ ๋ณด๋ ์ ๊ณตํ์ญ์์ค.
.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:84:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'faraday'.
Gem Load Error is: wrong number of arguments (given 2, expected 1)
Backtrace for gem load error is:
/gems/ruby-2.4.1@myproject/gems/ruby2_keywords-0.0.3/lib/ruby2_keywords.rb:2:in `private_method_defined?'
/gems/ruby-2.4.1@myproject/gems/ruby2_keywords-0.0.3/lib/ruby2_keywords.rb:2:in `<class:Module>'
/gems/ruby-2.4.1@myproject/gems/ruby2_keywords-0.0.3/lib/ruby2_keywords.rb:1:in `<top (required)>'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/gems/ruby-2.4.1@myproject/gems/faraday-1.3.0/lib/faraday/rack_builder.rb:3:in `<top (required)>'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/gems/ruby-2.4.1@myproject/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/gems/ruby-2.4.1@myproject/gems/faraday-1.3.0/lib/faraday.rb:20:in `<top (required)>'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:81:in `require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:81:in `block (2 levels) in require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `each'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `block in require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `each'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler.rb:114:in `require'
/Users/asdf123/myproject/config/application.rb:9:in `<top (required)>'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:92:in `require'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:92:in `preload'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
/gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
-e:1:in `<main>'
Bundler Error Backtrace:
(Bundler::GemRequireError)
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:80:in `block (2 levels) in require'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `each'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `block in require'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `each'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `require'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/bundler.rb:114:in `require'
from /Users/asdf123/myptoject/config/application.rb:9:in `<top (required)>'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:92:in `require'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:92:in `preload'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /gems/ruby-2.4.1@myproject/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from -e:1:in `<main>'
Just upgrade, bundled and then tried to run the project:
faraday (1.3.0)
faraday-net_http (~> 1.0)
multipart-post (>= 1.2, < 3)
ruby2_keywords
faraday_middleware (1.0.0)
faraday (~> 1.0)
ruby2_keywords (0.0.3)
์ด๊ฒ์ Ruby 2.5 ๋ฐ ์ด์ ๋ฒ์ ์ ์ํฅ์ ๋ฏธ์นฉ๋๋ค.
0.0.3์์ ์ ๊ณตํ์ง ์๋ Ruby 2.5 ์ง์: https://github.com/ruby/ruby2_keywords/issues/9 - ๋ ๋ฒ์งธ ์ธ์ ๋ฒ์ ์ ๋ฉ์๋๋ฅผ ์ฌ์ฉํ๋ฉฐ ๋ ๋ฒ์งธ ์ธ์๋ 2.6์์ ๋์ ๋์์ต๋๋ค.
@silviusimeria ๋ฅผ ์ฌ๋ ค์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค. ruby2_keyword
์์ ๊ด๋ จ ๋ฌธ์ ๋ฅผ ์ฐพ์์ต๋๋ค. https://github.com/ruby/ruby2_keywords/issues/9
๋น์ ๋ง์ด ์ํฅ์ ๋ฐ๋ ๊ฒ์ด ์๋๋ผ ์ด๋ฏธ ์์ ์์
์ ํ๊ณ ์๋ ์ฌ๋๋ค์ด ์๋ ๊ฒ ๊ฐ์ต๋๋ค!
๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ณ v0.0.4๋ฅผ ํธ์ํ๋ฉด ๋ฒ์ ์ ๊ธ์ผ๋ก ์ถ๊ฐ ๋ฆด๋ฆฌ์ค๋ฅผ ํผํ ์ ์์ต๋๋ค. ๐
์ง๊ธ์ผ๋ก์๋ ์ด๊ฒ์ด ๋๊ตฌ์๊ฒ๋ ๋ฌธ์ ๊ฐ ๋๋ค๋ฉด ์ฌ๊ธฐ์์ ๋ฌด์์ ํ ์ง ๊ฒฐ์ ํ ๋๊น์ง ์์ ์์ ์ผ๋ก Gemfile์ ruby2_keyword
๋ฅผ ์ ๊ทธ์ญ์์ค ๐
v0.0.4๊ฐ ์ถ์๋์์ต๋๋ค: https://github.com/ruby/ruby2_keywords/pull/10#issuecomment -762899956
@silviusimeria ์์ ์ฌํญ์๋ Ruby 2.5์์ ํธํ์ฑ์ด ๋ช ์๋์ด ์์ง๋ง Ruby 2.4๋ฅผ ์ฌ์ฉ ์ค์ ๋๋ค. ์ง๊ธ ์ด๊ฒ์ด ์๋ํ๋์ง ๋ค์ ํ์ธํ๊ณ ํ์ธํด ์ฃผ์๊ฒ ์ต๋๊น?
2.4์์๋ ์๋ํ๋ ๊ฒ ๊ฐ์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
v0.0.4๊ฐ ์ถ์๋์์ต๋๋ค: https://github.com/ruby/ruby2_keywords/pull/10#issuecomment -762899956