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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f86fa47fb0bde59dcd98d13ccc11c4d44d3e6c37
4
- data.tar.gz: 46f292d77c78a884f6c3c03298c0c436a97f64d0
3
+ metadata.gz: 6482bc17f6c22a3d01e1b0c3ec61b56c5f105674
4
+ data.tar.gz: 056afe083b350e3624f8dffbf9dd5bacd545a32e
5
5
  SHA512:
6
- metadata.gz: b4c17e5e01d426a5d403603cb55f51a46f0f264b6612dfda51893391d32d8da4480455a742cf0dd7bff2394db02f29948d14253eaf6bc101bf47e52a7fb1eeb4
7
- data.tar.gz: 0cb1ab1632b852481f23b9f59524c7fa1a8a8764180d28956252be6bfae96525d42592e24cb01af856bfc8cea71077b67c15510236580615a04d38bdf5e134e2
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.2'
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
@@ -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
- def postpone next_renewal_date
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
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 3
5
- PATCH = 2
5
+ PATCH = 3
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
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.2
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-10 00:00:00.000000000 Z
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.4.1
120
+ rubygems_version: 2.2.2
121
121
  signing_key:
122
122
  specification_version: 4
123
123
  summary: Recurly API Client