Skip to content

Commit bc63e0d

Browse files
committed
Upgrade minimum ruby version to 2.4
1 parent 8f50746 commit bc63e0d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.rubocop.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AllCops:
2-
TargetRubyVersion: 2.1
2+
TargetRubyVersion: 2.4
33
Exclude:
44
- 'examples/**/*'
55

@@ -32,6 +32,8 @@ Style/Semicolon:
3232
Enabled: false
3333
Style/EachWithObject:
3434
Enabled: false
35+
Style/FrozenStringLiteralComment:
36+
Enabled: false
3537

3638
Naming/HeredocDelimiterNaming:
3739
Enabled: false

lib/line/bot/httpclient.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,8 @@ def http(uri)
3838
http.use_ssl = true
3939
end
4040

41-
if http_options
42-
http_options.each do |key, value|
43-
http.send("#{key}=", value)
44-
end
41+
http_options&.each do |key, value|
42+
http.send("#{key}=", value)
4543
end
4644

4745
http

line-bot-api.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
1717
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
1818
spec.require_paths = ["lib"]
1919

20-
spec.required_ruby_version = '>= 2.0.0'
20+
spec.required_ruby_version = '>= 2.4.0'
2121

2222
spec.add_development_dependency "addressable", "~> 2.3"
2323
spec.add_development_dependency "bundler", "~> 1.11" if RUBY_VERSION < "2.3"

0 commit comments

Comments
 (0)