workarea-gift_cards 3.4.11 → 4.0.0.beta.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{.eslintrc → .eslintrc.json} +12 -1
- data/.github/workflows/ci.yml +10 -8
- data/.rubocop.yml +2 -197
- data/.stylelintrc.json +8 -0
- data/CHANGELOG.md +0 -71
- data/Gemfile +3 -5
- data/Rakefile +5 -4
- data/app/controllers/workarea/api/admin/gift_cards_controller.rb +309 -0
- data/app/controllers/workarea/api/storefront/checkouts_controller.decorator +6 -0
- data/app/controllers/workarea/api/storefront/gift_cards_controller.rb +2 -8
- data/app/controllers/workarea/storefront/checkout/gift_cards_controller.rb +32 -0
- data/app/controllers/workarea/storefront/gift_cards_controller.rb +15 -16
- data/app/models/workarea/checkout/steps/gift_card.rb +71 -0
- data/app/models/workarea/fulfillment/policies/create_gift_card.rb +30 -0
- data/app/models/workarea/payment/authorize/gift_card.rb +7 -20
- data/app/models/workarea/payment/capture/gift_card.rb +5 -7
- data/app/models/workarea/payment/gift_card.rb +1 -1
- data/app/models/workarea/payment/gift_card_operation.rb +9 -0
- data/app/models/workarea/payment/purchase/gift_card.rb +24 -1
- data/app/models/workarea/payment/refund/gift_card.rb +9 -14
- data/app/models/workarea/payment/tender/gift_card.rb +3 -10
- data/app/models/workarea/payment.decorator +25 -7
- data/app/models/workarea/search/admin/order.decorator +2 -4
- data/app/seeds/workarea/gift_card_seeds.rb +7 -7
- data/app/view_models/workarea/storefront/gift_card_order_pricing.rb +19 -20
- data/app/view_models/workarea/storefront/order_view_model.decorator +2 -22
- data/app/views/workarea/admin/payment_gift_cards/_menu.html.haml +2 -1
- data/app/views/workarea/storefront/checkouts/_gift_card_error.html.haml +8 -6
- data/app/views/workarea/storefront/checkouts/_gift_card_payment.html.haml +20 -12
- data/app/views/workarea/storefront/gift_card_mailer/created.html.haml +1 -1
- data/app/views/workarea/storefront/order_mailer/_gift_card_summary.html.haml +6 -5
- data/app/views/workarea/storefront/orders/_gift_card_summary.html.haml +2 -2
- data/app/views/workarea/storefront/products/templates/_gift_card.html.haml +5 -5
- data/app/workers/workarea/log_gift_card_redemption.rb +16 -9
- data/config/initializers/configuration.rb +7 -4
- data/config/initializers/fields.rb +14 -0
- data/config/locales/en.yml +14 -4
- data/config/routes.rb +9 -2
- data/lib/workarea/gift_cards/gateway.rb +128 -0
- data/lib/workarea/gift_cards/version.rb +1 -1
- data/lib/workarea/gift_cards.rb +9 -0
- data/test/documentation/workarea/api/admin/gift_cards_documentation_test.rb +24 -10
- data/test/documentation/workarea/api/storefront/gift_cards_documentation_test.rb +57 -50
- data/test/dummy/config/initializers/session_store.rb +1 -1
- data/test/integration/workarea/api/admin/gift_card_integration_test.rb +13 -5
- data/test/integration/workarea/api/storefront/checkout_gift_cards_integration_test.rb +120 -0
- data/test/integration/workarea/api/storefront/{balance_integration_test.rb → gift_cards_integration_test.rb} +1 -1
- data/test/integration/workarea/storefront/checkout_gift_cards_integration_test.rb +116 -0
- data/test/integration/workarea/storefront/gift_cards_integration_test.rb +48 -0
- data/test/integration/workarea/storefront/purchase_gift_cards_integration_test.rb +55 -0
- data/test/lib/workarea/gift_cards/gateway_test.rb +97 -0
- data/test/models/workarea/checkout/steps/gift_card_test.rb +104 -0
- data/test/models/workarea/fulfillment/policies/create_gift_card_test.rb +47 -0
- data/test/models/workarea/gift_card_payment_test.rb +15 -3
- data/test/models/workarea/payment/purchase/gift_card_test.rb +11 -8
- data/test/queries/workarea/admin_redemptions_export_test.rb +31 -35
- data/test/system/workarea/storefront/gift_cards_system_test.rb +8 -2
- data/test/view_models/workarea/storefront/gift_card_order_pricing_test.rb +113 -0
- data/test/workers/workarea/log_gift_card_redemption_test.rb +1 -1
- data/workarea-gift_cards.gemspec +4 -4
- metadata +26 -30
- data/.eslintignore +0 -2
- data/.scss-lint.yml +0 -188
- data/app/controllers/workarea/api/admin/payment_gift_cards_controller.rb +0 -49
- data/app/controllers/workarea/storefront/checkouts_controller.decorator +0 -24
- data/app/services/workarea/checkout/steps/gift_card.rb +0 -49
- data/app/view_models/workarea/storefront/checkout/payment_view_model.decorator +0 -32
- data/app/view_models/workarea/storefront/checkout/summary_view_model.decorator +0 -11
- data/app/workers/workarea/create_ordered_gift_cards.rb +0 -47
- data/config/initializers/jump_to_navigation.rb +0 -3
- data/test/integration/workarea/api/storefront/checkout_integration_test.rb +0 -161
- data/test/integration/workarea/storefront/gift_card_integration_test.rb +0 -226
- data/test/services/workarea/checkout/steps/gift_card_test.rb +0 -87
- data/test/view_models/workarea/storefront/checkout/gift_card_payment_view_model_test.rb +0 -65
- data/test/workers/workarea/create_ordered_gift_cards_test.rb +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef5e635f5ce1f7cb61c1940ca2d804489894e452dbcd644b6cf3c92cc88f8e00
|
4
|
+
data.tar.gz: 409df19432f8b11ba9ad0fc806ad32b7e2ca04d1d4eb7fda6cb72ce6d8f50964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05c1a4918fd065cd9f697146c9558c844e6673d19df6458a86eeb7ad06d22a43cd71fa1a04f49f91e82b2f60daff801880935f0b44efabefae008399cf708f0a
|
7
|
+
data.tar.gz: 825eff9a470dcf32a45e14777027f86079b76de157f21b298e898e40fc6fdbfcd3d461483df6841c7b7689cef56d1014e5262b05652e2848573dca67024fee0c
|
@@ -1,7 +1,8 @@
|
|
1
1
|
{
|
2
2
|
"extends": "eslint:recommended",
|
3
3
|
"rules": {
|
4
|
-
"semi": [
|
4
|
+
"semi": ["error", "always"],
|
5
|
+
"eqeqeq": ["error", "always"]
|
5
6
|
},
|
6
7
|
"globals": {
|
7
8
|
"window": true,
|
@@ -20,5 +21,15 @@
|
|
20
21
|
"Waypoint": true,
|
21
22
|
"wysihtml": true,
|
22
23
|
"LocalTime": true,
|
24
|
+
"describe": true,
|
25
|
+
"after": true,
|
26
|
+
"afterEach": true,
|
27
|
+
"before": true,
|
28
|
+
"beforeEach": true,
|
29
|
+
"it": true,
|
30
|
+
"expect": true,
|
31
|
+
"sinon": true,
|
32
|
+
"fixture": true,
|
33
|
+
"chai": true
|
23
34
|
}
|
24
35
|
}
|
data/.github/workflows/ci.yml
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
name: CI
|
2
2
|
on: [push]
|
3
|
-
|
4
|
-
BUNDLE_GEMS__WEBLINC__COM: ${{ secrets.BUNDLE_GEMS__WEBLINC__COM }}
|
3
|
+
|
5
4
|
jobs:
|
6
5
|
static_analysis:
|
7
6
|
runs-on: ubuntu-latest
|
8
7
|
steps:
|
9
8
|
- uses: actions/checkout@v1
|
10
|
-
- uses: workarea-commerce/ci/bundler-audit@
|
11
|
-
- uses: workarea-commerce/ci/rubocop@
|
9
|
+
- uses: workarea-commerce/ci/bundler-audit@v1
|
10
|
+
- uses: workarea-commerce/ci/rubocop@v1
|
11
|
+
- uses: workarea-commerce/ci/eslint@v1
|
12
|
+
with:
|
13
|
+
args: '**/*.js'
|
12
14
|
|
13
15
|
admin_tests:
|
14
16
|
runs-on: ubuntu-latest
|
@@ -16,7 +18,7 @@ jobs:
|
|
16
18
|
- uses: actions/checkout@v1
|
17
19
|
- uses: actions/setup-ruby@v1
|
18
20
|
with:
|
19
|
-
ruby-version: 2.
|
21
|
+
ruby-version: 2.6.x
|
20
22
|
- uses: workarea-commerce/ci/test@v1
|
21
23
|
with:
|
22
24
|
command: bin/rails app:workarea:test:admin
|
@@ -27,7 +29,7 @@ jobs:
|
|
27
29
|
- uses: actions/checkout@v1
|
28
30
|
- uses: actions/setup-ruby@v1
|
29
31
|
with:
|
30
|
-
ruby-version: 2.
|
32
|
+
ruby-version: 2.6.x
|
31
33
|
- uses: workarea-commerce/ci/test@v1
|
32
34
|
with:
|
33
35
|
command: bin/rails app:workarea:test:core
|
@@ -38,7 +40,7 @@ jobs:
|
|
38
40
|
- uses: actions/checkout@v1
|
39
41
|
- uses: actions/setup-ruby@v1
|
40
42
|
with:
|
41
|
-
ruby-version: 2.
|
43
|
+
ruby-version: 2.6.x
|
42
44
|
- uses: workarea-commerce/ci/test@v1
|
43
45
|
with:
|
44
46
|
command: bin/rails app:workarea:test:storefront
|
@@ -49,7 +51,7 @@ jobs:
|
|
49
51
|
- uses: actions/checkout@v1
|
50
52
|
- uses: actions/setup-ruby@v1
|
51
53
|
with:
|
52
|
-
ruby-version: 2.
|
54
|
+
ruby-version: 2.6.x
|
53
55
|
- uses: workarea-commerce/ci/test@v1
|
54
56
|
with:
|
55
57
|
command: bin/rails app:workarea:test:plugins
|
data/.rubocop.yml
CHANGED
@@ -1,197 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
|
4
|
-
# to ignore them, so only the ones explicitly set in this file are enabled.
|
5
|
-
DisabledByDefault: true
|
6
|
-
|
7
|
-
# Prefer &&/|| over and/or.
|
8
|
-
Style/AndOr:
|
9
|
-
Enabled: true
|
10
|
-
Exclude:
|
11
|
-
- 'testing/lib/workarea/performance_test.rb'
|
12
|
-
- 'admin/app/controllers/workarea/admin/help_authorization.rb'
|
13
|
-
- 'admin/app/controllers/workarea/admin/users_controller.rb'
|
14
|
-
- 'core/app/controllers/workarea/authorization.rb'
|
15
|
-
- 'core/app/models/workarea/analytics/time_series.rb'
|
16
|
-
- 'core/app/models/workarea/payment/operation.rb'
|
17
|
-
- 'core/lib/workarea/validators/ip_address_validator.rb'
|
18
|
-
- 'script/rename'
|
19
|
-
- 'storefront/app/controllers/workarea/storefront/checkout/place_order_controller.rb'
|
20
|
-
- 'storefront/app/controllers/workarea/storefront/current_checkout.rb'
|
21
|
-
- 'storefront/app/controllers/workarea/storefront/searches_controller.rb'
|
22
|
-
- 'storefront/app/controllers/workarea/storefront/users/orders_controller.rb'
|
23
|
-
- 'storefront/app/controllers/workarea/storefront/users/passwords_controller.rb'
|
24
|
-
|
25
|
-
# Align `when` with `case`.
|
26
|
-
Layout/CaseIndentation:
|
27
|
-
Enabled: true
|
28
|
-
Exclude:
|
29
|
-
- 'admin/app/helpers/workarea/admin/dashboard_helper.rb'
|
30
|
-
|
31
|
-
# Align comments with method definitions.
|
32
|
-
Layout/CommentIndentation:
|
33
|
-
Enabled: true
|
34
|
-
|
35
|
-
Layout/EmptyLineAfterMagicComment:
|
36
|
-
Enabled: true
|
37
|
-
|
38
|
-
# In a regular class definition, no empty lines around the body.
|
39
|
-
Layout/EmptyLinesAroundClassBody:
|
40
|
-
Enabled: true
|
41
|
-
Exclude:
|
42
|
-
- 'admin/app/controllers/workarea/admin/release_sessions_controller.rb'
|
43
|
-
- 'admin/app/view_models/workarea/admin/release_calendar_view_model.rb'
|
44
|
-
- 'admin/lib/workarea/mailer_previews/admin/comment_mailer_preview.rb'
|
45
|
-
- 'admin/test/integration/workarea/admin/content_blocks_integration_test.rb'
|
46
|
-
- 'admin/test/view_models/workarea/admin/content_view_model_test.rb'
|
47
|
-
- 'core/app/models/workarea/checkout/steps/addresses.rb'
|
48
|
-
- 'core/app/models/workarea/pricing/discount/buy_some_get_some/product_application.rb'
|
49
|
-
- 'core/app/queries/workarea/metadata/catalog_category.rb'
|
50
|
-
- 'core/app/queries/workarea/metadata/content_page.rb'
|
51
|
-
- 'core/app/queries/workarea/search/facet.rb'
|
52
|
-
- 'core/app/queries/workarea/search/range_filter.rb'
|
53
|
-
- 'core/config/initializers/13_rack_attack.rb'
|
54
|
-
- 'core/lib/generators/workarea/override/override_generator.rb'
|
55
|
-
- 'core/lib/workarea/elasticsearch/query_cache.rb'
|
56
|
-
- 'core/lib/workarea/monitoring/elasticsearch_check.rb'
|
57
|
-
- 'core/lib/workarea/monitoring/mongoid_check.rb'
|
58
|
-
- 'core/lib/workarea/monitoring/sidekiq_queue_size_check.rb'
|
59
|
-
- 'core/lib/workarea/validators/email_validator.rb'
|
60
|
-
- 'core/test/lib/workarea/mail_interceptor_test.rb'
|
61
|
-
- 'core/test/models/workarea/commentable_test.rb'
|
62
|
-
- 'core/test/models/workarea/search/settings_test.rb'
|
63
|
-
- 'core/test/models/workarea/shipping/rate_lookup_test.rb'
|
64
|
-
- 'core/test/queries/workarea/find_pipeline_asset_test.rb'
|
65
|
-
- 'core/test/queries/workarea/product_primary_image_url_test.rb'
|
66
|
-
- 'core/test/queries/workarea/search/filter_test.rb'
|
67
|
-
- 'core/test/workers/workarea/bulk_index_admin_test.rb'
|
68
|
-
- 'core/test/workers/workarea/bulk_index_products_test.rb'
|
69
|
-
- 'core/vendor/active_shipping/lib/active_shipping/carriers/australia_post.rb'
|
70
|
-
- 'core/vendor/active_shipping/lib/active_shipping/carriers/canada_post_pws.rb'
|
71
|
-
- 'core/vendor/active_shipping/lib/active_shipping/carriers/usps_returns.rb'
|
72
|
-
- 'core/vendor/active_shipping/lib/active_shipping/delivery_date_estimates_response.rb'
|
73
|
-
- 'core/vendor/active_shipping/lib/active_shipping/rate_response.rb'
|
74
|
-
- 'core/vendor/active_shipping/test/remote/australia_post_test.rb'
|
75
|
-
- 'core/vendor/active_shipping/test/remote/usps_returns_test.rb'
|
76
|
-
- 'core/vendor/active_shipping/test/unit/carriers/australia_post_test.rb'
|
77
|
-
- 'core/vendor/active_shipping/test/unit/carriers/canada_post_pws_test.rb'
|
78
|
-
- 'core/vendor/active_shipping/test/unit/carriers/usps_returns_test.rb'
|
79
|
-
- 'storefront/app/view_models/workarea/storefront/content_blocks/product_list_view_model.rb'
|
80
|
-
- 'storefront/app/view_models/workarea/storefront/product_view_model.rb'
|
81
|
-
- 'storefront/lib/workarea/mailer_previews/storefront/order_mailer_preview.rb'
|
82
|
-
- 'storefront/test/performance/workarea/storefront/categories_performance_test.rb'
|
83
|
-
- 'storefront/test/performance/workarea/storefront/search_performance_test.rb'
|
84
|
-
- 'storefront/test/view_models/workarea/storefront/user_activity_view_model_test.rb'
|
85
|
-
|
86
|
-
# In a regular method definition, no empty lines around the body.
|
87
|
-
Layout/EmptyLinesAroundMethodBody:
|
88
|
-
Enabled: true
|
89
|
-
|
90
|
-
# In a regular module definition, no empty lines around the body.
|
91
|
-
Layout/EmptyLinesAroundModuleBody:
|
92
|
-
Enabled: true
|
93
|
-
Exclude:
|
94
|
-
- 'core/lib/workarea/ext/mongoid/timestamps_timeless.rb'
|
95
|
-
- 'storefront/app/view_models/workarea/storefront/search_customization_content.rb'
|
96
|
-
- 'testing/lib/workarea/testing/warning_suppressor.rb'
|
97
|
-
|
98
|
-
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
|
99
|
-
Style/HashSyntax:
|
100
|
-
Enabled: true
|
101
|
-
|
102
|
-
Layout/SpaceAfterColon:
|
103
|
-
Enabled: true
|
104
|
-
Exclude:
|
105
|
-
- 'testing/lib/workarea/testing/factories/content.rb'
|
106
|
-
- 'testing/lib/workarea/testing/factories/pricing.rb'
|
107
|
-
|
108
|
-
Layout/SpaceAfterComma:
|
109
|
-
Enabled: true
|
110
|
-
Exclude:
|
111
|
-
- 'admin/app/controllers/workarea/admin/shipping_services_controller.rb'
|
112
|
-
- 'admin/test/helpers/workarea/admin/application_helper_test.rb'
|
113
|
-
- 'core/app/models/workarea/payment/credit_card.rb'
|
114
|
-
- 'core/app/models/workarea/pricing/request.rb'
|
115
|
-
- 'core/spec/lib/workarea/swappable_list_spec.rb'
|
116
|
-
- 'core/test/models/workarea/inventory_test.rb'
|
117
|
-
- 'core/test/queries/workarea/search/range_facet_test.rb'
|
118
|
-
- 'storefront/test/view_models/workarea/storefront/package_view_model_test.rb'
|
119
|
-
|
120
|
-
Layout/SpaceAroundEqualsInParameterDefault:
|
121
|
-
Enabled: true
|
122
|
-
Exclude:
|
123
|
-
- 'admin/app/helpers/workarea/admin/content_block_icon_helper.rb'
|
124
|
-
- 'core/app/helpers/workarea/content_assets_helper.rb'
|
125
|
-
- 'core/lib/workarea/elasticsearch/query_cache.rb'
|
126
|
-
- 'testing/lib/workarea/system_test.rb'
|
127
|
-
- 'testing/lib/workarea/testing/locale_routing_fixes.rb'
|
128
|
-
|
129
|
-
|
130
|
-
Layout/SpaceAroundKeyword:
|
131
|
-
Enabled: true
|
132
|
-
|
133
|
-
Layout/SpaceAroundOperators:
|
134
|
-
Enabled: true
|
135
|
-
Exclude:
|
136
|
-
- 'admin/app/controllers/workarea/admin/content_emails_controller.rb'
|
137
|
-
- 'admin/app/controllers/workarea/admin/users_controller.rb'
|
138
|
-
- 'core/app/helpers/workarea/content_assets_helper.rb'
|
139
|
-
- 'core/vendor/active_shipping/lib/active_shipping/carriers/canada_post_pws.rb'
|
140
|
-
- 'core/vendor/active_shipping/lib/active_shipping/carriers/fedex.rb'
|
141
|
-
- 'core/vendor/active_shipping/lib/active_shipping/carriers/stamps.rb'
|
142
|
-
|
143
|
-
Layout/SpaceBeforeFirstArg:
|
144
|
-
Enabled: true
|
145
|
-
|
146
|
-
# Defining a method with parameters needs parentheses.
|
147
|
-
Style/MethodDefParentheses:
|
148
|
-
Enabled: true
|
149
|
-
|
150
|
-
# Use `foo {}` not `foo{}`.
|
151
|
-
Layout/SpaceBeforeBlockBraces:
|
152
|
-
Enabled: true
|
153
|
-
Exclude:
|
154
|
-
- 'admin/app/view_models/workarea/admin/release_calendar_view_model.rb'
|
155
|
-
|
156
|
-
# Use `foo { bar }` not `foo {bar}`.
|
157
|
-
Layout/SpaceInsideBlockBraces:
|
158
|
-
Enabled: true
|
159
|
-
|
160
|
-
# Use `{ a: 1 }` not `{a:1}`.
|
161
|
-
Layout/SpaceInsideHashLiteralBraces:
|
162
|
-
Enabled: true
|
163
|
-
Exclude:
|
164
|
-
- 'admin/test/integration/workarea/admin/pricing_sku_prices_integration_test.rb'
|
165
|
-
- 'admin/test/integration/workarea/admin/shipping_service_integration_test.rb'
|
166
|
-
- 'admin/test/integration/workarea/admin/tax_categories_integration_test.rb'
|
167
|
-
- 'admin/test/view_models/workarea/admin/changeset_view_model_test.rb'
|
168
|
-
- 'core/app/models/workarea/release/changeset.rb'
|
169
|
-
- 'core/app/queries/workarea/search/product_rules.rb'
|
170
|
-
- 'core/app/queries/workarea/search/term_filter.rb'
|
171
|
-
- 'core/lib/workarea/configuration.rb'
|
172
|
-
- 'core/spec/models/workarea/order_spec.rb'
|
173
|
-
- 'core/test/models/workarea/application_document_test.rb'
|
174
|
-
- 'core/test/models/workarea/fulfillment_test.rb'
|
175
|
-
- 'core/test/queries/workarea/search/product_rules_test.rb'
|
176
|
-
- 'core/test/workers/workarea/generate_content_metadata_test.rb'
|
177
|
-
|
178
|
-
Layout/SpaceInsideParens:
|
179
|
-
Enabled: true
|
180
|
-
Exclude:
|
181
|
-
- 'core/app/models/workarea/inventory/collection.rb'
|
182
|
-
- 'core/app/models/workarea/pricing/calculators/item_calculator.rb'
|
183
|
-
- 'core/spec/models/workarea/order/queries_spec.rb'
|
184
|
-
|
185
|
-
# Detect hard tabs, no hard tabs.
|
186
|
-
Layout/Tab:
|
187
|
-
Enabled: true
|
188
|
-
Exclude:
|
189
|
-
- 'core/vendor/active_shipping/lib/active_shipping/carriers/canada_post.rb'
|
190
|
-
|
191
|
-
# No trailing whitespace.
|
192
|
-
Layout/TrailingWhitespace:
|
193
|
-
Enabled: true
|
194
|
-
|
195
|
-
# Use my_method(my_arg) not my_method( my_arg ) or my_method my_arg.
|
196
|
-
Lint/RequireParentheses:
|
197
|
-
Enabled: true
|
1
|
+
inherit_from:
|
2
|
+
- https://raw.githubusercontent.com/workarea-commerce/workarea/master/.rubocop.yml
|
data/.stylelintrc.json
ADDED
data/CHANGELOG.md
CHANGED
@@ -1,74 +1,3 @@
|
|
1
|
-
Workarea Gift Cards 3.4.11 (2020-12-02)
|
2
|
-
--------------------------------------------------------------------------------
|
3
|
-
|
4
|
-
* Allow v3.4 use with this gem
|
5
|
-
|
6
|
-
|
7
|
-
Ben Crouse
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
Workarea Gift Cards 3.4.10 (2020-02-04)
|
12
|
-
--------------------------------------------------------------------------------
|
13
|
-
|
14
|
-
* Fix the Gemfile
|
15
|
-
|
16
|
-
Tom Scott
|
17
|
-
|
18
|
-
* Remove ESLint from Gift Cards build
|
19
|
-
|
20
|
-
Tom Scott
|
21
|
-
|
22
|
-
* Fix rubocop config for 2.4
|
23
|
-
|
24
|
-
Tom Scott
|
25
|
-
|
26
|
-
* Use the same ruby version on static analysis as we use in tests
|
27
|
-
|
28
|
-
Tom Scott
|
29
|
-
|
30
|
-
* Use the same env var everywhere
|
31
|
-
|
32
|
-
Tom Scott
|
33
|
-
|
34
|
-
* Backport Missing `:via` Param
|
35
|
-
|
36
|
-
The `:via` param was not included on the gift card template, causing a
|
37
|
-
test in base to fail and subsequently block other plugin development
|
38
|
-
that depends on this gem. This change is from a later version of
|
39
|
-
Workarea, but was not backported to earlier versions. Additionally, this
|
40
|
-
commit adds the test workflow and ensures the correct version of
|
41
|
-
Workarea is being loaded to ensure accurate testing.
|
42
|
-
|
43
|
-
GIFTCARDS-7
|
44
|
-
Tom Scott
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
Workarea Gift Cards 3.4.9 (2020-01-21)
|
49
|
-
--------------------------------------------------------------------------------
|
50
|
-
|
51
|
-
* Fix Tests for 2020
|
52
|
-
|
53
|
-
Update all tests so that they no longer depend on the year 2020 as an
|
54
|
-
expiration year. Instead, use the method provided by Workarea.
|
55
|
-
|
56
|
-
GIFTCARDS-6
|
57
|
-
Tom Scott
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
Workarea Gift Cards 3.4.7 (2019-09-04)
|
62
|
-
--------------------------------------------------------------------------------
|
63
|
-
|
64
|
-
* Always Use Configured Currency For Default Values (#1)
|
65
|
-
|
66
|
-
When specifying a `default:` for a Mongoid `Money` field, use an Integer
|
67
|
-
type like `0` instead of converting it to a Money type, as this will get
|
68
|
-
evaluated at compile-time rather than at runtime. Doing so preserves
|
69
|
-
the currency configuration specified by the application at runtime.
|
70
|
-
|
71
|
-
|
72
1
|
Workarea Gift Cards 3.4.6 (2019-08-21)
|
73
2
|
--------------------------------------------------------------------------------
|
74
3
|
|
data/Gemfile
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
|
-
git_source(:github) { |repo| "
|
2
|
+
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
|
3
3
|
|
4
4
|
gemspec
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
gem 'workarea-api', '~> 4.3.0'
|
9
|
-
end
|
6
|
+
gem 'workarea-api', github: 'workarea-commerce/workarea-api'
|
7
|
+
gem 'workarea', github: 'workarea-commerce/workarea'
|
data/Rakefile
CHANGED
@@ -38,12 +38,13 @@ desc "Release version #{Workarea::GiftCards::VERSION} of the gem"
|
|
38
38
|
task :release do
|
39
39
|
host = "https://#{ENV['BUNDLE_GEMS__WEBLINC__COM']}@gems.weblinc.com"
|
40
40
|
|
41
|
-
Rake::Task['workarea:changelog'].execute
|
42
|
-
system 'git add CHANGELOG.md'
|
43
|
-
system 'git commit -m "Update CHANGELOG"'
|
41
|
+
#Rake::Task['workarea:changelog'].execute
|
42
|
+
#system 'git add CHANGELOG.md'
|
43
|
+
#system 'git commit -m "Update CHANGELOG"'
|
44
|
+
#system 'git push origin HEAD'
|
44
45
|
|
45
46
|
system "git tag -a v#{Workarea::GiftCards::VERSION} -m 'Tagging #{Workarea::GiftCards::VERSION}'"
|
46
|
-
system 'git push
|
47
|
+
system 'git push --tags'
|
47
48
|
|
48
49
|
system 'gem build workarea-gift_cards.gemspec'
|
49
50
|
system "gem push workarea-gift_cards-#{Workarea::GiftCards::VERSION}.gem"
|