workarea-gift_cards 3.4.10 → 4.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +5 -5
  2. data/{.eslintrc → .eslintrc.json} +12 -1
  3. data/.github/workflows/ci.yml +10 -8
  4. data/.rubocop.yml +2 -197
  5. data/.stylelintrc.json +8 -0
  6. data/CHANGELOG.md +40 -20
  7. data/Gemfile +3 -5
  8. data/README.md +25 -1
  9. data/app/controllers/workarea/api/admin/gift_cards_controller.rb +309 -0
  10. data/app/controllers/workarea/api/storefront/checkouts_controller.decorator +6 -0
  11. data/app/controllers/workarea/api/storefront/gift_cards_controller.rb +2 -8
  12. data/app/controllers/workarea/storefront/checkout/gift_cards_controller.rb +32 -0
  13. data/app/controllers/workarea/storefront/gift_cards_controller.rb +15 -16
  14. data/app/models/workarea/checkout/steps/gift_card.rb +72 -0
  15. data/app/models/workarea/fulfillment/policies/create_gift_card.rb +30 -0
  16. data/app/models/workarea/payment.decorator +25 -7
  17. data/app/models/workarea/payment/authorize/gift_card.rb +7 -20
  18. data/app/models/workarea/payment/capture/gift_card.rb +5 -7
  19. data/app/models/workarea/payment/gift_card.rb +1 -1
  20. data/app/models/workarea/payment/gift_card_operation.rb +9 -0
  21. data/app/models/workarea/payment/purchase/gift_card.rb +24 -1
  22. data/app/models/workarea/payment/refund/gift_card.rb +9 -14
  23. data/app/models/workarea/payment/tender/gift_card.rb +3 -10
  24. data/app/models/workarea/search/admin/order.decorator +2 -4
  25. data/app/seeds/workarea/gift_card_seeds.rb +7 -7
  26. data/app/view_models/workarea/storefront/gift_card_order_pricing.rb +19 -20
  27. data/app/view_models/workarea/storefront/order_view_model.decorator +2 -22
  28. data/app/views/workarea/admin/payment_gift_cards/_menu.html.haml +2 -1
  29. data/app/views/workarea/storefront/checkouts/_gift_card_error.html.haml +8 -6
  30. data/app/views/workarea/storefront/checkouts/_gift_card_payment.html.haml +20 -12
  31. data/app/views/workarea/storefront/gift_card_mailer/created.html.haml +1 -1
  32. data/app/views/workarea/storefront/order_mailer/_gift_card_summary.html.haml +6 -5
  33. data/app/views/workarea/storefront/orders/_gift_card_summary.html.haml +2 -2
  34. data/app/views/workarea/storefront/products/templates/_gift_card.html.haml +5 -5
  35. data/app/workers/workarea/log_gift_card_redemption.rb +16 -9
  36. data/config/initializers/configuration.rb +7 -4
  37. data/config/initializers/fields.rb +14 -0
  38. data/config/locales/en.yml +14 -4
  39. data/config/routes.rb +9 -2
  40. data/lib/workarea/gift_cards.rb +9 -0
  41. data/lib/workarea/gift_cards/gateway.rb +128 -0
  42. data/lib/workarea/gift_cards/version.rb +1 -1
  43. data/test/documentation/workarea/api/admin/gift_cards_documentation_test.rb +24 -10
  44. data/test/documentation/workarea/api/storefront/gift_cards_documentation_test.rb +57 -50
  45. data/test/dummy/config/initializers/session_store.rb +1 -1
  46. data/test/integration/workarea/api/admin/gift_card_integration_test.rb +13 -5
  47. data/test/integration/workarea/api/storefront/checkout_gift_cards_integration_test.rb +120 -0
  48. data/test/integration/workarea/api/storefront/{balance_integration_test.rb → gift_cards_integration_test.rb} +1 -1
  49. data/test/integration/workarea/storefront/checkout_gift_cards_integration_test.rb +116 -0
  50. data/test/integration/workarea/storefront/gift_cards_integration_test.rb +48 -0
  51. data/test/integration/workarea/storefront/purchase_gift_cards_integration_test.rb +55 -0
  52. data/test/lib/workarea/gift_cards/gateway_test.rb +131 -0
  53. data/test/models/workarea/checkout/steps/gift_card_test.rb +104 -0
  54. data/test/models/workarea/fulfillment/policies/create_gift_card_test.rb +47 -0
  55. data/test/models/workarea/gift_card_payment_test.rb +15 -3
  56. data/test/models/workarea/payment/purchase/gift_card_test.rb +11 -8
  57. data/test/queries/workarea/admin_redemptions_export_test.rb +31 -35
  58. data/test/system/workarea/storefront/gift_cards_system_test.rb +8 -2
  59. data/test/view_models/workarea/storefront/gift_card_order_pricing_test.rb +113 -0
  60. data/test/workers/workarea/log_gift_card_redemption_test.rb +1 -1
  61. data/workarea-gift_cards.gemspec +4 -4
  62. metadata +32 -25
  63. data/.eslintignore +0 -2
  64. data/.scss-lint.yml +0 -188
  65. data/app/controllers/workarea/api/admin/payment_gift_cards_controller.rb +0 -49
  66. data/app/controllers/workarea/storefront/checkouts_controller.decorator +0 -24
  67. data/app/services/workarea/checkout/steps/gift_card.rb +0 -49
  68. data/app/view_models/workarea/storefront/checkout/payment_view_model.decorator +0 -32
  69. data/app/view_models/workarea/storefront/checkout/summary_view_model.decorator +0 -11
  70. data/app/workers/workarea/create_ordered_gift_cards.rb +0 -47
  71. data/config/initializers/jump_to_navigation.rb +0 -3
  72. data/test/integration/workarea/api/storefront/checkout_integration_test.rb +0 -161
  73. data/test/integration/workarea/storefront/gift_card_integration_test.rb +0 -226
  74. data/test/services/workarea/checkout/steps/gift_card_test.rb +0 -87
  75. data/test/view_models/workarea/storefront/checkout/gift_card_payment_view_model_test.rb +0 -65
  76. data/test/workers/workarea/create_ordered_gift_cards_test.rb +0 -39
