Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
Appease Rubocop with auto-correction
Browse files Browse the repository at this point in the history
Also disable Rubocop Naming rule because `last_4` is used by braintree
gem.
  • Loading branch information
Flavio Auciello committed Apr 16, 2021
1 parent d97c2fe commit ac0ac17
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ Layout/FirstHashElementIndentation:
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Naming/VariableNumber:
Enabled: false

# We use this extensively, the alternatives are not viable or desirable.
RSpec/AnyInstance:
Enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ def copy_initializer
end

def add_javascripts
append_file 'vendor/assets/javascripts/spree/frontend/all.js', "//= require spree/frontend/solidus_paypal_braintree\n"
append_file 'vendor/assets/javascripts/spree/backend/all.js', "//= require spree/backend/solidus_paypal_braintree\n"
append_file 'vendor/assets/javascripts/spree/frontend/all.js',
"//= require spree/frontend/solidus_paypal_braintree\n"
append_file 'vendor/assets/javascripts/spree/backend/all.js',
"//= require spree/backend/solidus_paypal_braintree\n"
end

def add_stylesheets
Expand Down
4 changes: 2 additions & 2 deletions solidus_paypal_braintree.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ Gem::Specification.new do |spec|
spec.add_dependency 'solidus_core', ['>= 2.0.0', '< 3']
spec.add_dependency 'solidus_support', ['>= 0.8.1', '< 1']

spec.add_development_dependency 'solidus_dev_support', '~> 2.4'
spec.add_development_dependency 'selenium-webdriver'
spec.add_development_dependency 'rails-controller-testing'
spec.add_development_dependency 'selenium-webdriver'
spec.add_development_dependency 'solidus_dev_support', '~> 2.4'
spec.add_development_dependency 'vcr'
spec.add_development_dependency 'webmock'
end

0 comments on commit ac0ac17

Please sign in to comment.