recurly 2.3.2 → 2.3.3
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.
- checksums.yaml +4 -4
- data/README.md +4 -1
- data/lib/rails/generators/recurly/config_generator.rb +8 -3
- data/lib/recurly/subscription.rb +3 -2
- data/lib/recurly/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6482bc17f6c22a3d01e1b0c3ec61b56c5f105674
|
4
|
+
data.tar.gz: 056afe083b350e3624f8dffbf9dd5bacd545a32e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fb8d75b080de1bad9fefdbf2ea6193550c2b64f44e5490872fedd958f8b76677d448760a39e8721ef043328c55f83e0899b419b1008b64a4649493c288b4931d
|
7
|
+
data.tar.gz: ec7c2244eb4408f2bbd8dada7251eb3b2a82fd8b22086b736b1508121fbe053b18caaac6abffb5ad82fa178f4388eacd74d493ba078a01633a7bf9cd5c1f250b
|
data/README.md
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.3.
|
15
|
+
gem 'recurly', '~> 2.3.3'
|
16
16
|
```
|
17
17
|
|
18
18
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
@@ -38,6 +38,9 @@ Recurly.api_key = ENV['RECURLY_API_KEY']
|
|
38
38
|
Configure the client library with
|
39
39
|
[your API credentials](https://app.recurly.com/go/developer/api_access).
|
40
40
|
|
41
|
+
`RECURLY_SUBDOMAIN` should contain subdomain for your recurly account
|
42
|
+
`RECURLY_API_KEY` is your "Private API Key" which can be found under "API Credentials" on the `api_access` admin page
|
43
|
+
|
41
44
|
The default currency is USD. To override with a different code:
|
42
45
|
|
43
46
|
``` ruby
|
@@ -6,11 +6,16 @@ module Recurly
|
|
6
6
|
# when running <tt>rails g recurly:config</tt>.
|
7
7
|
def create_recurly_file
|
8
8
|
create_file 'config/initializers/recurly.rb', <<EOF
|
9
|
-
Recurly.subdomain = ENV['RECURLY_SUBDOMAIN']
|
10
|
-
Recurly.api_key = ENV['RECURLY_API_KEY']
|
11
|
-
Recurly.js.private_key = ENV['RECURLY_JS_PRIVATE_KEY']
|
12
9
|
|
10
|
+
# Required (this should contain subdomain for your recurly account)
|
11
|
+
Recurly.subdomain = ENV['RECURLY_SUBDOMAIN']
|
12
|
+
|
13
|
+
# Required (this is your "Private API Key" which can be found under "API Credentials" in the admin panel
|
14
|
+
Recurly.api_key = ENV['RECURLY_API_KEY']
|
15
|
+
|
16
|
+
# Optional (if you want to change the default currency from USD)
|
13
17
|
# Recurly.default_currency = 'USD'
|
18
|
+
|
14
19
|
EOF
|
15
20
|
end
|
16
21
|
end
|
data/lib/recurly/subscription.rb
CHANGED
@@ -165,10 +165,11 @@ module Recurly
|
|
165
165
|
# @return [true, false] +true+ when successful, +false+ when unable to
|
166
166
|
# (e.g., the subscription is not active).
|
167
167
|
# @param next_renewal_date [Time] when the subscription should renew.
|
168
|
-
|
168
|
+
# @param bulk [boolean] set to true for bulk updates (bypassing 60 second wait).
|
169
|
+
def postpone next_renewal_date, bulk=false
|
169
170
|
return false unless link? :postpone
|
170
171
|
reload follow_link(:postpone,
|
171
|
-
:params => { :next_renewal_date => next_renewal_date }
|
172
|
+
:params => { :next_renewal_date => next_renewal_date, :bulk => bulk }
|
172
173
|
)
|
173
174
|
true
|
174
175
|
end
|
data/lib/recurly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: recurly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-09-
|
11
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
version: '0'
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
|
-
rubygems_version: 2.
|
120
|
+
rubygems_version: 2.2.2
|
121
121
|
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: Recurly API Client
|