@@ -3,50 +3,46 @@ require 'test_helper'
3
3
  module Workarea
4
4
  class AdminRedemptionsExportTest < IntegrationTest
5
5
  def test_total
6
- Workarea.with_config do |config|
7
- config.per_page = 5
8
- config.bulk_action_per_page = 5
6
+ Workarea.config.per_page = 5
7
+ Workarea.config.bulk_action_per_page = 5
9
8
 
9
+ card = create_gift_card(amount: 20)
10
+ create_gift_card_redemption(gift_card: card, amount: 10)
11
+ create_gift_card_redemption(gift_card: card, amount: 10)
12
+ query = Search::AdminGiftCards.new
13
+
14
+ export = AdminRedemptionsExport.new(gift_cards_query_id: query.to_gid_param)
15
+ assert_equal(2, export.total)
16
+
17
+ 15.times do
10
18
  card = create_gift_card(amount: 20)
11
19
  create_gift_card_redemption(gift_card: card, amount: 10)
12
- create_gift_card_redemption(gift_card: card, amount: 10)
13
- query = Search::AdminGiftCards.new
20
+ end
14
21
 
15
- export = AdminRedemptionsExport.new(gift_cards_query_id: query.to_gid_param)
16
- assert_equal(2, export.total)
22
+ export = AdminRedemptionsExport.new(gift_cards_query_id: query.to_gid_param)
23
+ assert_equal(17, export.total)
24
+ end
17
25
 
18
- 15.times do
19
- card = create_gift_card(amount: 20)
20
- create_gift_card_redemption(gift_card: card, amount: 10)
21
- end
26
+ def test_scroll
27
+ Workarea.config.bulk_action_per_page = 2
22
28
 
23
- export = AdminRedemptionsExport.new(gift_cards_query_id: query.to_gid_param)
24
- assert_equal(17, export.total)
29
+ 5.times do
30
+ card = create_gift_card(amount: 20)
31
+ create_gift_card_redemption(gift_card: card, amount: 10)
25
32
  end
26
- end
27
33
 
