paid_up 0.13.6 → 0.13.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/paid_up/mixins/subscriber.rb +4 -2
- data/paid_up.gemspec +3 -3
- data/spec/dummy/db/test.sqlite3 +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63ad3c5a57bc3f5b508efc2598c35ba8447216659ed0a1dfc81560210720d0b1
|
4
|
+
data.tar.gz: e4cba786f7fc1373ce47660a6435e12d0bd3296403e3622b29dc64cc3a4d0768
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02edb6edf5ec11513a1fe4cd83459032c3f6c8f7d741e22e7720cbb91a131ffcca47bd8ffd750a170377b4b141c712cc5fae51af46406d682549864aaf5411c3
|
7
|
+
data.tar.gz: be3120210915e6206b0831f8f52da36e26d96dbcbf88e1afb2c70c8b6753b66b144fd01fd4ad464dcf3fe12f4b297ff9eee6fd5fc439ae7310cdce7f45d63531
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.13.
|
1
|
+
0.13.7
|
@@ -97,7 +97,7 @@ module PaidUp
|
|
97
97
|
|
98
98
|
def set_default_attributes
|
99
99
|
return unless new_record?
|
100
|
-
self.stripe_id =
|
100
|
+
self.stripe_id = working_stripe_id
|
101
101
|
end
|
102
102
|
|
103
103
|
def load_stripe_data
|
@@ -128,7 +128,9 @@ module PaidUp
|
|
128
128
|
def remove_anonymous_association
|
129
129
|
return unless stripe_id ==
|
130
130
|
PaidUp.configuration.anonymous_customer_stripe_id
|
131
|
-
|
131
|
+
|
132
|
+
existing_customer = Stripe::Customer.list(email: email, limit: 1)&.first
|
133
|
+
self.stripe_id = existing_customer&.id
|
132
134
|
end
|
133
135
|
end
|
134
136
|
end
|
data/paid_up.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: paid_up 0.13.
|
5
|
+
# stub: paid_up 0.13.7 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "paid_up".freeze
|
9
|
-
s.version = "0.13.
|
9
|
+
s.version = "0.13.7"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["Karen Lundgren".freeze]
|
14
|
-
s.date = "2018-09-
|
14
|
+
s.date = "2018-09-29"
|
15
15
|
s.description = "Allows a model of your choosing (such as users) to subscribe to a plan, which enables features.".freeze
|
16
16
|
s.email = "karen.e.lundgren@gmail.com".freeze
|
17
17
|
s.extra_rdoc_files = [
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paid_up
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Karen Lundgren
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml-rails
|