rms_api_ruby 0.2.0 → 0.2.1
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +11 -1
- data/lib/rms_api_ruby.rb +1 -0
- data/lib/rms_api_ruby/chain/soap_client.rb +7 -1
- data/lib/rms_api_ruby/version.rb +1 -1
- data/rms_api_ruby.gemspec +3 -0
- metadata +19 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fbbd112a212064fd88226a15e38ec15780dff98f468a37cc290115418a8e9d81
|
4
|
+
data.tar.gz: 6b8ffa526d0e104c33ff5ab2db0be0c5a076a33d7b487426a72b1efd4b3ee27a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d36e4cf9357c0a7bff564cb6fa428bd0b9f8630f0928c57a9c6e73f88cf66efccb193f2f2bcb6a80f89c96ad5973ce56925ad31ebd64f210c79d42e2bbdc553b
|
7
|
+
data.tar.gz: a4a33facf36bddbe1f92a98d63d23b128bedfc93a12b9fa81de086b60a060e28ed3c066ae24c2b91c9ad1708e8b97e27fb509fc3be861f09d8661a7848834ec2
|
data/CHANGELOG.md
ADDED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rms_api_ruby (0.2.
|
4
|
+
rms_api_ruby (0.2.1)
|
5
5
|
activesupport
|
6
6
|
hashie
|
7
7
|
savon (~> 2.12.0)
|
@@ -20,6 +20,8 @@ GEM
|
|
20
20
|
nokogiri
|
21
21
|
ast (2.4.0)
|
22
22
|
builder (3.2.3)
|
23
|
+
byebug (10.0.2)
|
24
|
+
coderay (1.1.2)
|
23
25
|
concurrent-ruby (1.0.5)
|
24
26
|
diff-lcs (1.3)
|
25
27
|
gyoku (1.3.1)
|
@@ -31,6 +33,7 @@ GEM
|
|
31
33
|
i18n (1.0.1)
|
32
34
|
concurrent-ruby (~> 1.0)
|
33
35
|
jaro_winkler (1.5.1)
|
36
|
+
method_source (0.9.0)
|
34
37
|
mini_portile2 (2.3.0)
|
35
38
|
minitest (5.11.3)
|
36
39
|
nokogiri (1.8.2)
|
@@ -40,6 +43,12 @@ GEM
|
|
40
43
|
parser (2.5.1.0)
|
41
44
|
ast (~> 2.4.0)
|
42
45
|
powerpack (0.1.1)
|
46
|
+
pry (0.11.3)
|
47
|
+
coderay (~> 1.1.0)
|
48
|
+
method_source (~> 0.9.0)
|
49
|
+
pry-byebug (3.6.0)
|
50
|
+
byebug (~> 10.0)
|
51
|
+
pry (~> 0.10)
|
43
52
|
rack (2.0.5)
|
44
53
|
rainbow (3.0.0)
|
45
54
|
rake (10.5.0)
|
@@ -88,6 +97,7 @@ PLATFORMS
|
|
88
97
|
|
89
98
|
DEPENDENCIES
|
90
99
|
bundler (~> 1.16)
|
100
|
+
pry-byebug
|
91
101
|
rake (~> 10.0)
|
92
102
|
rms_api_ruby!
|
93
103
|
rspec (~> 3.0)
|
data/lib/rms_api_ruby.rb
CHANGED
@@ -14,7 +14,7 @@ module RmsApiRuby
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def call
|
17
|
-
chain {
|
17
|
+
chain { execute_request }
|
18
18
|
when_falsy { status_code == SUCCESS }.
|
19
19
|
dam { handle_http_error }
|
20
20
|
chain(:response) { parse_to_mash }
|
@@ -22,6 +22,12 @@ module RmsApiRuby
|
|
22
22
|
|
23
23
|
private
|
24
24
|
|
25
|
+
def execute_request
|
26
|
+
@response = @client.call(@operation, message: @message)
|
27
|
+
rescue Savon::SOAPFault
|
28
|
+
@response = Hashie::Mash.new(http: { code: 500 })
|
29
|
+
end
|
30
|
+
|
25
31
|
def handle_http_error
|
26
32
|
message = "HTTP Request failed. Response code: #{status_code}"
|
27
33
|
RmsApiRuby::ServerError.new message
|
data/lib/rms_api_ruby/version.rb
CHANGED
data/rms_api_ruby.gemspec
CHANGED
@@ -14,6 +14,8 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.homepage = "https://github.com/Kaicoh"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
|
+
spec.required_ruby_version = '~> 2.1'
|
18
|
+
|
17
19
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
20
|
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
21
|
# if spec.respond_to?(:metadata)
|
@@ -41,4 +43,5 @@ Gem::Specification.new do |spec|
|
|
41
43
|
spec.add_development_dependency "rake", "~> 10.0"
|
42
44
|
spec.add_development_dependency "rspec", "~> 3.0"
|
43
45
|
spec.add_development_dependency 'rubocop', '~> 0.57.1'
|
46
|
+
spec.add_development_dependency 'pry-byebug'
|
44
47
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rms_api_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kaicoh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-06-
|
11
|
+
date: 2018-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -122,6 +122,20 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 0.57.1
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry-byebug
|
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'
|
125
139
|
description: A Ruby client for RMS(Rakuten Marchant Service) WEB API
|
126
140
|
email:
|
127
141
|
- sumireminami@gmail.com
|
@@ -133,6 +147,7 @@ files:
|
|
133
147
|
- ".rspec"
|
134
148
|
- ".rubocop.yml"
|
135
149
|
- ".travis.yml"
|
150
|
+
- CHANGELOG.md
|
136
151
|
- CODE_OF_CONDUCT.md
|
137
152
|
- Gemfile
|
138
153
|
- Gemfile.lock
|
@@ -165,9 +180,9 @@ require_paths:
|
|
165
180
|
- lib
|
166
181
|
required_ruby_version: !ruby/object:Gem::Requirement
|
167
182
|
requirements:
|
168
|
-
- - "
|
183
|
+
- - "~>"
|
169
184
|
- !ruby/object:Gem::Version
|
170
|
-
version: '
|
185
|
+
version: '2.1'
|
171
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
187
|
requirements:
|
173
188
|
- - ">="
|