28
- def test_scroll
29
- Workarea.with_config do |config|
30
- config.bulk_action_per_page = 2
31
-
32
- 5.times do
33
- card = create_gift_card(amount: 20)
34
- create_gift_card_redemption(gift_card: card, amount: 10)
35
- end
36
-
37
- query = Search::AdminGiftCards.new
38
- export = AdminRedemptionsExport.new(gift_cards_query_id: query.to_gid_param)
39
- count = 0
40
- passes = 0
41
-
42
- export.scroll do |results|
43
- count += results.size
44
- passes += 1
45
- end
46
-
47
- assert_equal(5, count)
48
- assert_equal(3, passes)
34
+ query = Search::AdminGiftCards.new
35
+ export = AdminRedemptionsExport.new(gift_cards_query_id: query.to_gid_param)
36
+ count = 0
37
+ passes = 0
38
+
39
+ export.scroll do |results|
40
+ count += results.size
41
+ passes += 1
49
42
  end
43
+
44
+ assert_equal(5, count)
45
+ assert_equal(3, passes)
50
46
  end
51
47
  end
52
48
  end
@@ -9,7 +9,6 @@ module Workarea
9
9
  product = create_product(
10
10
  name: 'Gift Card',
11
11
  gift_card: true,
12
- digital: true,
13
12
  template: 'gift_card',
14
13
  customizations: 'gift_card',
15
14
  variants: [
@@ -19,6 +18,10 @@ module Workarea
19
18
  ]
20
19
  )
21
20
 
21
+ create_fulfillment_sku(id: 'SKU1', policy: :create_gift_card)
22
+ create_fulfillment_sku(id: 'SKU2', policy: :create_gift_card)
23
+ create_fulfillment_sku(id: 'SKU3', policy: :create_gift_card)
24
+
22
25
  visit storefront.product_path(product)
23
26
 
24
27
  assert(page.has_content?('Gift Card'))
@@ -50,7 +53,6 @@ module Workarea
50
53
  product = create_product(
51
54
  name: 'Gift Card',
52
55
  gift_card: true,
53
- digital: true,
54
56
  template: 'gift_card',
55
57
  customizations: 'gift_card',
56
58
  variants: [
@@ -60,6 +62,10 @@ module Workarea
60
62
  ]
61
63
  )
62
64
 
65
+ create_fulfillment_sku(id: 'SKU1', policy: :create_gift_card)
66
+ create_fulfillment_sku(id: 'SKU2', policy: :create_gift_card)
67
+ create_fulfillment_sku(id: 'SKU3', policy: :create_gift_card)
68
+
63
69
  visit storefront.product_path(product)
64
70
 
65
71
  within '.product-details__add-to-cart-form' do
