rms_api 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: '08dd0fe47815b747dd0a6d321dc166e16a2c54b3afbd65f40735b167c1e59d11'
4
+ data.tar.gz: c3fffec3cb94ba46714351738efb100eda69f4ced67e02baf1c65cfcec3dce47
5
+ SHA512:
6
+ metadata.gz: a0485d269d01ff3db2095cbf47e1a69bf918be5396e9bd6f583d9dc7975bd385cca1ef403ecaac9258379c9255f26436b55ec07156a35984ae85e4138e764f09
7
+ data.tar.gz: '0763796cd64bbf3f347d224f1e698df310cccc049f1aacadba577f6736b5047e4f1c03723d16e9e094aad8316de58bd65fd0cd223f57662f568ad6c8905378d1'
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /Gemfile.lock
10
+ /sample*
11
+ .env
12
+
13
+ # rspec failure tracking
14
+ .rspec_status
data/.travis.yml ADDED
@@ -0,0 +1,17 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.3.8
7
+ - 2.4.10
8
+ - 2.5.8
9
+ - 2.6.6
10
+ - 2.7.2
11
+ - ruby-head
12
+
13
+ matrix:
14
+ allow_failures:
15
+ - rvm: ruby-head
16
+
17
+ before_install: gem install bundler -v 2.1.4
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at t4traw@gmail.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [https://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: https://contributor-covenant.org
74
+ [version]: https://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in rms_api.gemspec
4
+ gemspec
5
+
6
+ gem "rake", "~> 12.0"
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020 TatsuroMoriyama
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
13
+ all 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
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,95 @@
1
+ # RmsApi
2
+
3
+ [![Build Status](https://travis-ci.org/t4traw/rms_api.svg?branch=master)](https://travis-ci.org/t4traw/rms_api)
4
+ [![Code Climate](https://codeclimate.com/github/t4traw/rms_api/badges/gpa.svg)](https://codeclimate.com/github/t4traw/rms_api)
5
+
6
+ 楽天市場に出店している店舗が使えるRMSのAPIを叩くためのrubyラッパーです。
7
+
8
+ ## 現在対応しているAPI
9
+
10
+ - Item API(作成、取得、更新、削除)
11
+
12
+ ## Installation
13
+
14
+ ```ruby
15
+ gem 'rms_api'
16
+ ```
17
+
18
+ ## Usage
19
+
20
+ RMS内の「拡張サービス一覧> WEB APIサービス>利用設定」にあるserviceSecretとlicenseKeyが必要です(事前にWEB APIの利用申し込みが必要です)。
21
+
22
+ ### Initialize
23
+
24
+ ```sh
25
+ export RMS_SERVICE_SECRET="YOUR_SERVICE_SECRET"
26
+ export RMS_LICENSE_KEY="YOUR_LICENSE_KEY"
27
+ ```
28
+
29
+ もしくはconfigureで初期設定ができます。
30
+
31
+ ```ruby
32
+ RmsApi.configure do |config|
33
+ config.service_secret = "YOUR_SERVICE_SECRET"
34
+ config.license_key = "YOUR_LICENSE_KEY"
35
+ end
36
+ ```
37
+
38
+ ## Item API
39
+
40
+ 取得や更新する項目に関しては楽天RMS WEB APIのドキュメント「拡張サービス一覧> WEB APIサービス> RMS WEB SERVICE : ItemAPI」(要ログイン)などを確認してください。
41
+
42
+ RMSに登録している商品情報を商品管理番号を指定して取得できます。
43
+
44
+ ```ruby
45
+ response = RmsApi::Item.get('test123')
46
+
47
+ # 正常なレスポンスが返ってきているかをtrue/falseで返します
48
+ response.is_success?
49
+
50
+ # 商品名を取得
51
+ response.item_name
52
+ # 表示価格を取得
53
+ response.item_price
54
+ # 全ての取得データをhashで出力します
55
+ response.all
56
+ ```
57
+
58
+ ### Insert
59
+
60
+ RMSに商品情報を登録できます。
61
+
62
+ ```ruby
63
+ response = RmsApi::Item.insert({
64
+ item_url: 'test123',
65
+ item_name: 'api_insert_test_item',
66
+ item_price: '298000',
67
+ genreId: 564040,
68
+ images: {
69
+ image: {
70
+ image_url: 'http://image.rakuten.co.jp/your_shop_id/cabinet/test.jpg'
71
+ }
72
+ },
73
+ item_layout: 2,
74
+ is_included_postage: true
75
+ })
76
+ ```
77
+
78
+ ## Development
79
+
80
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
81
+
82
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
83
+
84
+ ## Contributing
85
+
86
+ Bug reports and pull requests are welcome on GitHub at https://github.com/t4traw/rms_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/t4traw/rms_api/blob/master/CODE_OF_CONDUCT.md).
87
+
88
+
89
+ ## License
90
+
91
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
92
+
93
+ ## Code of Conduct
94
+
95
+ Everyone interacting in the RmsApi project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/t4traw/rms_api/blob/master/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << 'test'
6
+ t.libs << 'lib'
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task default: :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "rms_api"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,15 @@
1
+ N000: 正常に処理が終了しました。
2
+ S001: 只今メンテナンス中のためアクセスできません。
3
+ S002: 只今メンテナンス中のためアクセスできません。
4
+ S011: システムエラー
5
+ S021: システムエラー
6
+ S031: システムエラー
7
+ S999: システムエラー
8
+ C001: 該当する商品IDは存在しません。
9
+ C011: 指定された店舗IDは存在しません。
10
+ C113: パラメータがフォーマットにそっていません。
11
+ C114: 商品一括登録サービスにロックされているため操作できません。
12
+ C201: 指定されたイベントIDは存在しません。
13
+ C204: 商品IDのフォーマットが正しくありません。
14
+ C219: 不要なデータが入っています。
15
+ C301: 登録・更新・削除時 渡されたtransactionIDでの更新が既にされています。
data/lib/rms_api.rb ADDED
@@ -0,0 +1,23 @@
1
+ require 'rms_api/version'
2
+ require 'rms_api/configuration.rb'
3
+ require 'rms_api/helper.rb'
4
+ require 'rms_api/item.rb'
5
+
6
+ require 'rexml/document'
7
+ require 'yaml'
8
+ require 'faraday'
9
+ require 'active_support'
10
+ require 'active_support/core_ext'
11
+ require 'active_model'
12
+
13
+ module RmsApi
14
+ class << self
15
+ def configure(&block)
16
+ yield configuration
17
+ end
18
+
19
+ def configuration
20
+ @configuration ||= Configuration.new
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,10 @@
1
+ module RmsApi
2
+ class Configuration
3
+ attr_accessor :service_secret, :license_key
4
+
5
+ def initialize
6
+ @service_secret = ENV['RMS_SERVICE_SECRET']
7
+ @license_key = ENV['RMS_LICENSE_KEY']
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,131 @@
1
+ module RmsApi
2
+ module Helper
3
+ ENDPOINT_BASE = 'https://api.rms.rakuten.co.jp/es/1.0/'.freeze
4
+
5
+ def connection(service:, method:)
6
+ Faraday.new(url: ENDPOINT_BASE + "#{service}/#{method}") do |conn|
7
+ conn.adapter(Faraday.default_adapter)
8
+ conn.headers['Authorization'] = encoded_key
9
+ end
10
+ end
11
+
12
+ def convert_xml_into_json(xml)
13
+ Hash.from_xml(xml)
14
+ end
15
+
16
+ def handler(response)
17
+ rexml = REXML::Document.new(response.body)
18
+ define_singleton_method(:all) { convert_xml_into_json(response.body) }
19
+ check_system_status(rexml)
20
+ status_parser(response_code: get_response_code(rexml), error_messages: get_error_messages(rexml))
21
+ get_response_parser(rexml) if response.env.method == :get
22
+ self
23
+ end
24
+
25
+ private
26
+
27
+ def encoded_key
28
+ if service_secret.blank? && license_key.blank?
29
+ error_msg = 'serviceSecret and licenseKey are required'
30
+ raise StandardError, error_msg
31
+ else
32
+ 'ESA ' + Base64.strict_encode64(service_secret + ':' + license_key)
33
+ end
34
+ end
35
+
36
+ def service_secret
37
+ RmsApi.configuration.service_secret
38
+ end
39
+
40
+ def license_key
41
+ RmsApi.configuration.license_key
42
+ end
43
+
44
+ def check_system_status(rexml)
45
+ systemStatus = rexml.elements['result/status/systemStatus'].text
46
+ raise rexml.elements['result/status/message'].text if systemStatus == 'NG'
47
+ end
48
+
49
+ def get_response_code(rexml)
50
+ endpoint = get_endpoint(rexml)[:camel]
51
+ rexml.elements["result/#{endpoint}Result/code"].text
52
+ end
53
+
54
+ def get_error_messages(rexml)
55
+ endpoint = get_endpoint(rexml)[:camel]
56
+ err_point = "result/#{endpoint}Result/errorMessages/errorMessage/msg"
57
+ result = []
58
+ rexml.elements.each(err_point) do |element|
59
+ result << element.text
60
+ end
61
+ result
62
+ end
63
+
64
+ def get_endpoint(rexml)
65
+ result = {}
66
+ interfaceId = rexml.elements['result/status/interfaceId'].text
67
+ result[:api] = interfaceId.split('.')[0]
68
+ result[:method] = interfaceId.split('.')[1]
69
+ result[:camel] = "#{result[:api]}#{result[:method].capitalize}"
70
+ result
71
+ end
72
+
73
+ def status_parser(response_code:, error_messages:)
74
+ response_codes = YAML.load_file("#{File.dirname(__FILE__)}/../../config/response_codes.yml")
75
+ define_singleton_method(:is_success?) { response_code == 'N000' }
76
+ define_singleton_method(:message) { response_codes[response_code] }
77
+ define_singleton_method(:errors) { error_messages }
78
+ end
79
+
80
+ def get_response_parser(rexml)
81
+ xpoint = "result/#{get_endpoint(rexml)[:camel]}Result/item"
82
+ rexml.elements.each(xpoint) do |result|
83
+ result.children.each do |el|
84
+ next if el.to_s.strip.blank?
85
+
86
+ define_element_method(el)
87
+ end
88
+ end
89
+ self
90
+ end
91
+
92
+ def define_element_method(el)
93
+ define_singleton_method(el.name.underscore) do
94
+ if el.has_elements?
95
+ Hash.from_xml(el.to_s)
96
+ else
97
+ el.text.try!(:force_encoding, 'utf-8')
98
+ end
99
+ end
100
+ end
101
+
102
+ def post_response_parser(_rexml)
103
+ self
104
+ end
105
+ end
106
+ end
107
+
108
+ class Hash
109
+ class << self
110
+ def from_xml(rexml)
111
+ xml_elem_to_hash rexml.root
112
+ end
113
+
114
+ private
115
+
116
+ def xml_elem_to_hash(el)
117
+ value = el.has_elements? ? merged_children(el) : el.text
118
+ { el.name.to_sym => value }
119
+ end
120
+
121
+ def merged_children(el)
122
+ result = {}
123
+ el.each_element do |e|
124
+ result.merge!(xml_elem_to_hash(e)) do |_k, v1, v2|
125
+ v1.is_a?(Array) ? v1 << v2 : [v1, v2]
126
+ end
127
+ end
128
+ result
129
+ end
130
+ end
131
+ end
@@ -0,0 +1,4 @@
1
+ require 'rms_api/item/get'
2
+ require 'rms_api/item/insert'
3
+ require 'rms_api/item/update'
4
+ require 'rms_api/item/delete'
@@ -0,0 +1,15 @@
1
+ module RmsApi
2
+ module Item
3
+ extend RmsApi::Helper
4
+
5
+ def delete(item_data)
6
+ request_xml = { itemDeleteRequest: { item: item_data } }.to_xml(
7
+ root: 'request', camelize: :lower, skip_types: true
8
+ )
9
+ response = connection(service: :item, method: :delete).post { |r| r.body = request_xml }
10
+ handler response
11
+ end
12
+
13
+ module_function :delete
14
+ end
15
+ end
@@ -0,0 +1,12 @@
1
+ module RmsApi
2
+ module Item
3
+ extend RmsApi::Helper
4
+
5
+ def get(item_data)
6
+ response = connection(service: :item, method: :get).get { |r| r.params['itemUrl'] = item_data }
7
+ handler response
8
+ end
9
+
10
+ module_function :get
11
+ end
12
+ end
@@ -0,0 +1,15 @@
1
+ module RmsApi
2
+ module Item
3
+ extend RmsApi::Helper
4
+
5
+ def insert(item_data)
6
+ request_xml = { itemInsertRequest: { item: item_data } }.to_xml(
7
+ root: 'request', camelize: :lower, skip_types: true
8
+ )
9
+ response = connection(service: :item, method: :insert).post { |r| r.body = request_xml }
10
+ handler response
11
+ end
12
+
13
+ module_function :insert
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ module RmsApi
2
+ module Item
3
+ extend RmsApi::Helper
4
+
5
+ def update(item_data)
6
+ request_xml = { itemUpdateRequest: { item: item_data } }.to_xml(
7
+ root: 'request', camelize: :lower, skip_types: true
8
+ )
9
+ response = connection(service: :item, method: :update).post { |r| r.body = request_xml }
10
+ handler response
11
+ end
12
+
13
+ module_function :update
14
+ end
15
+ end
@@ -0,0 +1,3 @@
1
+ module RmsApi
2
+ VERSION = "0.3.0".freeze
3
+ end
data/rms_api.gemspec ADDED
@@ -0,0 +1,38 @@
1
+ require_relative 'lib/rms_api/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = "rms_api"
5
+ spec.version = RmsApi::VERSION
6
+ spec.authors = ["t4traw"]
7
+ spec.email = ["t4traw@gmail.com"]
8
+
9
+ spec.summary = 'RMSのAPIを簡単に叩けるrubyラッパー'
10
+ spec.description = 'RMSのAPIを簡単に叩けるrubyラッパー'
11
+ spec.homepage = 'https://github.com/t4traw/rms_api'
12
+ spec.license = "MIT"
13
+ spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
14
+
15
+ # Specify which files should be added to the gem when it is released.
16
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
17
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
18
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
19
+ end
20
+ spec.bindir = "exe"
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.add_dependency 'activemodel', '>= 4.2.8'
25
+ spec.add_dependency 'activesupport', '>= 4.2.8'
26
+ spec.add_dependency 'builder'
27
+ spec.add_dependency 'faraday', '>= 0.12.1'
28
+
29
+ spec.add_development_dependency 'bundler'
30
+ spec.add_development_dependency 'dotenv'
31
+ spec.add_development_dependency 'minitest', '~> 5.0'
32
+ spec.add_development_dependency 'minitest-reporters'
33
+ spec.add_development_dependency 'pry'
34
+ spec.add_development_dependency 'rake', '>= 12.3.3'
35
+ spec.add_development_dependency 'rubocop'
36
+ spec.add_development_dependency 'vcr'
37
+ spec.add_development_dependency 'webmock'
38
+ end
metadata ADDED
@@ -0,0 +1,245 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rms_api
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
+ platform: ruby
6
+ authors:
7
+ - t4traw
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2021-03-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activemodel
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: 4.2.8
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: 4.2.8
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 4.2.8
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 4.2.8
41
+ - !ruby/object:Gem::Dependency
42
+ name: builder
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: faraday
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: 0.12.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: 0.12.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: dotenv
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '5.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '5.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: minitest-reporters
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: pry
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
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
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: vcr
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: webmock
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ description: RMSのAPIを簡単に叩けるrubyラッパー
196
+ email:
197
+ - t4traw@gmail.com
198
+ executables: []
199
+ extensions: []
200
+ extra_rdoc_files: []
201
+ files:
202
+ - ".gitignore"
203
+ - ".travis.yml"
204
+ - CODE_OF_CONDUCT.md
205
+ - Gemfile
206
+ - LICENSE.txt
207
+ - README.md
208
+ - Rakefile
209
+ - bin/console
210
+ - bin/setup
211
+ - config/response_codes.yml
212
+ - lib/rms_api.rb
213
+ - lib/rms_api/configuration.rb
214
+ - lib/rms_api/helper.rb
215
+ - lib/rms_api/item.rb
216
+ - lib/rms_api/item/delete.rb
217
+ - lib/rms_api/item/get.rb
218
+ - lib/rms_api/item/insert.rb
219
+ - lib/rms_api/item/update.rb
220
+ - lib/rms_api/version.rb
221
+ - rms_api.gemspec
222
+ homepage: https://github.com/t4traw/rms_api
223
+ licenses:
224
+ - MIT
225
+ metadata: {}
226
+ post_install_message:
227
+ rdoc_options: []
228
+ require_paths:
229
+ - lib
230
+ required_ruby_version: !ruby/object:Gem::Requirement
231
+ requirements:
232
+ - - ">="
233
+ - !ruby/object:Gem::Version
234
+ version: 2.3.0
235
+ required_rubygems_version: !ruby/object:Gem::Requirement
236
+ requirements:
237
+ - - ">="
238
+ - !ruby/object:Gem::Version
239
+ version: '0'
240
+ requirements: []
241
+ rubygems_version: 3.1.4
242
+ signing_key:
243
+ specification_version: 4
244
+ summary: RMSのAPIを簡単に叩けるrubyラッパー
245
+ test_files: []