gmo-pg 1.0.0 → 1.0.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/gmo-pg.gemspec +1 -1
- 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/api_endpoint.rb +25 -0
- data/lib/{gmo-pg → gmo/pg}/dispatcher/shorthands.rb +0 -0
- data/lib/{gmo-pg → gmo/pg}/dispatcher.rb +1 -1
- 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
- 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 -0
- data/lib/gmo-pg.rb +1 -28
- metadata +28 -27
- data/lib/gmo-pg/api_endpoint.rb +0 -25
- data/lib/gmo-pg/http_resource.rb +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8af30afe0cd2a883190c1bbfd354a18d300d9bde
|
|
4
|
+
data.tar.gz: 8b2bb84035fa05b3ed452246e363e77913d54b8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98de09e221e1d30a10bab302032b379f0b25d4606e5e8defbcfc5b60c55c2471a02d7407c002c17c6b4224b49fc42baf4fc72b95b44b3677c09f5633aa8bcd81
|
|
7
|
+
data.tar.gz: d7394045340a553306da7859e469ccd68d7e0da7424e7f0bce7ab96a28e3e0e6dfc8d5b8d8745afc9eea89a6835f86bbabf9249b9b277f129affc55454ac53ad
|
data/gmo-pg.gemspec
CHANGED
|
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
|
|
@@ -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'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/gmo/pg.rb
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
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(&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
|
data/lib/gmo-pg.rb
CHANGED
|
@@ -1,28 +1 @@
|
|
|
1
|
-
require 'gmo
|
|
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(&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
|
|
1
|
+
require File.join(File.dirname(__FILE__), 'gmo', 'pg')
|
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.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- kissy2go
|
|
@@ -28,32 +28,33 @@ 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
|
|
31
|
+
- lib/gmo/pg.rb
|
|
32
|
+
- lib/gmo/pg/api_endpoint.rb
|
|
33
|
+
- lib/gmo/pg/api_endpoint/alter_tran.rb
|
|
34
|
+
- lib/gmo/pg/api_endpoint/change_tran.rb
|
|
35
|
+
- lib/gmo/pg/api_endpoint/delete_card.rb
|
|
36
|
+
- lib/gmo/pg/api_endpoint/delete_member.rb
|
|
37
|
+
- lib/gmo/pg/api_endpoint/entry_tran.rb
|
|
38
|
+
- lib/gmo/pg/api_endpoint/exec_tran.rb
|
|
39
|
+
- lib/gmo/pg/api_endpoint/save_card.rb
|
|
40
|
+
- lib/gmo/pg/api_endpoint/save_member.rb
|
|
41
|
+
- lib/gmo/pg/api_endpoint/search_card.rb
|
|
42
|
+
- lib/gmo/pg/api_endpoint/search_card_detail.rb
|
|
43
|
+
- lib/gmo/pg/api_endpoint/search_member.rb
|
|
44
|
+
- lib/gmo/pg/api_endpoint/search_trade.rb
|
|
45
|
+
- lib/gmo/pg/api_endpoint/secure_tran.rb
|
|
46
|
+
- lib/gmo/pg/api_endpoint/traded_card.rb
|
|
47
|
+
- lib/gmo/pg/api_endpoint/update_member.rb
|
|
48
|
+
- lib/gmo/pg/dispatcher.rb
|
|
49
|
+
- lib/gmo/pg/dispatcher/shorthands.rb
|
|
50
|
+
- lib/gmo/pg/error.rb
|
|
51
|
+
- lib/gmo/pg/http_resource.rb
|
|
52
|
+
- lib/gmo/pg/http_resource/errors.rb
|
|
53
|
+
- lib/gmo/pg/http_resource/generic_request.rb
|
|
54
|
+
- lib/gmo/pg/http_resource/generic_response.rb
|
|
55
|
+
- lib/gmo/pg/http_resource/payload.rb
|
|
56
|
+
- lib/gmo/pg/http_resource/payload/typecast.rb
|
|
57
|
+
- lib/gmo/pg/version.rb
|
|
57
58
|
- wercker.yml
|
|
58
59
|
homepage: https://github.com/kissy2go/gmo-pg
|
|
59
60
|
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