@@ -0,0 +1,113 @@
1
+ require 'test_helper'
2
+
3
+ module Workarea
4
+ module Storefront
5
+ class GiftCardOrderPricingTest < TestCase
6
+ class TestViewModel < ApplicationViewModel
7
+ include OrderPricing
8
+ include GiftCardOrderPricing
9
+
10
+ alias_method :order, :model
11
+
12
+ def payment
13
+ @payment ||= options[:payment]
14
+ end
15
+ end
16
+
17
+ setup :payment, :setup_gift_cards
18
+
19
+ def order
20
+ @order ||= create_order(total_price: 50.to_m)
21
+ end
22
+
23
+ def payment
24
+ @payment ||= create_payment(id: order.id)
25
+ end
26
+
27
+ def setup_gift_cards
28
+ Workarea.config.max_gift_cards_per_order = 5
29
+
30
+ create_gift_card(token: '123', amount: 10.to_m)
31
+ create_gift_card(token: '456', amount: 20.to_m)
32
+ create_gift_card(token: '789', amount: 30.to_m)
33
+ end
34
+
35
+ def view_model_instance
36
+ TestViewModel.new(order, payment: payment)
37
+ end
38
+
39
+ def test_gift_cards
40
+ assert(view_model_instance.gift_cards.blank?)
41
+
42
+ payment.gift_cards.build(number: '123')
43
+ assert(view_model_instance.gift_cards.blank?)
44
+
45
+ payment.reload
46
+ payment.add_gift_card(number: '123')
47
+ assert_equal(1, view_model_instance.gift_cards.count)
48
+ assert_equal('123', view_model_instance.gift_cards.first.number)
49
+ end
50
+
51
+ def test_gift_card?
52
+ refute(view_model_instance.gift_card?)
53
+
54
+ payment.add_gift_card(number: '123')
55
+ assert(view_model_instance.gift_card?)
56
+ end
57
+
58
+ def test_gift_card_amount
59
+ assert_equal(0.to_m, view_model_instance.gift_card_amount)
60
+
61
+ payment.add_gift_card(number: '123', amount: 10.to_m)
62
+ assert_equal(10.to_m, view_model_instance.gift_card_amount)
63
+
64
+ payment.add_gift_card(number: '456', amount: 5.to_m)
65
+ assert_equal(15.to_m, view_model_instance.gift_card_amount)
66
+ end
67
+
68
+ def test_gift_card_balance
69
+ assert_equal(0.to_m, view_model_instance.gift_card_balance)
70
+
71
+ payment.add_gift_card(number: '123')
72
+ assert_equal(10.to_m, view_model_instance.gift_card_balance)
73
+
74
+ payment.add_gift_card(number: '456')
75
+ assert_equal(30.to_m, view_model_instance.gift_card_balance)
76
+ end
77
+
78
+ def test_total_before_gift_cards
79
+ assert_equal(50.to_m, view_model_instance.total_before_gift_cards)
80
+
81
+ payment.add_gift_card(number: '123', amount: 10.to_m)
82
+ assert_equal(50.to_m, view_model_instance.total_before_gift_cards)
83
+
84
+ payment.add_gift_card(number: '456', amount: 20.to_m)
85
+ assert_equal(50.to_m, view_model_instance.total_before_gift_cards)
86
+ end
87
+
88
+ def test_advance_payment_amount
89
+ assert_equal(0.to_m, view_model_instance.advance_payment_amount)
90
+
91
+ payment.add_gift_card(number: '123', amount: 10.to_m)
92
+ assert_equal(10.to_m, view_model_instance.advance_payment_amount)
93
+
94
+ payment.add_gift_card(number: '456', amount: 20.to_m)
95
+ assert_equal(30.to_m, view_model_instance.advance_payment_amount)
96
+
97
+ payment.add_gift_card(number: '789', amount: 20.to_m)
98
+ assert_equal(50.to_m, view_model_instance.advance_payment_amount)
99
+ end
100
+
101
+ def test_failed_gift_card
102
+ assert_nil(view_model_instance.failed_gift_card)
103
+
104
+ payment.add_gift_card(number: '123')
105
+ assert_nil(view_model_instance.failed_gift_card)
106
+
107
+ Workarea.config.max_gift_cards_per_order = 1
108
+ payment.add_gift_card(number: '456')
109
+ assert_equal('456', view_model_instance.failed_gift_card.number)
110
+ end
111
+ end
112
+ end
113
+ end
@@ -7,7 +7,7 @@ module Workarea
7
7
 
8
8
  order = Order.create!(placed_at: Time.now)
9
9
  payment = Payment.create!(id: order.id)
10
- payment.set_gift_card(number: '123456')
10
+ payment.add_gift_card(number: '123456')
11
11
 
12
12
  LogGiftCardRedemption.new.perform(order.id)
13
13
  LogGiftCardRedemption.new.perform(order.id)
@@ -6,10 +6,10 @@ Gem::Specification.new do |s|
6
6
  s.name = 'workarea-gift_cards'
7
7
  s.version = Workarea::GiftCards::VERSION
8
8
  s.authors = ['bcrouse']
9
- s.email = ['bcrouse@weblinc.com']
9
+ s.email = ['bcrouse@workarea.com']
10
10
  s.homepage = 'https://github.com/workarea-commerce/workarea-gift-cards'
11
- s.summary = 'Gift Cards plugin for the Workarea commerce platform'
12
- s.description = 'Adds built-in gift cards to the Workarea commerce platform.'
11
+ s.summary = 'Gift Cards plugin for the Workarea Commerce Platform'
12
+ s.description = 'Adds built-in digital gift cards to the Workarea Commerce Platform.'
13
13
 
14
14
  s.files = `git ls-files`.split("\n")
15
15
 
@@ -17,5 +17,5 @@ Gem::Specification.new do |s|
17
17
 
18
18
  s.required_ruby_version = '>= 2.3.0'
19
19
 
20
- s.add_dependency 'workarea', '~> 3.3.0'
20
+ s.add_dependency 'workarea', '~> 3.x', '>= 3.5.x'
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-gift_cards
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.10
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - bcrouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-04 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -16,31 +16,36 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 3.3.0
19
+ version: 3.x
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 3.5.x
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
27
  - - "~>"
