omniauth-hotmart 1.0.0 → 1.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fada182bf324c28345db1842e44bcbf163faeff
4
- data.tar.gz: 6402c25e9d436eafd1ceeb05f2cc0fad8abf81ef
3
+ metadata.gz: 56edf6552d82260997e27a6027c94af5adcc2dcc
4
+ data.tar.gz: 726d97563f0789e3e362ae87c9b821e8cf9f78dd
5
5
  SHA512:
6
- metadata.gz: 322003a2a779fdfa8d9d9e5b996d8c585b98c3d749673e4cfb635505367e3108303a16e76df4e5f587c527fba9f2f18f5a8166dc5d8007189bbfa9b7083d176e
7
- data.tar.gz: 960e46f9523ce7ed7f52532a1a61f5695d4f6714cbbcd02eb10a5b8df4ac25c09e70f45151448d37efbcf2bcf9e3ed74373402d916eb1ae75e54c3e7da05bba8
6
+ metadata.gz: 66cf8bb6fca32b37b048bd2f7aea6a5b7dbc4150328f5d4fe567c2377be6ac0b7dcc5312f9d05a9168d1bb000ac498754cbf8dc15f184be8d0d39ac448e84c35
7
+ data.tar.gz: 61eeabb641573d04bfefd0ac4a7482c3e94cc934011db681b5838903a56927b294ded8756a5f9af0cdfc68b41a982d495a076c7b2ddcbbd0ca529bb7f9c57190
@@ -1,4 +1,4 @@
1
- require 'json'
1
+ require 'multi_json'
2
2
 
3
3
  module OmniAuth
4
4
  module Hotmart
@@ -14,7 +14,7 @@ module OmniAuth
14
14
  def call(request_env)
15
15
  if request_env.url.path == "/oauth/access_token"
16
16
  @app.call(request_env).on_complete do |response_env|
17
- response_env.body = JSON.generate(JSON.parse(response_env.body)["TokenResponse"])
17
+ response_env.body = MultiJson.dump(MultiJson.load(response_env.body)["TokenResponse"])
18
18
  end
19
19
  else
20
20
  @app.call(request_env)
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module Hotmart
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-hotmart
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joao Paulo Motta Oliveira Silva