yahoo_store_api 0.2.1 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/main.yml +41 -0
- data/.gitignore +2 -0
- data/.vscode/settings.json +8 -0
- data/README.md +1 -1
- data/lib/yahoo_store_api/version.rb +1 -1
- data/lib/yahoo_store_api.rb +1 -1
- data/yahoo_store_api.gemspec +5 -5
- metadata +28 -15
- data/.travis.yml +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8e3c77f0e324cdb0b2e40164a7bd6e8173e5be00b083710474fffe37c736cf7
|
4
|
+
data.tar.gz: d75bb97d0ebae53b3cc82ebdc84e580475c0a17c24fbb5efafbef9d7632b42c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c892e7ab6e1e8427b4c6ed6c901bb2fc4ec43b20b55e469722c17970846fa809f4a471085f5357ada5b1b479bb54b24c93d46ebe3a3591ce5de6b70cd4290976
|
7
|
+
data.tar.gz: dd6560d0130e2f092ca8ae804bbf41a6cbc50ab8e417de514ad98ee4875882d11ca0a5b20c78082bc31c0131fbe18065d29ead07c10cf02a3a77fb87894abc1c
|
@@ -0,0 +1,41 @@
|
|
1
|
+
name: Ruby
|
2
|
+
|
3
|
+
on: [push]
|
4
|
+
|
5
|
+
jobs:
|
6
|
+
build:
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
strategy:
|
9
|
+
matrix:
|
10
|
+
ruby: [2.5, 2.6, 2.7, 3.0]
|
11
|
+
name: Ruby ${{ matrix.ruby }}
|
12
|
+
|
13
|
+
steps:
|
14
|
+
- uses: actions/checkout@v2
|
15
|
+
- uses: actions/cache@v2
|
16
|
+
with:
|
17
|
+
path: vendor/bundle
|
18
|
+
key: bundle-${{ hashFiles('**/Gemfile.lock') }}
|
19
|
+
|
20
|
+
- name: Set up Ruby
|
21
|
+
uses: actions/setup-ruby@v1
|
22
|
+
with:
|
23
|
+
ruby-version: ${{ matrix.ruby }}
|
24
|
+
bundler-cache: true
|
25
|
+
|
26
|
+
- name: Install bundler
|
27
|
+
run: gem install bundler
|
28
|
+
|
29
|
+
- name: Bundle install
|
30
|
+
run: bundle install --jobs 4 --retry 3
|
31
|
+
env:
|
32
|
+
RAILS_ENV: test
|
33
|
+
|
34
|
+
- name: Run test
|
35
|
+
run: rake test
|
36
|
+
env:
|
37
|
+
RAILS_ENV: test
|
38
|
+
YOUR_SELLER_ID: YOUR_SELLER_ID
|
39
|
+
YOUR_APPLICATION_ID: YOUR_APPLICATION_ID
|
40
|
+
YOUR_APPLICATION_SECRET: YOUR_APPLICATION_SECRET
|
41
|
+
YOUR_REFRESH_TOKEN: YOUR_REFRESH_TOKEN
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# YahooStoreApi
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/yahoo_store_api.svg)](https://badge.fury.io/rb/yahoo_store_api)
|
4
|
-
[![
|
4
|
+
[![Ruby](https://github.com/t4traw/yahoo_store_api/actions/workflows/main.yml/badge.svg)](https://github.com/t4traw/yahoo_store_api/actions/workflows/main.yml)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/t4traw/yahoo_store_api/badges/gpa.svg)](https://codeclimate.com/github/t4traw/yahoo_store_api)
|
6
6
|
|
7
7
|
Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを簡単に叩けるrubyラッパーです。
|
data/lib/yahoo_store_api.rb
CHANGED
@@ -37,7 +37,7 @@ module YahooStoreApi
|
|
37
37
|
def access_token_connection
|
38
38
|
Faraday.new(url: ACCESS_TOKEN_ENDPOINT) do |c|
|
39
39
|
c.adapter Faraday.default_adapter
|
40
|
-
c.authorization :Basic, Base64.strict_encode64("#{@application_id}:#{@application_secret}")
|
40
|
+
c.request :authorization, :Basic, Base64.strict_encode64("#{@application_id}:#{@application_secret}")
|
41
41
|
c.headers["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8"
|
42
42
|
end
|
43
43
|
end
|
data/yahoo_store_api.gemspec
CHANGED
@@ -21,15 +21,15 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.add_dependency "faraday", "
|
25
|
-
spec.add_dependency "activesupport", ">= 4.2.8"
|
26
|
-
spec.add_dependency "activemodel", ">= 4.2.8"
|
24
|
+
spec.add_dependency "faraday", "~> 1.8.0"
|
25
|
+
spec.add_dependency "activesupport", ">= 4.2.8", "< 7.0"
|
26
|
+
spec.add_dependency "activemodel", ">= 4.2.8", "< 7.0"
|
27
27
|
spec.add_dependency "builder"
|
28
28
|
|
29
29
|
spec.add_development_dependency "bundler"
|
30
30
|
spec.add_development_dependency "rake", ">= 12.3.3"
|
31
|
-
spec.add_development_dependency "pry", "~> 0.
|
32
|
-
spec.add_development_dependency "minitest", "~> 5.
|
31
|
+
spec.add_development_dependency "pry", "~> 0.14"
|
32
|
+
spec.add_development_dependency "minitest", "~> 5.12"
|
33
33
|
spec.add_development_dependency "minitest-reporters"
|
34
34
|
spec.add_development_dependency "webmock"
|
35
35
|
spec.add_development_dependency "vcr"
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yahoo_store_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- t4traw
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.8.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 1.8.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: activesupport
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -31,6 +31,9 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 4.2.8
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '7.0'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,6 +41,9 @@ dependencies:
|
|
38
41
|
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: 4.2.8
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '7.0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: activemodel
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -45,6 +51,9 @@ dependencies:
|
|
45
51
|
- - ">="
|
46
52
|
- !ruby/object:Gem::Version
|
47
53
|
version: 4.2.8
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '7.0'
|
48
57
|
type: :runtime
|
49
58
|
prerelease: false
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -52,6 +61,9 @@ dependencies:
|
|
52
61
|
- - ">="
|
53
62
|
- !ruby/object:Gem::Version
|
54
63
|
version: 4.2.8
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '7.0'
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
name: builder
|
57
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,28 +112,28 @@ dependencies:
|
|
100
112
|
requirements:
|
101
113
|
- - "~>"
|
102
114
|
- !ruby/object:Gem::Version
|
103
|
-
version: 0.
|
115
|
+
version: '0.14'
|
104
116
|
type: :development
|
105
117
|
prerelease: false
|
106
118
|
version_requirements: !ruby/object:Gem::Requirement
|
107
119
|
requirements:
|
108
120
|
- - "~>"
|
109
121
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
122
|
+
version: '0.14'
|
111
123
|
- !ruby/object:Gem::Dependency
|
112
124
|
name: minitest
|
113
125
|
requirement: !ruby/object:Gem::Requirement
|
114
126
|
requirements:
|
115
127
|
- - "~>"
|
116
128
|
- !ruby/object:Gem::Version
|
117
|
-
version: '5.
|
129
|
+
version: '5.12'
|
118
130
|
type: :development
|
119
131
|
prerelease: false
|
120
132
|
version_requirements: !ruby/object:Gem::Requirement
|
121
133
|
requirements:
|
122
134
|
- - "~>"
|
123
135
|
- !ruby/object:Gem::Version
|
124
|
-
version: '5.
|
136
|
+
version: '5.12'
|
125
137
|
- !ruby/object:Gem::Dependency
|
126
138
|
name: minitest-reporters
|
127
139
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,8 +198,9 @@ extensions: []
|
|
186
198
|
extra_rdoc_files: []
|
187
199
|
files:
|
188
200
|
- ".env.sample"
|
201
|
+
- ".github/workflows/main.yml"
|
189
202
|
- ".gitignore"
|
190
|
-
- ".
|
203
|
+
- ".vscode/settings.json"
|
191
204
|
- Gemfile
|
192
205
|
- LICENSE
|
193
206
|
- README.md
|
@@ -211,7 +224,7 @@ files:
|
|
211
224
|
homepage: https://github.com/t4traw/yahoo_store_api
|
212
225
|
licenses: []
|
213
226
|
metadata: {}
|
214
|
-
post_install_message:
|
227
|
+
post_install_message:
|
215
228
|
rdoc_options: []
|
216
229
|
require_paths:
|
217
230
|
- lib
|
@@ -226,8 +239,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
239
|
- !ruby/object:Gem::Version
|
227
240
|
version: '0'
|
228
241
|
requirements: []
|
229
|
-
rubygems_version: 3.
|
230
|
-
signing_key:
|
242
|
+
rubygems_version: 3.2.32
|
243
|
+
signing_key:
|
231
244
|
specification_version: 4
|
232
245
|
summary: Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを簡単に叩けるrubyラッパー
|
233
246
|
test_files: []
|