yahoo_store_api 0.1.1 → 0.2.0

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
- SHA1:
3
- metadata.gz: b74be565c454130d107b1bd5705a7ef39afa9396
4
- data.tar.gz: ba27dbbccbe6b8f7487baabd81385a3112a6893b
2
+ SHA256:
3
+ metadata.gz: f425884881906edb17b5b1901b37091ca193f0e14190bb6cacc1fc62c3d58856
4
+ data.tar.gz: 316bd70561649a4a1b7620c754fadc7d04138732fde60b3c46f9aca3421fafdb
5
5
  SHA512:
6
- metadata.gz: 0753da206fbf5b090afa7a748662b5ea13cd6902cb13ef90ef654177099ec48aeb0ad1811f6be8450c3d02cd0f04a7dc220dfa13980da73ae0e3442c8fcc78c6
7
- data.tar.gz: 4428a024aa947261f26b852bb0a20e19f3beedc2c8fca285f45fcbbf72968b3144225879df91695820d1b437f47ad10144a0d4110b728ff04e530e2b5fc1297e
6
+ metadata.gz: 3338a934453cdff5a9d72c2577784449966f78e50addbeb7fd1b5246200a82c705b2b58ff7c2d0c4358a4e44dc352c753d6e5f5f9b83fafda02e7eda076c6122
7
+ data.tar.gz: ff49e75c26dfef845a4af1c5cf6948c4763c9bfdbf00e813fe2425e7669b2775a0d875f90174035b9e93c7e75cd3a9a62e059740c6bf3ef6731fd58f24b2fbcd
data/.env.sample ADDED
@@ -0,0 +1,4 @@
1
+ YOUR_SELLER_ID=YOUR_SELLER_ID
2
+ YOUR_APPLICATION_ID=YOUR_APPLICATION_ID
3
+ YOUR_APPLICATION_SECRET=YOUR_APPLICATION_SECRET
4
+ YOUR_REFRESH_TOKEN=foobar
data/.gitignore CHANGED
@@ -10,4 +10,4 @@
10
10
 
11
11
  .env
12
12
  .rbenv-gemsets
13
- sample.rb
13
+ sample.rb
data/.travis.yml CHANGED
@@ -1,12 +1,13 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.2.7
5
- - 2.3.4
4
+ - 2.7.2
5
+ - 2.6.6
6
+ - 2.5.8
6
7
  - ruby-head
7
8
 
8
9
  matrix:
9
10
  allow_failures:
10
11
  - rvm: ruby-head
11
12
 
12
- before_install: gem install bundler -v 1.14.6
13
+ before_install: gem install bundler -v 2.2.11
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source 'https://rubygems.org'
1
+ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in yahoo_store_api.gemspec
4
4
  gemspec
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 t4traw
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -12,6 +12,7 @@ Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを
12
12
  * 商品に関連するAPI
13
13
  * 商品参照API(`get_item`)
14
14
  * 商品登録API(`set_item`)
15
+ * 商品アップロードAPI(`upload_item_file`)
15
16
  * 商品削除API(`delete_item`)
16
17
  * 在庫に関連するAPI
17
18
  * 在庫参照API(`get_stock`)
@@ -21,6 +22,8 @@ Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを
21
22
 
22
23
  ## Installation
23
24
 
25
+ Add this line to your application's Gemfile:
26
+
24
27
  ```ruby
25
28
  gem 'yahoo_store_api'
26
29
  ```
