shoptet 0.0.29 → 0.0.30

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: 866b74c908239757de5a5dde121f939888c1b3308a7bcf83496af4882bda642a
4
- data.tar.gz: bdbea0cb42f72f45d0b3021e292820c536ca4fd7ac228a756836ae4820e84626
3
+ metadata.gz: 671a3a74eccf368f260d0cf4706cb1ba166012164bb44460f66713e9dde87998
4
+ data.tar.gz: 37a1695eb6a8a84479169399d02663792c17dc15ffe0fb735ecf5a413a38e82e
5
5
  SHA512:
6
- metadata.gz: 4e17a88fa2c52bae48d3b933ff99c35a6ceffbebb690b1798c7c8da02989f1e9fb1c8ddbdea65dc2b69f56133b87da3180b9efa764fea0078272aa7c329ddd66
7
- data.tar.gz: 9cdfcc94049272e0a5a4ca81e283166b4579a35e5f47b2d8586b3ce0138916142f5f02c6ca3ff9515cba34232f1074d9d1a51d706815ed180e331fc3319b51d4
6
+ metadata.gz: 7572c405b6db590e09e16a2232f5925c883964ec7d06ca009e1e7056494eb44fcb8e35513d460cc0d0c17066b7997c823f6960c2f2b59bfa77b65ced9dba4694
7
+ data.tar.gz: 80f326ab967e6641513d30791c1b140ab952a1df4552c446809ce469857181e657b322640fd60d3eaefe4c65097f60d83af3d333ec46df291340e16b532f8fff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shoptet (0.0.19)
4
+ shoptet (0.0.29)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/lib/shoptet.rb CHANGED
@@ -23,7 +23,7 @@ class Shoptet
23
23
  end
24
24
 
25
25
  def self.version
26
- '0.0.29'
26
+ '0.0.30'
27
27
  end
28
28
 
29
29
  def self.ar_on_token_error(model)
@@ -1,5 +1,5 @@
1
1
  require 'net/http'
2
- require 'oj'
2
+ require 'json'
3
3
 
4
4
  class Shoptet
5
5
  class Request
@@ -17,7 +17,7 @@ class Shoptet
17
17
  end
18
18
 
19
19
  response = handle_net_timeouts { http.request(request) }
20
- parsed_body = Oj.load(response.body, mode: :compat)
20
+ parsed_body = JSON.parse(response.body)
21
21
 
22
22
  unless parsed_body
23
23
  message = "Status code: #{response.code}, url: #{url}"
@@ -35,7 +35,7 @@ class Shoptet
35
35
  handle_net_timeouts { http.request(request) }
36
36
  end
37
37
 
38
- Oj.load(response.body, mode: :compat)
38
+ JSON.parse(response.body)
39
39
  end
40
40
 
41
41
  private
data/shoptet.gemspec CHANGED
@@ -22,7 +22,5 @@ Gem::Specification.new do |spec|
22
22
  end
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- spec.add_dependency 'oj'
26
-
27
25
  spec.add_development_dependency 'irb'
28
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoptet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - Premysl Donat
@@ -10,20 +10,6 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2021-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: oj
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: irb
29
15
  requirement: !ruby/object:Gem::Requirement