spree_account_recurring 1.1.5 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +6 -3
- data/app/models/concerns/spree/plan/api_handler.rb +1 -1
- data/app/models/concerns/spree/recurring/stripe_recurring/api_handler/plan_api_handler.rb +1 -1
- data/app/models/concerns/spree/recurring/stripe_recurring/api_handler/subscription_api_handler.rb +1 -1
- data/app/models/concerns/spree/recurring/stripe_recurring/api_handler/subscription_event_api_handler.rb +1 -1
- data/app/models/concerns/spree/recurring/stripe_recurring/api_handler.rb +1 -1
- data/app/models/concerns/spree/subscription/api_handler.rb +1 -3
- data/app/models/concerns/spree/subscription/role_subscriber.rb +1 -1
- data/app/models/spree/plan.rb +1 -1
- data/app/models/spree/recurring/stripe_recurring.rb +1 -1
- data/app/models/spree/recurring.rb +1 -1
- data/app/models/spree/subscription.rb +1 -1
- data/app/models/spree/subscription_event.rb +1 -1
- data/db/migrate/20141218173349_add_preference_to_spree_recurring.rb +5 -0
- metadata +6 -5
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Spree Account Recurring [](https://codeclimate.com/github/vinsol/spree-account-recurring) [](https://codeclimate.com/github/vinsol/spree-account-recurring) [](https://travis-ci.org/vinsol/spree-account-recurring)
|
2
2
|
=========================
|
3
3
|
|
4
4
|
Spree extension to manage recurring payments/subscriptions using [Stripe Payment Gateway](https://stripe.com/).
|
@@ -11,13 +11,16 @@ Installation
|
|
11
11
|
Install `spree_account_recurring` by adding the following to your `Gemfile`:
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
# Spree 2.
|
15
|
-
gem 'spree_account_recurring', '~> 1.
|
14
|
+
# Spree 2.3.x
|
15
|
+
gem 'spree_account_recurring', '~> 1.2'
|
16
16
|
```
|
17
17
|
|
18
18
|
For older version of Spree
|
19
19
|
|
20
20
|
```ruby
|
21
|
+
# Spree 2.2.x
|
22
|
+
gem 'spree_account_recurring', '~> 1.1'
|
23
|
+
|
21
24
|
# Spree 2.1.x
|
22
25
|
gem 'spree_account_recurring', '~> 1.0'
|
23
26
|
```
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Spree
|
2
|
-
class Subscription <
|
2
|
+
class Subscription < Spree::Base
|
3
3
|
module ApiHandler
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
@@ -31,8 +31,6 @@ module Spree
|
|
31
31
|
def provider
|
32
32
|
plan.try(:recurring).present? ? plan.recurring : (raise ActiveRecord::RecordNotFound.new("Provider not found."))
|
33
33
|
end
|
34
|
-
|
35
|
-
private
|
36
34
|
end
|
37
35
|
end
|
38
36
|
end
|
data/app/models/spree/plan.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_account_recurring
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -18,7 +18,7 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: '2.
|
21
|
+
version: '2.3'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '2.
|
29
|
+
version: '2.3'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: stripe
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - '='
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 1.
|
37
|
+
version: 1.16.0
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - '='
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 1.
|
45
|
+
version: 1.16.0
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: stripe_tester
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- db/migrate/20140303072857_add_default_to_spree_plans.rb
|
146
146
|
- db/migrate/20140319092254_add_response_to_spree_subscription_events.rb
|
147
147
|
- db/migrate/20140404114919_change_datatype_for_amount_in_spree_plans.rb
|
148
|
+
- db/migrate/20141218173349_add_preference_to_spree_recurring.rb
|
148
149
|
homepage: http://vinsol.com
|
149
150
|
licenses: []
|
150
151
|
post_install_message:
|