recurly 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of recurly might be problematic. Click here for more details.
- data/README.markdown +8 -2
- data/lib/recurly/api/{net_http.rb → net_http_adapter.rb} +2 -2
- data/lib/recurly/api.rb +2 -2
- data/lib/recurly/invoice.rb +1 -1
- data/lib/recurly/js.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- metadata +5 -5
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.
|
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.
|
55
|
+
[here](http://rubydoc.info/gems/recurly/2.0.2/frames).
|
50
56
|
|
51
57
|
|
52
58
|
## Contributing
|
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
|
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/
|
73
|
+
require 'recurly/api/net_http_adapter'
|
data/lib/recurly/invoice.rb
CHANGED
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([
|
68
|
+
digest([timestamp = timestamp.to_i, claim, params])
|
69
69
|
)
|
70
70
|
"#{signature}-#{timestamp}"
|
71
71
|
end
|
data/lib/recurly/version.rb
CHANGED
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
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-
|
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/
|
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
|