gmo-pg 1.0.4 → 1.0.5
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/gmo-pg.gemspec +1 -1
- data/lib/gmo-pg/api_endpoint.rb +25 -0
- data/lib/{gmo/pg → gmo-pg}/dispatcher.rb +1 -1
- data/lib/{gmo/pg → gmo-pg}/http_resource/payload.rb +1 -1
- data/lib/gmo-pg/http_resource.rb +4 -0
- data/lib/{gmo/pg → gmo-pg}/version.rb +1 -1
- data/lib/gmo-pg.rb +28 -1
- metadata +27 -28
- data/lib/gmo/pg/api_endpoint.rb +0 -25
- data/lib/gmo/pg/http_resource.rb +0 -4
- data/lib/gmo/pg.rb +0 -28
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/alter_tran.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/change_tran.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/delete_card.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/delete_member.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/entry_tran.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/exec_tran.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/save_card.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/save_member.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/search_card.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/search_card_detail.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/search_member.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/search_trade.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/secure_tran.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/traded_card.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/api_endpoint/update_member.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/dispatcher/shorthands.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/error.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/http_resource/errors.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/http_resource/generic_request.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/http_resource/generic_response.rb +0 -0
- /data/lib/{gmo/pg → gmo-pg}/http_resource/payload/typecast.rb +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93ee0e94c956290f37d5d2ed9727c378bf01a567
|
|
4
|
+
data.tar.gz: ebf2853f7f688a51f383450d5a381d1f6984c820
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 40a270bb81603f42218574036dfb51223ad43a7beedee6e5a64c99aac7881a08fc25373f52d77fecdd4dda32c9120ba3e2ae5564c89ead43aa4fb54a159886b5
|
|
7
|
+
data.tar.gz: 82bf22174747f9978387bbf11a3fd1c008d3ad0a208cf31fc28148f48102a0596cc826aa8165836be62840b65468127a5f385e11573a1ef48bb6f8b16a6cef13
|
data/gmo-pg.gemspec
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module GMO
|
|
2
|
+
module PG
|
|
3
|
+
module APIEndpoint
|
|
4
|
+
def endpoint_path
|
|
5
|
+
"/payment/#{self.name.split('::')[-1]}.idPass"
|
|
6
|
+
end
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
|
|
11
|
+
require 'gmo-pg/api_endpoint/entry_tran'
|
|
12
|
+
require 'gmo-pg/api_endpoint/exec_tran'
|
|
13
|
+
require 'gmo-pg/api_endpoint/secure_tran'
|
|
14
|
+
require 'gmo-pg/api_endpoint/save_member'
|
|
15
|
+
require 'gmo-pg/api_endpoint/update_member'
|
|
16
|
+
require 'gmo-pg/api_endpoint/delete_member'
|
|
17
|
+
require 'gmo-pg/api_endpoint/search_member'
|
|
18
|
+
require 'gmo-pg/api_endpoint/save_card'
|
|
19
|
+
require 'gmo-pg/api_endpoint/delete_card'
|
|
20
|
+
require 'gmo-pg/api_endpoint/search_card'
|
|
21
|
+
require 'gmo-pg/api_endpoint/alter_tran'
|
|
22
|
+
require 'gmo-pg/api_endpoint/change_tran'
|
|
23
|
+
require 'gmo-pg/api_endpoint/search_trade'
|
|
24
|
+
require 'gmo-pg/api_endpoint/traded_card'
|
|
25
|
+
require 'gmo-pg/api_endpoint/search_card_detail'
|
data/lib/gmo-pg.rb
CHANGED
|
@@ -1 +1,28 @@
|
|
|
1
|
-
require
|
|
1
|
+
require 'gmo-pg/version'
|
|
2
|
+
|
|
3
|
+
require 'gmo-pg/http_resource'
|
|
4
|
+
require 'gmo-pg/api_endpoint'
|
|
5
|
+
require 'gmo-pg/dispatcher'
|
|
6
|
+
require 'gmo-pg/error'
|
|
7
|
+
|
|
8
|
+
module GMO
|
|
9
|
+
module PG
|
|
10
|
+
@open_timeout = 60
|
|
11
|
+
@read_timeout = 90
|
|
12
|
+
@raise_on_api_error = true
|
|
13
|
+
|
|
14
|
+
class << self
|
|
15
|
+
attr_accessor :base_url, :open_timeout, :read_timeout, :proxy, :raise_on_api_error
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def self.connect(base_url = self.base_url, &block)
|
|
19
|
+
dispatcher = Dispatcher.new(base_url) do |d|
|
|
20
|
+
d.open_timeout = open_timeout
|
|
21
|
+
d.read_timeout = read_timeout
|
|
22
|
+
d.raise_on_api_error = raise_on_api_error
|
|
23
|
+
d.use_proxy proxy if proxy
|
|
24
|
+
end
|
|
25
|
+
dispatcher.connect(&block)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gmo-pg
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kissy2go
|
|
@@ -28,33 +28,32 @@ files:
|
|
|
28
28
|
- bin/console
|
|
29
29
|
- gmo-pg.gemspec
|
|
30
30
|
- lib/gmo-pg.rb
|
|
31
|
-
- lib/gmo/
|
|
32
|
-
- lib/gmo
|
|
33
|
-
- lib/gmo
|
|
34
|
-
- lib/gmo
|
|
35
|
-
- lib/gmo
|
|
36
|
-
- lib/gmo
|
|
37
|
-
- lib/gmo
|
|
38
|
-
- lib/gmo
|
|
39
|
-
- lib/gmo
|
|
40
|
-
- lib/gmo
|
|
41
|
-
- lib/gmo
|
|
42
|
-
- lib/gmo
|
|
43
|
-
- lib/gmo
|
|
44
|
-
- lib/gmo
|
|
45
|
-
- lib/gmo
|
|
46
|
-
- lib/gmo
|
|
47
|
-
- lib/gmo
|
|
48
|
-
- lib/gmo
|
|
49
|
-
- lib/gmo
|
|
50
|
-
- lib/gmo
|
|
51
|
-
- lib/gmo
|
|
52
|
-
- lib/gmo
|
|
53
|
-
- lib/gmo
|
|
54
|
-
- lib/gmo
|
|
55
|
-
- lib/gmo
|
|
56
|
-
- lib/gmo
|
|
57
|
-
- lib/gmo/pg/version.rb
|
|
31
|
+
- lib/gmo-pg/api_endpoint.rb
|
|
32
|
+
- lib/gmo-pg/api_endpoint/alter_tran.rb
|
|
33
|
+
- lib/gmo-pg/api_endpoint/change_tran.rb
|
|
34
|
+
- lib/gmo-pg/api_endpoint/delete_card.rb
|
|
35
|
+
- lib/gmo-pg/api_endpoint/delete_member.rb
|
|
36
|
+
- lib/gmo-pg/api_endpoint/entry_tran.rb
|
|
37
|
+
- lib/gmo-pg/api_endpoint/exec_tran.rb
|
|
38
|
+
- lib/gmo-pg/api_endpoint/save_card.rb
|
|
39
|
+
- lib/gmo-pg/api_endpoint/save_member.rb
|
|
40
|
+
- lib/gmo-pg/api_endpoint/search_card.rb
|
|
41
|
+
- lib/gmo-pg/api_endpoint/search_card_detail.rb
|
|
42
|
+
- lib/gmo-pg/api_endpoint/search_member.rb
|
|
43
|
+
- lib/gmo-pg/api_endpoint/search_trade.rb
|
|
44
|
+
- lib/gmo-pg/api_endpoint/secure_tran.rb
|
|
45
|
+
- lib/gmo-pg/api_endpoint/traded_card.rb
|
|
46
|
+
- lib/gmo-pg/api_endpoint/update_member.rb
|
|
47
|
+
- lib/gmo-pg/dispatcher.rb
|
|
48
|
+
- lib/gmo-pg/dispatcher/shorthands.rb
|
|
49
|
+
- lib/gmo-pg/error.rb
|
|
50
|
+
- lib/gmo-pg/http_resource.rb
|
|
51
|
+
- lib/gmo-pg/http_resource/errors.rb
|
|
52
|
+
- lib/gmo-pg/http_resource/generic_request.rb
|
|
53
|
+
- lib/gmo-pg/http_resource/generic_response.rb
|
|
54
|
+
- lib/gmo-pg/http_resource/payload.rb
|
|
55
|
+
- lib/gmo-pg/http_resource/payload/typecast.rb
|
|
56
|
+
- lib/gmo-pg/version.rb
|
|
58
57
|
- wercker.yml
|
|
59
58
|
homepage: https://github.com/kissy2go/gmo-pg
|
|
60
59
|
licenses:
|
data/lib/gmo/pg/api_endpoint.rb
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
module GMO
|
|
2
|
-
module PG
|
|
3
|
-
module APIEndpoint
|
|
4
|
-
def endpoint_path
|
|
5
|
-
"/payment/#{self.name.split('::')[-1]}.idPass"
|
|
6
|
-
end
|
|
7
|
-
end
|
|
8
|
-
end
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
require 'gmo/pg/api_endpoint/entry_tran'
|
|
12
|
-
require 'gmo/pg/api_endpoint/exec_tran'
|
|
13
|
-
require 'gmo/pg/api_endpoint/secure_tran'
|
|
14
|
-
require 'gmo/pg/api_endpoint/save_member'
|
|
15
|
-
require 'gmo/pg/api_endpoint/update_member'
|
|
16
|
-
require 'gmo/pg/api_endpoint/delete_member'
|
|
17
|
-
require 'gmo/pg/api_endpoint/search_member'
|
|
18
|
-
require 'gmo/pg/api_endpoint/save_card'
|
|
19
|
-
require 'gmo/pg/api_endpoint/delete_card'
|
|
20
|
-
require 'gmo/pg/api_endpoint/search_card'
|
|
21
|
-
require 'gmo/pg/api_endpoint/alter_tran'
|
|
22
|
-
require 'gmo/pg/api_endpoint/change_tran'
|
|
23
|
-
require 'gmo/pg/api_endpoint/search_trade'
|
|
24
|
-
require 'gmo/pg/api_endpoint/traded_card'
|
|
25
|
-
require 'gmo/pg/api_endpoint/search_card_detail'
|
data/lib/gmo/pg/http_resource.rb
DELETED
data/lib/gmo/pg.rb
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
require 'gmo/pg/version'
|
|
2
|
-
|
|
3
|
-
require 'gmo/pg/http_resource'
|
|
4
|
-
require 'gmo/pg/api_endpoint'
|
|
5
|
-
require 'gmo/pg/dispatcher'
|
|
6
|
-
require 'gmo/pg/error'
|
|
7
|
-
|
|
8
|
-
module GMO
|
|
9
|
-
module PG
|
|
10
|
-
@open_timeout = 60
|
|
11
|
-
@read_timeout = 90
|
|
12
|
-
@raise_on_api_error = true
|
|
13
|
-
|
|
14
|
-
class << self
|
|
15
|
-
attr_accessor :base_url, :open_timeout, :read_timeout, :proxy, :raise_on_api_error
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
def self.connect(base_url = self.base_url, &block)
|
|
19
|
-
dispatcher = Dispatcher.new(base_url) do |d|
|
|
20
|
-
d.open_timeout = open_timeout
|
|
21
|
-
d.read_timeout = read_timeout
|
|
22
|
-
d.raise_on_api_error = raise_on_api_error
|
|
23
|
-
d.use_proxy proxy if proxy
|
|
24
|
-
end
|
|
25
|
-
dispatcher.connect(&block)
|
|
26
|
-
end
|
|
27
|
-
end
|
|
28
|
-
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|