emailyak 0.0.3 → 0.0.4

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.
@@ -1,3 +1,3 @@
1
1
  module Emailyak
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/emailyak.rb CHANGED
@@ -135,7 +135,7 @@ module EmailYak
135
135
  payload = nil
136
136
  else
137
137
  headers = {:content_type => 'application/json'}
138
- payload = JSON.encode(params)
138
+ payload = JSON.generate(params)
139
139
  end
140
140
  opts = {
141
141
  :method => method,
@@ -172,7 +172,7 @@ module EmailYak
172
172
  rbody = response.body
173
173
  rcode = response.code
174
174
  begin
175
- resp = JSON::Pure::Parser.parse(rbody)
175
+ resp = JSON.parse(rbody)
176
176
  rescue
177
177
  raise APIError.new("Invalid response object from API: #{rbody.inspect} (HTTP response code was #{rcode})")
178
178
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emailyak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: