mkmapi 0.1.9 → 0.1.10

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: 9e702399c7d9be2faa2e6179489bf7f439e2794c3f25094f93ca5045adc2cb78
4
- data.tar.gz: 5c8cc7c456e543e567bdf25613d9238b54e1fdcaa712e6c3b9b8a170f3f101ec
3
+ metadata.gz: c9101bb4606b8e2684c54044a84f492f861365edc2c86d5b8cdbe69956dafd51
4
+ data.tar.gz: 25963cd9abf9e46f743c5e54e3b83025ca734d556296209e68f9355b993bae60
5
5
  SHA512:
6
- metadata.gz: 92f214d2b1eada3444eeac0eb9542b7989efad0784d46b37d81eb63294838761509bb0116211a1876dd9c6127dc9a88eaa5b6622eef33785712391b00162232f
7
- data.tar.gz: 6bc9d34e7fe407ed6a42f28e78c48790d9a7c49e6fe02d67602cd4d151d18a0e34b81e8fccfff5c8f1ea47571ea824e5561219a81f925a1ac7236605b3f58178
6
+ metadata.gz: e7b29a9c67c22496e787392e3b7c22f80988c8abcd8c87a452259b44bd302d809e410989c52d0afb90d1c62fea5c8f7d9db71aeaf76497641585fd74c8cd087b
7
+ data.tar.gz: 30cff9098d33b78260f812bd54d260bf75b2007dadd55e9a8ce6ae52f571d2ea3edd963f0f4cd83ee5b65a1a627913ad39b79fed6985df0cef59a6a208d9b81a
@@ -27,12 +27,16 @@ module Mkmapi
27
27
  json_path = "output.json/#{path}"
28
28
  endpoint = connection.url_prefix.to_s + "/" + json_path
29
29
 
30
- @last = connection.send(method, json_path, query_params, authorization: oauth(method, endpoint))
30
+ @last = connection.send(method, json_path, query_params, authorization: oauth(method, endpoint, {}, query_params))
31
31
  Oj.load(@last.body)
32
32
  end
33
33
 
34
34
  def oauth(method, url, options = {}, query = {})
35
- header = SimpleOAuth::Header.new(method, url, options, auth)
35
+ url_with_params = url
36
+ if (query.present?)
37
+ url_with_params = url + "?" + query.to_query
38
+ end
39
+ header = SimpleOAuth::Header.new(method, url_with_params, options, auth)
36
40
 
37
41
  signed_attributes = { realm: url }.update(header.signed_attributes)
38
42
  attributes = signed_attributes.map { |(k, v)| %(#{k}="#{v}") }
@@ -5,8 +5,7 @@ require "stringio"
5
5
  module Mkmapi
6
6
  class Marketplace < Struct.new(:agent)
7
7
  def priceguide(game_id = 1)
8
- # json_data = agent.get("priceguide", { "idGame" => game_id })
9
- json_data = agent.get("priceguide")
8
+ json_data = agent.get("priceguide", { "idGame" => game_id })
10
9
 
11
10
  if (json_data && json_data["priceguidefile"])
12
11
  data = Base64.decode64(json_data["priceguidefile"])
@@ -1,3 +1,3 @@
1
1
  module Mkmapi
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mkmapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arjen Brandenburgh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-29 00:00:00.000000000 Z
11
+ date: 2020-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday