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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e849a1f54798b48c6c680c96828ac28869814b76
4
- data.tar.gz: 2d95146139b5bd709188dbb6b7e3033beae8228d
3
+ metadata.gz: a046343586444cc4d6e153f0459902a630ae35a7
4
+ data.tar.gz: 88e6237d3ad345141006aa40347d925bcb617b77
5
5
  SHA512:
6
- metadata.gz: 7cedd9430dad9205407779eb4d76104e8a103d0a2e90e2cfe51a0b42ee5566b293121298b9c9f9919d6d2ebae4ea500a08c6fb2eff83a9afb0d77abe7b26ca6e
7
- data.tar.gz: a9def24ae84bffa4949c9e826ac62502156b9b72109d2042b80d769d668c8a6c49a26e4464d86227e902b9a88ddae3babfd6da433a2beef8ca82b23f45e81e60
6
+ metadata.gz: b70c9bc49e29da711ec7f28c86e9f400c633578eeee2dc71b596f6dba5bc8854ba9521668dc3e2959f3e18293d2f79f9ef8366f530eb0804f35814d86fca415d
7
+ data.tar.gz: 3175666f9ffdfd8d7f486a0f75f9841c594954003706e0fd721a05091c70ca8bc4455c3a753a6da1a2947ca0cf0cfb437d497f990f2f38187965b3931230aaac
@@ -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.0
9
- - 2.1.0
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
@@ -1,5 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.2.6
4
+ * Fixes several Ruby warnings #8 (Thanks @amatsuda)
5
+
3
6
  ## 0.2.5
4
7
  * Support Pay-easy payment #7 (Thanks @ryooob)
5
8
 
@@ -38,11 +38,11 @@ module GMO
38
38
  http = create_http(server(options), options)
39
39
  http.use_ssl = true
40
40
 
41
- result = http.start do |http|
42
- response, body = if verb == "post"
43
- http.post(path, encode_params(args))
41
+ http.start do |h|
42
+ response = if verb == "post"
43
+ h.post(path, encode_params(args))
44
44
  else
45
- http.get("#{path}?#{encode_params(args)}")
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
- response = api(name, args, verb, options) do |response|
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
@@ -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
- response = api(name, args, verb, options) do |response|
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
@@ -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
- response = api(name, args, verb, options) do |response|
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
@@ -1,3 +1,3 @@
1
1
  module GMO
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
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.5
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: 2015-11-26 00:00:00.000000000 Z
11
+ date: 2016-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack