- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add runtime dependencies net/http #67
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
プルリクエスト送っていただき、ありがとうございます!
非常に助かります 🙇
@@ -17,6 +17,8 @@ Gem::Specification.new do |spec| | |||
spec.require_paths = ["lib"] | |||
spec.required_ruby_version = '>= 2.1.0' | |||
|
|||
spec.add_runtime_dependency 'net' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
これはTwitter関連のgemだと思うのですが、必要なんでしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
すみません、これは余計な追加でした
@@ -1,6 +1,7 @@ | |||
module RakutenWebService; end | |||
RWS = RakutenWebService | |||
|
|||
require 'net/http' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
実際にnet/http
を利用するのは、RWS::Client
内なので、lib/rakuten_web_service/client.rb
に移した方が関係が明確になって良いかと思います。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
はい、ではそのように変更します!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
実行時の
uninitialized constant RakutenWebService::Client::Net (NameError)
エラーを修正します参照: Ruby - Rubyプログラムの楽天APIのNameError(62804)|teratail