gmo 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -4
- data/CHANGELOG.md +3 -0
- data/lib/gmo/http_services.rb +5 -5
- data/lib/gmo/shop_and_site_api.rb +2 -3
- data/lib/gmo/shop_api.rb +1 -2
- data/lib/gmo/site_api.rb +2 -3
- data/lib/gmo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a046343586444cc4d6e153f0459902a630ae35a7
|
4
|
+
data.tar.gz: 88e6237d3ad345141006aa40347d925bcb617b77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b70c9bc49e29da711ec7f28c86e9f400c633578eeee2dc71b596f6dba5bc8854ba9521668dc3e2959f3e18293d2f79f9ef8366f530eb0804f35814d86fca415d
|
7
|
+
data.tar.gz: 3175666f9ffdfd8d7f486a0f75f9841c594954003706e0fd721a05091c70ca8bc4455c3a753a6da1a2947ca0cf0cfb437d497f990f2f38187965b3931230aaac
|
data/.travis.yml
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 1.9.3
|
4
|
-
- 1.9.2
|
5
3
|
- rbx-2.1.1
|
6
4
|
- ruby-head
|
7
5
|
- 1.8.7
|
8
|
-
- 2.0
|
9
|
-
- 2.1
|
6
|
+
- 2.0
|
7
|
+
- 2.1
|
8
|
+
- 2.2
|
9
|
+
- 2.3.0
|
10
10
|
- jruby-18mode
|
11
11
|
- jruby-19mode
|
12
12
|
- jruby-head
|
13
|
+
before_install:
|
14
|
+
- gem update bundler
|
13
15
|
matrix:
|
14
16
|
allow_failures:
|
15
17
|
- rvm: ruby-head
|
@@ -18,3 +20,5 @@ matrix:
|
|
18
20
|
- rvm: jruby-head
|
19
21
|
- rvm: 1.8.7
|
20
22
|
- rvm: rbx-2.1.1
|
23
|
+
- rvm: 1.9.3
|
24
|
+
- rvm: 1.9.2
|
data/CHANGELOG.md
CHANGED
data/lib/gmo/http_services.rb
CHANGED
@@ -38,11 +38,11 @@ module GMO
|
|
38
38
|
http = create_http(server(options), options)
|
39
39
|
http.use_ssl = true
|
40
40
|
|
41
|
-
|
42
|
-
response
|
43
|
-
|
41
|
+
http.start do |h|
|
42
|
+
response = if verb == "post"
|
43
|
+
h.post(path, encode_params(args))
|
44
44
|
else
|
45
|
-
|
45
|
+
h.get("#{path}?#{encode_params(args)}")
|
46
46
|
end
|
47
47
|
GMO::Response.new(response.code.to_i, response.body, response)
|
48
48
|
end
|
@@ -79,4 +79,4 @@ module GMO
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
end
|
82
|
-
end
|
82
|
+
end
|
@@ -37,14 +37,13 @@ module GMO
|
|
37
37
|
"SiteID" => @site_id,
|
38
38
|
"SitePass" => @site_pass
|
39
39
|
})
|
40
|
-
|
40
|
+
api(name, args, verb, options) do |response|
|
41
41
|
if response.is_a?(Hash) && !response["ErrInfo"].nil?
|
42
42
|
raise APIError.new(response)
|
43
43
|
end
|
44
44
|
end
|
45
|
-
response
|
46
45
|
end
|
47
46
|
|
48
47
|
end
|
49
48
|
end
|
50
|
-
end
|
49
|
+
end
|
data/lib/gmo/shop_api.rb
CHANGED
@@ -236,12 +236,11 @@ module GMO
|
|
236
236
|
|
237
237
|
def api_call(name, args = {}, verb = "post", options = {})
|
238
238
|
args.merge!({ "ShopID" => @shop_id, "ShopPass" => @shop_pass })
|
239
|
-
|
239
|
+
api(name, args, verb, options) do |response|
|
240
240
|
if response.is_a?(Hash) && !response["ErrInfo"].nil?
|
241
241
|
raise APIError.new(response)
|
242
242
|
end
|
243
243
|
end
|
244
|
-
response
|
245
244
|
end
|
246
245
|
|
247
246
|
end
|
data/lib/gmo/site_api.rb
CHANGED
@@ -103,15 +103,14 @@ module GMO
|
|
103
103
|
|
104
104
|
def api_call(name, args = {}, verb = "post", options = {})
|
105
105
|
args.merge!({ "SiteID" => @site_id, "SitePass" => @site_pass })
|
106
|
-
|
106
|
+
api(name, args, verb, options) do |response|
|
107
107
|
if response.is_a?(Hash) && !response["ErrInfo"].nil?
|
108
108
|
raise APIError.new(response)
|
109
109
|
end
|
110
110
|
end
|
111
|
-
response
|
112
111
|
end
|
113
112
|
|
114
113
|
end
|
115
114
|
|
116
115
|
end
|
117
|
-
end
|
116
|
+
end
|
data/lib/gmo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tatsuo Kaniwa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|