workarea-core 3.4.36 → 3.4.37

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
- SHA1:
3
- metadata.gz: 1373c61a73f6d680811a7d550880438838dfc1cf
4
- data.tar.gz: 8896491055161cf76bbc7a754ca6915ab7d9efbf
2
+ SHA256:
3
+ metadata.gz: b92c8bfc7ed302168dc43867258156fc8022d861c8888d267509f06397be80a5
4
+ data.tar.gz: 48aaafb4e4ce343b8c5f86014531a86392d29a13042f8daf291d7be116fe27f1
5
5
  SHA512:
6
- metadata.gz: 1af722113dc9bf6ae7efb1cae8abb3c961c2e9c6ac1232b9aee2c88629d0cf4d7d2b2865559750f314497e278c2973b25edccf957e1e0141741316f86d8b4d30
7
- data.tar.gz: cb2186de83c1f83fef21b96356d0e0ea41f67bd848faa7db2fe8eba77d4e7848038570343c71f5ed178c4d093e19beb0b3fb2960b235a332bd508b565f4d5b3d
6
+ metadata.gz: 359c095f749b941148ef804d7534010a1e2b489e9dd3a6aef49c5ecffb59ac6a9c5cc9afa212b076bd21a40c64ff614414e812f9a432d9d0f6306fbd060b19a2
7
+ data.tar.gz: 1b8ac9254951ed01039219df5548b13655441785f99a3e119625b9964e5eeb6a5fde8772dd45d206a29f0b605416f78d6dbcbd745356327276086619701ce0fa
@@ -80,12 +80,7 @@ module Workarea
80
80
  build_credit_card unless credit_card
81
81
  credit_card.saved_card_id = nil
82
82
  credit_card.attributes = attrs.slice(
83
- :month,
84
- :year,
85
- :saved_card_id,
86
- :number,
87
- :cvv,
88
- :amount
83
+ *Workarea.config.credit_card_attributes
89
84
  )
90
85
  save
91
86
  end
@@ -1289,6 +1289,17 @@ module Workarea
1289
1289
 
1290
1290
  # The number of results that will show per-type in the admin jump to
1291
1291
  config.jump_to_results_per_type = 5
1292
+
1293
+ # Attributes that will be sliced out of params and persisted on
1294
+ # the credit card tender during checkout.
1295
+ config.credit_card_attributes = %i[
1296
+ month
1297
+ year
1298
+ saved_card_id
1299
+ number
1300
+ cvv
1301
+ amount
1302
+ ]
1292
1303
  end
1293
1304
  end
1294
1305
  end
@@ -2,7 +2,7 @@ module Workarea
2
2
  module VERSION
3
3
  MAJOR = 3
4
4
  MINOR = 4
5
- PATCH = 36
5
+ PATCH = 37
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.36
4
+ version: 3.4.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-07 00:00:00.000000000 Z
11
+ date: 2020-07-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -882,22 +882,22 @@ dependencies:
882
882
  name: minitest
883
883
  requirement: !ruby/object:Gem::Requirement
884
884
  requirements:
885
- - - "~>"
886
- - !ruby/object:Gem::Version
887
- version: 5.10.3
888
885
  - - ">="
889
886
  - !ruby/object:Gem::Version
890
887
  version: 5.10.1
888
+ - - "~>"
889
+ - !ruby/object:Gem::Version
890
+ version: 5.10.3
891
891
  type: :runtime
892
892
  prerelease: false
893
893
  version_requirements: !ruby/object:Gem::Requirement
894
894
  requirements:
895
- - - "~>"
896
- - !ruby/object:Gem::Version
897
- version: 5.10.3
898
895
  - - ">="
899
896
  - !ruby/object:Gem::Version
900
897
  version: 5.10.1
898
+ - - "~>"
899
+ - !ruby/object:Gem::Version
900
+ version: 5.10.3
901
901
  - !ruby/object:Gem::Dependency
902
902
  name: countries
903
903
  requirement: !ruby/object:Gem::Requirement
@@ -2614,8 +2614,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
2614
2614
  - !ruby/object:Gem::Version
2615
2615
  version: '0'
2616
2616
  requirements: []
2617
- rubyforge_project:
2618
- rubygems_version: 2.6.14.1
2617
+ rubygems_version: 3.0.3
2619
2618
  signing_key:
2620
2619
  specification_version: 4
2621
2620
  summary: Core of the Workarea Commerce Platform