Skip to content

Commit

Permalink
fix rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tycooon committed Jul 31, 2024
1 parent 278547b commit e13b023
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 14 deletions.
5 changes: 4 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inherit_gem:

AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.7
TargetRubyVersion: 3.0
Include:
- bin/console
- Gemfile
Expand All @@ -19,3 +19,6 @@ AllCops:

RSpec/Rails/HaveHttpStatus:
Enabled: false

RSpec/SpecFilePathFormat:
Enabled: false
11 changes: 11 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,14 @@

source "https://rubygems.org"
gemspec

gem "bundler"
gem "coveralls"
gem "pry"
gem "rake"
gem "rspec"
gem "rubocop-config-umbrellio"
gem "rubocop-rake"
gem "simplecov"
gem "simplecov-lcov"
gem "webmock"
2 changes: 1 addition & 1 deletion bin/rspec
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
bundle_binstub = File.expand_path("bundle", __dir__)

if File.file?(bundle_binstub)
if /This file was generated by Bundler/.match?(File.read(bundle_binstub, 300))
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Expand Down
11 changes: 0 additions & 11 deletions ezclient.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,4 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_runtime_dependency "http", ">= 4"

spec.add_development_dependency "bundler"
spec.add_development_dependency "coveralls"
spec.add_development_dependency "pry"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "rubocop-config-umbrellio"
spec.add_development_dependency "rubocop-rake"
spec.add_development_dependency "simplecov"
spec.add_development_dependency "simplecov-lcov"
spec.add_development_dependency "webmock"
end
2 changes: 1 addition & 1 deletion spec/ezclient_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def self.sign!(*); end

expect(webmock_requests.last.body).to eq('{"a":1}')
expect(webmock_requests.last.headers).to include(
"Content-Type" => "application/json; charset=UTF-8",
"Content-Type" => "application/json; charset=utf-8",
)
end
end
Expand Down

0 comments on commit e13b023

Please sign in to comment.