25
28
  - !ruby/object:Gem::Version
26
- version: 3.3.0
27
- description: Adds built-in gift cards to the Workarea commerce platform.
29
+ version: 3.x
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 3.5.x
33
+ description: Adds built-in digital gift cards to the Workarea Commerce Platform.
28
34
  email:
29
- - bcrouse@weblinc.com
35
+ - bcrouse@workarea.com
30
36
  executables: []
31
37
  extensions: []
32
38
  extra_rdoc_files: []
33
39
  files:
34
40
  - ".editorconfig"
35
- - ".eslintignore"
36
- - ".eslintrc"
41
+ - ".eslintrc.json"
37
42
  - ".github/ISSUE_TEMPLATE/bug_report.md"
38
43
  - ".github/ISSUE_TEMPLATE/documentation-request.md"
39
44
  - ".github/ISSUE_TEMPLATE/feature_request.md"
40
45
  - ".github/workflows/ci.yml"
41
46
  - ".gitignore"
42
47
  - ".rubocop.yml"
43
- - ".scss-lint.yml"
48
+ - ".stylelintrc.json"
44
49
  - ".yardopts"
45
50
  - CHANGELOG.md
46
51
  - CODE_OF_CONDUCT.md
@@ -53,20 +58,23 @@ files:
53
58
  - app/assets/images/workarea/storefront/payment_icons/gift_card.svg
54
59
  - app/controllers/workarea/admin/data_file_exports_controller.decorator
55
60
  - app/controllers/workarea/admin/payment_gift_cards_controller.rb
56
- - app/controllers/workarea/api/admin/payment_gift_cards_controller.rb
61
+ - app/controllers/workarea/api/admin/gift_cards_controller.rb
57
62
  - app/controllers/workarea/api/storefront/checkouts_controller.decorator
58
63
  - app/controllers/workarea/api/storefront/gift_cards_controller.rb
59
- - app/controllers/workarea/storefront/checkouts_controller.decorator
64
+ - app/controllers/workarea/storefront/checkout/gift_cards_controller.rb
60
65
  - app/controllers/workarea/storefront/gift_cards_controller.rb
61
66
  - app/mailers/workarea/storefront/gift_card_mailer.rb
62
67
  - app/models/workarea/catalog/customizations/gift_card.rb
63
68
  - app/models/workarea/catalog/product.decorator
69
+ - app/models/workarea/checkout/steps/gift_card.rb
70
+ - app/models/workarea/fulfillment/policies/create_gift_card.rb
64
71
  - app/models/workarea/order/item.decorator
65
72
  - app/models/workarea/payment.decorator
66
73
  - app/models/workarea/payment/authorize/gift_card.rb
67
74
  - app/models/workarea/payment/capture/gift_card.rb
68
75
  - app/models/workarea/payment/gift_card.rb
69
76
  - app/models/workarea/payment/gift_card/redemption.rb
77
+ - app/models/workarea/payment/gift_card_operation.rb
70
78
  - app/models/workarea/payment/purchase/gift_card.rb
71
79
  - app/models/workarea/payment/refund/gift_card.rb
72
80
  - app/models/workarea/payment/tender/gift_card.rb
@@ -76,10 +84,7 @@ files:
76
84
  - app/queries/workarea/order_item_details.decorator
77
85
  - app/queries/workarea/search/admin_gift_cards.rb
78
86
  - app/seeds/workarea/gift_card_seeds.rb
79
- - app/services/workarea/checkout/steps/gift_card.rb
80
87
  - app/view_models/workarea/admin/payment_gift_card_view_model.rb
81
- - app/view_models/workarea/storefront/checkout/payment_view_model.decorator
82
- - app/view_models/workarea/storefront/checkout/summary_view_model.decorator
83
88
  - app/view_models/workarea/storefront/gift_card_order_pricing.rb
84
89
  - app/view_models/workarea/storefront/order_view_model.decorator
85
90
  - app/view_models/workarea/storefront/product_templates/gift_card_view_model.rb
@@ -109,17 +114,17 @@ files:
109
114
  - app/views/workarea/storefront/orders/_gift_card_summary.html.haml
