rakuten_product_api 0.2.0 → 0.4.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
  SHA256:
3
- metadata.gz: 40785ddd9e89396be1d1e1831b0bda84092e17468308df8a9d381c15fa3124b4
4
- data.tar.gz: 6bd0cc952f0a5f31a324b9d01f861c24dc8acb17c0745782079702db1f57856e
3
+ metadata.gz: 640eb7cc6cf605f6baaad814dc944e842a55ec982b0a226c3f038d2c03a0c3d8
4
+ data.tar.gz: 4f5dcc9b63280cf648b697b8aafe3f0b44ce99659dbf0ba5f7950a0c5b498400
5
5
  SHA512:
6
- metadata.gz: 76780f846ad13f4098a3eb1eaca268eddb966053baed830f5a531857f33065998e379e840dd594d0d11124339e3885c1cd0719e7ed279e850f6f7c76d50dd917
7
- data.tar.gz: 22a2d56430510a521f8b3ca7b3ff881eea656033b4ac56c7e7b540eb344c0e77fa80f7c73045951892641d576b8db6713dac722765931c8a7101635065717038
6
+ metadata.gz: d111c75c1f8c10f43628afed263ff978b9b10f58b4a6edadca6a17318c035b9d9342e49c204e0270f3189c7521e3f262fcab00d1515516448c3eef4745eddc44
7
+ data.tar.gz: 518946a3c24f149be973bbaf9b95e3e62de2d53c0023d0062d30abe8cef147021d38d03bc761669fdf753e1ae8b0190ec4513f727f72765b49a44fa42d71497c
data/.rubocop.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.4
2
+ TargetRubyVersion: 3.0
3
3
 
4
4
  Style/StringLiterals:
5
5
  Enabled: true
data/CHANGELOG.md CHANGED
@@ -1,5 +1,6 @@
1
- ## [Unreleased]
2
1
 
2
+ ## [0.3.0] - Update dependencies
3
+ ## [0.2.0] - First public version
3
4
  ## [0.1.0] - 2021-02-14
4
5
 
5
6
  - Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rakuten_product_api (0.2.0)
4
+ rakuten_product_api (0.4.0)
5
5
  nokogiri (~> 1)
6
6
 
7
7
  GEM
@@ -9,32 +9,35 @@ GEM
9
9
  specs:
10
10
  ast (2.4.2)
11
11
  byebug (11.1.3)
12
- minitest (5.14.3)
13
- nokogiri (1.11.1-x86_64-darwin)
12
+ minitest (5.15.0)
13
+ nokogiri (1.13.4-arm64-darwin)
14
14
  racc (~> 1.4)
15
- parallel (1.20.1)
16
- parser (3.0.0.0)
15
+ nokogiri (1.13.4-x86_64-darwin)
16
+ racc (~> 1.4)
17
+ parallel (1.22.1)
18
+ parser (3.1.2.0)
17
19
  ast (~> 2.4.1)
18
- racc (1.5.2)
19
- rainbow (3.0.0)
20
- rake (13.0.3)
21
- regexp_parser (2.0.3)
22
- rexml (3.2.4)
23
- rubocop (1.9.1)
20
+ racc (1.6.0)
21
+ rainbow (3.1.1)
22
+ rake (13.0.6)
23
+ regexp_parser (2.3.0)
24
+ rexml (3.2.5)
25
+ rubocop (1.27.0)
24
26
  parallel (~> 1.10)
25
- parser (>= 3.0.0.0)
27
+ parser (>= 3.1.0.0)
26
28
  rainbow (>= 2.2.2, < 4.0)
27
29
  regexp_parser (>= 1.8, < 3.0)
28
30
  rexml
29
- rubocop-ast (>= 1.2.0, < 2.0)
31
+ rubocop-ast (>= 1.16.0, < 2.0)
30
32
  ruby-progressbar (~> 1.7)
31
33
  unicode-display_width (>= 1.4.0, < 3.0)
32
- rubocop-ast (1.4.1)
33
- parser (>= 2.7.1.5)
34
+ rubocop-ast (1.17.0)
35
+ parser (>= 3.1.1.0)
34
36
  ruby-progressbar (1.11.0)
35
- unicode-display_width (2.0.0)
37
+ unicode-display_width (2.1.0)
36
38
 
37
39
  PLATFORMS
40
+ arm64-darwin-21
38
41
  x86_64-darwin-20
39
42
 
40
43
  DEPENDENCIES
@@ -45,4 +48,4 @@ DEPENDENCIES
45
48
  rubocop (~> 1.7)
46
49
 
47
50
  BUNDLED WITH
48
- 2.2.8
51
+ 2.3.10
data/README.md CHANGED
@@ -45,7 +45,7 @@ Once you have configured the library, you can create a client.
45
45
  client = RakutenProductApi::Client.new
46
46
 
47
47
  client.username
48
- => "dkam"
48
+ => "your-rakuten-username"
49
49
  ```
50
50
 
51
51
  This client should be threadsafe. Configuration values are local to your instance.
@@ -68,7 +68,7 @@ client.access_token
68
68
  ## Querying
69
69
  ### Search for keywords:
70
70
 
71
- You can specify which merchants to query by using `mid: 38131`
71
+ You can specify which merchants to query by using mid paramater. For example Kobo Australia would be: `mid: 38131`
72
72
 
73
73
  ```ruby
74
74
  results = client.search(keyword: 'Murderbot', mid: 38131)
@@ -60,7 +60,7 @@ module RakutenProductApi
60
60
  def process_auth_response(res)
61
61
  if res.code == "200"
62
62
  doc = JSON.parse(res.body)
63
- @expires_in = doc["expires_in"].to_i
63
+ @expires_in = doc["expires_in"]&.to_i
64
64
  @refresh_token = doc["refresh_token"]
65
65
  @access_token = doc["access_token"]
66
66
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RakutenProductApi
4
- VERSION = "0.2.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rakuten_product_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Milne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-15 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.2.3
87
+ rubygems_version: 3.3.7
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: Client for Rakutenmarketing.com.