recurly 2.0.1 → 2.0.2

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.1'
15
+ gem 'recurly', '~> 2.0.2'
16
16
  ```
17
17
 
18
18
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -39,6 +39,12 @@ Configure the client library with the credentials you find at
39
39
  `https://{subdomain}.recurly.com/developer/api_access` (replace `{subdomain}`
40
40
  with your Recurly subdomain).
41
41
 
42
+ The default currency is USD. To override with a different code:
43
+
44
+ ``` ruby
45
+ Recurly.default_currency = 'EUR' # Assign nil to disable the default entirely.
46
+ ```
47
+
42
48
 
43
49
  ## Usage
44
50
 
@@ -46,7 +52,7 @@ Instructions and examples are available on
46
52
  [Recurly's documentation site](http://docs.recurly.com/api/basics).
47
53
 
48
54
  Recurly's gem API is available
49
- [here](http://rubydoc.info/gems/recurly/2.0.1/frames).
55
+ [here](http://rubydoc.info/gems/recurly/2.0.2/frames).
50
56
 
51
57
 
52
58
  ## Contributing
@@ -3,7 +3,7 @@ require 'net/https'
3
3
  module Recurly
4
4
  class API
5
5
  module Net
6
- module HTTP
6
+ module HTTPAdapter
7
7
  private
8
8
 
9
9
  METHODS = {
@@ -72,6 +72,6 @@ module Recurly
72
72
  end
73
73
  end
74
74
 
75
- extend Net::HTTP
75
+ extend Net::HTTPAdapter
76
76
  end
77
77
  end
data/lib/recurly/api.rb CHANGED
@@ -57,7 +57,7 @@ module Recurly
57
57
 
58
58
  # @return [String]
59
59
  def user_agent
60
- "Recurly/#{Version::VERSION}; #{RUBY_DESCRIPTION}"
60
+ "Recurly/#{Version}; #{RUBY_DESCRIPTION}"
61
61
  end
62
62
 
63
63
  private
@@ -70,4 +70,4 @@ module Recurly
70
70
  end
71
71
  end
72
72
 
73
- require 'recurly/api/net_http'
73
+ require 'recurly/api/net_http_adapter'
@@ -30,7 +30,7 @@ module Recurly
30
30
  line_items
31
31
  transactions
32
32
  )
33
- alias to_param uuid
33
+ alias to_param invoice_number
34
34
 
35
35
  private
36
36
 
data/lib/recurly/js.rb CHANGED
@@ -65,7 +65,7 @@ module Recurly
65
65
  signature = OpenSSL::HMAC.hexdigest(
66
66
  OpenSSL::Digest::Digest.new('SHA1'),
67
67
  Digest::SHA1.digest(private_key),
68
- digest([Time.now.to_i, claim, params])
68
+ digest([timestamp = timestamp.to_i, claim, params])
69
69
  )
70
70
  "#{signature}-#{timestamp}"
71
71
  end
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 0
5
- PATCH = 1
5
+ PATCH = 2
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 1
10
- version: 2.0.1
9
+ - 2
10
+ version: 2.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Recurly
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-27 00:00:00 -07:00
18
+ date: 2011-11-01 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -147,7 +147,7 @@ files:
147
147
  - lib/recurly/add_on.rb
148
148
  - lib/recurly/adjustment.rb
149
149
  - lib/recurly/api/errors.rb
150
- - lib/recurly/api/net_http.rb
150
+ - lib/recurly/api/net_http_adapter.rb
151
151
  - lib/recurly/api.rb
152
152
  - lib/recurly/billing_info.rb
153
153
  - lib/recurly/coupon.rb