110
115
  - app/views/workarea/storefront/orders/tenders/_gift_card.html.haml
111
116
  - app/views/workarea/storefront/products/templates/_gift_card.html.haml
112
- - app/workers/workarea/create_ordered_gift_cards.rb
113
117
  - app/workers/workarea/log_gift_card_redemption.rb
114
118
  - app/workers/workarea/send_gift_card_notifications.rb
115
119
  - bin/rails
116
120
  - config/initializers/append_points.rb
117
121
  - config/initializers/configuration.rb
118
- - config/initializers/jump_to_navigation.rb
122
+ - config/initializers/fields.rb
119
123
  - config/locales/en.yml
120
124
  - config/routes.rb
121
125
  - lib/workarea/gift_cards.rb
122
126
  - lib/workarea/gift_cards/engine.rb
127
+ - lib/workarea/gift_cards/gateway.rb
123
128
  - lib/workarea/gift_cards/version.rb
124
129
  - lib/workarea/mailer_previews/storefront/gift_card_mailer_preview.rb
125
130
  - test/documentation/workarea/api/admin/gift_cards_documentation_test.rb
@@ -179,22 +184,25 @@ files:
179
184
  - test/integration/workarea/admin/gift_card_integration_test.rb
180
185
  - test/integration/workarea/admin/gift_card_redemptions_export_integration_test.rb
181
186
  - test/integration/workarea/api/admin/gift_card_integration_test.rb
182
- - test/integration/workarea/api/storefront/balance_integration_test.rb
183
- - test/integration/workarea/api/storefront/checkout_integration_test.rb
184
- - test/integration/workarea/storefront/gift_card_integration_test.rb
187
+ - test/integration/workarea/api/storefront/checkout_gift_cards_integration_test.rb
188
+ - test/integration/workarea/api/storefront/gift_cards_integration_test.rb
189
+ - test/integration/workarea/storefront/checkout_gift_cards_integration_test.rb
190
+ - test/integration/workarea/storefront/gift_cards_integration_test.rb
191
+ - test/integration/workarea/storefront/purchase_gift_cards_integration_test.rb
192
+ - test/lib/workarea/gift_cards/gateway_test.rb
185
193
  - test/models/workarea/catalog/gift_card_product_test.rb
194
+ - test/models/workarea/checkout/steps/gift_card_test.rb
195
+ - test/models/workarea/fulfillment/policies/create_gift_card_test.rb
186
196
  - test/models/workarea/gift_card_payment_test.rb
187
197
  - test/models/workarea/payment/gift_card_test.rb
188
198
  - test/models/workarea/payment/purchase/gift_card_test.rb
189
199
  - test/models/workarea/payment/refund/gift_card_test.rb
190
200
  - test/queries/workarea/admin_redemptions_export_test.rb
191
201
  - test/queries/workarea/gift_card_order_item_details_test.rb
192
- - test/services/workarea/checkout/steps/gift_card_test.rb
193
202
  - test/system/workarea/admin/gift_cards_system_test.rb
194
203
  - test/system/workarea/storefront/gift_cards_system_test.rb
195
204
  - test/test_helper.rb
196
- - test/view_models/workarea/storefront/checkout/gift_card_payment_view_model_test.rb
197
- - test/workers/workarea/create_ordered_gift_cards_test.rb
205
+ - test/view_models/workarea/storefront/gift_card_order_pricing_test.rb
198
206
  - test/workers/workarea/log_gift_card_redemption_test.rb
199
207
  - workarea-gift_cards.gemspec
200
208
  homepage: https://github.com/workarea-commerce/workarea-gift-cards
@@ -216,9 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
224
  - !ruby/object:Gem::Version
217
225
  version: '0'
218
226
  requirements: []
219
- rubyforge_project:
220
- rubygems_version: 2.6.14.4
227
+ rubygems_version: 3.0.3
221
228
  signing_key:
222
229
  specification_version: 4
223
- summary: Gift Cards plugin for the Workarea commerce platform
230
+ summary: Gift Cards plugin for the Workarea Commerce Platform
224
231
  test_files: []
