faxage 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/faxage/send_fax.rb +2 -7
- data/lib/faxage/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c1512cb5cf142d6b987b7225fb3f203595975b796330ceb9ba2020ce939e0b5
|
4
|
+
data.tar.gz: 6143a653ef0e6c7f9cd5ff68514be1df5856a5d7dbe41107c50c1762f90a5be6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31069b8d7269bec855b74486c17ef6a773e7e4808c938a00782a9938d4d8cad7408d74e99307cd7a017651400056db2537294a6840d7f934eade76011d3638ce
|
7
|
+
data.tar.gz: 43a988233dbffca431684b2189f08034f351d946cef00a6ab96ab76f0891dd97e206943d428d3d885831a3c76c256baa58b8f0ce389de68e0514474b622287ca
|
data/Gemfile.lock
CHANGED
data/lib/faxage/send_fax.rb
CHANGED
@@ -55,7 +55,7 @@ module Faxage
|
|
55
55
|
response = self.class.post(subdirectory,
|
56
56
|
body: body
|
57
57
|
)
|
58
|
-
|
58
|
+
puts response
|
59
59
|
if response.parsed_response.nil?
|
60
60
|
raise NoResponseError.new("An empty response was returned from Faxage.")
|
61
61
|
elsif response.parsed_response.include?("ERR01: Database connection failed")
|
@@ -73,13 +73,8 @@ module Faxage
|
|
73
73
|
elsif response.parsed_response.include?("ERR15: Invalid Job ID")
|
74
74
|
raise InvalidJobIdError.new("Internal FAXAGE error – the job was not properly inserted into our database.")
|
75
75
|
else
|
76
|
-
|
77
|
-
data = {
|
78
|
-
job_id: parsed_response.to_i
|
79
|
-
}
|
80
|
-
return data
|
76
|
+
return response.parsed_response
|
81
77
|
end
|
82
|
-
return response.parsed_response
|
83
78
|
end
|
84
79
|
end
|
85
80
|
end
|
data/lib/faxage/version.rb
CHANGED