@@ -41,11 +44,14 @@ stateやnonceなどは[Authorizationエンドポイント](https://developer.yah
41
44
 
42
45
  ストアアカウント、上で登録したアプリケーションid、シークレット、取得した認証コードでインスタンスを生成します。
43
46
 
47
+ redirect_uriにはアプリケーション登録時に設定したフルURL(もしくはカスタムURIスキーム)を指定してください。登録済みの戻り先URLが1つしかない場合は省略可能です。戻り先URLがない場合はoobを指定してください。
48
+
44
49
  ```ruby
45
- client = RmsItemApi::Client.new(
50
+ client = YahooStoreApi::Client.new(
46
51
  seller_id: YOUR_STORE_ID, # ストアアカウントid
47
52
  application_id: YOUR_APPLICATION_ID, # アプリケーションid
48
53
  application_secret: YOUR_SECRET, # シークレット
54
+ redirect_uri: 'oob', # 省略可能
49
55
  authorization_code: AUTHORIZATION_CODE # 認証コード
50
56
  )
51
57
  ```
@@ -57,7 +63,7 @@ puts client.refresh_token
57
63
  ```
58
64
 
59
65
  ```ruby
60
- client = RmsItemApi::Client.new(
66
+ client = YahooStoreApi::Client.new(
61
67
  seller_id: YOUR_STORE_ID, # ストアアカウントid
62
68
  application_id: YOUR_APPLICATION_ID, # アプリケーションid
63
69
  application_secret: YOUR_SECRET, # シークレット
@@ -82,9 +88,9 @@ item.price
82
88
  item.all
83
89
  ```
84
90
 
85
- ### 商品情報の登録/更新
91
+ ### 商品情報の登録
86
92
 
87
- 商品情報を登録・更新できます。
93
+ 項目については[Yahoo:商品登録API](https://developer.yahoo.co.jp/webapi/shopping/editItem.html)を参照してください。
88
94
 
89
95
  ```ruby
90
96
  item = client.edit_item({
@@ -98,6 +104,29 @@ item = client.edit_item({
98
104
  item.all
99
105
  ```
100
106
 
107
+ ### 商品情報の一括登録
108
+
109
+ csvファイルをアップロードする事で商品情報の一括登録ができます。
110
+
111
+ ```ruby
112
+ item = client.upload_item_file("your/upload/file.csv")
113
+ ```
114
+
115
+ ### 商品情報の更新
116
+
117
+ :bangbang: APIの仕様で、更新したいカラムのみ送信して更新が **できません** :bangbang:
118
+
119
+ 商品を登録・更新する場合、**省略した項目はデフォルト値で上書きされるので注意してください**。
120
+
121
+ なので、一度情報を取得し、必要な箇所を書き換えて送信する必要があります。
122
+
123
+ ```ruby
124
+ data = client.get_item(code).all
125
+ data["name"] = 'edit item'
126
+ data["caption"] = 'edit caption'
127
+ client.edit_item(data)
128
+ ```
129
+
101
130
  ### 在庫情報の参照
102
131
 
103
132
  ストアに登録されている商品の在庫情報を取得できます。
@@ -119,5 +148,5 @@ stock.all
119
148
  pub = client.reserve_publish
120
149
 
121
150
  # 結果を取得
122
- stock.status
151
+ pub.status
123
152
  ```
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require "rake/testtask"
4
4
  Rake::TestTask.new(:test) do |t|
5
5
  t.libs << "test"
6
6
  t.libs << "lib"
7
- t.test_files = FileList['test/**/*_test.rb']
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
8
  end
9
9
 
10
10
  task :default => :test
@@ -1,21 +1,28 @@
1
1
  module YahooStoreApi
2
2
  module Helper
3
-
4
3
  ENDPOINT = "https://circus.shopping.yahooapis.jp/ShoppingWebService/V1/".freeze
5
- def connection(method)
6
- Faraday.new(url: ENDPOINT + method) do |c|
7
- c.adapter Faraday.default_adapter
8
- c.headers['Authorization'] = "Bearer " + @access_token
4
+
5
+ def connection(method, with_seller_id: false)
6
+ url = ENDPOINT + method
7
+ if with_seller_id
8
+ url += "?seller_id=#{@seller_id}" if with_seller_id
9
+ end
10
+
11
+ Faraday.new(url: url) do |c|
12
+ c.request :multipart
13
+ c.request :url_encoded
14
+ c.adapter :net_http
15
+ c.headers["Authorization"] = "Bearer " + @access_token
9
16
  end
10
17
  end
11
18
 
12
19
  def handler(response)
13
20
  rexml = REXML::Document.new(response.body)
14
- if rexml.elements['ResultSet/Result']
15
- response_parser(rexml, xpoint: 'ResultSet/Result')
16
- elsif rexml.elements['ResultSet/Status']
17
- response_parser(rexml, xpoint: 'ResultSet')
18
- elsif rexml.elements['Error/Message']
21
+ if rexml.elements["ResultSet/Result"]
22
+ response_parser(rexml, xpoint: "ResultSet/Result")
23
+ elsif rexml.elements["ResultSet/Status"]
24
+ response_parser(rexml, xpoint: "ResultSet")
25
+ elsif rexml.elements["Error/Message"]
19
26
  error_parser(rexml)
20
27
  else
21
28
  puts rexml
@@ -28,7 +35,7 @@ module YahooStoreApi
28
35
  result.children.each do |el|
29
36
  next if el.to_s.strip.blank?
30
37
  if el.has_elements?
31
- el_ary = el.children.reject{|v| v.to_s.blank?}.map{|v| v.text.try!(:force_encoding, 'utf-8')}.reject{|v| v.to_s.blank?}
38
+ el_ary = el.children.reject { |v| v.to_s.blank? }.map { |v| v.text.try!(:force_encoding, "utf-8") }.reject { |v| v.to_s.blank? }
32
39
  attributes[el.name.underscore] = el_ary
33
40
  begin
34
41
  self.define_singleton_method(el.name.underscore) {
@@ -41,14 +48,14 @@ module YahooStoreApi
41
48
  attributes[el.name.underscore] = el.text
42
49
  begin
43
50
  self.define_singleton_method(el.name.underscore) {
44
- el.text.try!(:force_encoding, 'utf-8')
51
+ el.text.try!(:force_encoding, "utf-8")
45
52
  }
46
53
  rescue => e
47
54
  puts e
48
55
  end
49
56
  end # if el.has_elements?
50
57
  end # result.children.each
51
- self.define_singleton_method('all') {
58
+ self.define_singleton_method("all") {
52
59
  attributes
53
60
  }
54
61
  end # xml.elements.each(xpoint)
@@ -57,15 +64,14 @@ module YahooStoreApi
57
64
 
58
65
  def error_parser(rexml)
59
66
  result = {
60
- status: 'NG',
61
- message: rexml.elements['Error/Message'].text
67
+ status: "NG",
68
+ message: rexml.elements["Error/Message"].text,
62
69
  }
63
70
  result.each do |k, v|
64
71
  self.define_singleton_method(k) { v }
65
72
  end
66
- self.define_singleton_method('all') { result }
73
+ self.define_singleton_method("all") { result }
67
74
  self
68
75
  end
69
-
70
76
  end
71
77
  end
@@ -4,11 +4,10 @@ module YahooStoreApi
4
4
 
5
5
  def delete_item(str)
6
6
  request = "seller_id=#{@seller_id}&item_code=#{URI.encode_www_form_component(str)}"
7
-
8
- handler connection('deleteItem').post { |r|
7
+
8
+ handler connection("deleteItem").post { |r|
9
9
  r.body = request
10
10
  }
11
11
  end
12
-
13
12
  end
14
13
  end
@@ -4,11 +4,10 @@ module YahooStoreApi
4
4
 
5
5
  def edit_item(hash)
6
6
  request = "seller_id=#{@seller_id}&#{URI.encode_www_form(hash)}"
7
-
8
- handler connection('editItem').post { |r|
7
+
8
+ handler connection("editItem").post { |r|
9
9
  r.body = request
10
10
  }
11
11
  end
12
-
13
12
  end
14
13
  end
@@ -3,11 +3,10 @@ module YahooStoreApi
3
3
  include YahooStoreApi::Helper
4
4
 
5
5
  def get_item(item_code)
6
- handler connection('getItem').get { |r|
7
- r.params['seller_id'] = @seller_id
8
- r.params['item_code'] = item_code
6
+ handler connection("getItem").get { |r|
7
+ r.params["seller_id"] = @seller_id
8
+ r.params["item_code"] = item_code
9
9
  }
10
10
  end
11
-
12
11
  end
13
12
  end
@@ -0,0 +1,16 @@
1
+ module YahooStoreApi
2
+ module Item
3
+ include YahooStoreApi::Helper
4
+
5
+ def upload_item_file(file_path)
6
+ request = {
7
+ type: 1,
8
+ file: Faraday::UploadIO.new(file_path, "text/csv"),
9
+ }
10
+
11
+ handler connection("uploadItemFile", with_seller_id: true).post { |r|
12
+ r.body = request
13
+ }
14
+ end
15
+ end
16
+ end
@@ -1,3 +1,4 @@
1
- require 'yahoo_store_api/item/get_item'
2
- require 'yahoo_store_api/item/edit_item'
3
- require 'yahoo_store_api/item/delete_item'
1
+ require "yahoo_store_api/item/get_item"
2
+ require "yahoo_store_api/item/edit_item"
3
+ require "yahoo_store_api/item/upload_item_file"
4
+ require "yahoo_store_api/item/delete_item"
@@ -8,10 +8,9 @@ module YahooStoreApi
8
8
  request << "mode=#{mode}"
9
9
  request << "seller_id=#{reserve_time}" if reserve_time
10
10
 
11
- handler connection('reservePublish').post { |r|
12
- r.body = request.join('&')
11
+ handler connection("reservePublish").post { |r|
12
+ r.body = request.join("&")
13
13
  }
14
14
  end
15
-
16
15
  end
17
16
  end
@@ -1 +1 @@
1
- require 'yahoo_store_api/publish/reserve_publish'
1
+ require "yahoo_store_api/publish/reserve_publish"
@@ -3,10 +3,9 @@ module YahooStoreApi
3
3
  include YahooStoreApi::Helper
4
4
 
5
5
  def get_stock(item_code)
6
- handler connection('getStock').post { |r|
6
+ handler connection("getStock").post { |r|
7
7
  r.body = "seller_id=#{@seller_id}&item_code=#{item_code}"
8
8
  }
9
9
  end
10
-
11
10
  end
12
11
  end
@@ -5,10 +5,9 @@ module YahooStoreApi
5
5
  def set_stock(hash)
6
6
  request = "seller_id=#{@seller_id}&#{URI.encode_www_form(hash)}"
7
7
 
8
- handler connection('setStock').post { |r|
8
+ handler connection("setStock").post { |r|
9
9
  r.body = request
10
10
  }
11
11
  end
12
-
13
12
  end
14
13
  end
@@ -1,2 +1,2 @@
1
- require 'yahoo_store_api/stock/get_stock'
2
- require 'yahoo_store_api/stock/set_stock'
1
+ require "yahoo_store_api/stock/get_stock"
2
+ require "yahoo_store_api/stock/set_stock"
@@ -1,3 +1,3 @@
1
1
  module YahooStoreApi
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -1,16 +1,17 @@
1
1
  require "yahoo_store_api/version"
2
- require 'yahoo_store_api/helper.rb'
3
- require 'yahoo_store_api/item.rb'
4
- require 'yahoo_store_api/stock.rb'
5
- require 'yahoo_store_api/publish.rb'
6
-
7
- require 'rexml/document'
8
- require 'yaml'
9
- require 'uri'
10
- require 'faraday'
11
- require 'active_support'
12
- require 'active_support/core_ext'
13
- require 'active_model'
2
+ require "yahoo_store_api/helper.rb"
3
+ require "yahoo_store_api/item.rb"
4
+ require "yahoo_store_api/stock.rb"
5
+ require "yahoo_store_api/publish.rb"
6
+
7
+ require "rexml/document"
8
+ require "yaml"
9
+ require "uri"
10
+ require "cgi"
11
+ require "faraday"
12
+ require "active_support"
13
+ require "active_support/core_ext"
14
+ require "active_model"
14
15
 
15
16
  module YahooStoreApi
16
17
  class Client
@@ -19,27 +20,29 @@ module YahooStoreApi
19
20
  include YahooStoreApi::Stock
20
21
  include YahooStoreApi::Publish
21
22
 
22
- def initialize(seller_id:, application_id:, application_secret:, authorization_code: nil, refresh_token: nil)
23
+ def initialize(seller_id:, application_id:, application_secret:, authorization_code: nil, redirect_uri: nil, refresh_token: nil)
23
24
  @seller_id = seller_id
24
25
  @application_id = application_id
25
26
  @application_secret = application_secret
27
+ @redirect_uri = redirect_uri ? "&redirect_uri=" + CGI.escape(redirect_uri) : nil
26
28
  @access_token = reflesh_access_token(refresh_token) || get_access_token(authorization_code)
27
29
  end
28
30
 
29
31
  private
30
32
 
31
- ACCESS_TOKEN_ENDPOINT = 'https://auth.login.yahoo.co.jp/yconnect/v1/token'.freeze
33
+ ACCESS_TOKEN_ENDPOINT = "https://auth.login.yahoo.co.jp/yconnect/v1/token".freeze
34
+
32
35
  def access_token_connection
33
36
  Faraday.new(url: ACCESS_TOKEN_ENDPOINT) do |c|
34
37
  c.adapter Faraday.default_adapter
35
38
  c.authorization :Basic, Base64.strict_encode64("#{@application_id}:#{@application_secret}")
36
- c.headers['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8'
39
+ c.headers["Content-Type"] = "application/x-www-form-urlencoded;charset=UTF-8"
37
40
  end
38
41
  end
39
42
 
40
43
  def get_access_token(authorization_code)
41
- param = "grant_type=authorization_code&code=#{authorization_code}&redirect_uri=oob"
42
- obj = access_token_connection.post{|r| r.body = param}
44
+ param = "grant_type=authorization_code&code=#{authorization_code}#{@redirect_uri}"
45
+ obj = access_token_connection.post { |r| r.body = param }
43
46
  result = hash_converter(obj)
44
47
  @refresh_token = result[:refresh_token]
45
48
  result[:access_token]
@@ -47,7 +50,7 @@ module YahooStoreApi
47
50
 
48
51
  def reflesh_access_token(refresh_token)
49
52
  param = "grant_type=refresh_token&refresh_token=#{refresh_token}"
50
- obj = access_token_connection.post{|r| r.body = param}
53
+ obj = access_token_connection.post { |r| r.body = param }
51
54
  result = hash_converter(obj)
52
55
  @refresh_token = refresh_token
53
56
  result[:access_token]
@@ -55,8 +58,7 @@ module YahooStoreApi
55
58
 
56
59
  def hash_converter(str)
57
60
  ary = str.body.delete('"{}').split(/[:,]/)
58
- ary.each_slice(2).map{|k, v| [k.to_sym, v]}.to_h
61
+ ary.each_slice(2).map { |k, v| [k.to_sym, v] }.to_h
59
62
  end
60
-
61
63
  end
62
64
  end
@@ -1,33 +1,33 @@
1
1
  # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
2
+ lib = File.expand_path("../lib", __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'yahoo_store_api/version'
4
+ require "yahoo_store_api/version"
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.name = "yahoo_store_api"
8
- spec.version = YahooStoreApi::VERSION
9
- spec.authors = ["t4traw"]
10
- spec.email = ["t4traw@gmail.com"]
7
+ spec.name = "yahoo_store_api"
8
+ spec.version = YahooStoreApi::VERSION
9
+ spec.authors = ["t4traw"]
10
+ spec.email = ["t4traw@gmail.com"]
11
11
 
12
- spec.summary = %q{Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを簡単に叩けるrubyラッパー}
13
- spec.description = %q{Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを簡単に叩けるrubyラッパー}
14
- spec.homepage = "https://github.com/t4traw/yahoo_store_api"
12
+ spec.summary = %q{Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを簡単に叩けるrubyラッパー}
13
+ spec.description = %q{Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを簡単に叩けるrubyラッパー}
14
+ spec.homepage = "https://github.com/t4traw/yahoo_store_api"
15
15
 
16
- spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
17
  f.match(%r{^(test|spec|features)/})
18
18
  end
19
19
 
20
- spec.bindir = "exe"
21
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.bindir = "exe"
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", '~> 0.12.1'
25
- spec.add_dependency "activesupport", '~> 5.1.0'
26
- spec.add_dependency "activemodel", '~> 5.1.0'
24
+ spec.add_dependency "faraday", ">= 0.12.1"
25
+ spec.add_dependency "activesupport", ">= 4.2.8"
26
+ spec.add_dependency "activemodel", ">= 4.2.8"
27
27
  spec.add_dependency "builder"
28
28
 
29
- spec.add_development_dependency "bundler", "~> 1.14"
30
- spec.add_development_dependency "rake", "~> 10.0"
29
+ spec.add_development_dependency "bundler"
30
+ spec.add_development_dependency "rake", ">= 12.3.3"
31
31
  spec.add_development_dependency "pry", "~> 0.10.4"
32
32
  spec.add_development_dependency "minitest", "~> 5.0"
33
33
  spec.add_development_dependency "minitest-reporters"
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yahoo_store_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - t4traw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2021-09-22 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
19
  version: 0.12.1
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
26
  version: 0.12.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 5.1.0
33
+ version: 4.2.8
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 5.1.0
40
+ version: 4.2.8
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activemodel
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 5.1.0
47
+ version: 4.2.8
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 5.1.0
54
+ version: 4.2.8
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: builder
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -70,30 +70,30 @@ dependencies:
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: '1.14'
75
+ version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: '1.14'
82
+ version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: 12.3.3
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - "~>"
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '10.0'
96
+ version: 12.3.3
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -185,9 +185,11 @@ executables: []
185
185
  extensions: []
186
186
  extra_rdoc_files: []
187
187
  files:
188
+ - ".env.sample"
188
189
  - ".gitignore"
189
190
  - ".travis.yml"
190
191
  - Gemfile
192
+ - LICENSE
191
193
  - README.md
192
194
  - Rakefile
193
195
  - lib/yahoo_store_api.rb
@@ -196,6 +198,7 @@ files:
196
198
  - lib/yahoo_store_api/item/delete_item.rb
197
199
  - lib/yahoo_store_api/item/edit_item.rb
198
200
  - lib/yahoo_store_api/item/get_item.rb
201
+ - lib/yahoo_store_api/item/upload_item_file.rb
199
202
  - lib/yahoo_store_api/publish.rb
200
203
  - lib/yahoo_store_api/publish/reserve_publish.rb
201
204
  - lib/yahoo_store_api/stock.rb
@@ -221,8 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
221
224
  - !ruby/object:Gem::Version
222
225
  version: '0'
223
226
  requirements: []
224
- rubyforge_project:
225
- rubygems_version: 2.5.2
227
+ rubygems_version: 3.1.6
226
228
  signing_key:
227
229
  specification_version: 4
228
230
  summary: Yahoo!ショッピング プロフェッショナル出店ストア向けAPIを簡単に叩けるrubyラッパー