redline 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/redline/customer/instance.rb +1 -1
- data/redline.gemspec +3 -3
- metadata +21 -38
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
@@ -10,7 +10,7 @@ module RedLine
|
|
10
10
|
Braintree::Customer.find(customer_id) if customer_id
|
11
11
|
end
|
12
12
|
def create_customer
|
13
|
-
self.customer_id
|
13
|
+
self.customer_id ||= Braintree::Customer.create!(braintree_customer_attributes).id
|
14
14
|
end
|
15
15
|
def update_customer
|
16
16
|
Braintree::Customer.update!(customer_id, braintree_customer_attributes) && flush_cache(:customer) if customer_id
|
data/redline.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{redline}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["James Daniels"]
|
12
|
-
s.date = %q{2010-03-
|
12
|
+
s.date = %q{2010-03-17}
|
13
13
|
s.description = %q{Syncs your AR models with Braintree (Payment Gateway) and offers a lightweight reoccurring billing script}
|
14
14
|
s.email = %q{james@marginleft.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -45,7 +45,7 @@ Gem::Specification.new do |s|
|
|
45
45
|
s.homepage = %q{http://github.com/jamesdaniels/redline}
|
46
46
|
s.rdoc_options = ["--charset=UTF-8"]
|
47
47
|
s.require_paths = ["lib"]
|
48
|
-
s.rubygems_version = %q{1.3.
|
48
|
+
s.rubygems_version = %q{1.3.5}
|
49
49
|
s.summary = %q{Syncs your AR models with Braintree (Payment Gateway) and offers a lightweight reoccurring billing script}
|
50
50
|
s.test_files = [
|
51
51
|
"spec/billing_spec.rb",
|
metadata
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 3
|
8
|
-
- 0
|
9
|
-
version: 0.3.0
|
4
|
+
version: 0.3.1
|
10
5
|
platform: ruby
|
11
6
|
authors:
|
12
7
|
- James Daniels
|
@@ -14,59 +9,49 @@ autorequire:
|
|
14
9
|
bindir: bin
|
15
10
|
cert_chain: []
|
16
11
|
|
17
|
-
date: 2010-03-
|
12
|
+
date: 2010-03-17 00:00:00 -04:00
|
18
13
|
default_executable:
|
19
14
|
dependencies:
|
20
15
|
- !ruby/object:Gem::Dependency
|
21
16
|
name: rspec
|
22
|
-
|
23
|
-
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
20
|
requirements:
|
25
21
|
- - ">="
|
26
22
|
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 1
|
29
|
-
- 2
|
30
|
-
- 9
|
31
23
|
version: 1.2.9
|
32
|
-
|
33
|
-
version_requirements: *id001
|
24
|
+
version:
|
34
25
|
- !ruby/object:Gem::Dependency
|
35
26
|
name: braintree
|
36
|
-
|
37
|
-
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
30
|
requirements:
|
39
31
|
- - ">="
|
40
32
|
- !ruby/object:Gem::Version
|
41
|
-
segments:
|
42
|
-
- 0
|
43
33
|
version: "0"
|
44
|
-
|
45
|
-
version_requirements: *id002
|
34
|
+
version:
|
46
35
|
- !ruby/object:Gem::Dependency
|
47
36
|
name: activerecord
|
48
|
-
|
49
|
-
|
37
|
+
type: :development
|
38
|
+
version_requirement:
|
39
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
40
|
requirements:
|
51
41
|
- - ">="
|
52
42
|
- !ruby/object:Gem::Version
|
53
|
-
segments:
|
54
|
-
- 0
|
55
43
|
version: "0"
|
56
|
-
|
57
|
-
version_requirements: *id003
|
44
|
+
version:
|
58
45
|
- !ruby/object:Gem::Dependency
|
59
46
|
name: activesupport
|
60
|
-
|
61
|
-
|
47
|
+
type: :development
|
48
|
+
version_requirement:
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
50
|
requirements:
|
63
51
|
- - ">="
|
64
52
|
- !ruby/object:Gem::Version
|
65
|
-
segments:
|
66
|
-
- 0
|
67
53
|
version: "0"
|
68
|
-
|
69
|
-
version_requirements: *id004
|
54
|
+
version:
|
70
55
|
description: Syncs your AR models with Braintree (Payment Gateway) and offers a lightweight reoccurring billing script
|
71
56
|
email: james@marginleft.com
|
72
57
|
executables: []
|
@@ -114,20 +99,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
114
99
|
requirements:
|
115
100
|
- - ">="
|
116
101
|
- !ruby/object:Gem::Version
|
117
|
-
segments:
|
118
|
-
- 0
|
119
102
|
version: "0"
|
103
|
+
version:
|
120
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
121
105
|
requirements:
|
122
106
|
- - ">="
|
123
107
|
- !ruby/object:Gem::Version
|
124
|
-
segments:
|
125
|
-
- 0
|
126
108
|
version: "0"
|
109
|
+
version:
|
127
110
|
requirements: []
|
128
111
|
|
129
112
|
rubyforge_project:
|
130
|
-
rubygems_version: 1.3.
|
113
|
+
rubygems_version: 1.3.5
|
131
114
|
signing_key:
|
132
115
|
specification_version: 3
|
133
116
|
summary: Syncs your AR models with Braintree (Payment Gateway) and offers a lightweight reoccurring billing script
|