bootpay 1.0.9 → 1.1.0

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
  SHA256:
3
- metadata.gz: 3eb10bcc2cbb6a72251c867f80e7dc139528feeb542c131f5bc7e0f584550706
4
- data.tar.gz: 78f4e2b5e64a77c27416cc7c4bc6b4ce674395f2b112ac8b1a4bee6605c8064f
3
+ metadata.gz: f373c87a1137d3bf7c549fcad179c92c96fee2b642395de0a404772b03afdfef
4
+ data.tar.gz: 9e920862908a5a4022b8d34dd1df45eed317e0ebbb7b50bb46b0fd0e77585ab9
5
5
  SHA512:
6
- metadata.gz: ef40d4391980eed446b9e4bad9a13bfed76dc8588bc64bf0c7e8856fbab6d403b068ec764b691808b6eaf3f4f9fc1fc50479788f25bd60f3ff8d9742dd2647e7
7
- data.tar.gz: fe92f9724612f87bb3adbc7660cd1e34fd6792f137aaebc232e226157213f2731eaff5606a54dc701f1e29b0d430b98f4d4cb33d67506efe64fad94d1d1c901c
6
+ metadata.gz: 04457d99a2327f0eb55dea7a2ba49d6bf604c9f23613307498630c0ac58583c1f19ee8ae183d70eaafb710258c334c6e973190181d0e8a7f308d2672394ea081
7
+ data.tar.gz: efe6447e7b7da0aafa19c85d97383343348e8283cd26eee5037979e1741d2f06f8e67a5d5386c1025a231398d75ee1a6955da45a2fc1e2feba1d3faf6101776e
data/.DS_Store ADDED
Binary file
data/.gitignore CHANGED
@@ -13,5 +13,4 @@
13
13
  *.idea
14
14
  *.iml
15
15
  Gemfile.lock
16
- *.gem
17
- *.rspec
16
+ *.gem
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --require spec_helper
data/bootpay.gemspec CHANGED
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
32
32
  spec.require_paths = ["lib"]
33
33
 
34
34
  # Uncomment to register a new dependency of your gem
35
- spec.add_dependency "activesupport", "~> 7.0"
35
+ spec.add_dependency "activesupport", "~> 6.0"
36
36
  spec.add_dependency "http"
37
37
  # spec.add_dependency "example-gem", "~> 1.0"
38
38
 
data/lib/.DS_Store ADDED
Binary file
Binary file
data/lib/bootpay/rest.rb CHANGED
@@ -8,6 +8,9 @@ module Bootpay::Rest
8
8
  # Comment by Gosomi
9
9
  # Date: 2021-05-21
10
10
  def request(method: :post, uri:, payload: {}, headers: {})
11
+
12
+ print([Bootpay::Api::API[@mode.to_sym], uri].join('/'))
13
+
11
14
  response = HTTP.headers(
12
15
  {
13
16
  # Authorization: "Bearer #{@token}",
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bootpay
4
- VERSION = "1.0.9"
4
+ VERSION = "1.1.0"
5
5
  BANKCODE = {
6
6
  "한국은행" => "001",
7
7
  "기업은행" => "003",
data/lib/bootpay.rb CHANGED
@@ -32,9 +32,10 @@ module Bootpay
32
32
 
33
33
  API =
34
34
  {
35
- development: 'https://dev-api.bootpay.co.kr/',
36
- stage: 'https://stage-api.bootpay.co.kr/',
37
- production: 'https://api.bootpay.co.kr/'
35
+ development: 'https://dev-api.bootpay.co.kr',
36
+ stage: 'https://stage-api.bootpay.co.kr',
37
+ production: 'https://api.bootpay.co.kr',
38
+ ehowlsla: 'https://ehowlsla.bootpay.co.kr/api/v2'
38
39
  }.freeze
39
40
 
40
41
  def initialize(application_id:, private_key:, mode: 'production')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - bootpay
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-02-23 00:00:00.000000000 Z
11
+ date: 2022-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '7.0'
19
+ version: '6.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
- version: '7.0'
26
+ version: '6.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: http
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -45,7 +45,9 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
+ - ".DS_Store"
48
49
  - ".gitignore"
50
+ - ".rspec"
49
51
  - CHANGELOG.md
50
52
  - CODE_OF_CONDUCT.md
51
53
  - Gemfile
@@ -55,9 +57,10 @@ files:
55
57
  - bin/console
56
58
  - bin/setup
57
59
  - bootpay.gemspec
60
+ - lib/.DS_Store
58
61
  - lib/bootpay.rb
62
+ - lib/bootpay/.DS_Store
59
63
  - lib/bootpay/billing.rb
60
- - lib/bootpay/bootpay.rb
61
64
  - lib/bootpay/cancel.rb
62
65
  - lib/bootpay/easy.rb
63
66
  - lib/bootpay/escrow.rb
@@ -91,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
94
  - !ruby/object:Gem::Version
92
95
  version: '0'
93
96
  requirements: []
94
- rubygems_version: 3.3.3
97
+ rubygems_version: 3.2.19
95
98
  signing_key:
96
99
  specification_version: 4
97
100
  summary: Bootpay server side plugin for ruby
@@ -1,49 +0,0 @@
1
- require 'active_support/all'
2
- require 'http'
3
- require_relative 'response'
4
- require_relative 'bootpay/billing'
5
- require_relative 'bootpay/cancel'
6
- require_relative 'bootpay/easy'
7
- require_relative 'bootpay/escrow'
8
- require_relative 'bootpay/link'
9
- require_relative 'bootpay/naverpay'
10
- require_relative 'bootpay/payment_resource'
11
- require_relative 'bootpay/reseller'
12
- require_relative 'bootpay/rest'
13
- require_relative 'bootpay/submit'
14
- require_relative 'bootpay/token'
15
- require_relative 'bootpay/verification'
16
- require_relative "bootpay/version"
17
-
18
- module Bootpay
19
- class Api
20
- include Billing
21
- include Cancel
22
- include Easy
23
- include Escrow
24
- include Link
25
- include Naverpay
26
- include PaymentResource
27
- include Reseller
28
- include Rest
29
- include Submit
30
- include Token
31
- include Verification
32
-
33
- API =
34
- {
35
- development: 'https://dev-api.bootpay.co.kr/',
36
- stage: 'https://stage-api.bootpay.co.kr/',
37
- production: 'https://api.bootpay.co.kr/'
38
- }.freeze
39
-
40
- def initialize(application_id:, private_key:, mode: 'production')
41
-
42
- @application_id = application_id
43
- @private_key = private_key
44
- @mode = mode.presence || 'production'
45
- @token = nil
46
- raise ArgumentError, "개발환경 mode는 development, stage, production 중에서 선택이 가능합니다." if API[@mode.to_sym].blank?
47
- end
48
- end
49
- end