paid 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +7 -0
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/paid/api_method.rb +6 -1
- data/lib/paid/invoice.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74169da7250db9559dcd77293124823e3309bbe9
|
4
|
+
data.tar.gz: aede8ef411a5f6fae643384a529bf19dc21cd0ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82105210a908f6edaf4b2b77bf73942f809d94dbe99ce16ed9aa06fd2dcf18c493447fabf12ba9717acaa5da9f45bb743b9e31a3c75bf71e23629d41ba1d9775
|
7
|
+
data.tar.gz: d161fc708ed9e0a23cbe739bcfd37ab32308a78538a5dc21912f45bdeda5abfd6f72ecec1aa31ca4a44a988f8bd0dd644db11249f86c1a5dc22dc9fa9b208e85
|
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Paid Ruby bindings ![Travis CI Status](https://travis-ci.org/paidapi/paid-ruby.svg?branch=master)
|
1
|
+
# Paid Ruby bindings ![Travis CI Status](https://travis-ci.org/paidapi/paid-ruby.svg?branch=master) [![Code Climate](https://codeclimate.com/github/paidapi/paid-ruby/badges/gpa.svg)](https://codeclimate.com/github/paidapi/paid-ruby)
|
2
2
|
|
3
3
|
|
4
4
|
## Installation
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.3
|
data/lib/paid/api_method.rb
CHANGED
@@ -46,7 +46,12 @@ module Paid
|
|
46
46
|
begin
|
47
47
|
json = Util.symbolize_keys(JSON.parse(@response_body))
|
48
48
|
rescue JSON::ParserError
|
49
|
-
|
49
|
+
if @response_body.is_a?(String) && @response_body.strip.empty?
|
50
|
+
{}
|
51
|
+
else
|
52
|
+
@error = APIError.new("Unable to parse the server response as JSON.", self)
|
53
|
+
raise @error
|
54
|
+
end
|
50
55
|
end
|
51
56
|
end
|
52
57
|
|
data/lib/paid/invoice.rb
CHANGED