recurly 2.8.0.rc2 → 2.8.0.rc3
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 +1 -1
- data/lib/recurly/resource.rb +10 -2
- data/lib/recurly/transaction.rb +1 -0
- data/lib/recurly/usage.rb +1 -0
- 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: 858632bc27cb9ab5afdb879b3465fcd9bf852211
|
4
|
+
data.tar.gz: e58bef94c3f63a3e3abf95b0dec28be12acc9fa6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f53e1bb38066c646379b1ed2b8981b891c9498424233b8f333e5b39b7deabfe07f6505649c4a0b007d81223f1aa465c2f969b46746a969771c41fa2c774717f
|
7
|
+
data.tar.gz: 79f7bb2723c94f82dc3daceeda2469434771af5c475ac8801f609444a08d4ce08df63365a57411d33ffa29e410d35c6a6b70a312135940b8bb9b96cadcca6c86
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Recurly [![Build Status](https://secure.travis-ci.org/recurly/recurly-client-ruby.png)](http://travis-ci.org/recurly/recurly-client-ruby) [![Gem Version](https://badge.fury.io/rb/recurly.svg)](http://badge.fury.io/rb/recurly)
|
1
|
+
# Recurly [![Build Status](https://secure.travis-ci.org/recurly/recurly-client-ruby.png?branch=master)](http://travis-ci.org/recurly/recurly-client-ruby) [![Gem Version](https://badge.fury.io/rb/recurly.svg)](http://badge.fury.io/rb/recurly)
|
2
2
|
|
3
3
|
<https://github.com/recurly/recurly-client-ruby>
|
4
4
|
|
data/lib/recurly/resource.rb
CHANGED
@@ -370,13 +370,17 @@ module Recurly
|
|
370
370
|
# @return [Resource]
|
371
371
|
# @param response [Net::HTTPResponse]
|
372
372
|
def from_response(response)
|
373
|
-
|
373
|
+
content_type = response['Content-Type']
|
374
|
+
|
375
|
+
case content_type
|
374
376
|
when %r{application/pdf}
|
375
377
|
response.body
|
376
|
-
|
378
|
+
when %r{application/xml}
|
377
379
|
record = from_xml response.body
|
378
380
|
record.instance_eval { @etag, @response = response['ETag'], response }
|
379
381
|
record
|
382
|
+
else
|
383
|
+
raise Recurly::Error, "Content-Type \"#{content_type}\" is not accepted"
|
380
384
|
end
|
381
385
|
end
|
382
386
|
|
@@ -752,6 +756,10 @@ module Recurly
|
|
752
756
|
}
|
753
757
|
end
|
754
758
|
|
759
|
+
def as_json(options = nil)
|
760
|
+
attributes.reject { |k, v| v.is_a?(Recurly::Resource::Pager) }
|
761
|
+
end
|
762
|
+
|
755
763
|
# @return [Hash] The raw hash of record href links.
|
756
764
|
def links
|
757
765
|
@links ||= {}
|
data/lib/recurly/transaction.rb
CHANGED
data/lib/recurly/usage.rb
CHANGED
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.8.0.
|
4
|
+
version: 2.8.0.rc3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -238,7 +238,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
238
238
|
version: 1.3.1
|
239
239
|
requirements: []
|
240
240
|
rubyforge_project:
|
241
|
-
rubygems_version: 2.5.
|
241
|
+
rubygems_version: 2.4.5.2
|
242
242
|
signing_key:
|
243
243
|
specification_version: 4
|
244
244
|
summary: Recurly API Client
|