recurly 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of recurly might be problematic. Click here for more details.

data/README.markdown CHANGED
@@ -12,7 +12,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
12
12
  [Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
13
13
 
14
14
  ``` ruby
15
- gem 'recurly', '~> 2.0.0'
15
+ gem 'recurly', '~> 2.0.1'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -45,7 +45,8 @@ with your Recurly subdomain).
45
45
  Instructions and examples are available on
46
46
  [Recurly's documentation site](http://docs.recurly.com/api/basics).
47
47
 
48
- Recurly's gem API is available [here](http://rdoc.info/gems/recurly).
48
+ Recurly's gem API is available
49
+ [here](http://rubydoc.info/gems/recurly/2.0.1/frames).
49
50
 
50
51
 
51
52
  ## Contributing
@@ -32,6 +32,7 @@ module Recurly
32
32
  last_name
33
33
  company_name
34
34
  accept_language
35
+ hosted_login_token
35
36
  created_at
36
37
  )
37
38
  alias to_param account_code
@@ -16,6 +16,7 @@ module Recurly
16
16
 
17
17
  define_attribute_methods %w(
18
18
  uuid
19
+ state
19
20
  description
20
21
  accounting_code
21
22
  origin
@@ -687,7 +687,12 @@ module Recurly
687
687
  value.to_xml options.merge(:builder => node)
688
688
  elsif value.respond_to? :each_pair
689
689
  value.each_pair { |k, v| node.add_element k.to_s, v }
690
- elsif value.respond_to? :each
690
+ # # FIXME: We can't duck-type here because of 1.8.7 differences. We
691
+ # # should come up with a more elegant solution, though, because
692
+ # # this relies on Subscription::AddOns returning true for is_a? Array.
693
+ #
694
+ # elsif value.respond_to? :each
695
+ elsif value.is_a? Array
691
696
  value.each { |e| node.add_element Helper.singularize(key), e }
692
697
  else
693
698
  node.text = value
@@ -41,10 +41,18 @@ module Recurly
41
41
  #
42
42
  # @param plan [Plan]
43
43
  def plan= plan
44
- self[:plan_code] = plan.plan_code if plan.respond_to? :plan_code
44
+ self.plan_code = (plan.plan_code if plan.respond_to? :plan_code)
45
45
  attributes[:plan] = plan
46
46
  end
47
47
 
48
+ def plan_code
49
+ plan.plan_code if plan.respond_to? :plan_code
50
+ end
51
+
52
+ def plan_code= plan_code
53
+ self[:plan_code] = plan_code
54
+ end
55
+
48
56
  # @return [AddOns]
49
57
  def subscription_add_ons
50
58
  AddOns.new self, super
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 0
5
+ PATCH = 1
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,101 +1,146 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
- version: !ruby/object:Gem::Version
4
- version: 2.0.0
3
+ version: !ruby/object:Gem::Version
4
+ hash: 13
5
5
  prerelease:
6
+ segments:
7
+ - 2
8
+ - 0
9
+ - 1
10
+ version: 2.0.1
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Recurly
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-10-25 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2011-10-27 00:00:00 -07:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
15
22
  name: rake
16
- requirement: &70168118224900 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
17
25
  none: false
18
- requirements:
26
+ requirements:
19
27
  - - ~>
20
- - !ruby/object:Gem::Version
28
+ - !ruby/object:Gem::Version
29
+ hash: 63
30
+ segments:
31
+ - 0
32
+ - 9
33
+ - 2
21
34
  version: 0.9.2
22
35
  type: :development
23
- prerelease: false
24
- version_requirements: *70168118224900
25
- - !ruby/object:Gem::Dependency
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
26
38
  name: bundler
27
- requirement: &70168118239400 !ruby/object:Gem::Requirement
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
28
41
  none: false
29
- requirements:
42
+ requirements:
30
43
  - - ~>
31
- - !ruby/object:Gem::Version
44
+ - !ruby/object:Gem::Version
45
+ hash: 1923831893
46
+ segments:
47
+ - 1
48
+ - 1
49
+ - pre
50
+ - 10
32
51
  version: 1.1.pre.10
33
52
  type: :development
34
- prerelease: false
35
- version_requirements: *70168118239400
36
- - !ruby/object:Gem::Dependency
53
+ version_requirements: *id002
54
+ - !ruby/object:Gem::Dependency
37
55
  name: minitest
38
- requirement: &70168118236700 !ruby/object:Gem::Requirement
56
+ prerelease: false
57
+ requirement: &id003 !ruby/object:Gem::Requirement
39
58
  none: false
40
- requirements:
59
+ requirements:
41
60
  - - ~>
42
- - !ruby/object:Gem::Version
61
+ - !ruby/object:Gem::Version
62
+ hash: 21
63
+ segments:
64
+ - 2
65
+ - 6
66
+ - 1
43
67
  version: 2.6.1
44
68
  type: :development
45
- prerelease: false
46
- version_requirements: *70168118236700
47
- - !ruby/object:Gem::Dependency
69
+ version_requirements: *id003
70
+ - !ruby/object:Gem::Dependency
48
71
  name: webmock
49
- requirement: &70168118235440 !ruby/object:Gem::Requirement
72
+ prerelease: false
73
+ requirement: &id004 !ruby/object:Gem::Requirement
50
74
  none: false
51
- requirements:
75
+ requirements:
52
76
  - - ~>
53
- - !ruby/object:Gem::Version
77
+ - !ruby/object:Gem::Version
78
+ hash: 7
79
+ segments:
80
+ - 1
81
+ - 7
82
+ - 6
54
83
  version: 1.7.6
55
84
  type: :development
56
- prerelease: false
57
- version_requirements: *70168118235440
58
- - !ruby/object:Gem::Dependency
85
+ version_requirements: *id004
86
+ - !ruby/object:Gem::Dependency
59
87
  name: guard-minitest
60
- requirement: &70168118234400 !ruby/object:Gem::Requirement
88
+ prerelease: false
89
+ requirement: &id005 !ruby/object:Gem::Requirement
61
90
  none: false
62
- requirements:
91
+ requirements:
63
92
  - - ~>
64
- - !ruby/object:Gem::Version
93
+ - !ruby/object:Gem::Version
94
+ hash: 15
95
+ segments:
96
+ - 0
97
+ - 4
98
+ - 0
65
99
  version: 0.4.0
66
100
  type: :development
67
- prerelease: false
68
- version_requirements: *70168118234400
69
- - !ruby/object:Gem::Dependency
101
+ version_requirements: *id005
102
+ - !ruby/object:Gem::Dependency
70
103
  name: rb-fsevent
71
- requirement: &70168118232720 !ruby/object:Gem::Requirement
104
+ prerelease: false
105
+ requirement: &id006 !ruby/object:Gem::Requirement
72
106
  none: false
73
- requirements:
107
+ requirements:
74
108
  - - ~>
75
- - !ruby/object:Gem::Version
109
+ - !ruby/object:Gem::Version
110
+ hash: 97
111
+ segments:
112
+ - 0
113
+ - 4
114
+ - 3
115
+ - 1
76
116
  version: 0.4.3.1
77
117
  type: :development
78
- prerelease: false
79
- version_requirements: *70168118232720
80
- - !ruby/object:Gem::Dependency
118
+ version_requirements: *id006
119
+ - !ruby/object:Gem::Dependency
81
120
  name: growl_notify
82
- requirement: &70168122344800 !ruby/object:Gem::Requirement
121
+ prerelease: false
122
+ requirement: &id007 !ruby/object:Gem::Requirement
83
123
  none: false
84
- requirements:
124
+ requirements:
85
125
  - - ~>
86
- - !ruby/object:Gem::Version
126
+ - !ruby/object:Gem::Version
127
+ hash: 29
128
+ segments:
129
+ - 0
130
+ - 0
131
+ - 1
87
132
  version: 0.0.1
88
133
  type: :development
89
- prerelease: false
90
- version_requirements: *70168122344800
91
- description: ! 'An API client library for Recurly: http://recurly.com'
134
+ version_requirements: *id007
135
+ description: "An API client library for Recurly: http://recurly.com"
92
136
  email: support@recurly.com
93
- executables:
137
+ executables:
94
138
  - recurly
95
139
  extensions: []
96
- extra_rdoc_files:
140
+
141
+ extra_rdoc_files:
97
142
  - README.markdown
98
- files:
143
+ files:
99
144
  - lib/rails/generators/recurly/config_generator.rb
100
145
  - lib/rails/recurly.rb
101
146
  - lib/recurly/account.rb
@@ -125,31 +170,40 @@ files:
125
170
  - lib/recurly.rb
126
171
  - README.markdown
127
172
  - bin/recurly
173
+ has_rdoc: true
128
174
  homepage: http://github.com/recurly/recurly-client-ruby
129
- licenses:
175
+ licenses:
130
176
  - MIT
131
177
  post_install_message:
132
- rdoc_options:
178
+ rdoc_options:
133
179
  - --main
134
180
  - README.markdown
135
- require_paths:
181
+ require_paths:
136
182
  - lib
137
- required_ruby_version: !ruby/object:Gem::Requirement
183
+ required_ruby_version: !ruby/object:Gem::Requirement
138
184
  none: false
139
- requirements:
140
- - - ! '>='
141
- - !ruby/object:Gem::Version
142
- version: '0'
143
- required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ hash: 3
189
+ segments:
190
+ - 0
191
+ version: "0"
192
+ required_rubygems_version: !ruby/object:Gem::Requirement
144
193
  none: false
145
- requirements:
146
- - - ! '>='
147
- - !ruby/object:Gem::Version
148
- version: '0'
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ hash: 3
198
+ segments:
199
+ - 0
200
+ version: "0"
149
201
  requirements: []
202
+
150
203
  rubyforge_project:
151
- rubygems_version: 1.8.10
204
+ rubygems_version: 1.6.2
152
205
  signing_key:
153
206
  specification_version: 3
154
207
  summary: Recurly API Client
155
208
  test_files: []
209
+