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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4b8bb8101b2ee151ff6dd04b9013e43b9c8c08e2c5b6df850e2daf6ec877e4f
4
- data.tar.gz: 8720b2c3b0f7f544d1a9c227266e81533c6ccba388f1a4186c6ef965b2ec3cbe
3
+ metadata.gz: 5c1512cb5cf142d6b987b7225fb3f203595975b796330ceb9ba2020ce939e0b5
4
+ data.tar.gz: 6143a653ef0e6c7f9cd5ff68514be1df5856a5d7dbe41107c50c1762f90a5be6
5
5
  SHA512:
6
- metadata.gz: a9ce2d548767ab2f9f36d44b2d25013ae7e273d8dc57fab11c490f9c00736aba98d7057135c89dc5fc766141b5c5ad575fcd3b6760aaeb982c08f3a6f392d5ed
7
- data.tar.gz: 7c82e22e5c0e341cfc78bd7deeed0951828cdb3d2812c2892cea2dde3bb9405924626b1486e6b023edc1c667763c522a9030373aaf59bf3534bbb94b789ee94a
6
+ metadata.gz: 31069b8d7269bec855b74486c17ef6a773e7e4808c938a00782a9938d4d8cad7408d74e99307cd7a017651400056db2537294a6840d7f934eade76011d3638ce
7
+ data.tar.gz: 43a988233dbffca431684b2189f08034f351d946cef00a6ab96ab76f0891dd97e206943d428d3d885831a3c76c256baa58b8f0ce389de68e0514474b622287ca
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- faxage (0.1.1)
4
+ faxage (0.1.2)
5
5
  httparty
6
6
 
7
7
  GEM
@@ -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
- parsed_response = response.parsed_response.gsub("JOBID:", "").gsub(" ", "")
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
@@ -1,3 +1,3 @@
1
1
  module Faxage
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: faxage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Dias