Skip to content

Commit 091b033

Browse files
committed
update rubocop target
1 parent ff08dee commit 091b033

22 files changed

+43
-1
lines changed

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AllCops:
55
Exclude:
66
- 'spec/dummy/**/*'
77
- 'vendor/bundle/**/*'
8-
TargetRubyVersion: 2.1
8+
TargetRubyVersion: 2.5
99

1010
# Sometimes I believe this reads better
1111
# This also causes spacing issues on multi-line fixes

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
source 'https://rubygems.org'
24

35
git_source(:github) { |repo_name| "https://github.com/#{repo_name}.git" }

Rakefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'bundler'
24

35
Bundler::GemHelper.install_tasks

app/models/concerns/solidus_payu_latam/inject_customer_document_concern.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module SolidusPayuLatam
24
module InjectCustomerDocumentConcern
35
extend ActiveSupport::Concern

app/models/concerns/solidus_payu_latam/permitted_attributes_concern.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module SolidusPayuLatam
24
module PermittedAttributesConcern
35
def checkout_attributes

app/models/order_decorator.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
Spree::Order.class_eval do
24
checkout_flow do
35
go_to_state :address

app/models/payment_decorator.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# frozen_string_literal: true
2+
13
Spree::Payment.include SolidusPayuLatam::InjectCustomerDocumentConcern
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
# frozen_string_literal: true
2+
13
Spree::PermittedAttributes.singleton_class.prepend SolidusPayuLatam::PermittedAttributesConcern

app/models/solidus/gateway/payu_latam_gateway.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Solidus
24
class Gateway::PayuLatamGateway < ::Spree::Gateway
35
preference :merchant_id, :string

config/routes.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
Spree::Core::Engine.routes.draw do
24
# Add your extension routes here
35
end

0 commit comments

Comments
 (0)