setsuzoku 0.10.11 → 0.10.12

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
  SHA256:
3
- metadata.gz: eb1a5e93f301eb0f7b13c155294e71c689a3492a445b8997321a6e1224f62189
4
- data.tar.gz: e2d7a2fd0baee79485215db9dcd2a8ce055fb15cfe57661ff83e9c912f97f8ea
3
+ metadata.gz: 39fda212a16a449e09d41daff1b4dac7188dadcee5e179f8feb5bf28449aa662
4
+ data.tar.gz: ba5b6a928f35b2cf319ee0cac4569d72f14ed5c3d11e52ed48bbfb05bd78aa4b
5
5
  SHA512:
6
- metadata.gz: dd505e2884888e977d7565e4da9dd55cfc86ad1139f6ec1823185cb2079f92213b18b0bb6b728914ee3c690d4cf29d4b4b7d49746cb2d7f80ac055f9a7169920
7
- data.tar.gz: 245653ac837831f0a8112770f439c08f67aedeb5da8f5aa5269d6f3888d78acdae4b7d360022058425c1acaaa6668e342a24bde3fafa49d59705fb44f5cff72a
6
+ metadata.gz: 9ad9ee7d67eedf16c91549dd7e12ecd18e6783f6debbe1615259e5d183ff4eb3367b46cbfae092645394958f3d57ffaeb8ac29c30b42b3aa725dd83231192c7a
7
+ data.tar.gz: 9eedaf2642a3537d5c02284578319ec859329425d47ebfade8a7793c169b7e019dca0d0f0d4a6435cf05e93768190622dc7ce2e3fed53895f6b2fbb30cf9b85b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- setsuzoku (0.10.11)
4
+ setsuzoku (0.10.12)
5
5
  activesupport (~> 5.0)
6
6
  faraday (~> 0.11)
7
7
  httparty (~> 0.16.4)
@@ -28,7 +28,7 @@ GEM
28
28
  httparty (0.16.4)
29
29
  mime-types (~> 3.0)
30
30
  multi_xml (>= 0.5.2)
31
- i18n (1.8.5)
31
+ i18n (1.8.3)
32
32
  concurrent-ruby (~> 1.0)
33
33
  mime-types (3.3.1)
34
34
  mime-types-data (~> 3.2015)
@@ -37,7 +37,7 @@ GEM
37
37
  minitest (5.14.1)
38
38
  multi_xml (0.6.0)
39
39
  multipart-post (2.1.1)
40
- nokogiri (1.10.10)
40
+ nokogiri (1.10.9)
41
41
  mini_portile2 (~> 2.4.0)
42
42
  public_suffix (4.0.5)
43
43
  rake (10.5.0)
@@ -265,9 +265,12 @@ module Setsuzoku
265
265
  url, body = plugin.api_strategy.replace_dynamic_vars(full_url: url, req_params: req_params)
266
266
  end
267
267
 
268
- case propz[:request_format]
269
- when :file
268
+ if propz[:request_format] == :file
270
269
  body = body.to_json if body.is_a?(Hash)
270
+ elsif format == :json
271
+ #faraday sorts hash keys for some reason
272
+ body = body.to_json if body.is_a?(Hash)
273
+ body = JSON.parse(body).sort.to_h
271
274
  end
272
275
  [url, body]
273
276
  rescue
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Setsuzoku
5
- VERSION = '0.10.11'
5
+ VERSION = '0.10.12'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: setsuzoku
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.11
4
+ version: 0.10.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Stadtler