rms_item_api 0.2.0 → 0.2.1

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
2
  SHA1:
3
- metadata.gz: 027ea98e0b732bbaf22dfc40810744e5a3cb004a
4
- data.tar.gz: f2c0dd80efb003e3282a14fdacc9d5b4e22232b1
3
+ metadata.gz: 680bf2f5ae675643de15ac69a168e9ece46100be
4
+ data.tar.gz: 7110090e68a77091059152f6996cf67461876b27
5
5
  SHA512:
6
- metadata.gz: a7437444ce8de6cd34266cca4cf7df0254a6e6a86115a7298df31c8e084cff2fda32403fbc5e194464d9a7edbb8cb9ddfeaeb8242753fa539a0389acbd5ef47c
7
- data.tar.gz: 2c61e7520997ab46d410da2354e778d64fdd398918e444613772164ffe953f3b46bf5aa82bf1f121fcfd92c618ed1dd18b2fa177aca698039977825549c8e1eb
6
+ metadata.gz: 3f00639cb78c532785819014c71e9061010803ba8f597091644ded49764ed062b4828b35c72a37b68dd12f77f3eb65d03f8e28b897b9cf8fa904099c851507b1
7
+ data.tar.gz: 42ff148e2c961d9bc6eadf2d555dc202a8a68f1857c5797e3b03004c7dbc28a848f6c1a91b362b0d8d8b102931953c5699331888e8249c144e868cf62e74c578
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015 Tatsuro Moriyama
3
+ Copyright (c) 2015 t4traw
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
22
-
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # RmsItemApi
2
2
 
3
+ [![Build Status](https://travis-ci.org/t4traw/rms_item_api.svg?branch=master)](https://travis-ci.org/t4traw/rms_item_api)
4
+ [![Code Climate](https://codeclimate.com/github/t4traw/rms_item_api/badges/gpa.svg)](https://codeclimate.com/github/t4traw/rms_item_api)
5
+
3
6
  楽天市場に出店している店舗が使えるRMSの商品APIを叩くためのrubyラッパーです。シンプルなCRUD(作成、取得、更新、削除)のみを実装してあります。検索と複数更新は必要があれば追加したいと思います。
4
7
 
5
8
  ## Installation
@@ -21,8 +21,9 @@ module RmsItemApi
21
21
  rexml = REXML::Document.new(response.body)
22
22
  self.define_singleton_method(:all) { convert_xml_into_json(response.body) }
23
23
 
24
- # 通信がまともにできなかった場合はここがNGになる
25
- # status = rexml.elements["result/status/systemStatus"].text
24
+ if rexml.elements["result/status/systemStatus"].text == "NG"
25
+ raise rexml.elements["result/status/message"].text
26
+ end
26
27
 
27
28
  status_parser(rexml)
28
29
  case response.env.method
@@ -1,3 +1,3 @@
1
1
  module RmsItemApi
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
data/rms_item_api.gemspec CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = ["lib"]
20
20
 
21
21
  spec.add_dependency "faraday", '~> 0.11.0'
22
- spec.add_dependency "activesupport", '~> 5.0.2'
23
- spec.add_dependency "activemodel", '~> 5.0.2'
22
+ spec.add_dependency "activesupport", '~> 4.2.8'
23
+ spec.add_dependency "activemodel", '~> 4.2.8'
24
24
  spec.add_dependency "builder"
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.10"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rms_item_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-12 00:00:00.000000000 Z
11
+ date: 2017-06-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 5.0.2
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.0.2
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.0.2
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.0.2
54
+ version: 4.2.8
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: builder
57
57
  requirement: !ruby/object:Gem::Requirement