@@ -1,2 +0,0 @@
1
- **/test/**/*.js
2
- testing/**/spec_helper.js
@@ -1,188 +0,0 @@
1
- # Extension of the default configuration:
2
- # https://github.com/causes/scss-lint/blob/master/config/default.yml
3
-
4
- linters:
5
- Comment:
6
- enabled: false
7
-
8
- DeclarationOrder:
9
- enabled: true
10
-
11
- ElsePlacement:
12
- enabled: true
13
- style: new_line
14
-
15
- EmptyRule:
16
- enabled: false
17
-
18
- HexLength:
19
- enabled: true
20
- style: long
21
-
22
- Indentation:
23
- enabled: true
24
- allow_non_nested_indentation: true
25
- character: space
26
- width: 4
27
-
28
- LeadingZero:
29
- enabled: true
30
- style: include_zero
31
-
32
- MergeableSelector:
33
- enabled: true
34
- force_nesting: false
35
-
36
- PropertySortOrder:
37
- enabled: true
38
- ignore_unspecified: false
39
- separate_groups: false
40
- order:
41
- - display
42
- -
43
- - position
44
- - top
45
- - right
46
- - bottom
47
- - left
48
- - z-index
49
- -
50
- - margin
51
- - margin-top
52
- - margin-right
53
- - margin-bottom
54
- - margin-left
55
- -
56
- - margin-collapse
57
- - margin-top-collapse
58
- - margin-right-collapse
59
- - margin-bottom-collapse
60
- - margin-left-collapse
61
- -
62
- - padding
63
- - padding-top
64
- - padding-right
65
- - padding-bottom
66
- - padding-left
67
- -
68
- - width
69
- - height
70
- - max-width
71
- - max-height
72
- - min-width
73
- - min-height
74
- -
75
- - float
76
- - clear
77
- -
78
- - color
79
- -
80
- - font
81
- - font-size
82
- - font-style
83
- - font-family
84
- - font-weight
85
- - font-variant
86
- - font-smoothing
87
- -
88
- - line-height
89
- - letter-spacing
90
- - word-spacing
91
- -
92
- - text-align
93
- - text-indent
94
- - text-shadow
95
- - text-overflow
96
- - text-rendering
97
- - text-transform
98
- - text-decoration
99
- - text-size-adjust
100
- -
101
- - word-break
102
- - word-wrap
103
- -
104
- - white-space
105
- -
106
- - background
107
- - background-size
108
- - background-color
109
- - background-image
110
- - background-repeat
111
- - background-position
112
- - background-attachment
113
- -
114
- - border
115
- - border-top
116
- - border-right
117
- - border-bottom
118
- - border-left
119
- -
120
- - border-image
121
- - border-spacing
122
- - border-collapse
123
- -
124
- - border-color
125
- - border-top-color
126
- - border-right-color
127
- - border-bottom-color
128
- - border-left-color
129
- -
130
- - border-style
131
- - border-top-style
132
- - border-right-style
133
- - border-bottom-style
134
- - border-left-style
135
- -
136
- - border-width
137
- - border-top-width
138
- - border-right-width
139
- - border-bottom-width
140
- - border-left-width
141
- -
142
- - border-radius
143
- - border-top-right-radius
144
- - border-bottom-right-radius
145
- - border-bottom-left-radius
146
- - border-top-left-radius
147
- - border-radius-topright
148
- - border-radius-bottomright
149
- - border-radius-bottomleft
150
- - border-radius-topleft
151
- -
152
- - box-shadow
153
-
154
- SelectorFormat:
155
- enabled: true
156
- convention: hyphenated_BEM
157
-
158
- SingleLinePerSelector:
159
- enabled: false
160
-
161
- SpaceAfterPropertyColon:
162
- enabled: true
163
- style: at_least_one_space
164
-
165
- SpaceBeforeBrace:
166
- enabled: true
167
- style: space
168
- allow_single_line_padding: true
169
-
170
- VariableForProperty:
171
- enabled: true
172
- properties:
173
- - color
174
- - font-family
175
- - background-color
176
-
177
- # These default settings may be problematic to implementors. They are not
178
- # ommitted so that they may be adjusted as needed during an implementation.
179
- #
180
- # For documentation:
181
- # https://github.com/causes/scss-lint/blob/master/lib/scss_lint/linter/README.md
182
-
183
- DuplicateProperty:
184
- enabled: true
185
-
186
- PropertySpelling:
187
- enabled: true
188
- extra_properties: [] # Add experimental CSS to this array, if needed