solidus_subscriptions 1.0.1 → 2.0.0

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: cc3b0fcba16d886c8536c325484158200dffc72f80e1e226d1c572f8a15b1b7c
4
- data.tar.gz: 8720f4cd130d3ac77f45b8a8ba8bfa0415dcdfdc1dc2e5350aa2649e6b34b945
3
+ metadata.gz: 1121154a5a07221430e6e96512ba434fb46f50be524cd48bb894c44f88793c52
4
+ data.tar.gz: 9869b12284c983cee09bd75f8e4467aea1789b042c2c7da9cbcab36eb1da20c7
5
5
  SHA512:
6
- metadata.gz: 89de765c10e5490a610d5925b255b6ad002bef4e8b835f7c2e2893a6376535ee9162acf928f87f7de961bef523653ec32df8845efb128235ef15b9aa0272d845
7
- data.tar.gz: 540d9007f27817b4941742a8cf154524f274f2572823e0afe0f5d8a5b3974eb9dcbb0bc6f20296cc690c57df098c8137a5a0bacee6848ca93f1c21ccc15ac382
6
+ metadata.gz: d81b22eb6487b3e0963a93ccf56ffb6b2f0ef79196b28a5b0e2633c411f511d091f176723a187a717cd516094891d204eebb869806687774a583b9b1f96a3582
7
+ data.tar.gz: 97ddff9ba7136ee880ffeb4e97c7bc03c56d4ce1eaee292ab287b2b4ae80d84d6b860328938985c355cc31e81a47c6eddc585388e2ddd3ae560fc1adc2d8705a
data/.circleci/config.yml CHANGED
@@ -8,66 +8,45 @@ orbs:
8
8
  solidusio_extensions: solidusio/extensions@volatile
9
9
 
10
10
  jobs:
11
- run-specs-with-mysql:
12
- executor:
13
- name: solidusio_extensions/mysql
14
- ruby_version: <<parameters.ruby_version>>
15
- steps:
16
- - checkout
17
- - solidusio_extensions/run-tests-solidus-older
18
- - solidusio_extensions/run-tests-solidus-current
19
- - solidusio_extensions/run-tests-solidus-master
20
- - solidusio_extensions/store-test-results
11
+ run-specs:
21
12
  parameters:
22
- ruby_version:
13
+ solidus:
23
14
  type: string
24
- default: '2.7'
25
- run-specs-with-postgres:
26
- executor:
27
- name: solidusio_extensions/postgres
28
- ruby_version: <<parameters.ruby_version>>
29
- steps:
30
- - checkout
31
- - solidusio_extensions/run-tests-solidus-older
32
- - solidusio_extensions/run-tests-solidus-current
33
- - solidusio_extensions/run-tests-solidus-master
34
- - solidusio_extensions/store-test-results
35
- parameters:
36
- ruby_version:
15
+ default: master
16
+ db:
17
+ type: string
18
+ default: "postgres"
19
+ ruby:
37
20
  type: string
38
- default: '3.0'
39
- run-specs-with-sqlite:
21
+ default: "3.2"
40
22
  executor:
41
- name: solidusio_extensions/sqlite
42
- ruby_version: <<parameters.ruby_version>>
23
+ name: solidusio_extensions/<< parameters.db >>
24
+ ruby_version: << parameters.ruby >>
43
25
  steps:
44
26
  - checkout
45
- - solidusio_extensions/run-tests-solidus-older
46
- - solidusio_extensions/run-tests-solidus-current
47
- - solidusio_extensions/run-tests-solidus-master
48
- - solidusio_extensions/store-test-results
49
- parameters:
50
- ruby_version:
51
- type: string
52
- default: '3.1'
27
+ - solidusio_extensions/run-tests-solidus-<< parameters.solidus >>
53
28
  lint-code:
54
- executor: solidusio_extensions/sqlite-memory
29
+ executor:
30
+ name: solidusio_extensions/sqlite-memory
31
+ ruby_version: 2.5
55
32
  steps:
56
33
  - solidusio_extensions/lint-code
57
34
 
58
35
  workflows:
59
36
  "Run specs on supported Solidus versions":
60
37
  jobs:
61
- - run-specs-with-mysql:
62
- ruby_version: '2.7'
63
- name: run-specs-with-mysql-ruby-2.7
64
- - run-specs-with-postgres:
65
- ruby_version: '3.0'
66
- name: run-specs-with-postgres-ruby-3.0
67
- - run-specs-with-sqlite:
68
- ruby_version: '3.1'
69
- name: run-specs-with-sqlite-ruby-3.1
70
- - lint-code
38
+ - run-specs:
39
+ name: &name "run-specs-solidus-<< matrix.solidus >>-ruby-<< matrix.ruby >>-db-<< matrix.db >>"
40
+ matrix:
41
+ parameters: { solidus: ["master"], ruby: ["3.2"], db: ["postgres"] }
42
+ - run-specs:
43
+ name: *name
44
+ matrix:
45
+ parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }
46
+ - run-specs:
47
+ name: *name
48
+ matrix:
49
+ parameters: { solidus: ["older"], ruby: ["3.0"], db: ["sqlite"] }
71
50
 
72
51
  "Weekly run specs against master":
73
52
  triggers:
@@ -78,12 +57,11 @@ workflows:
78
57
  only:
79
58
  - master
80
59
  jobs:
81
- - run-specs-with-mysql:
82
- ruby_version: '2.7'
83
- name: run-specs-with-mysql-ruby-2.7
84
- - run-specs-with-postgres:
85
- ruby_version: '3.0'
86
- name: run-specs-with-postgres-ruby-3.0
87
- - run-specs-with-sqlite:
88
- ruby_version: '3.1'
89
- name: run-specs-with-sqlite-ruby-3.1
60
+ - run-specs:
61
+ name: *name
62
+ matrix:
63
+ parameters: { solidus: ["master"], ruby: ["3.2"], db: ["postgres"] }
64
+ - run-specs:
65
+ name: *name
66
+ matrix:
67
+ parameters: { solidus: ["current"], ruby: ["3.1"], db: ["mysql"] }
data/CHANGELOG.md CHANGED
@@ -1,229 +1,3 @@
1
1
  # Changelog
2
2
 
