Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ GEM
remote: https://rubygems.org/
specs:
ast (2.4.2)
easypost (6.2.0)
easypost (6.4.1)
json (2.10.1)
language_server-protocol (3.17.0.4)
lint_roller (1.1.0)
Expand All @@ -19,7 +19,7 @@ GEM
racc (1.8.1)
rainbow (3.1.1)
regexp_parser (2.10.0)
rubocop (1.72.0)
rubocop (1.73.0)
json (~> 2.3)
language_server-protocol (~> 3.17.0.2)
lint_roller (~> 1.1.0)
Expand All @@ -30,12 +30,13 @@ GEM
rubocop-ast (>= 1.38.0, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 4.0)
rubocop-ast (1.38.0)
rubocop-ast (1.38.1)
parser (>= 3.3.1.0)
rubocop-capybara (2.21.0)
rubocop (~> 1.41)
rubocop-factory_bot (2.26.1)
rubocop (~> 1.61)
rubocop-factory_bot (2.27.0)
lint_roller (~> 1.1)
rubocop (~> 1.72, >= 1.72.1)
rubocop-rspec (2.31.0)
rubocop (~> 1.40)
rubocop-capybara (~> 2.17)
Expand All @@ -57,7 +58,7 @@ PLATFORMS

DEPENDENCIES
examples!
rubocop (= 1.72)
rubocop (= 1.73)
rubocop-rspec (~> 2.31)

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion examples.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Gem::Specification.new do |spec|

spec.add_dependency 'easypost', '~> 6'

spec.add_development_dependency 'rubocop', '= 1.72'
spec.add_development_dependency 'rubocop', '= 1.73'
spec.add_development_dependency 'rubocop-rspec', '~> 2.31' # Can't upgrade to v3 until we drop Ruby 2.7
end
16 changes: 9 additions & 7 deletions style_guides/ruby/.rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
inherit_from: easycop.yml

AllCops:
SuggestExtensions: false
Exclude:
- docs/**/*
- examples/**/*
- vendor/**/*

# We ignore frozen string literal comments to simplify the sample code snippets
Style/FrozenStringLiteralComment:
Enabled: false
Expand All @@ -12,17 +19,12 @@ Lint/UselessAssignment:
- 'official/docs/ruby/**/api-keys/retrieve.rb'
Naming/FileName:
Enabled: false

AllCops:
SuggestExtensions: false
Exclude:
- docs/**/*
- examples/**/*
- vendor/**/*
# We are ignoring RSpec/FilePath because Simplecov doesn't play nice with nested spec files
RSpec/FilePath:
Enabled: false
# TODO: Remove this if we start using keyword arguments
Style/OptionalBooleanParameter:
Exclude:
- 'lib/easypost/services/*.rb'
FactoryBot/CreateList:
Enabled: false
2 changes: 1 addition & 1 deletion style_guides/ruby/easycop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,5 @@ Style/StringChars: # new in 1.12
Enabled: true
Style/SwapValues: # new in 1.1
Enabled: true
RSpec/Rails/AvoidSetupHook: # new in 2.4
RSpecRails/AvoidSetupHook: # new in 2.4
Enabled: true