gmo 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile +4 -2
- data/lib/gmo.rb +7 -10
- data/lib/gmo/http_services.rb +1 -0
- data/lib/gmo/json.rb +3 -3
- data/lib/gmo/site_api.rb +1 -1
- data/lib/gmo/version.rb +1 -1
- data/spec/gmo/site_api_spec.rb +1 -1
- metadata +22 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b86dd821929bed5a3840b073fefbf05092521af
|
4
|
+
data.tar.gz: 86a66dac3314fca4706402139d479e38604fe9ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4815cd8462485a22634c5a6df4cb4000cc91f925bbf157b1ce28bade74d5d61fef96023a2ebed1303f9fbacddbdfbafee3db96b96887772a02a08b6cb5ccfed
|
7
|
+
data.tar.gz: fa5623247025499434727b317e314e9ab46a8438b3de20430076483b877f1810cea504829cf88f00f5ff3ec323621c228d8fc544084ccb113a573be7ab540251
|
data/.travis.yml
CHANGED
@@ -2,11 +2,11 @@ language: ruby
|
|
2
2
|
rvm:
|
3
3
|
- 1.9.3
|
4
4
|
- 1.9.2
|
5
|
-
- rbx-
|
6
|
-
- rbx-19mode
|
5
|
+
- rbx-2.1.1
|
7
6
|
- ruby-head
|
8
7
|
- 1.8.7
|
9
8
|
- 2.0.0
|
9
|
+
- 2.1.0
|
10
10
|
- jruby-18mode
|
11
11
|
- jruby-19mode
|
12
12
|
- jruby-head
|
@@ -15,4 +15,6 @@ matrix:
|
|
15
15
|
- rvm: ruby-head
|
16
16
|
- rvm: jruby-18mode
|
17
17
|
- rvm: jruby-19mode
|
18
|
-
- rvm: jruby-head
|
18
|
+
- rvm: jruby-head
|
19
|
+
- rvm: 1.8.7
|
20
|
+
- rvm: rbx-2.1.1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 0.2.4
|
4
|
+
* Fix SiteAPI search_card required params (:card_seq is not required field)
|
5
|
+
* Some refactoring
|
6
|
+
|
3
7
|
## 0.2.3
|
4
8
|
* Added module GMO::JSON to blur the differences between the different MultiJson
|
5
9
|
* Added test for ShopAndSiteAPI#trade_card
|
data/Gemfile
CHANGED
data/lib/gmo.rb
CHANGED
@@ -1,18 +1,15 @@
|
|
1
|
-
require
|
2
|
-
require
|
3
|
-
require 'nkf'
|
1
|
+
require "rack/utils"
|
2
|
+
require "nkf"
|
4
3
|
|
5
4
|
require "gmo/const"
|
6
|
-
require
|
7
|
-
require
|
8
|
-
require
|
9
|
-
require
|
10
|
-
require
|
5
|
+
require "gmo/errors"
|
6
|
+
require "gmo/http_services"
|
7
|
+
require "gmo/shop_api"
|
8
|
+
require "gmo/site_api"
|
9
|
+
require "gmo/shop_and_site_api"
|
11
10
|
require "gmo/version"
|
12
11
|
|
13
12
|
# Ruby client library for the GMO Payment Platform.
|
14
|
-
# Copyright 2013 Tatsuo Kaniwa
|
15
|
-
# tatsuo[at]kaniwa.biz
|
16
13
|
|
17
14
|
module GMO
|
18
15
|
|
data/lib/gmo/http_services.rb
CHANGED
data/lib/gmo/json.rb
CHANGED
@@ -2,11 +2,11 @@ require "multi_json"
|
|
2
2
|
module GMO
|
3
3
|
module JSON
|
4
4
|
|
5
|
-
def self.dump(
|
5
|
+
def self.dump(*args)
|
6
6
|
if MultiJson.respond_to?(:dump)
|
7
|
-
MultiJson.dump(
|
7
|
+
MultiJson.dump(*args)
|
8
8
|
else
|
9
|
-
MultiJson.encode(
|
9
|
+
MultiJson.encode(*args)
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
data/lib/gmo/site_api.rb
CHANGED
@@ -83,7 +83,7 @@ module GMO
|
|
83
83
|
# /payment/SearchCard.idPass
|
84
84
|
def search_card(options = {})
|
85
85
|
name = "SearchCard.idPass"
|
86
|
-
required = [:member_id, :
|
86
|
+
required = [:member_id, :seq_mode]
|
87
87
|
assert_required_options(required, options)
|
88
88
|
post_request name, options
|
89
89
|
end
|
data/lib/gmo/version.rb
CHANGED
data/spec/gmo/site_api_spec.rb
CHANGED
@@ -186,7 +186,7 @@ describe "GMO::Payment::SiteAPI" do
|
|
186
186
|
it "got error if missing options", :vcr do
|
187
187
|
lambda {
|
188
188
|
result = @service.search_card()
|
189
|
-
}.should raise_error("Required member_id,
|
189
|
+
}.should raise_error("Required member_id, seq_mode were not provided.")
|
190
190
|
end
|
191
191
|
end
|
192
192
|
|
metadata
CHANGED
@@ -1,97 +1,97 @@
|
|
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.4
|
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: 2014-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: multi_json
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
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
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: vcr
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
description: Ruby client library for the GMO Payment Platform.
|
@@ -102,8 +102,8 @@ extensions: []
|
|
102
102
|
extra_rdoc_files:
|
103
103
|
- README.md
|
104
104
|
files:
|
105
|
-
- .gitignore
|
106
|
-
- .travis.yml
|
105
|
+
- ".gitignore"
|
106
|
+
- ".travis.yml"
|
107
107
|
- CHANGELOG.md
|
108
108
|
- Gemfile
|
109
109
|
- LICENSE
|
@@ -167,25 +167,25 @@ licenses:
|
|
167
167
|
metadata: {}
|
168
168
|
post_install_message:
|
169
169
|
rdoc_options:
|
170
|
-
- --line-numbers
|
171
|
-
- --inline-source
|
172
|
-
- --title
|
170
|
+
- "--line-numbers"
|
171
|
+
- "--inline-source"
|
172
|
+
- "--title"
|
173
173
|
- GMO
|
174
174
|
require_paths:
|
175
175
|
- lib
|
176
176
|
required_ruby_version: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
|
-
- -
|
178
|
+
- - ">="
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0'
|
181
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
182
182
|
requirements:
|
183
|
-
- -
|
183
|
+
- - ">="
|
184
184
|
- !ruby/object:Gem::Version
|
185
185
|
version: '0'
|
186
186
|
requirements: []
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.0.
|
188
|
+
rubygems_version: 2.2.0.rc.1
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: 'GMO Payment API client: Ruby client library for the GMO Payment Platform.'
|