rms_item_api 0.2.3 → 0.2.5

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
- SHA1:
3
- metadata.gz: db548f1cb04895fc295e0cc7c5fdca585a1aae9a
4
- data.tar.gz: 7b76321f7b39685a08abc2a68aa14157e453e328
2
+ SHA256:
3
+ metadata.gz: f202d4d6dbf0a616c2e432073c8570b9ab70bfaf69a1e3807eccca3fe6f310e9
4
+ data.tar.gz: 9c15ba5c1a4fa8d65ada2daffed8f2e315f310635982ba6e1df23ff271a46446
5
5
  SHA512:
6
- metadata.gz: 5a17abb8227c3ce50b2877902a01cb7fca16747804681757809a72dce8340fa970459cad06ebddcf16e4065c6a56728ff8df51ddc574e9e5bf1a73b0b9589769
7
- data.tar.gz: bc3c07b5896806ce3381a090717cf3a22b2812639aa7925401d133fa5b62917ae866180e22101407fa6c28b5aade7aef83aad40f9ef3cad77f17c54116581ff0
6
+ metadata.gz: 29bbbdc7f419eec0ad700c525b0cd0152f4e9ddaacacef03f06d7ee6a387e3ad746e60eb30b59e7765ee10d8a4555ac6868545a12da2920df5913a06bbc6e9ef
7
+ data.tar.gz: d8da979ed29348ae4b530248c6cc06a75e49c68a6dcce6106fb6c36be9a00c93f4ca870c3f895e833404e4b927fae3f69722c71ea075a54f409ea9fa1fc80a25
data/.rubocop.yml ADDED
@@ -0,0 +1,33 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.6
3
+ DisplayCopNames: true
4
+ DisplayStyleGuide: true
5
+ Exclude:
6
+ - "test/**/*"
7
+
8
+ Metrics/LineLength:
9
+ Max: 120
10
+
11
+ # 3.0で文字列がデフォルトでfrozenになるか不明
12
+ Style/FrozenStringLiteralComment:
13
+ Enabled: false
14
+
15
+ # コメントの日本語を許可
16
+ Style/AsciiComments:
17
+ Enabled: false
18
+
19
+ # 明示的に else で nil を返すのはわかりやすいので許可
20
+ Style/EmptyElse:
21
+ EnforcedStyle: empty
22
+
23
+ Style/Documentation:
24
+ Enabled: false
25
+
26
+ Style/PredicateName:
27
+ Enabled: false
28
+
29
+ Naming/MethodParameterName:
30
+ Enabled: false
31
+
32
+ Naming/VariableName:
33
+ Enabled: false
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  [![Build Status](https://travis-ci.org/t4traw/rms_item_api.svg?branch=master)](https://travis-ci.org/t4traw/rms_item_api)
4
4
  [![Code Climate](https://codeclimate.com/github/t4traw/rms_item_api/badges/gpa.svg)](https://codeclimate.com/github/t4traw/rms_item_api)
5
5
 
6
- 楽天市場に出店している店舗が使えるRMSの商品APIを叩くためのrubyラッパーです。シンプルなCRUD(作成、取得、更新、削除)のみを実装してあります。検索と複数更新は必要があれば追加したいと思います。
6
+ 楽天市場に出店している店舗が使える RMS の商品 API を叩くための ruby ラッパーです。シンプルな CRUD(作成、取得、更新、削除)のみを実装してあります。検索と複数更新は必要があれば追加したいと思います。
7
7
 
8
8
  ## Installation
9
9
 
@@ -12,13 +12,14 @@ Add this line to your application's Gemfile:
12
12
  ```ruby
13
13
  gem 'rms_item_api'
14
14
  ```
15
+
15
16
  ## Usage
16
17
 
17
- 取得や更新する項目に関しては楽天RMS WEB APIのドキュメント「拡張サービス一覧>WEB APIサービス>RMS WEB SERVICE : ItemAPI」(要ログイン)にて。
18
+ 取得や更新する項目に関しては楽天 RMS WEB API のドキュメント「拡張サービス一覧> WEB API サービス> RMS WEB SERVICE : ItemAPI」(要ログイン)にて。
18
19
 
19
20
  ### Initialize
20
21
 
21
- RMS内の「拡張サービス一覧>WEB APIサービス>利用設定」にあるserviceSecretとlicenseKeyが必要です(事前にWEB APIの利用申し込みが必要です)。
22
+ RMS 内の「拡張サービス一覧> WEB API サービス>利用設定」にある serviceSecret licenseKey が必要です(事前に WEB API の利用申し込みが必要です)。
22
23
 
23
24
  ```ruby
24
25
  client = RmsItemApi::Client.new(
@@ -29,7 +30,7 @@ client = RmsItemApi::Client.new(
29
30
 
30
31
  ### Get
31
32
 
32
- RMSに登録している商品情報を商品管理番号を指定して取得することができます。
33
+ RMS に登録している商品情報を商品管理番号を指定して取得することができます。
33
34
 
34
35
  ```ruby
35
36
  item = client.get('test123')
@@ -47,7 +48,7 @@ item.all
47
48
 
48
49
  ### Insert
49
50
 
50
- RMSに商品情報を登録することができます。
51
+ RMS に商品情報を登録することができます。
51
52
 
52
53
  ```ruby
53
54
  item = client.insert({
@@ -70,7 +71,7 @@ item.is_success?
70
71
 
71
72
  ### Update
72
73
 
73
- RMSに登録されている商品情報を更新することができます。
74
+ RMS に登録されている商品情報を更新することができます。
74
75
 
75
76
  ```ruby
76
77
  item = client.update({
@@ -87,7 +88,7 @@ item = client.update({
87
88
 
88
89
  ### Delete
89
90
 
90
- RMSに登録されている商品情報を削除することができます。
91
+ RMS に登録されている商品情報を削除することができます。
91
92
 
92
93
  ```ruby
93
94
  item = client.delete({
data/Rakefile CHANGED
@@ -1,10 +1,10 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
3
 
4
4
  Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
5
+ t.libs << 'test'
6
+ t.libs << 'lib'
7
7
  t.test_files = FileList['test/**/*_test.rb']
8
8
  end
9
9
 
10
- task :default => :test
10
+ task default: :test
data/lib/rms_item_api.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "rms_item_api/version"
1
+ require 'rms_item_api/version'
2
2
  require 'rms_item_api/helper.rb'
3
3
  require 'rms_item_api/item.rb'
4
4
 
@@ -18,7 +18,6 @@ module RmsItemApi
18
18
  @serviceSecret = serviceSecret
19
19
  @licenseKey = licenseKey
20
20
  end
21
-
22
21
  end
23
22
  end
24
23
 
@@ -1,6 +1,5 @@
1
1
  module RmsItemApi
2
2
  module Helper
3
-
4
3
  ENDPOINT = 'https://api.rms.rakuten.co.jp/es/1.0/item/'.freeze
5
4
  def connection(method)
6
5
  Faraday.new(url: ENDPOINT + method) do |conn|
@@ -15,20 +14,10 @@ module RmsItemApi
15
14
 
16
15
  def handler(response)
17
16
  rexml = REXML::Document.new(response.body)
18
- self.define_singleton_method(:all) { convert_xml_into_json(response.body) }
19
-
20
- if rexml.elements["result/status/systemStatus"].text == "NG"
21
- raise rexml.elements["result/status/message"].text
22
- end
23
-
24
- status_parser(rexml)
25
- case response.env.method
26
- when :get
27
- get_response_parser(rexml)
28
- # when :post
29
- # post_response_parser(rexml)
30
- end
31
-
17
+ define_singleton_method(:all) { convert_xml_into_json(response.body) }
18
+ check_system_status(rexml)
19
+ status_parser(response_code: get_response_code(rexml), error_messages: get_error_messages(rexml))
20
+ get_response_parser(rexml) if response.env.method == :get
32
21
  self
33
22
  end
34
23
 
@@ -36,81 +25,79 @@ module RmsItemApi
36
25
 
37
26
  def encoded_key
38
27
  if @serviceSecret.blank? && @licenseKey.blank?
39
- error_msg = "serviceSecret and licenseKey are required"
28
+ error_msg = 'serviceSecret and licenseKey are required'
40
29
  raise StandardError, error_msg
41
30
  else
42
- "ESA " + Base64.strict_encode64(@serviceSecret + ":" + @licenseKey)
31
+ 'ESA ' + Base64.strict_encode64(@serviceSecret + ':' + @licenseKey)
32
+ end
33
+ end
34
+
35
+ def check_system_status(rexml)
36
+ systemStatus = rexml.elements['result/status/systemStatus'].text
37
+ raise rexml.elements['result/status/message'].text if systemStatus == 'NG'
38
+ end
39
+
40
+ def get_response_code(rexml)
41
+ endpoint = get_endpoint(rexml)[:camel]
42
+ rexml.elements["result/#{endpoint}Result/code"].text
43
+ end
44
+
45
+ def get_error_messages(rexml)
46
+ endpoint = get_endpoint(rexml)[:camel]
47
+ err_point = "result/#{endpoint}Result/errorMessages/errorMessage/msg"
48
+ result = []
49
+ rexml.elements.each(err_point) do |element|
50
+ result << element.text
43
51
  end
52
+ result
44
53
  end
45
54
 
46
55
  def get_endpoint(rexml)
47
56
  result = {}
48
- interfaceId = rexml.elements["result/status/interfaceId"].text
57
+ interfaceId = rexml.elements['result/status/interfaceId'].text
49
58
  result[:api] = interfaceId.split('.')[0]
50
59
  result[:method] = interfaceId.split('.')[1]
51
60
  result[:camel] = "#{result[:api]}#{result[:method].capitalize}"
52
61
  result
53
62
  end
54
63
 
55
- def status_parser(rexml)
56
- endpoint = get_endpoint(rexml)
57
- xpoint = "result/#{endpoint[:camel]}Result/code"
58
- response_code = rexml.elements[xpoint].text
59
-
60
- yml = "#{File.dirname(__FILE__)}/../../config/response_codes.yml"
61
- response_codes = YAML.load_file(yml)
62
-
63
- self.define_singleton_method(:is_success?) { response_code == 'N000' ? true : false }
64
- self.define_singleton_method(:message) { response_codes[response_code] }
65
-
66
- err_point = "result/#{endpoint[:camel]}Result/errorMessages/errorMessage/msg"
67
- err_msg = []
68
- rexml.elements.each(err_point) do |element|
69
- err_msg << element.text
70
- end
71
- self.define_singleton_method(:errors) { err_msg }
72
-
73
- self.is_success?
64
+ def status_parser(response_code:, error_messages:)
65
+ response_codes = YAML.load_file("#{File.dirname(__FILE__)}/../../config/response_codes.yml")
66
+ define_singleton_method(:is_success?) { response_code == 'N000' }
67
+ define_singleton_method(:message) { response_codes[response_code] }
68
+ define_singleton_method(:errors) { error_messages }
74
69
  end
75
70
 
76
71
  def get_response_parser(rexml)
77
- endpoint = get_endpoint(rexml)
78
- xpoint = "result/#{endpoint[:camel]}Result/item"
72
+ xpoint = "result/#{get_endpoint(rexml)[:camel]}Result/item"
79
73
  rexml.elements.each(xpoint) do |result|
80
74
  result.children.each do |el|
81
75
  next if el.to_s.strip.blank?
82
- if el.has_elements?
83
- begin
84
- self.define_singleton_method(el.name.underscore) {
85
- Hash.from_xml(el.to_s)
86
- }
87
- rescue => e
88
- puts e
89
- end
90
- else
91
- begin
92
- self.define_singleton_method(el.name.underscore) {
93
- el.text.try!(:force_encoding, 'utf-8')
94
- }
95
- rescue => e
96
- puts e
97
- end
98
- end
76
+
77
+ define_element_method(el)
99
78
  end
100
79
  end
101
80
  self
102
81
  end
103
82
 
104
- def post_response_parser(rexml)
105
- self
83
+ def define_element_method(el)
84
+ define_singleton_method(el.name.underscore) do
85
+ if el.has_elements?
86
+ Hash.from_xml(el.to_s)
87
+ else
88
+ el.text.try!(:force_encoding, 'utf-8')
89
+ end
90
+ end
106
91
  end
107
92
 
93
+ def post_response_parser(_rexml)
94
+ self
95
+ end
108
96
  end
109
97
  end
110
98
 
111
99
  class Hash
112
100
  class << self
113
-
114
101
  def from_xml(rexml)
115
102
  xml_elem_to_hash rexml.root
116
103
  end
@@ -118,19 +105,18 @@ class Hash
118
105
  private
119
106
 
120
107
  def xml_elem_to_hash(el)
121
- value = if el.has_elements?
122
- children = {}
123
- el.each_element do |e|
124
- children.merge!(xml_elem_to_hash(e)) do |k,v1,v2|
125
- v1.is_a?(Array) ? v1 << v2 : [v1,v2]
126
- end
127
- end
128
- children
129
- else
130
- el.text
131
- end
108
+ value = el.has_elements? ? merged_children(el) : el.text
132
109
  { el.name.to_sym => value }
133
110
  end
134
111
 
112
+ def merged_children(el)
113
+ result = {}
114
+ el.each_element do |e|
115
+ result.merge!(xml_elem_to_hash(e)) do |_k, v1, v2|
116
+ v1.is_a?(Array) ? v1 << v2 : [v1, v2]
117
+ end
118
+ end
119
+ result
120
+ end
135
121
  end
136
122
  end
@@ -3,12 +3,11 @@ module RmsItemApi
3
3
  include RmsItemApi::Helper
4
4
 
5
5
  def delete(item_data)
6
- request_xml = {itemDeleteRequest: {item: item_data}}.to_xml(
6
+ request_xml = { itemDeleteRequest: { item: item_data } }.to_xml(
7
7
  root: 'request', camelize: :lower, skip_types: true
8
8
  )
9
- response = connection('delete').post {|r| r.body = request_xml}
9
+ response = connection('delete').post { |r| r.body = request_xml }
10
10
  handler response
11
11
  end
12
-
13
12
  end
14
13
  end
@@ -3,9 +3,8 @@ module RmsItemApi
3
3
  include RmsItemApi::Helper
4
4
 
5
5
  def get(item_data)
6
- response = connection('get').get {|r| r.params['itemUrl'] = item_data}
6
+ response = connection('get').get { |r| r.params['itemUrl'] = item_data }
7
7
  handler response
8
8
  end
9
-
10
9
  end
11
10
  end
@@ -3,12 +3,11 @@ module RmsItemApi
3
3
  include RmsItemApi::Helper
4
4
 
5
5
  def insert(item_data)
6
- request_xml = {itemInsertRequest: {item: item_data}}.to_xml(
6
+ request_xml = { itemInsertRequest: { item: item_data } }.to_xml(
7
7
  root: 'request', camelize: :lower, skip_types: true
8
8
  )
9
- response = connection('insert').post {|r| r.body = request_xml}
9
+ response = connection('insert').post { |r| r.body = request_xml }
10
10
  handler response
11
11
  end
12
-
13
12
  end
14
13
  end
@@ -3,12 +3,11 @@ module RmsItemApi
3
3
  include RmsItemApi::Helper
4
4
 
5
5
  def update(item_data)
6
- request_xml = {itemUpdateRequest: {item: item_data}}.to_xml(
6
+ request_xml = { itemUpdateRequest: { item: item_data } }.to_xml(
7
7
  root: 'request', camelize: :lower, skip_types: true
8
8
  )
9
- response = connection('update').post {|r| r.body = request_xml}
9
+ response = connection('update').post { |r| r.body = request_xml }
10
10
  handler response
11
11
  end
12
-
13
12
  end
14
13
  end
@@ -1,3 +1,3 @@
1
1
  module RmsItemApi
2
- VERSION = "0.2.3"
2
+ VERSION = '0.2.5'.freeze
3
3
  end
data/rms_item_api.gemspec CHANGED
@@ -1,34 +1,34 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
3
  require 'rms_item_api/version'
5
4
 
6
5
  Gem::Specification.new do |spec|
7
- spec.name = "rms_item_api"
6
+ spec.name = 'rms_item_api'
8
7
  spec.version = RmsItemApi::VERSION
9
- spec.authors = ["t4traw"]
10
- spec.email = ["t4traw@gmail.com"]
8
+ spec.authors = %w[t4traw]
9
+ spec.email = %w[t4traw@gmail.com]
11
10
 
12
- spec.summary = %q{RMSの商品APIを簡単に叩けるrubyラッパー}
13
- spec.description = %q{RMSの商品APIを簡単に叩けるrubyラッパー}
14
- spec.homepage = "https://github.com/t4traw/rms_item_api"
11
+ spec.summary = 'RMSの商品APIを簡単に叩けるrubyラッパー'
12
+ spec.description = 'RMSの商品APIを簡単に叩けるrubyラッパー'
13
+ spec.homepage = 'https://github.com/t4traw/rms_item_api'
15
14
 
16
15
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
- spec.bindir = "exe"
16
+ spec.bindir = 'exe'
18
17
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
- spec.require_paths = ["lib"]
18
+ spec.require_paths = %w[lib]
20
19
 
21
- spec.add_dependency "faraday", '>= 0.12.1'
22
- spec.add_dependency "activesupport", '>= 4.2.8'
23
- spec.add_dependency "activemodel", '>= 4.2.8'
24
- spec.add_dependency "builder"
20
+ spec.add_dependency 'activemodel', '>= 4.2.8'
21
+ spec.add_dependency 'activesupport', '>= 4.2.8'
22
+ spec.add_dependency 'builder'
23
+ spec.add_dependency 'faraday', '>= 0.12.1'
25
24
 
26
- spec.add_development_dependency "bundler", "~> 1.10"
27
- spec.add_development_dependency "rake", "~> 10.0"
28
- spec.add_development_dependency "minitest", "~> 5.0"
29
- spec.add_development_dependency "minitest-reporters"
30
- spec.add_development_dependency "webmock"
31
- spec.add_development_dependency "vcr"
32
- spec.add_development_dependency "dotenv"
33
- spec.add_development_dependency "pry"
25
+ spec.add_development_dependency 'bundler', '~> 1.10'
26
+ spec.add_development_dependency 'dotenv'
27
+ spec.add_development_dependency 'minitest', '~> 5.0'
28
+ spec.add_development_dependency 'minitest-reporters'
29
+ spec.add_development_dependency 'pry'
30
+ spec.add_development_dependency 'rake', '>= 12.3.3'
31
+ spec.add_development_dependency 'rubocop'
32
+ spec.add_development_dependency 'vcr'
33
+ spec.add_development_dependency 'webmock'
34
34
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rms_item_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - t4traw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-06-23 00:00:00.000000000 Z
11
+ date: 2020-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: faraday
14
+ name: activemodel
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.12.1
19
+ version: 4.2.8
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: 0.12.1
26
+ version: 4.2.8
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activesupport
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -39,33 +39,33 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: 4.2.8
41
41
  - !ruby/object:Gem::Dependency
42
- name: activemodel
42
+ name: builder
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: 4.2.8
47
+ version: '0'
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: 4.2.8
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: builder
56
+ name: faraday
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.12.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.12.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -81,19 +81,19 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.10'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rake
84
+ name: dotenv
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - "~>"
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
- version: '10.0'
89
+ version: '0'
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: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: minitest
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ dependencies:
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
- name: webmock
126
+ name: pry
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
129
  - - ">="
@@ -137,7 +137,21 @@ dependencies:
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
- name: vcr
140
+ name: rake
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: 12.3.3
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: 12.3.3
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubocop
141
155
  requirement: !ruby/object:Gem::Requirement
142
156
  requirements:
143
157
  - - ">="
@@ -151,7 +165,7 @@ dependencies:
151
165
  - !ruby/object:Gem::Version
152
166
  version: '0'
153
167
  - !ruby/object:Gem::Dependency
154
- name: dotenv
168
+ name: vcr
155
169
  requirement: !ruby/object:Gem::Requirement
156
170
  requirements:
157
171
  - - ">="
@@ -165,7 +179,7 @@ dependencies:
165
179
  - !ruby/object:Gem::Version
166
180
  version: '0'
167
181
  - !ruby/object:Gem::Dependency
168
- name: pry
182
+ name: webmock
169
183
  requirement: !ruby/object:Gem::Requirement
170
184
  requirements:
171
185
  - - ">="
@@ -187,6 +201,7 @@ extra_rdoc_files: []
187
201
  files:
188
202
  - ".gitignore"
189
203
  - ".rbenv-gemsets"
204
+ - ".rubocop.yml"
190
205
  - ".travis.yml"
191
206
  - Gemfile
192
207
  - LICENSE
@@ -220,8 +235,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
235
  - !ruby/object:Gem::Version
221
236
  version: '0'
222
237
  requirements: []
223
- rubyforge_project:
224
- rubygems_version: 2.5.2
238
+ rubygems_version: 3.0.3
225
239
  signing_key:
226
240
  specification_version: 4
227
241
  summary: RMSの商品APIを簡単に叩けるrubyラッパー