solidus_paypal_braintree 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 63e1ccf774638a7a86d78396a9faf2ded82d2ac849bd197c9f554b52d2257d23
4
- data.tar.gz: 7aad39ea3e0eb572558213b51093e3fab40fed516a39802e2dafa6ae62914432
3
+ metadata.gz: c020d3e16f7e113ad45cde24ae56a9df9df4eef47bc0698baf745648cd9f279b
4
+ data.tar.gz: 94214d4a10a14e6a894d32e859d674bb26476f8159e6b6549eb9b8c849d72f8b
5
5
  SHA512:
6
- metadata.gz: 3bffb9a52eacfa27ed6633a7f7c01eacc8aec2f0f2b2e25ca5cb1e7ef66556f2486f320260b0544186516a7f87663d3b10ef52c267343089ab822612fb0ca4c2
7
- data.tar.gz: 3e4827feb921fc1e2d324408333ef34c89dfb01837bf1973fc998529323cfe2112970ff1d33b8f4d8792ad37df3c474516c9c2d35e5ed0fb03ee6408f969cd85
6
+ metadata.gz: 9f8f74dfa20c79a7c5b2df844260fd57887b4ccf35aa29724e605661d294ff5584eadc236c1d7a4cfc56b2cfff64913b727b9c029765600734c6874a4574fb79
7
+ data.tar.gz: 6876a643638762d3f6c6d8a915ea1651eea2f928f5ca3f92a59cbc0fcd81ce59d7ee6a688d9587a362bc9e0460efea6e312cd471c81f96fc7e4a797faab3c967
data/.rubocop.yml CHANGED
@@ -3,7 +3,7 @@ require:
3
3
 
4
4
  AllCops:
5
5
  NewCops: enable
6
- TargetRubyVersion: 2.5
6
+ TargetRubyVersion: 2.6
7
7
 
8
8
  Layout/FirstArgumentIndentation:
9
9
  EnforcedStyle: consistent
data/Gemfile CHANGED
@@ -4,7 +4,13 @@ source 'https://rubygems.org'
4
4
  git_source(:github) { |repo| "https://github.com/#{repo}.git" }
5
5
 
6
6
  branch = ENV.fetch('SOLIDUS_BRANCH', 'master')
7
- gem 'solidus', github: 'solidusio/solidus', branch: branch
7
+ solidus_git, solidus_frontend_git = if (branch == 'master') || (branch >= 'v3.2')
8
+ %w[solidusio/solidus solidusio/solidus_frontend]
9
+ else
10
+ %w[solidusio/solidus] * 2
11
+ end
12
+ gem 'solidus', github: solidus_git, branch: branch
13
+ gem 'solidus_frontend', github: solidus_frontend_git, branch: branch
8
14
 
9
15
  gem 'rails', ENV.fetch('RAILS_VERSION', nil)
10
16
 
@@ -11,9 +11,9 @@ module SolidusPaypalBraintree
11
11
  # Error message from Braintree that gets returned by a non voidable transaction
12
12
  NON_VOIDABLE_STATUS_ERROR_REGEXP = /can only be voided if status is authorized/.freeze
13
13
 
14
- TOKEN_GENERATION_DISABLED_MESSAGE = 'Token generation is disabled.' \
15
- ' To re-enable set the `token_generation_enabled` preference on the' \
16
- ' gateway to `true`.'
14
+ TOKEN_GENERATION_DISABLED_MESSAGE = 'Token generation is disabled. ' \
15
+ 'To re-enable set the `token_generation_enabled` preference on the ' \
16
+ 'gateway to `true`.'
17
17
 
18
18
  ALLOWED_BRAINTREE_OPTIONS = [
19
19
  :device_data,
@@ -8,8 +8,8 @@ FactoryBot.define do
8
8
  # require 'solidus_paypal_braintree/factories'
9
9
 
10
10
  factory :solidus_paypal_braintree_payment_method, class: SolidusPaypalBraintree::Gateway do
11
- name 'Solidus PayPal Braintree Gateway'
12
- active true
11
+ name { 'Solidus PayPal Braintree Gateway' }
12
+ active { true }
13
13
  end
14
14
 
15
15
  factory :solidus_paypal_braintree_source, class: SolidusPaypalBraintree::Source do
@@ -17,15 +17,15 @@ FactoryBot.define do
17
17
  user
18
18
 
19
19
  trait :credit_card do
20
- payment_type SolidusPaypalBraintree::Source::CREDIT_CARD
20
+ payment_type { SolidusPaypalBraintree::Source::CREDIT_CARD }
21
21
  end
22
22
 
23
23
  trait :paypal do
24
- payment_type SolidusPaypalBraintree::Source::PAYPAL
24
+ payment_type { SolidusPaypalBraintree::Source::PAYPAL }
25
25
  end
26
26
 
27
27
  trait :apple_pay do
28
- payment_type SolidusPaypalBraintree::Source::APPLE_PAY
28
+ payment_type { SolidusPaypalBraintree::Source::APPLE_PAY }
29
29
  end
30
30
  end
31
31
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusPaypalBraintree
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.2'
5
5
  end
@@ -1,12 +1,12 @@
1
1
  <br />
2
- <%= payment.source.display_payment_type %>
2
+ <%= payment.source.try(:display_payment_type) %>
3
3
 
4
- <% if payment.source.paypal? %>
4
+ <% if payment.source.try(:paypal?) %>
5
5
  <% if payment.source.respond_to?(:paypal_funding_source) && payment.source.paypal_funding_source.present? %>
6
6
  <br />
7
7
  <%= t('spree.paypal_funding', funding: payment.source.display_paypal_funding_source) %>
8
8
  <% end %>
9
- <% elsif payment.source.venmo? %>
9
+ <% elsif payment.source.try(:venmo?) %>
10
10
  <br />
11
11
  <%= payment.source.source_description %>
12
12
  <% end %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_paypal_braintree
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stembolt
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-06-30 00:00:00.000000000 Z
11
+ date: 2022-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant
@@ -276,7 +276,7 @@ metadata:
276
276
  homepage_uri: https://github.com/solidusio/solidus_paypal_braintree
277
277
  source_code_uri: https://github.com/solidusio/solidus_paypal_braintree
278
278
  rubygems_mfa_required: 'true'
279
- post_install_message:
279
+ post_install_message:
280
280
  rdoc_options: []
281
281
  require_paths:
282
282
  - lib
@@ -291,8 +291,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
291
291
  - !ruby/object:Gem::Version
292
292
  version: '0'
293
293
  requirements: []
294
- rubygems_version: 3.1.6
295
- signing_key:
294
+ rubygems_version: 3.2.32
295
+ signing_key:
296
296
  specification_version: 4
297
297
  summary: Officially supported Paypal/Braintree extension
298
298
  test_files: []