3
- ## [v1.0.1](https://github.com/solidusio/solidus_subscriptions/tree/v1.0.1) (2023-03-01)
4
-
5
- [Full Changelog](https://github.com/solidusio/solidus_subscriptions/compare/a8a92654ba21b22bd3f8d07c3ae25e3604e7942a...v1.0.1)
6
-
7
- **Breaking changes:**
8
-
9
- - Improve description for promotion rules [\#205](https://github.com/solidusio/solidus_subscriptions/issues/205)
10
- - Improve dispatchers API [\#155](https://github.com/solidusio/solidus_subscriptions/pull/155) ([aldesantis](https://github.com/aldesantis))
11
- - Streamline event emission and tracking [\#154](https://github.com/solidusio/solidus_subscriptions/pull/154) ([aldesantis](https://github.com/aldesantis))
12
- - Remove references to subscriptions only having one line item [\#123](https://github.com/solidusio/solidus_subscriptions/pull/123) ([aldesantis](https://github.com/aldesantis))
13
- - Retrieve payment method from payment source [\#121](https://github.com/solidusio/solidus_subscriptions/pull/121) ([aldesantis](https://github.com/aldesantis))
14
- - Use subscription's `end_date` in `Subscription#can_be_deactivated?` [\#112](https://github.com/solidusio/solidus_subscriptions/pull/112) ([aldesantis](https://github.com/aldesantis))
15
-
16
- **Implemented enhancements:**
17
-
18
- - Free trials [\#231](https://github.com/solidusio/solidus_subscriptions/issues/231)
19
- - Allow managing individual orders [\#219](https://github.com/solidusio/solidus_subscriptions/issues/219)
20
- - Validate payment source ownership [\#208](https://github.com/solidusio/solidus_subscriptions/issues/208)
21
- - Prepare Solidus Subscriptions for Solidus 3.0 [\#194](https://github.com/solidusio/solidus_subscriptions/issues/194)
22
- - Process each subscription in a separate background job [\#190](https://github.com/solidusio/solidus_subscriptions/issues/190)
23
- - Skip ActiveJob retrying for ProcessInstallmentsJob [\#175](https://github.com/solidusio/solidus_subscriptions/issues/175)
24
- - Installment.unfulfilled is a drag on performance [\#171](https://github.com/solidusio/solidus_subscriptions/issues/171)
25
- - Simplify subscription processing logic [\#170](https://github.com/solidusio/solidus_subscriptions/issues/170)
26
- - Add currency to subscriptions [\#138](https://github.com/solidusio/solidus_subscriptions/issues/138)
27
- - Allow marking the master variant as subscribable [\#130](https://github.com/solidusio/solidus_subscriptions/issues/130)
28
- - Show orders generated by a subscription [\#129](https://github.com/solidusio/solidus_subscriptions/issues/129)
29
- - Allow creating a subscription via the API [\#122](https://github.com/solidusio/solidus_subscriptions/issues/122)
30
- - Load factories using the new standard [\#203](https://github.com/solidusio/solidus_subscriptions/pull/203) ([kennyadsl](https://github.com/kennyadsl))
31
- - Add maximum\_reprocessing\_attempts preference [\#160](https://github.com/solidusio/solidus_subscriptions/pull/160) ([aldesantis](https://github.com/aldesantis))
32
- - Enable authorization via guest tokens [\#158](https://github.com/solidusio/solidus_subscriptions/pull/158) ([aldesantis](https://github.com/aldesantis))
33
- - Reformat sample configuration file [\#153](https://github.com/solidusio/solidus_subscriptions/pull/153) ([aldesantis](https://github.com/aldesantis))
34
- - Integrate Churn Buster [\#152](https://github.com/solidusio/solidus_subscriptions/pull/152) ([aldesantis](https://github.com/aldesantis))
35
- - Implement a `LineItem#subscribable` association [\#149](https://github.com/solidusio/solidus_subscriptions/pull/149) ([aldesantis](https://github.com/aldesantis))
36
- - Installation and configuration updates [\#148](https://github.com/solidusio/solidus_subscriptions/pull/148) ([aldesantis](https://github.com/aldesantis))
37
- - Add order association to subscriptions [\#147](https://github.com/solidusio/solidus_subscriptions/pull/147) ([nirebu](https://github.com/nirebu))
38
- - Improve event tracking [\#142](https://github.com/solidusio/solidus_subscriptions/pull/142) ([aldesantis](https://github.com/aldesantis))
39
- - Subscription events [\#141](https://github.com/solidusio/solidus_subscriptions/pull/141) ([aldesantis](https://github.com/aldesantis))
40
- - Use Spree.user\_class instead of Spree::User to allow for custom user classes [\#140](https://github.com/solidusio/solidus_subscriptions/pull/140) ([marcrohloff](https://github.com/marcrohloff))
41
- - Update default permitted attributes [\#136](https://github.com/solidusio/solidus_subscriptions/pull/136) ([aldesantis](https://github.com/aldesantis))
42
- - Allow admins to make master variants subcribable [\#131](https://github.com/solidusio/solidus_subscriptions/pull/131) ([aldesantis](https://github.com/aldesantis))
43
- - Store payment method and source on subscriptions [\#127](https://github.com/solidusio/solidus_subscriptions/pull/127) ([aldesantis](https://github.com/aldesantis))
44
- - Allow setting subscription interval and end date via the API [\#125](https://github.com/solidusio/solidus_subscriptions/pull/125) ([aldesantis](https://github.com/aldesantis))
45
- - Allow setting a billing address on the subscription [\#119](https://github.com/solidusio/solidus_subscriptions/pull/119) ([aldesantis](https://github.com/aldesantis))
46
- - Improve installment visualization and sorting [\#111](https://github.com/solidusio/solidus_subscriptions/pull/111) ([aldesantis](https://github.com/aldesantis))
47
- - Add subscription details to backend [\#109](https://github.com/solidusio/solidus_subscriptions/pull/109) ([aldesantis](https://github.com/aldesantis))
48
- - Add shipping address to backend subscription form [\#108](https://github.com/solidusio/solidus_subscriptions/pull/108) ([aldesantis](https://github.com/aldesantis))
49
- - Allow admins to remove subscription line items [\#107](https://github.com/solidusio/solidus_subscriptions/pull/107) ([aldesantis](https://github.com/aldesantis))
50
- - Allow admins to add subscription items when editing subscription [\#103](https://github.com/solidusio/solidus_subscriptions/pull/103) ([aldesantis](https://github.com/aldesantis))
51
-
52
- **Fixed bugs:**
53
-
54
- - N+1 in admin when loading subscription line items [\#274](https://github.com/solidusio/solidus_subscriptions/issues/274)
55
- - Set default currency when creating subscription from admin panel [\#207](https://github.com/solidusio/solidus_subscriptions/issues/207)
56
- - skip\_count is never incremented [\#146](https://github.com/solidusio/solidus_subscriptions/issues/146)
57
- - FailureDispatcher is not compatible with Solidus v2.11 [\#135](https://github.com/solidusio/solidus_subscriptions/issues/135)
58
- - Handle subscriptions with deleted products [\#133](https://github.com/solidusio/solidus_subscriptions/issues/133)
59
- - Fix double creation of subscription line items [\#132](https://github.com/solidusio/solidus_subscriptions/issues/132)
60
- - \#Interval incorrectly builds interval [\#44](https://github.com/solidusio/solidus_subscriptions/issues/44)
61
- - Bugfix update column when pausing [\#245](https://github.com/solidusio/solidus_subscriptions/pull/245) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
62
- - Fix skip counters to handle skip limits [\#188](https://github.com/solidusio/solidus_subscriptions/pull/188) ([AlessioRocco](https://github.com/AlessioRocco))
63
- - Fix legacy unsubscribable subscriptions not being processed [\#173](https://github.com/solidusio/solidus_subscriptions/pull/173) ([aldesantis](https://github.com/aldesantis))
64
- - Fix automatic cancellation in case of subscription failure [\#168](https://github.com/solidusio/solidus_subscriptions/pull/168) ([aldesantis](https://github.com/aldesantis))
65
- - Fix `ActiveRecord::ReadOnlyRecord` when updating subscriptions [\#166](https://github.com/solidusio/solidus_subscriptions/pull/166) ([aldesantis](https://github.com/aldesantis))
66
- - Fix DefaultCustomer permission set giving guests access to admin [\#161](https://github.com/solidusio/solidus_subscriptions/pull/161) ([aldesantis](https://github.com/aldesantis))
67
- - Fix default permission set breaking accessible\_by [\#159](https://github.com/solidusio/solidus_subscriptions/pull/159) ([aldesantis](https://github.com/aldesantis))
68
- - Fix foreign key type for MySQL [\#151](https://github.com/solidusio/solidus_subscriptions/pull/151) ([aldesantis](https://github.com/aldesantis))
69
- - Fix "Store must exist" when creating a subscription via the backend [\#102](https://github.com/solidusio/solidus_subscriptions/pull/102) ([aldesantis](https://github.com/aldesantis))
70
-
71
- **Deprecated:**
72
-
73
- - Deprecate nested subscription attributes from user [\#193](https://github.com/solidusio/solidus_subscriptions/pull/193) ([luca-landa](https://github.com/luca-landa))
74
- - Update admin UI to match new backend guidelines [\#99](https://github.com/solidusio/solidus_subscriptions/pull/99) ([aldesantis](https://github.com/aldesantis))
75
- - Fix deprecated call to `SolidusSupport.solidus_gem_version` [\#97](https://github.com/solidusio/solidus_subscriptions/pull/97) ([aldesantis](https://github.com/aldesantis))
76
-
77
- **Removed:**
78
-
79
- - Remove nested subscription attributes from User [\#124](https://github.com/solidusio/solidus_subscriptions/issues/124)
80
- - Remove time component from actionable\_date columns [\#174](https://github.com/solidusio/solidus_subscriptions/pull/174) ([aldesantis](https://github.com/aldesantis))
81
- - Remove subscription\_repopulated event [\#157](https://github.com/solidusio/solidus_subscriptions/pull/157) ([aldesantis](https://github.com/aldesantis))
82
- - Remove checks on unsupported Solidus versions [\#101](https://github.com/solidusio/solidus_subscriptions/pull/101) ([aldesantis](https://github.com/aldesantis))
83
- - Remove legacy sidebar and form [\#100](https://github.com/solidusio/solidus_subscriptions/pull/100) ([aldesantis](https://github.com/aldesantis))
84
-
85
- **Closed issues:**
86
-
87
- - The extension should be tested on all supported ruby versions [\#280](https://github.com/solidusio/solidus_subscriptions/issues/280)
88
- - Allow guest orders to manage subscriptions via API [\#279](https://github.com/solidusio/solidus_subscriptions/issues/279)
89
- - Fix broken link to API docs [\#271](https://github.com/solidusio/solidus_subscriptions/issues/271)
90
- - Add endpoint to list all subscriptions for a user [\#272](https://github.com/solidusio/solidus_subscriptions/issues/272)
91
- - Link to API docs in README is broken [\#266](https://github.com/solidusio/solidus_subscriptions/issues/266)
92
- - I can't get rid of sollidus\_subscription [\#265](https://github.com/solidusio/solidus_subscriptions/issues/265)
93
- - Subscription appears on all product pages. [\#264](https://github.com/solidusio/solidus_subscriptions/issues/264)
94
- - Stop decorating `order#finalize!` to create subscriptions [\#260](https://github.com/solidusio/solidus_subscriptions/issues/260)
95
- - Allow overriding `Checkout` with a custom class [\#238](https://github.com/solidusio/solidus_subscriptions/issues/238)
96
- - Method to filter out line\_items that are associated with a subscription [\#227](https://github.com/solidusio/solidus_subscriptions/issues/227)
97
- - Dependabot can't resolve your Ruby dependency files [\#226](https://github.com/solidusio/solidus_subscriptions/issues/226)
98
- - Fix sandbox generation [\#196](https://github.com/solidusio/solidus_subscriptions/issues/196)
99
- - Dependabot can't resolve your Ruby dependency files [\#187](https://github.com/solidusio/solidus_subscriptions/issues/187)
100
- - Dependabot can't resolve your Ruby dependency files [\#186](https://github.com/solidusio/solidus_subscriptions/issues/186)
101
- - Dependabot can't resolve your Ruby dependency files [\#185](https://github.com/solidusio/solidus_subscriptions/issues/185)
102
- - Dependabot can't resolve your Ruby dependency files [\#184](https://github.com/solidusio/solidus_subscriptions/issues/184)
103
- - Avoid reprocessing installments with cancelled subscriptions [\#180](https://github.com/solidusio/solidus_subscriptions/issues/180)
104
- - Minimum cancellation date is always +1 day from what you set it to [\#177](https://github.com/solidusio/solidus_subscriptions/issues/177)
105
- - Unable to edit or disable admin links [\#163](https://github.com/solidusio/solidus_subscriptions/issues/163)
106
- - Dependabot can't resolve your Ruby dependency files [\#144](https://github.com/solidusio/solidus_subscriptions/issues/144)
107
- - Dependabot can't resolve your Ruby dependency files [\#143](https://github.com/solidusio/solidus_subscriptions/issues/143)
108
- - Retrieve payment method from the payment source [\#120](https://github.com/solidusio/solidus_subscriptions/issues/120)
109
- - Cannot update interval or end date via API [\#118](https://github.com/solidusio/solidus_subscriptions/issues/118)
110
- - Add billing address to subscriptions [\#117](https://github.com/solidusio/solidus_subscriptions/issues/117)
111
- - Store payment details on subscription [\#116](https://github.com/solidusio/solidus_subscriptions/issues/116)
112
- - Dependabot couldn't find a Gemfile-local for this project [\#91](https://github.com/solidusio/solidus_subscriptions/issues/91)
113
- - Dependabot can't resolve your Ruby dependency files [\#90](https://github.com/solidusio/solidus_subscriptions/issues/90)
114
- - Dependabot can't resolve your Ruby dependency files [\#88](https://github.com/solidusio/solidus_subscriptions/issues/88)
115
- - Dependabot can't resolve your Ruby dependency files [\#87](https://github.com/solidusio/solidus_subscriptions/issues/87)
116
- - Dependabot can't resolve your Ruby dependency files [\#86](https://github.com/solidusio/solidus_subscriptions/issues/86)
117
- - Dependabot can't resolve your Ruby dependency files [\#85](https://github.com/solidusio/solidus_subscriptions/issues/85)
118
- - Dependabot can't resolve your Ruby dependency files [\#84](https://github.com/solidusio/solidus_subscriptions/issues/84)
119
- - Dependabot can't resolve your Ruby dependency files [\#82](https://github.com/solidusio/solidus_subscriptions/issues/82)
120
- - Unable to seed dummy store [\#22](https://github.com/solidusio/solidus_subscriptions/issues/22)
121
- - Solidus Subscriptions incompatible with solidus 2.3 [\#14](https://github.com/solidusio/solidus_subscriptions/issues/14)
122
- - Promo codes? [\#8](https://github.com/solidusio/solidus_subscriptions/issues/8)
123
- - Default store subscription field views [\#7](https://github.com/solidusio/solidus_subscriptions/issues/7)
124
- - There is no subscribable toggle for master variants [\#6](https://github.com/solidusio/solidus_subscriptions/issues/6)
125
- - What is the plan? [\#1](https://github.com/solidusio/solidus_subscriptions/issues/1)
126
-
127
- **Merged pull requests:**
128
-
129
- - Allow updating subscription information in cart [\#282](https://github.com/solidusio/solidus_subscriptions/pull/282) ([kennyadsl](https://github.com/kennyadsl))
130
- - Run specs on Ruby 2.7, 3.0 and 3.1 [\#281](https://github.com/solidusio/solidus_subscriptions/pull/281) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
131
- - Support the new starter frontend installation [\#276](https://github.com/solidusio/solidus_subscriptions/pull/276) ([kennyadsl](https://github.com/kennyadsl))
132
- - Fix filtering by line item in admin [\#275](https://github.com/solidusio/solidus_subscriptions/pull/275) ([nirebu](https://github.com/nirebu))
133
- - Update README links [\#273](https://github.com/solidusio/solidus_subscriptions/pull/273) ([elia](https://github.com/elia))
134
- - Restore running specs for solidus master [\#262](https://github.com/solidusio/solidus_subscriptions/pull/262) ([elia](https://github.com/elia))
135
- - Create order finalized subscriber/job for subscription creation [\#261](https://github.com/solidusio/solidus_subscriptions/pull/261) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
136
- - Update to use forked solidus\_frontend when needed [\#259](https://github.com/solidusio/solidus_subscriptions/pull/259) ([waiting-for-dev](https://github.com/waiting-for-dev))
137
- - Make the subscription generator a configurable class [\#258](https://github.com/solidusio/solidus_subscriptions/pull/258) ([elia](https://github.com/elia))
138
- - Fix CI for broken solidus master [\#257](https://github.com/solidusio/solidus_subscriptions/pull/257) ([elia](https://github.com/elia))
139
- - Added a way for admins to filter subscriptions by line item [\#256](https://github.com/solidusio/solidus_subscriptions/pull/256) ([styrken](https://github.com/styrken))
140
- - Compare GemVersions to GemVersions instead of string [\#255](https://github.com/solidusio/solidus_subscriptions/pull/255) ([styrken](https://github.com/styrken))
141
- - Support Rails 7 and Solidus 3.2 [\#252](https://github.com/solidusio/solidus_subscriptions/pull/252) ([waiting-for-dev](https://github.com/waiting-for-dev))
142
- - Link to the user in the subscription details sidebar [\#251](https://github.com/solidusio/solidus_subscriptions/pull/251) ([nirebu](https://github.com/nirebu))
143
- - support ruby 3 [\#246](https://github.com/solidusio/solidus_subscriptions/pull/246) ([ccarruitero](https://github.com/ccarruitero))
144
- - Add ability to pause/resume subscriptions [\#244](https://github.com/solidusio/solidus_subscriptions/pull/244) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
145
- - Log installments errors by default [\#235](https://github.com/solidusio/solidus_subscriptions/pull/235) ([kennyadsl](https://github.com/kennyadsl))
146
- - Introduce Installment OrderCreator configuration [\#229](https://github.com/solidusio/solidus_subscriptions/pull/229) ([cesartalves](https://github.com/cesartalves))
147
- - Upgrade to GitHub-native Dependabot [\#228](https://github.com/solidusio/solidus_subscriptions/pull/228) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
148
- - Update solidus\_core requirement from \>= 2.0.0, \< 3 to \>= 2.0.0, \< 4 [\#225](https://github.com/solidusio/solidus_subscriptions/pull/225) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
149
- - Fix Api Subscription Permitted LineItem Attributes [\#223](https://github.com/solidusio/solidus_subscriptions/pull/223) ([cesartalves](https://github.com/cesartalves))
150
- - Fix Spree::OrdersController decoration [\#221](https://github.com/solidusio/solidus_subscriptions/pull/221) ([cesartalves](https://github.com/cesartalves))
151
- - Reload order during finalize action [\#220](https://github.com/solidusio/solidus_subscriptions/pull/220) ([seand7565](https://github.com/seand7565))
152
- - Update specs to conform with rubocop [\#217](https://github.com/solidusio/solidus_subscriptions/pull/217) ([seand7565](https://github.com/seand7565))
153
- - Update promotion rule names on db [\#216](https://github.com/solidusio/solidus_subscriptions/pull/216) ([luca-landa](https://github.com/luca-landa))
154
- - Improve promotion rules names [\#215](https://github.com/solidusio/solidus_subscriptions/pull/215) ([luca-landa](https://github.com/luca-landa))
155
- - Validate payment\_source ownership on the subscription [\#214](https://github.com/solidusio/solidus_subscriptions/pull/214) ([ChristianRimondi](https://github.com/ChristianRimondi))
156
- - Add missing permissions sets for Solidus v2.11 [\#213](https://github.com/solidusio/solidus_subscriptions/pull/213) ([elia](https://github.com/elia))
157
- - Require a version of solidus\_support that autoloads subscribers [\#212](https://github.com/solidusio/solidus_subscriptions/pull/212) ([elia](https://github.com/elia))
158
- - Remove variant from subscriptions on soft deletion [\#211](https://github.com/solidusio/solidus_subscriptions/pull/211) ([luca-landa](https://github.com/luca-landa))
159
- - Set default config currency to subscription [\#210](https://github.com/solidusio/solidus_subscriptions/pull/210) ([luca-landa](https://github.com/luca-landa))
160
- - Skip ActiveJob retrying for ProcessInstallmentJob [\#206](https://github.com/solidusio/solidus_subscriptions/pull/206) ([ikraamg](https://github.com/ikraamg))
161
- - Cleanup the duplicated fields on subscription creation [\#202](https://github.com/solidusio/solidus_subscriptions/pull/202) ([blocknotes](https://github.com/blocknotes))
162
- - Move subscription processing to its own background job [\#201](https://github.com/solidusio/solidus_subscriptions/pull/201) ([nirebu](https://github.com/nirebu))
163
- - Use `name` in customer serializer [\#200](https://github.com/solidusio/solidus_subscriptions/pull/200) ([nvandoorn](https://github.com/nvandoorn))
164
- - Setup the subcription create endpoint [\#199](https://github.com/solidusio/solidus_subscriptions/pull/199) ([blocknotes](https://github.com/blocknotes))
165
- - Add currency to subscriptions [\#198](https://github.com/solidusio/solidus_subscriptions/pull/198) ([luca-landa](https://github.com/luca-landa))
166
- - Fix sandbox creation error [\#197](https://github.com/solidusio/solidus_subscriptions/pull/197) ([blocknotes](https://github.com/blocknotes))
167
- - Fix duplicated line items creation [\#195](https://github.com/solidusio/solidus_subscriptions/pull/195) ([igorbp](https://github.com/igorbp))
168
- - Admin: expose the subscription orders [\#192](https://github.com/solidusio/solidus_subscriptions/pull/192) ([blocknotes](https://github.com/blocknotes))
169
- - Improve "unfulfilled" scope by adding subquery [\#191](https://github.com/solidusio/solidus_subscriptions/pull/191) ([AlessioRocco](https://github.com/AlessioRocco))
170
- - Remove "canonical-rails" from the Gemfile [\#189](https://github.com/solidusio/solidus_subscriptions/pull/189) ([AlessioRocco](https://github.com/AlessioRocco))
171
- - Update permissions check on user subscription tab [\#183](https://github.com/solidusio/solidus_subscriptions/pull/183) ([seand7565](https://github.com/seand7565))
172
- - Add Installment Details association to Order [\#182](https://github.com/solidusio/solidus_subscriptions/pull/182) ([seand7565](https://github.com/seand7565))
173
- - Avoid processing installments with cancelled subscriptions [\#181](https://github.com/solidusio/solidus_subscriptions/pull/181) ([seand7565](https://github.com/seand7565))
174
- - Update cancel method on subscription to respect minimum date [\#178](https://github.com/solidusio/solidus_subscriptions/pull/178) ([seand7565](https://github.com/seand7565))
175
- - Fix typo in subscription admin notifications [\#176](https://github.com/solidusio/solidus_subscriptions/pull/176) ([igorbp](https://github.com/igorbp))
176
- - Processor and Checkout refactoring [\#172](https://github.com/solidusio/solidus_subscriptions/pull/172) ([aldesantis](https://github.com/aldesantis))
177
- - Move maximum reprocessing retries to a time based criterion [\#167](https://github.com/solidusio/solidus_subscriptions/pull/167) ([nirebu](https://github.com/nirebu))
178
- - Add config to ignore past unfulfilled installments [\#165](https://github.com/solidusio/solidus_subscriptions/pull/165) ([nirebu](https://github.com/nirebu))
179
- - Add Subscriptions tab to User page in Admin [\#162](https://github.com/solidusio/solidus_subscriptions/pull/162) ([igorbp](https://github.com/igorbp))
180
- - Track additional events for subscription updates [\#156](https://github.com/solidusio/solidus_subscriptions/pull/156) ([aldesantis](https://github.com/aldesantis))
181
- - Update shoulda-matchers requirement from ~\> 3.1 to ~\> 4.4 [\#145](https://github.com/solidusio/solidus_subscriptions/pull/145) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
182
- - Use parent strategy when building associations in factories [\#134](https://github.com/solidusio/solidus_subscriptions/pull/134) ([aldesantis](https://github.com/aldesantis))
183
- - Move service objects to `app/services` [\#110](https://github.com/solidusio/solidus_subscriptions/pull/110) ([aldesantis](https://github.com/aldesantis))
184
- - Convert API documentation into OpenAPI [\#106](https://github.com/solidusio/solidus_subscriptions/pull/106) ([aldesantis](https://github.com/aldesantis))
185
- - Add github\_changelog\_generator configuration [\#105](https://github.com/solidusio/solidus_subscriptions/pull/105) ([aldesantis](https://github.com/aldesantis))
186
- - Reorganize and clean up readme [\#104](https://github.com/solidusio/solidus_subscriptions/pull/104) ([aldesantis](https://github.com/aldesantis))
187
- - Fix unsupported `around(:all)` RSpec configuration [\#98](https://github.com/solidusio/solidus_subscriptions/pull/98) ([aldesantis](https://github.com/aldesantis))
188
- - Update to the latest solidus\_dev\_support [\#96](https://github.com/solidusio/solidus_subscriptions/pull/96) ([aldesantis](https://github.com/aldesantis))
189
- - Relax solidus\_support dependency [\#95](https://github.com/solidusio/solidus_subscriptions/pull/95) ([kennyadsl](https://github.com/kennyadsl))
190
- - Fix Dependabot looking for Gemfile-local [\#92](https://github.com/solidusio/solidus_subscriptions/pull/92) ([aldesantis](https://github.com/aldesantis))
191
- - Update solidus\_dev\_support [\#89](https://github.com/solidusio/solidus_subscriptions/pull/89) ([blocknotes](https://github.com/blocknotes))
192
- - Adopt solidus\_extension\_dev\_tools [\#81](https://github.com/solidusio/solidus_subscriptions/pull/81) ([aldesantis](https://github.com/aldesantis))
193
- - Fix CI on Rails 6 [\#71](https://github.com/solidusio/solidus_subscriptions/pull/71) ([aldesantis](https://github.com/aldesantis))
194
- - Fixes admin sorting on fields without a natural order [\#70](https://github.com/solidusio/solidus_subscriptions/pull/70) ([mdesantis](https://github.com/mdesantis))
195
- - Perform maintenance tasks [\#69](https://github.com/solidusio/solidus_subscriptions/pull/69) ([mdesantis](https://github.com/mdesantis))
196
- - Run specs with CircleCI [\#68](https://github.com/solidusio/solidus_subscriptions/pull/68) ([kennyadsl](https://github.com/kennyadsl))
197
- - Fix broken factories associations [\#67](https://github.com/solidusio/solidus_subscriptions/pull/67) ([aitbw](https://github.com/aitbw))
198
- - Remove Solidus v2.3 from Travis config \(EOL\) [\#66](https://github.com/solidusio/solidus_subscriptions/pull/66) ([aitbw](https://github.com/aitbw))
199
- - Add Solidus v2.8 to Travis config [\#65](https://github.com/solidusio/solidus_subscriptions/pull/65) ([aitbw](https://github.com/aitbw))
200
- - Do not run rubocop on Travis [\#64](https://github.com/solidusio/solidus_subscriptions/pull/64) ([aitbw](https://github.com/aitbw))
201
- - Update rubocop to fix vulnerability CVE-2017-8418 [\#63](https://github.com/solidusio/solidus_subscriptions/pull/63) ([aitbw](https://github.com/aitbw))
202
- - Fix deprecations warnings and failing specs [\#61](https://github.com/solidusio/solidus_subscriptions/pull/61) ([aitbw](https://github.com/aitbw))
203
- - Change api url in documentation [\#58](https://github.com/solidusio/solidus_subscriptions/pull/58) ([jacobeubanks](https://github.com/jacobeubanks))
204
- - Fix factory girl dependency for Solidus \< 2.5 [\#57](https://github.com/solidusio/solidus_subscriptions/pull/57) ([jacobherrington](https://github.com/jacobherrington))
205
- - Add Solidus 2.7 to .travis.yml [\#56](https://github.com/solidusio/solidus_subscriptions/pull/56) ([jacobherrington](https://github.com/jacobherrington))
206
- - Change static factory attrs to dynamic [\#55](https://github.com/solidusio/solidus_subscriptions/pull/55) ([fastjames](https://github.com/fastjames))
207
- - Update factory\_girl to factory\_bot [\#50](https://github.com/solidusio/solidus_subscriptions/pull/50) ([fastjames](https://github.com/fastjames))
208
- - Update solidus version for travis [\#46](https://github.com/solidusio/solidus_subscriptions/pull/46) ([fastjames](https://github.com/fastjames))
209
- - Fix typos in comments [\#39](https://github.com/solidusio/solidus_subscriptions/pull/39) ([swcraig](https://github.com/swcraig))
210
- - Add ffaker dependency to gemspec [\#35](https://github.com/solidusio/solidus_subscriptions/pull/35) ([swcraig](https://github.com/swcraig))
211
- - Small UI change to canceling in the admin [\#28](https://github.com/solidusio/solidus_subscriptions/pull/28) ([seantaylor](https://github.com/seantaylor))
212
- - Authorize subscriptions admin sidebar link [\#23](https://github.com/solidusio/solidus_subscriptions/pull/23) ([qr8r](https://github.com/qr8r))
213
- - Subs track their own interval now [\#21](https://github.com/solidusio/solidus_subscriptions/pull/21) ([qr8r](https://github.com/qr8r))
214
- - Fix/the broken admin [\#20](https://github.com/solidusio/solidus_subscriptions/pull/20) ([qr8r](https://github.com/qr8r))
215
- - Allow destroying nested line items [\#18](https://github.com/solidusio/solidus_subscriptions/pull/18) ([isaacfreeman](https://github.com/isaacfreeman))
216
- - Update Readme to correct repo [\#17](https://github.com/solidusio/solidus_subscriptions/pull/17) ([asecondwill](https://github.com/asecondwill))
217
- - Support Rails 5.1 [\#16](https://github.com/solidusio/solidus_subscriptions/pull/16) ([jhawthorn](https://github.com/jhawthorn))
218
- - Allows for subscription checkout to accommodate a more flexible checko… [\#15](https://github.com/solidusio/solidus_subscriptions/pull/15) ([joeljackson](https://github.com/joeljackson))
219
- - Only load permitted attributes once [\#11](https://github.com/solidusio/solidus_subscriptions/pull/11) ([qr8r](https://github.com/qr8r))
220
- - Fix duplicated docs [\#10](https://github.com/solidusio/solidus_subscriptions/pull/10) ([qr8r](https://github.com/qr8r))
221
- - Add Subcription inputs to product page [\#9](https://github.com/solidusio/solidus_subscriptions/pull/9) ([qr8r](https://github.com/qr8r))
222
- - Fixes for Solidus 2.2 [\#5](https://github.com/solidusio/solidus_subscriptions/pull/5) ([jhawthorn](https://github.com/jhawthorn))
223
- - Allow Failed installments to not be reprocessed [\#4](https://github.com/solidusio/solidus_subscriptions/pull/4) ([qr8r](https://github.com/qr8r))
224
- - Lock travis bundler version [\#3](https://github.com/solidusio/solidus_subscriptions/pull/3) ([qr8r](https://github.com/qr8r))
225
- - Group subscriptions by subscription configurations [\#2](https://github.com/solidusio/solidus_subscriptions/pull/2) ([qr8r](https://github.com/qr8r))
226
-
227
-
228
-
229
- \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
3
+ See https://github.com/solidusio/solidus_subscriptions/releases or [OLD_CHANGELOG.md](OLD_CHANGELOG.md) for older versions.
data/OLD_CHANGELOG.md ADDED
@@ -0,0 +1,245 @@
1
+ # Changelog
2
+
3
+ ## [v1.0.1](https://github.com/solidusio/solidus_subscriptions/tree/v1.0.1) (2023-03-01)
4
+
5
+ [Full Changelog](https://github.com/solidusio/solidus_subscriptions/compare/v1.0.0...v1.0.1)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Free trials [\#231](https://github.com/solidusio/solidus_subscriptions/issues/231)
10
+ - Allow managing individual orders [\#219](https://github.com/solidusio/solidus_subscriptions/issues/219)
11
+
12
+ **Fixed bugs:**
13
+
14
+ - N+1 in admin when loading subscription line items [\#274](https://github.com/solidusio/solidus_subscriptions/issues/274)
15
+ - Bugfix update column when pausing [\#245](https://github.com/solidusio/solidus_subscriptions/pull/245) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
16
+
17
+ **Closed issues:**
18
+
19
+ - The extension should be tested on all supported ruby versions [\#280](https://github.com/solidusio/solidus_subscriptions/issues/280)
20
+ - Allow guest orders to manage subscriptions via API [\#279](https://github.com/solidusio/solidus_subscriptions/issues/279)
21
+ - Fix broken link to API docs [\#271](https://github.com/solidusio/solidus_subscriptions/issues/271)
22
+ - Add endpoint to list all subscriptions for a user [\#272](https://github.com/solidusio/solidus_subscriptions/issues/272)
23
+ - Link to API docs in README is broken [\#266](https://github.com/solidusio/solidus_subscriptions/issues/266)
24
+ - I can't get rid of sollidus\_subscription [\#265](https://github.com/solidusio/solidus_subscriptions/issues/265)
25
+ - Subscription appears on all product pages. [\#264](https://github.com/solidusio/solidus_subscriptions/issues/264)
26
+ - Stop decorating `order#finalize!` to create subscriptions [\#260](https://github.com/solidusio/solidus_subscriptions/issues/260)
27
+ - Allow overriding `Checkout` with a custom class [\#238](https://github.com/solidusio/solidus_subscriptions/issues/238)
28
+ - Method to filter out line\_items that are associated with a subscription [\#227](https://github.com/solidusio/solidus_subscriptions/issues/227)
29
+
30
+ **Merged pull requests:**
31
+
32
+ - Allow updating subscription information in cart [\#282](https://github.com/solidusio/solidus_subscriptions/pull/282) ([kennyadsl](https://github.com/kennyadsl))
33
+ - Run specs on Ruby 2.7, 3.0 and 3.1 [\#281](https://github.com/solidusio/solidus_subscriptions/pull/281) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
34
+ - Support the new starter frontend installation [\#276](https://github.com/solidusio/solidus_subscriptions/pull/276) ([kennyadsl](https://github.com/kennyadsl))
35
+ - Fix filtering by line item in admin [\#275](https://github.com/solidusio/solidus_subscriptions/pull/275) ([nirebu](https://github.com/nirebu))
36
+ - Update README links [\#273](https://github.com/solidusio/solidus_subscriptions/pull/273) ([elia](https://github.com/elia))
37
+ - Restore running specs for solidus master [\#262](https://github.com/solidusio/solidus_subscriptions/pull/262) ([elia](https://github.com/elia))
38
+ - Create order finalized subscriber/job for subscription creation [\#261](https://github.com/solidusio/solidus_subscriptions/pull/261) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
39
+ - Update to use forked solidus\_frontend when needed [\#259](https://github.com/solidusio/solidus_subscriptions/pull/259) ([waiting-for-dev](https://github.com/waiting-for-dev))
40
+ - Make the subscription generator a configurable class [\#258](https://github.com/solidusio/solidus_subscriptions/pull/258) ([elia](https://github.com/elia))
41
+ - Fix CI for broken solidus master [\#257](https://github.com/solidusio/solidus_subscriptions/pull/257) ([elia](https://github.com/elia))
42
+ - Added a way for admins to filter subscriptions by line item [\#256](https://github.com/solidusio/solidus_subscriptions/pull/256) ([styrken](https://github.com/styrken))
43
+ - Compare GemVersions to GemVersions instead of string [\#255](https://github.com/solidusio/solidus_subscriptions/pull/255) ([styrken](https://github.com/styrken))
44
+ - Support Rails 7 and Solidus 3.2 [\#252](https://github.com/solidusio/solidus_subscriptions/pull/252) ([waiting-for-dev](https://github.com/waiting-for-dev))
45
+ - Link to the user in the subscription details sidebar [\#251](https://github.com/solidusio/solidus_subscriptions/pull/251) ([nirebu](https://github.com/nirebu))
46
+ - support ruby 3 [\#246](https://github.com/solidusio/solidus_subscriptions/pull/246) ([ccarruitero](https://github.com/ccarruitero))
47
+ - Add ability to pause/resume subscriptions [\#244](https://github.com/solidusio/solidus_subscriptions/pull/244) ([FrancescoAiello01](https://github.com/FrancescoAiello01))
48
+ - Log installments errors by default [\#235](https://github.com/solidusio/solidus_subscriptions/pull/235) ([kennyadsl](https://github.com/kennyadsl))
49
+ - Upgrade to GitHub-native Dependabot [\#228](https://github.com/solidusio/solidus_subscriptions/pull/228) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
50
+
51
+ ## [v1.0.0](https://github.com/solidusio/solidus_subscriptions/tree/v1.0.0) (2021-05-16)
52
+
53
+ [Full Changelog](https://github.com/solidusio/solidus_subscriptions/compare/a8a92654ba21b22bd3f8d07c3ae25e3604e7942a...v1.0.0)
54
+
55
+ **Breaking changes:**
56
+
57
+ - Improve description for promotion rules [\#205](https://github.com/solidusio/solidus_subscriptions/issues/205)
58
+ - Improve dispatchers API [\#155](https://github.com/solidusio/solidus_subscriptions/pull/155) ([aldesantis](https://github.com/aldesantis))
59
+ - Streamline event emission and tracking [\#154](https://github.com/solidusio/solidus_subscriptions/pull/154) ([aldesantis](https://github.com/aldesantis))
60
+ - Remove references to subscriptions only having one line item [\#123](https://github.com/solidusio/solidus_subscriptions/pull/123) ([aldesantis](https://github.com/aldesantis))
61
+ - Retrieve payment method from payment source [\#121](https://github.com/solidusio/solidus_subscriptions/pull/121) ([aldesantis](https://github.com/aldesantis))
62
+ - Use subscription's `end_date` in `Subscription#can_be_deactivated?` [\#112](https://github.com/solidusio/solidus_subscriptions/pull/112) ([aldesantis](https://github.com/aldesantis))
63
+
64
+ **Implemented enhancements:**
65
+
66
+ - Validate payment source ownership [\#208](https://github.com/solidusio/solidus_subscriptions/issues/208)
67
+ - Prepare Solidus Subscriptions for Solidus 3.0 [\#194](https://github.com/solidusio/solidus_subscriptions/issues/194)
68
+ - Process each subscription in a separate background job [\#190](https://github.com/solidusio/solidus_subscriptions/issues/190)
69
+ - Skip ActiveJob retrying for ProcessInstallmentsJob [\#175](https://github.com/solidusio/solidus_subscriptions/issues/175)
70
+ - Installment.unfulfilled is a drag on performance [\#171](https://github.com/solidusio/solidus_subscriptions/issues/171)
71
+ - Simplify subscription processing logic [\#170](https://github.com/solidusio/solidus_subscriptions/issues/170)
72
+ - Add currency to subscriptions [\#138](https://github.com/solidusio/solidus_subscriptions/issues/138)
73
+ - Allow marking the master variant as subscribable [\#130](https://github.com/solidusio/solidus_subscriptions/issues/130)
74
+ - Show orders generated by a subscription [\#129](https://github.com/solidusio/solidus_subscriptions/issues/129)
75
+ - Allow creating a subscription via the API [\#122](https://github.com/solidusio/solidus_subscriptions/issues/122)
76
+ - Load factories using the new standard [\#203](https://github.com/solidusio/solidus_subscriptions/pull/203) ([kennyadsl](https://github.com/kennyadsl))
77
+ - Add maximum\_reprocessing\_attempts preference [\#160](https://github.com/solidusio/solidus_subscriptions/pull/160) ([aldesantis](https://github.com/aldesantis))
78
+ - Enable authorization via guest tokens [\#158](https://github.com/solidusio/solidus_subscriptions/pull/158) ([aldesantis](https://github.com/aldesantis))
79
+ - Reformat sample configuration file [\#153](https://github.com/solidusio/solidus_subscriptions/pull/153) ([aldesantis](https://github.com/aldesantis))
80
+ - Integrate Churn Buster [\#152](https://github.com/solidusio/solidus_subscriptions/pull/152) ([aldesantis](https://github.com/aldesantis))
81
+ - Implement a `LineItem#subscribable` association [\#149](https://github.com/solidusio/solidus_subscriptions/pull/149) ([aldesantis](https://github.com/aldesantis))
82
+ - Installation and configuration updates [\#148](https://github.com/solidusio/solidus_subscriptions/pull/148) ([aldesantis](https://github.com/aldesantis))
83
+ - Add order association to subscriptions [\#147](https://github.com/solidusio/solidus_subscriptions/pull/147) ([nirebu](https://github.com/nirebu))
84
+ - Improve event tracking [\#142](https://github.com/solidusio/solidus_subscriptions/pull/142) ([aldesantis](https://github.com/aldesantis))
85
+ - Subscription events [\#141](https://github.com/solidusio/solidus_subscriptions/pull/141) ([aldesantis](https://github.com/aldesantis))
86
+ - Use Spree.user\_class instead of Spree::User to allow for custom user classes [\#140](https://github.com/solidusio/solidus_subscriptions/pull/140) ([marcrohloff](https://github.com/marcrohloff))
87
+ - Update default permitted attributes [\#136](https://github.com/solidusio/solidus_subscriptions/pull/136) ([aldesantis](https://github.com/aldesantis))
88
+ - Allow admins to make master variants subcribable [\#131](https://github.com/solidusio/solidus_subscriptions/pull/131) ([aldesantis](https://github.com/aldesantis))
89
+ - Store payment method and source on subscriptions [\#127](https://github.com/solidusio/solidus_subscriptions/pull/127) ([aldesantis](https://github.com/aldesantis))
90
+ - Allow setting subscription interval and end date via the API [\#125](https://github.com/solidusio/solidus_subscriptions/pull/125) ([aldesantis](https://github.com/aldesantis))
91
+ - Allow setting a billing address on the subscription [\#119](https://github.com/solidusio/solidus_subscriptions/pull/119) ([aldesantis](https://github.com/aldesantis))
92
+ - Improve installment visualization and sorting [\#111](https://github.com/solidusio/solidus_subscriptions/pull/111) ([aldesantis](https://github.com/aldesantis))
93
+ - Add subscription details to backend [\#109](https://github.com/solidusio/solidus_subscriptions/pull/109) ([aldesantis](https://github.com/aldesantis))
94
+ - Add shipping address to backend subscription form [\#108](https://github.com/solidusio/solidus_subscriptions/pull/108) ([aldesantis](https://github.com/aldesantis))
95
+ - Allow admins to remove subscription line items [\#107](https://github.com/solidusio/solidus_subscriptions/pull/107) ([aldesantis](https://github.com/aldesantis))
96
+ - Allow admins to add subscription items when editing subscription [\#103](https://github.com/solidusio/solidus_subscriptions/pull/103) ([aldesantis](https://github.com/aldesantis))
97
+
98
+ **Fixed bugs:**
99
+
100
+ - Set default currency when creating subscription from admin panel [\#207](https://github.com/solidusio/solidus_subscriptions/issues/207)
101
+ - skip\_count is never incremented [\#146](https://github.com/solidusio/solidus_subscriptions/issues/146)
102
+ - FailureDispatcher is not compatible with Solidus v2.11 [\#135](https://github.com/solidusio/solidus_subscriptions/issues/135)
103
+ - Handle subscriptions with deleted products [\#133](https://github.com/solidusio/solidus_subscriptions/issues/133)
104
+ - Fix double creation of subscription line items [\#132](https://github.com/solidusio/solidus_subscriptions/issues/132)
105
+ - \#Interval incorrectly builds interval [\#44](https://github.com/solidusio/solidus_subscriptions/issues/44)
106
+ - Fix skip counters to handle skip limits [\#188](https://github.com/solidusio/solidus_subscriptions/pull/188) ([AlessioRocco](https://github.com/AlessioRocco))
107
+ - Fix legacy unsubscribable subscriptions not being processed [\#173](https://github.com/solidusio/solidus_subscriptions/pull/173) ([aldesantis](https://github.com/aldesantis))
108
+ - Fix automatic cancellation in case of subscription failure [\#168](https://github.com/solidusio/solidus_subscriptions/pull/168) ([aldesantis](https://github.com/aldesantis))
109
+ - Fix `ActiveRecord::ReadOnlyRecord` when updating subscriptions [\#166](https://github.com/solidusio/solidus_subscriptions/pull/166) ([aldesantis](https://github.com/aldesantis))
110
+ - Fix DefaultCustomer permission set giving guests access to admin [\#161](https://github.com/solidusio/solidus_subscriptions/pull/161) ([aldesantis](https://github.com/aldesantis))
111
+ - Fix default permission set breaking accessible\_by [\#159](https://github.com/solidusio/solidus_subscriptions/pull/159) ([aldesantis](https://github.com/aldesantis))
112
+ - Fix foreign key type for MySQL [\#151](https://github.com/solidusio/solidus_subscriptions/pull/151) ([aldesantis](https://github.com/aldesantis))
113
+ - Fix "Store must exist" when creating a subscription via the backend [\#102](https://github.com/solidusio/solidus_subscriptions/pull/102) ([aldesantis](https://github.com/aldesantis))
114
+
115
+ **Deprecated:**
116
+
117
+ - Deprecate nested subscription attributes from user [\#193](https://github.com/solidusio/solidus_subscriptions/pull/193) ([luca-landa](https://github.com/luca-landa))
118
+ - Update admin UI to match new backend guidelines [\#99](https://github.com/solidusio/solidus_subscriptions/pull/99) ([aldesantis](https://github.com/aldesantis))
119
+ - Fix deprecated call to `SolidusSupport.solidus_gem_version` [\#97](https://github.com/solidusio/solidus_subscriptions/pull/97) ([aldesantis](https://github.com/aldesantis))
120
+
121
+ **Removed:**
122
+
123
+ - Remove nested subscription attributes from User [\#124](https://github.com/solidusio/solidus_subscriptions/issues/124)
124
+ - Remove time component from actionable\_date columns [\#174](https://github.com/solidusio/solidus_subscriptions/pull/174) ([aldesantis](https://github.com/aldesantis))
125
+ - Remove subscription\_repopulated event [\#157](https://github.com/solidusio/solidus_subscriptions/pull/157) ([aldesantis](https://github.com/aldesantis))
126
+ - Remove checks on unsupported Solidus versions [\#101](https://github.com/solidusio/solidus_subscriptions/pull/101) ([aldesantis](https://github.com/aldesantis))
127
+ - Remove legacy sidebar and form [\#100](https://github.com/solidusio/solidus_subscriptions/pull/100) ([aldesantis](https://github.com/aldesantis))
128
+
129
+ **Closed issues:**
130
+
131
+ - Dependabot can't resolve your Ruby dependency files [\#226](https://github.com/solidusio/solidus_subscriptions/issues/226)
132
+ - Fix sandbox generation [\#196](https://github.com/solidusio/solidus_subscriptions/issues/196)
133
+ - Dependabot can't resolve your Ruby dependency files [\#187](https://github.com/solidusio/solidus_subscriptions/issues/187)
134
+ - Dependabot can't resolve your Ruby dependency files [\#186](https://github.com/solidusio/solidus_subscriptions/issues/186)
135
+ - Dependabot can't resolve your Ruby dependency files [\#185](https://github.com/solidusio/solidus_subscriptions/issues/185)
136
+ - Dependabot can't resolve your Ruby dependency files [\#184](https://github.com/solidusio/solidus_subscriptions/issues/184)
137
+ - Avoid reprocessing installments with cancelled subscriptions [\#180](https://github.com/solidusio/solidus_subscriptions/issues/180)
138
+ - Minimum cancellation date is always +1 day from what you set it to [\#177](https://github.com/solidusio/solidus_subscriptions/issues/177)
139
+ - Unable to edit or disable admin links [\#163](https://github.com/solidusio/solidus_subscriptions/issues/163)
140
+ - Dependabot can't resolve your Ruby dependency files [\#144](https://github.com/solidusio/solidus_subscriptions/issues/144)
141
+ - Dependabot can't resolve your Ruby dependency files [\#143](https://github.com/solidusio/solidus_subscriptions/issues/143)
142
+ - Retrieve payment method from the payment source [\#120](https://github.com/solidusio/solidus_subscriptions/issues/120)
143
+ - Cannot update interval or end date via API [\#118](https://github.com/solidusio/solidus_subscriptions/issues/118)
144
+ - Add billing address to subscriptions [\#117](https://github.com/solidusio/solidus_subscriptions/issues/117)
145
+ - Store payment details on subscription [\#116](https://github.com/solidusio/solidus_subscriptions/issues/116)
146
+ - Dependabot couldn't find a Gemfile-local for this project [\#91](https://github.com/solidusio/solidus_subscriptions/issues/91)
147
+ - Dependabot can't resolve your Ruby dependency files [\#90](https://github.com/solidusio/solidus_subscriptions/issues/90)
148
+ - Dependabot can't resolve your Ruby dependency files [\#88](https://github.com/solidusio/solidus_subscriptions/issues/88)
149
+ - Dependabot can't resolve your Ruby dependency files [\#87](https://github.com/solidusio/solidus_subscriptions/issues/87)
150
+ - Dependabot can't resolve your Ruby dependency files [\#86](https://github.com/solidusio/solidus_subscriptions/issues/86)
151
+ - Dependabot can't resolve your Ruby dependency files [\#85](https://github.com/solidusio/solidus_subscriptions/issues/85)
152
+ - Dependabot can't resolve your Ruby dependency files [\#84](https://github.com/solidusio/solidus_subscriptions/issues/84)
153
+ - Dependabot can't resolve your Ruby dependency files [\#82](https://github.com/solidusio/solidus_subscriptions/issues/82)
154
+ - Unable to seed dummy store [\#22](https://github.com/solidusio/solidus_subscriptions/issues/22)
155
+ - Solidus Subscriptions incompatible with solidus 2.3 [\#14](https://github.com/solidusio/solidus_subscriptions/issues/14)
156
+ - Promo codes? [\#8](https://github.com/solidusio/solidus_subscriptions/issues/8)
157
+ - Default store subscription field views [\#7](https://github.com/solidusio/solidus_subscriptions/issues/7)
158
+ - There is no subscribable toggle for master variants [\#6](https://github.com/solidusio/solidus_subscriptions/issues/6)
159
+ - What is the plan? [\#1](https://github.com/solidusio/solidus_subscriptions/issues/1)
160
+
161
+ **Merged pull requests:**
162
+
163
+ - Introduce Installment OrderCreator configuration [\#229](https://github.com/solidusio/solidus_subscriptions/pull/229) ([cesartalves](https://github.com/cesartalves))
164
+ - Update solidus\_core requirement from \>= 2.0.0, \< 3 to \>= 2.0.0, \< 4 [\#225](https://github.com/solidusio/solidus_subscriptions/pull/225) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
165
+ - Fix Api Subscription Permitted LineItem Attributes [\#223](https://github.com/solidusio/solidus_subscriptions/pull/223) ([cesartalves](https://github.com/cesartalves))
166
+ - Fix Spree::OrdersController decoration [\#221](https://github.com/solidusio/solidus_subscriptions/pull/221) ([cesartalves](https://github.com/cesartalves))
167
+ - Reload order during finalize action [\#220](https://github.com/solidusio/solidus_subscriptions/pull/220) ([seand7565](https://github.com/seand7565))
168
+ - Update specs to conform with rubocop [\#217](https://github.com/solidusio/solidus_subscriptions/pull/217) ([seand7565](https://github.com/seand7565))
169
+ - Update promotion rule names on db [\#216](https://github.com/solidusio/solidus_subscriptions/pull/216) ([luca-landa](https://github.com/luca-landa))
170
+ - Improve promotion rules names [\#215](https://github.com/solidusio/solidus_subscriptions/pull/215) ([luca-landa](https://github.com/luca-landa))
171
+ - Validate payment\_source ownership on the subscription [\#214](https://github.com/solidusio/solidus_subscriptions/pull/214) ([ChristianRimondi](https://github.com/ChristianRimondi))
172
+ - Add missing permissions sets for Solidus v2.11 [\#213](https://github.com/solidusio/solidus_subscriptions/pull/213) ([elia](https://github.com/elia))
173
+ - Require a version of solidus\_support that autoloads subscribers [\#212](https://github.com/solidusio/solidus_subscriptions/pull/212) ([elia](https://github.com/elia))
174
+ - Remove variant from subscriptions on soft deletion [\#211](https://github.com/solidusio/solidus_subscriptions/pull/211) ([luca-landa](https://github.com/luca-landa))
175
+ - Set default config currency to subscription [\#210](https://github.com/solidusio/solidus_subscriptions/pull/210) ([luca-landa](https://github.com/luca-landa))
176
+ - Skip ActiveJob retrying for ProcessInstallmentJob [\#206](https://github.com/solidusio/solidus_subscriptions/pull/206) ([ikraamg](https://github.com/ikraamg))
177
+ - Cleanup the duplicated fields on subscription creation [\#202](https://github.com/solidusio/solidus_subscriptions/pull/202) ([blocknotes](https://github.com/blocknotes))
178
+ - Move subscription processing to its own background job [\#201](https://github.com/solidusio/solidus_subscriptions/pull/201) ([nirebu](https://github.com/nirebu))
179
+ - Use `name` in customer serializer [\#200](https://github.com/solidusio/solidus_subscriptions/pull/200) ([nvandoorn](https://github.com/nvandoorn))
180
+ - Setup the subcription create endpoint [\#199](https://github.com/solidusio/solidus_subscriptions/pull/199) ([blocknotes](https://github.com/blocknotes))
181
+ - Add currency to subscriptions [\#198](https://github.com/solidusio/solidus_subscriptions/pull/198) ([luca-landa](https://github.com/luca-landa))
182
+ - Fix sandbox creation error [\#197](https://github.com/solidusio/solidus_subscriptions/pull/197) ([blocknotes](https://github.com/blocknotes))
183
+ - Fix duplicated line items creation [\#195](https://github.com/solidusio/solidus_subscriptions/pull/195) ([igorbp](https://github.com/igorbp))
184
+ - Admin: expose the subscription orders [\#192](https://github.com/solidusio/solidus_subscriptions/pull/192) ([blocknotes](https://github.com/blocknotes))
185
+ - Improve "unfulfilled" scope by adding subquery [\#191](https://github.com/solidusio/solidus_subscriptions/pull/191) ([AlessioRocco](https://github.com/AlessioRocco))
186
+ - Remove "canonical-rails" from the Gemfile [\#189](https://github.com/solidusio/solidus_subscriptions/pull/189) ([AlessioRocco](https://github.com/AlessioRocco))
187
+ - Update permissions check on user subscription tab [\#183](https://github.com/solidusio/solidus_subscriptions/pull/183) ([seand7565](https://github.com/seand7565))
188
+ - Add Installment Details association to Order [\#182](https://github.com/solidusio/solidus_subscriptions/pull/182) ([seand7565](https://github.com/seand7565))
189
+ - Avoid processing installments with cancelled subscriptions [\#181](https://github.com/solidusio/solidus_subscriptions/pull/181) ([seand7565](https://github.com/seand7565))
190
+ - Update cancel method on subscription to respect minimum date [\#178](https://github.com/solidusio/solidus_subscriptions/pull/178) ([seand7565](https://github.com/seand7565))
191
+ - Fix typo in subscription admin notifications [\#176](https://github.com/solidusio/solidus_subscriptions/pull/176) ([igorbp](https://github.com/igorbp))
192
+ - Processor and Checkout refactoring [\#172](https://github.com/solidusio/solidus_subscriptions/pull/172) ([aldesantis](https://github.com/aldesantis))
193
+ - Move maximum reprocessing retries to a time based criterion [\#167](https://github.com/solidusio/solidus_subscriptions/pull/167) ([nirebu](https://github.com/nirebu))
194
+ - Add config to ignore past unfulfilled installments [\#165](https://github.com/solidusio/solidus_subscriptions/pull/165) ([nirebu](https://github.com/nirebu))
195
+ - Add Subscriptions tab to User page in Admin [\#162](https://github.com/solidusio/solidus_subscriptions/pull/162) ([igorbp](https://github.com/igorbp))
196
+ - Track additional events for subscription updates [\#156](https://github.com/solidusio/solidus_subscriptions/pull/156) ([aldesantis](https://github.com/aldesantis))
197
+ - Update shoulda-matchers requirement from ~\> 3.1 to ~\> 4.4 [\#145](https://github.com/solidusio/solidus_subscriptions/pull/145) ([dependabot-preview[bot]](https://github.com/apps/dependabot-preview))
198
+ - Use parent strategy when building associations in factories [\#134](https://github.com/solidusio/solidus_subscriptions/pull/134) ([aldesantis](https://github.com/aldesantis))
199
+ - Move service objects to `app/services` [\#110](https://github.com/solidusio/solidus_subscriptions/pull/110) ([aldesantis](https://github.com/aldesantis))
200
+ - Convert API documentation into OpenAPI [\#106](https://github.com/solidusio/solidus_subscriptions/pull/106) ([aldesantis](https://github.com/aldesantis))
201
+ - Add github\_changelog\_generator configuration [\#105](https://github.com/solidusio/solidus_subscriptions/pull/105) ([aldesantis](https://github.com/aldesantis))
202
+ - Reorganize and clean up readme [\#104](https://github.com/solidusio/solidus_subscriptions/pull/104) ([aldesantis](https://github.com/aldesantis))
203
+ - Fix unsupported `around(:all)` RSpec configuration [\#98](https://github.com/solidusio/solidus_subscriptions/pull/98) ([aldesantis](https://github.com/aldesantis))
204
+ - Update to the latest solidus\_dev\_support [\#96](https://github.com/solidusio/solidus_subscriptions/pull/96) ([aldesantis](https://github.com/aldesantis))
205
+ - Relax solidus\_support dependency [\#95](https://github.com/solidusio/solidus_subscriptions/pull/95) ([kennyadsl](https://github.com/kennyadsl))
206
+ - Fix Dependabot looking for Gemfile-local [\#92](https://github.com/solidusio/solidus_subscriptions/pull/92) ([aldesantis](https://github.com/aldesantis))
207
+ - Update solidus\_dev\_support [\#89](https://github.com/solidusio/solidus_subscriptions/pull/89) ([blocknotes](https://github.com/blocknotes))
208
+ - Adopt solidus\_extension\_dev\_tools [\#81](https://github.com/solidusio/solidus_subscriptions/pull/81) ([aldesantis](https://github.com/aldesantis))
209
+ - Fix CI on Rails 6 [\#71](https://github.com/solidusio/solidus_subscriptions/pull/71) ([aldesantis](https://github.com/aldesantis))
210
+ - Fixes admin sorting on fields without a natural order [\#70](https://github.com/solidusio/solidus_subscriptions/pull/70) ([mdesantis](https://github.com/mdesantis))
211
+ - Perform maintenance tasks [\#69](https://github.com/solidusio/solidus_subscriptions/pull/69) ([mdesantis](https://github.com/mdesantis))
212
+ - Run specs with CircleCI [\#68](https://github.com/solidusio/solidus_subscriptions/pull/68) ([kennyadsl](https://github.com/kennyadsl))
213
+ - Fix broken factories associations [\#67](https://github.com/solidusio/solidus_subscriptions/pull/67) ([aitbw](https://github.com/aitbw))
214
+ - Remove Solidus v2.3 from Travis config \(EOL\) [\#66](https://github.com/solidusio/solidus_subscriptions/pull/66) ([aitbw](https://github.com/aitbw))
215
+ - Add Solidus v2.8 to Travis config [\#65](https://github.com/solidusio/solidus_subscriptions/pull/65) ([aitbw](https://github.com/aitbw))
216
+ - Do not run rubocop on Travis [\#64](https://github.com/solidusio/solidus_subscriptions/pull/64) ([aitbw](https://github.com/aitbw))
217
+ - Update rubocop to fix vulnerability CVE-2017-8418 [\#63](https://github.com/solidusio/solidus_subscriptions/pull/63) ([aitbw](https://github.com/aitbw))
218
+ - Fix deprecations warnings and failing specs [\#61](https://github.com/solidusio/solidus_subscriptions/pull/61) ([aitbw](https://github.com/aitbw))
219
+ - Change api url in documentation [\#58](https://github.com/solidusio/solidus_subscriptions/pull/58) ([jacobeubanks](https://github.com/jacobeubanks))
220
+ - Fix factory girl dependency for Solidus \< 2.5 [\#57](https://github.com/solidusio/solidus_subscriptions/pull/57) ([jacobherrington](https://github.com/jacobherrington))
221
+ - Add Solidus 2.7 to .travis.yml [\#56](https://github.com/solidusio/solidus_subscriptions/pull/56) ([jacobherrington](https://github.com/jacobherrington))
222
+ - Change static factory attrs to dynamic [\#55](https://github.com/solidusio/solidus_subscriptions/pull/55) ([fastjames](https://github.com/fastjames))
223
+ - Update factory\_girl to factory\_bot [\#50](https://github.com/solidusio/solidus_subscriptions/pull/50) ([fastjames](https://github.com/fastjames))
224
+ - Update solidus version for travis [\#46](https://github.com/solidusio/solidus_subscriptions/pull/46) ([fastjames](https://github.com/fastjames))
225
+ - Fix typos in comments [\#39](https://github.com/solidusio/solidus_subscriptions/pull/39) ([swcraig](https://github.com/swcraig))
226
+ - Add ffaker dependency to gemspec [\#35](https://github.com/solidusio/solidus_subscriptions/pull/35) ([swcraig](https://github.com/swcraig))
227
+ - Small UI change to canceling in the admin [\#28](https://github.com/solidusio/solidus_subscriptions/pull/28) ([seantaylor](https://github.com/seantaylor))
228
+ - Authorize subscriptions admin sidebar link [\#23](https://github.com/solidusio/solidus_subscriptions/pull/23) ([qr8r](https://github.com/qr8r))
229
+ - Subs track their own interval now [\#21](https://github.com/solidusio/solidus_subscriptions/pull/21) ([qr8r](https://github.com/qr8r))
230
+ - Fix/the broken admin [\#20](https://github.com/solidusio/solidus_subscriptions/pull/20) ([qr8r](https://github.com/qr8r))
231
+ - Allow destroying nested line items [\#18](https://github.com/solidusio/solidus_subscriptions/pull/18) ([isaacfreeman](https://github.com/isaacfreeman))
232
+ - Update Readme to correct repo [\#17](https://github.com/solidusio/solidus_subscriptions/pull/17) ([asecondwill](https://github.com/asecondwill))
233
+ - Support Rails 5.1 [\#16](https://github.com/solidusio/solidus_subscriptions/pull/16) ([jhawthorn](https://github.com/jhawthorn))
234
+ - Allows for subscription checkout to accommodate a more flexible checko… [\#15](https://github.com/solidusio/solidus_subscriptions/pull/15) ([joeljackson](https://github.com/joeljackson))
235
+ - Only load permitted attributes once [\#11](https://github.com/solidusio/solidus_subscriptions/pull/11) ([qr8r](https://github.com/qr8r))
236
+ - Fix duplicated docs [\#10](https://github.com/solidusio/solidus_subscriptions/pull/10) ([qr8r](https://github.com/qr8r))
237
+ - Add Subcription inputs to product page [\#9](https://github.com/solidusio/solidus_subscriptions/pull/9) ([qr8r](https://github.com/qr8r))
238
+ - Fixes for Solidus 2.2 [\#5](https://github.com/solidusio/solidus_subscriptions/pull/5) ([jhawthorn](https://github.com/jhawthorn))
239
+ - Allow Failed installments to not be reprocessed [\#4](https://github.com/solidusio/solidus_subscriptions/pull/4) ([qr8r](https://github.com/qr8r))
240
+ - Lock travis bundler version [\#3](https://github.com/solidusio/solidus_subscriptions/pull/3) ([qr8r](https://github.com/qr8r))
241
+ - Group subscriptions by subscription configurations [\#2](https://github.com/solidusio/solidus_subscriptions/pull/2) ([qr8r](https://github.com/qr8r))
242
+
243
+
244
+
245
+ \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
data/Rakefile CHANGED
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'bundler/gem_tasks'
4
+
3
5
  require 'solidus_dev_support/rake_tasks'
4
6
  SolidusDevSupport::RakeTasks.install
5
7
 
@@ -1,15 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusSubscriptions
4
- module ChurnBusterSubscriber
5
- include ::Spree::Event::Subscriber
6
- include ::SolidusSupport::LegacyEventCompat::Subscriber
7
-
8
- event_action :report_subscription_cancellation, event_name: 'solidus_subscriptions.subscription_canceled'
9
- event_action :report_subscription_ending, event_name: 'solidus_subscriptions.subscription_ended'
10
- event_action :report_payment_success, event_name: 'solidus_subscriptions.installment_succeeded'
11
- event_action :report_payment_failure, event_name: 'solidus_subscriptions.installment_failed_payment'
12
- event_action :report_payment_method_change, event_name: 'solidus_subscriptions.subscription_payment_method_changed'
4
+ class ChurnBusterSubscriber
5
+ include Omnes::Subscriber
6
+
7
+ handle :"solidus_subscriptions.subscription_canceled", with: :report_subscription_cancellation
8
+ handle :"solidus_subscriptions.subscription_ended", with: :report_subscription_ending
9
+ handle :"solidus_subscriptions.installment_succeeded", with: :report_payment_success
10
+ handle :"solidus_subscriptions.installment_failed_payment", with: :report_payment_failure
11
+ handle :"solidus_subscriptions.subscription_payment_method_changed", with: :report_payment_method_change
13
12
 
14
13
  def report_subscription_cancellation(event)
15
14
  churn_buster&.report_subscription_cancellation(event.payload.fetch(:subscription))
@@ -1,17 +1,16 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusSubscriptions
4
- module EventStorageSubscriber
5
- include ::Spree::Event::Subscriber
6
- include ::SolidusSupport::LegacyEventCompat::Subscriber
4
+ class EventStorageSubscriber
5
+ include Omnes::Subscriber
7
6
 
8
- event_action :track_subscription_created, event_name: 'solidus_subscriptions.subscription_created'
9
- event_action :track_subscription_activated, event_name: 'solidus_subscriptions.subscription_activated'
10
- event_action :track_subscription_canceled, event_name: 'solidus_subscriptions.subscription_canceled'
11
- event_action :track_subscription_ended, event_name: 'solidus_subscriptions.subscription_ended'
12
- event_action :track_subscription_shipping_address_changed, event_name: 'solidus_subscriptions.subscription_shipping_address_changed'
13
- event_action :track_subscription_billing_address_changed, event_name: 'solidus_subscriptions.subscription_billing_address_changed'
14
- event_action :track_subscription_frequency_changed, event_name: 'solidus_subscriptions.subscription_frequency_changed'
7
+ handle :"solidus_subscriptions.subscription_created", with: :track_subscription_created
8
+ handle :"solidus_subscriptions.subscription_activated", with: :track_subscription_activated
9
+ handle :"solidus_subscriptions.subscription_canceled", with: :track_subscription_canceled
10
+ handle :"solidus_subscriptions.subscription_ended", with: :track_subscription_ended
11
+ handle :"solidus_subscriptions.subscription_shipping_address_changed", with: :track_subscription_shipping_address_changed
12
+ handle :"solidus_subscriptions.subscription_billing_address_changed", with: :track_subscription_billing_address_changed
13
+ handle :"solidus_subscriptions.subscription_frequency_changed", with: :track_subscription_frequency_changed
15
14
 
16
15
  def track_subscription_created(event)
17
16
  event.payload.fetch(:subscription).events.create!(
@@ -1,13 +1,10 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusSubscriptions
4
- module OrderSubscriber
5
- include ::Spree::Event::Subscriber
6
- include ::SolidusSupport::LegacyEventCompat::Subscriber
4
+ class OrderSubscriber
5
+ include Omnes::Subscriber
7
6
 
8
- event_action :create_subscription, event_name: 'order_finalized'
9
-
10
- private
7
+ handle :order_finalized, with: :create_subscription
11
8
 
12
9
  def create_subscription(event)
13
10
  SolidusSubscriptions::CreateSubscriptionJob.perform_later(event.payload[:order])
@@ -51,29 +51,27 @@ module SolidusSubscriptions
51
51
  end
52
52
 
53
53
  initializer 'solidus_subscriptions.pub_sub' do |app|
54
- unless SolidusSupport::LegacyEventCompat.using_legacy?
55
- app.reloader.to_prepare do
56
- %i[
57
- subscription_created
58
- subscription_activated
59
- subscription_canceled
60
- subscription_ended
61
- subscription_skipped
62
- subscription_resumed
63
- subscription_paused
64
- subscription_frequency_changed
65
- subscription_shipping_address_changed
66
- subscription_billing_address_changed
67
- installment_succeeded
68
- installment_failed_payment
69
- subscription_payment_method_changed
70
- ].each do |event_name|
71
- ::Spree::Bus.register(:"solidus_subscriptions.#{event_name}")
72
- end
73
- SolidusSubscriptions::ChurnBusterSubscriber.omnes_subscriber.subscribe_to(::Spree::Bus)
74
- SolidusSubscriptions::EventStorageSubscriber.omnes_subscriber.subscribe_to(::Spree::Bus)
75
- SolidusSubscriptions::OrderSubscriber.omnes_subscriber.subscribe_to(::Spree::Bus)
54
+ app.reloader.to_prepare do
55
+ %i[
56
+ subscription_created
57
+ subscription_activated
58
+ subscription_canceled
59
+ subscription_ended
60
+ subscription_skipped
61
+ subscription_resumed
62
+ subscription_paused
63
+ subscription_frequency_changed
64
+ subscription_shipping_address_changed
65
+ subscription_billing_address_changed
66
+ installment_succeeded
67
+ installment_failed_payment
68
+ subscription_payment_method_changed
69
+ ].each do |event_name|
70
+ ::Spree::Bus.register(:"solidus_subscriptions.#{event_name}")
76
71
  end
72
+ SolidusSubscriptions::ChurnBusterSubscriber.new.subscribe_to(::Spree::Bus)
73
+ SolidusSubscriptions::EventStorageSubscriber.new.subscribe_to(::Spree::Bus)
74
+ SolidusSubscriptions::OrderSubscriber.new.subscribe_to(::Spree::Bus)
77
75
  end
78
76
  end
79
77
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusSubscriptions
4
- VERSION = '1.0.1'
4
+ VERSION = '2.0.0'
5
5
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
 
16
16
  spec.metadata['homepage_uri'] = spec.homepage
17
17
  spec.metadata['source_code_uri'] = 'https://github.com/solidusio/solidus_subscriptions'
18
- spec.metadata['changelog_uri'] = 'https://github.com/solidusio/solidus_subscriptions/blob/master/CHANGELOG.md'
18
+ spec.metadata['changelog_uri'] = 'https://github.com/solidusio/solidus_subscriptions/releases'
19
19
 
20
20
  spec.required_ruby_version = Gem::Requirement.new('>= 2.5')
21
21
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_subscriptions
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-03-01 00:00:00.000000000 Z
11
+ date: 2023-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: deface
@@ -230,6 +230,7 @@ files:
230
230
  - CHANGELOG.md
231
231
  - Gemfile
232
232
  - LICENSE
233
+ - OLD_CHANGELOG.md
233
234
  - README.md
234
235
  - Rakefile
235
236
  - app/assets/javascripts/spree/backend/solidus_subscriptions.js
@@ -433,7 +434,7 @@ licenses:
433
434
  metadata:
434
435
  homepage_uri: https://github.com/solidusio/solidus_subscriptions
435
436
  source_code_uri: https://github.com/solidusio/solidus_subscriptions
436
- changelog_uri: https://github.com/solidusio/solidus_subscriptions/blob/master/CHANGELOG.md
437
+ changelog_uri: https://github.com/solidusio/solidus_subscriptions/releases
437
438
  post_install_message:
438
439
  rdoc_options: []
439
440
  require_paths: