omise 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/code-coverage.yml +27 -0
- data/.github/workflows/publish.yml +34 -0
- data/.github/workflows/ruby.yml +7 -10
- data/CHANGELOG.md +8 -0
- data/lib/omise/charge.rb +1 -1
- data/lib/omise/version.rb +1 -1
- data/omise.gemspec +1 -0
- data/sonar-project.properties +3 -0
- data/test/fixtures/api.omise.co/charges/chrg_test_5x8glktwl62j63dr3me-get.json +99 -0
- data/test/omise/test_account.rb +2 -2
- data/test/omise/test_attributes.rb +2 -2
- data/test/omise/test_balance.rb +2 -2
- data/test/omise/test_card.rb +2 -2
- data/test/omise/test_chain.rb +4 -4
- data/test/omise/test_charge.rb +27 -2
- data/test/omise/test_customer.rb +2 -2
- data/test/omise/test_dispute.rb +4 -4
- data/test/omise/test_document.rb +2 -2
- data/test/omise/test_forex.rb +2 -2
- data/test/omise/test_http_logger.rb +1 -1
- data/test/omise/test_link.rb +2 -2
- data/test/omise/test_receipt.rb +2 -2
- data/test/omise/test_recipient.rb +2 -2
- data/test/omise/test_refund.rb +2 -2
- data/test/omise/test_token.rb +2 -2
- data/test/support.rb +7 -0
- metadata +26 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff6023854587a10ee706952df91b1fbb5fb71a0ba31548735c1bd2f8400bf65e
|
4
|
+
data.tar.gz: 48e83f9d73465c8bb53545e86a0d6f0b32ee6162c143d72cc34cbaa2774bf120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f85290d51701920bb0e43cdc6c0a80f550bf6e2c579f8ed862b410ac00d24e3ad69c3a88ae79d7089cf704a8dc8734d6a8665578f79ce45ed85cc0c79b41d5d8
|
7
|
+
data.tar.gz: 352db370629f9fbe0221783c8ec64e278096d7e633919ebff92a2859fc359cdf022dacc22f813f0fb372ac66cf64aac2d4a8bc10dfdfed9c164432e83d661f50
|
@@ -0,0 +1,27 @@
|
|
1
|
+
name: Push Test Coverage to SonarCloud
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
|
6
|
+
jobs:
|
7
|
+
build:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- uses: actions/checkout@v3
|
11
|
+
- uses: ruby/setup-ruby@v1
|
12
|
+
with:
|
13
|
+
ruby-version: "3.2"
|
14
|
+
bundler-cache: true
|
15
|
+
- name: Build and test with Rake
|
16
|
+
run: |
|
17
|
+
gem install bundler
|
18
|
+
bundle install --jobs 4 --retry 3
|
19
|
+
bundle exec rake test
|
20
|
+
- run: |
|
21
|
+
rm -rf vendor
|
22
|
+
- name: Fix Code Coverage Paths
|
23
|
+
run: sed -i 's@'$GITHUB_WORKSPACE'@/github/workspace/@g' coverage/coverage.json
|
24
|
+
- name: SonarCloud Scan
|
25
|
+
uses: SonarSource/sonarcloud-github-action@master
|
26
|
+
env:
|
27
|
+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
name: Publish
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- '*'
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
publish:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v3
|
14
|
+
- uses: ruby/setup-ruby@v1
|
15
|
+
with:
|
16
|
+
ruby-version: '3.2'
|
17
|
+
bundler-cache: true
|
18
|
+
|
19
|
+
- name: Build and test with Rake
|
20
|
+
run: |
|
21
|
+
gem install bundler
|
22
|
+
bundle install --jobs 4 --retry 3
|
23
|
+
bundle exec rake test
|
24
|
+
|
25
|
+
- name: Publish to RubyGems
|
26
|
+
run: |
|
27
|
+
mkdir -p $HOME/.gem
|
28
|
+
touch $HOME/.gem/credentials
|
29
|
+
chmod 0600 $HOME/.gem/credentials
|
30
|
+
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
|
31
|
+
gem build *.gemspec
|
32
|
+
gem push *.gem
|
33
|
+
env:
|
34
|
+
GEM_HOST_API_KEY: ${{secrets.GEM_HOST_API_KEY}}
|
data/.github/workflows/ruby.yml
CHANGED
@@ -2,24 +2,21 @@ name: Ruby
|
|
2
2
|
|
3
3
|
on:
|
4
4
|
push:
|
5
|
-
branches: [ 'master' ]
|
6
|
-
pull_request:
|
7
|
-
branches: [ 'master' ]
|
8
5
|
|
9
6
|
jobs:
|
10
7
|
build:
|
11
|
-
runs-on: ubuntu-latest
|
12
8
|
strategy:
|
9
|
+
fail-fast: false
|
13
10
|
matrix:
|
14
|
-
|
15
|
-
|
11
|
+
os: [ubuntu-latest]
|
12
|
+
ruby: [ '2.6', '2.7', '3.0', '3.1', '3.2' ]
|
13
|
+
runs-on: ${{ matrix.os }}
|
16
14
|
steps:
|
17
|
-
- uses: actions/checkout@
|
18
|
-
-
|
19
|
-
uses: actions/setup-ruby@v1
|
15
|
+
- uses: actions/checkout@v3
|
16
|
+
- uses: ruby/setup-ruby@v1
|
20
17
|
with:
|
21
18
|
ruby-version: ${{ matrix.ruby }}
|
22
|
-
|
19
|
+
bundler-cache: true
|
23
20
|
- name: Build and test with Rake
|
24
21
|
run: |
|
25
22
|
gem install bundler
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,14 @@
|
|
2
2
|
|
3
3
|
An [unreleased] version is not available on rubygems and is subject to changes and must not be considered final. Elements of unreleased list may be edited or removed at any time.
|
4
4
|
|
5
|
+
## [0.11.0] 2023-10-03
|
6
|
+
|
7
|
+
- [Added] Support partial capture of charges (https://github.com/omise/omise-ruby/pull/55)
|
8
|
+
|
9
|
+
## [0.10.1] 2023-04-20
|
10
|
+
|
11
|
+
- [Updated] Updated test case for ruby >= 3.0 (https://github.com/omise/omise-ruby/pull/48)
|
12
|
+
|
5
13
|
## [0.10.0] 2021-02-16
|
6
14
|
|
7
15
|
- [Added] Add a new method to fetch all events belonging to a charge (https://github.com/omise/omise-ruby/pull/45)
|
data/lib/omise/charge.rb
CHANGED
data/lib/omise/version.rb
CHANGED
data/omise.gemspec
CHANGED
@@ -0,0 +1,99 @@
|
|
1
|
+
{
|
2
|
+
"object": "charge",
|
3
|
+
"id": "chrg_test_5x8glktwl62j63dr3me",
|
4
|
+
"location": "/charges/chrg_test_5x8glktwl62j63dr3me",
|
5
|
+
"amount": 100000,
|
6
|
+
"authorization_type": "pre_auth",
|
7
|
+
"authorized_amount": 100000,
|
8
|
+
"captured_amount": 3000,
|
9
|
+
"net": 2882,
|
10
|
+
"fee": 110,
|
11
|
+
"fee_vat": 8,
|
12
|
+
"interest": 0,
|
13
|
+
"interest_vat": 0,
|
14
|
+
"funding_amount": 3000,
|
15
|
+
"refunded_amount": 0,
|
16
|
+
"transaction_fees": {
|
17
|
+
"fee_flat": "0.0",
|
18
|
+
"fee_rate": "3.65",
|
19
|
+
"vat_rate": "7.0"
|
20
|
+
},
|
21
|
+
"platform_fee": {
|
22
|
+
"fixed": null,
|
23
|
+
"amount": null,
|
24
|
+
"percentage": null
|
25
|
+
},
|
26
|
+
"currency": "THB",
|
27
|
+
"funding_currency": "THB",
|
28
|
+
"ip": null,
|
29
|
+
"refunds": {
|
30
|
+
"object": "list",
|
31
|
+
"data": [],
|
32
|
+
"limit": 20,
|
33
|
+
"offset": 0,
|
34
|
+
"total": 0,
|
35
|
+
"location": "/charges/chrg_test_5x8glktwl62j63dr3me/refunds",
|
36
|
+
"order": "chronological",
|
37
|
+
"from": "1970-01-01T00:00:00Z",
|
38
|
+
"to": "2023-09-26T06:15:31Z"
|
39
|
+
},
|
40
|
+
"link": null,
|
41
|
+
"description": null,
|
42
|
+
"metadata": {},
|
43
|
+
"card": {
|
44
|
+
"object": "card",
|
45
|
+
"id": "card_test_5x17kjqylbrla8t3elw",
|
46
|
+
"livemode": false,
|
47
|
+
"location": "/customers/cust_test_5x17kjuemequnrjiy3y/cards/card_test_5x17kjqylbrla8t3elw",
|
48
|
+
"deleted": false,
|
49
|
+
"street1": null,
|
50
|
+
"street2": null,
|
51
|
+
"city": "Bangkok",
|
52
|
+
"state": null,
|
53
|
+
"phone_number": null,
|
54
|
+
"postal_code": "10320",
|
55
|
+
"country": "us",
|
56
|
+
"financing": "credit",
|
57
|
+
"bank": "JPMORGAN CHASE BANK N.A.",
|
58
|
+
"brand": "Visa",
|
59
|
+
"fingerprint": "ZmYHTfxzcB4xH5GTzXaPWRRpScr5nGNEDaPJ2XYJQfw=",
|
60
|
+
"first_digits": null,
|
61
|
+
"last_digits": "4242",
|
62
|
+
"name": "JOHN DOE",
|
63
|
+
"expiration_month": 2,
|
64
|
+
"expiration_year": 2024,
|
65
|
+
"security_code_check": true,
|
66
|
+
"tokenization_method": null,
|
67
|
+
"created_at": "2023-09-07T17:20:36Z"
|
68
|
+
},
|
69
|
+
"source": null,
|
70
|
+
"schedule": null,
|
71
|
+
"customer": "cust_test_5x17kjuemequnrjiy3y",
|
72
|
+
"dispute": null,
|
73
|
+
"transaction": "trxn_test_5x8gll1ic0gxf8y4wfd",
|
74
|
+
"failure_code": null,
|
75
|
+
"failure_message": null,
|
76
|
+
"status": "successful",
|
77
|
+
"authorize_uri": null,
|
78
|
+
"return_uri": null,
|
79
|
+
"created_at": "2023-09-26T06:15:17Z",
|
80
|
+
"paid_at": "2023-09-26T06:15:17Z",
|
81
|
+
"expires_at": "2023-10-03T06:15:16Z",
|
82
|
+
"expired_at": null,
|
83
|
+
"reversed_at": null,
|
84
|
+
"zero_interest_installments": false,
|
85
|
+
"branch": null,
|
86
|
+
"terminal": null,
|
87
|
+
"device": null,
|
88
|
+
"authorized": true,
|
89
|
+
"capturable": false,
|
90
|
+
"capture": false,
|
91
|
+
"disputable": true,
|
92
|
+
"livemode": false,
|
93
|
+
"refundable": true,
|
94
|
+
"reversed": false,
|
95
|
+
"reversible": false,
|
96
|
+
"voided": false,
|
97
|
+
"paid": true,
|
98
|
+
"expired": false
|
99
|
+
}
|
data/test/omise/test_account.rb
CHANGED
@@ -11,10 +11,10 @@ class TestAccount < Omise::Test
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def test_that_we_can_reload_the_account
|
14
|
-
@account.attributes.
|
14
|
+
@account.attributes.freeze
|
15
15
|
@account.reload
|
16
16
|
|
17
|
-
refute @account.attributes.
|
17
|
+
refute @account.attributes.frozen?
|
18
18
|
end
|
19
19
|
|
20
20
|
def test_that_we_can_update_the_account
|
@@ -40,10 +40,10 @@ class TestAttributes < Omise::Test
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def test_that_we_can_update_the_teapot_attributes
|
43
|
-
@teapot.attributes.
|
43
|
+
@teapot.attributes.freeze
|
44
44
|
@teapot.assign_attributes({})
|
45
45
|
|
46
|
-
refute @teapot.attributes.
|
46
|
+
refute @teapot.attributes.frozen?
|
47
47
|
end
|
48
48
|
|
49
49
|
def test_that_we_can_tell_if_a_teapot_has_not_been_destroyed
|
data/test/omise/test_balance.rb
CHANGED
@@ -11,9 +11,9 @@ class TestBalance < Omise::Test
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def test_that_we_can_reload_a_customer
|
14
|
-
@balance.attributes.
|
14
|
+
@balance.attributes.freeze
|
15
15
|
@balance.reload
|
16
16
|
|
17
|
-
refute @balance.attributes.
|
17
|
+
refute @balance.attributes.frozen?
|
18
18
|
end
|
19
19
|
end
|
data/test/omise/test_card.rb
CHANGED
@@ -25,10 +25,10 @@ class TestCard < Omise::Test
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def test_that_a_card_can_be_reloaded
|
28
|
-
@card.attributes.
|
28
|
+
@card.attributes.freeze
|
29
29
|
@card.reload
|
30
30
|
|
31
|
-
refute @card.attributes.
|
31
|
+
refute @card.attributes.frozen?
|
32
32
|
end
|
33
33
|
|
34
34
|
def test_that_retrieveing_a_non_existing_card_will_raise_an_error
|
data/test/omise/test_chain.rb
CHANGED
@@ -21,20 +21,20 @@ class TestChain < Omise::Test
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def test_that_we_can_reload_a_chain
|
24
|
-
@chain.attributes.
|
24
|
+
@chain.attributes.freeze
|
25
25
|
@chain.reload
|
26
26
|
|
27
|
-
refute @chain.attributes.
|
27
|
+
refute @chain.attributes.frozen?
|
28
28
|
end
|
29
29
|
|
30
30
|
def test_that_we_can_revoke_a_chain
|
31
|
-
@chain.attributes.
|
31
|
+
@chain.attributes.freeze
|
32
32
|
|
33
33
|
refute @chain.revoked
|
34
34
|
|
35
35
|
@chain.revoke
|
36
36
|
|
37
37
|
assert @chain.revoked?
|
38
|
-
refute @chain.attributes.
|
38
|
+
refute @chain.attributes.frozen?
|
39
39
|
end
|
40
40
|
end
|
data/test/omise/test_charge.rb
CHANGED
@@ -12,6 +12,15 @@ class TestCharge < Omise::Test
|
|
12
12
|
assert_equal "chrg_test_4yq7duw15p9hdrjp8oq", charge.id
|
13
13
|
end
|
14
14
|
|
15
|
+
def test_that_we_can_create_a_partial_charge
|
16
|
+
@partial_charge_create = Omise::Charge.new(JSON.load('{ "capture": false,"authorization_type":"pre_auth","captured_amount": 0 }'))
|
17
|
+
|
18
|
+
assert_instance_of Omise::Charge, @partial_charge_create
|
19
|
+
assert_equal false, @partial_charge_create['capture']
|
20
|
+
assert_equal "pre_auth", @partial_charge_create.authorization_type
|
21
|
+
assert_equal 0, @partial_charge_create.captured_amount
|
22
|
+
end
|
23
|
+
|
15
24
|
def test_that_we_can_create_a_charge_even_if_api_key_is_nil
|
16
25
|
without_keys do
|
17
26
|
charge = Omise::Charge.create(key: "skey_test_4yq6tct0lblmed2yp5t")
|
@@ -44,6 +53,18 @@ class TestCharge < Omise::Test
|
|
44
53
|
assert_instance_of Omise::RefundList, @charge.refunds
|
45
54
|
end
|
46
55
|
|
56
|
+
def test_that_we_can_retrieve_a_partial_charge
|
57
|
+
@partialCharge = Omise::Charge.retrieve("chrg_test_5x8glktwl62j63dr3me")
|
58
|
+
|
59
|
+
assert_instance_of Omise::Charge, @partialCharge
|
60
|
+
assert_equal "chrg_test_5x8glktwl62j63dr3me", @partialCharge.id
|
61
|
+
assert_equal "pre_auth", @partialCharge.authorization_type
|
62
|
+
assert_equal 100000, @partialCharge.authorized_amount
|
63
|
+
assert_equal 3000, @partialCharge.captured_amount
|
64
|
+
assert_equal false, @partialCharge['capture']
|
65
|
+
|
66
|
+
end
|
67
|
+
|
47
68
|
def test_that_we_can_list_all_charge
|
48
69
|
charges = Omise::Charge.list
|
49
70
|
|
@@ -57,10 +78,10 @@ class TestCharge < Omise::Test
|
|
57
78
|
end
|
58
79
|
|
59
80
|
def test_that_we_can_reload_a_charge
|
60
|
-
@charge.attributes.
|
81
|
+
@charge.attributes.freeze
|
61
82
|
@charge.reload
|
62
83
|
|
63
|
-
refute @charge.attributes.
|
84
|
+
refute @charge.attributes.frozen?
|
64
85
|
end
|
65
86
|
|
66
87
|
def test_that_retrieveing_a_non_existing_charge_will_raise_an_error
|
@@ -107,6 +128,10 @@ class TestCharge < Omise::Test
|
|
107
128
|
assert @charge.capture
|
108
129
|
end
|
109
130
|
|
131
|
+
def test_that_we_can_send_a_capture_request_with_parameters
|
132
|
+
assert @charge.capture({capture_amount:3000})
|
133
|
+
end
|
134
|
+
|
110
135
|
def test_that_we_can_send_a_reverse_request
|
111
136
|
assert @charge.reverse
|
112
137
|
end
|
data/test/omise/test_customer.rb
CHANGED
@@ -37,10 +37,10 @@ class TestCustomer < Omise::Test
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def test_that_we_can_reload_a_customer
|
40
|
-
@customer.attributes.
|
40
|
+
@customer.attributes.freeze
|
41
41
|
@customer.reload
|
42
42
|
|
43
|
-
refute @customer.attributes.
|
43
|
+
refute @customer.attributes.frozen?
|
44
44
|
end
|
45
45
|
|
46
46
|
def test_that_we_can_charge_a_customer
|
data/test/omise/test_dispute.rb
CHANGED
@@ -35,10 +35,10 @@ class TestDispute < Omise::Test
|
|
35
35
|
end
|
36
36
|
|
37
37
|
def test_that_we_can_reload_a_dispute
|
38
|
-
@dispute.attributes.
|
38
|
+
@dispute.attributes.freeze
|
39
39
|
@dispute.reload
|
40
40
|
|
41
|
-
refute @dispute.attributes.
|
41
|
+
refute @dispute.attributes.frozen?
|
42
42
|
end
|
43
43
|
|
44
44
|
def test_that_we_can_update_a_dispute
|
@@ -48,14 +48,14 @@ class TestDispute < Omise::Test
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def test_that_we_can_accept_a_dispute
|
51
|
-
@dispute.attributes.
|
51
|
+
@dispute.attributes.freeze
|
52
52
|
|
53
53
|
assert_equal @dispute.status, "open"
|
54
54
|
|
55
55
|
@dispute.accept
|
56
56
|
|
57
57
|
assert_equal @dispute.status, "lost"
|
58
|
-
refute @dispute.attributes.
|
58
|
+
refute @dispute.attributes.frozen?
|
59
59
|
end
|
60
60
|
|
61
61
|
def test_that_we_can_retrieve_a_list_of_documents
|
data/test/omise/test_document.rb
CHANGED
@@ -19,10 +19,10 @@ class TestDocument < Omise::Test
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def test_that_a_document_can_be_reloaded
|
22
|
-
@document.attributes.
|
22
|
+
@document.attributes.freeze
|
23
23
|
@document.reload
|
24
24
|
|
25
|
-
refute @document.attributes.
|
25
|
+
refute @document.attributes.frozen?
|
26
26
|
end
|
27
27
|
|
28
28
|
def test_that_we_can_destroy_a_document
|
data/test/omise/test_forex.rb
CHANGED
data/test/omise/test_link.rb
CHANGED
@@ -31,10 +31,10 @@ class TestLink < Omise::Test
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def test_that_we_can_reload_a_link
|
34
|
-
@link.attributes.
|
34
|
+
@link.attributes.freeze
|
35
35
|
@link.reload
|
36
36
|
|
37
|
-
refute @link.attributes.
|
37
|
+
refute @link.attributes.frozen?
|
38
38
|
end
|
39
39
|
|
40
40
|
def test_that_a_link_has_a_list_of_charges
|
data/test/omise/test_receipt.rb
CHANGED
@@ -21,9 +21,9 @@ class TestReceipt < Omise::Test
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def test_that_we_can_reload_a_receipt
|
24
|
-
@receipt.attributes.
|
24
|
+
@receipt.attributes.freeze
|
25
25
|
@receipt.reload
|
26
26
|
|
27
|
-
refute @receipt.attributes.
|
27
|
+
refute @receipt.attributes.frozen?
|
28
28
|
end
|
29
29
|
end
|
@@ -23,10 +23,10 @@ class TestRecipient < Omise::Test
|
|
23
23
|
end
|
24
24
|
|
25
25
|
def test_that_we_can_reload_a_recipient
|
26
|
-
@recipient.attributes.
|
26
|
+
@recipient.attributes.freeze
|
27
27
|
@recipient.reload
|
28
28
|
|
29
|
-
refute @recipient.attributes.
|
29
|
+
refute @recipient.attributes.frozen?
|
30
30
|
end
|
31
31
|
|
32
32
|
def test_that_we_can_destroy_a_recipient
|
data/test/omise/test_refund.rb
CHANGED
@@ -27,10 +27,10 @@ class TestRefund < Omise::Test
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def test_that_a_refund_can_be_reloaded
|
30
|
-
@refund.attributes.
|
30
|
+
@refund.attributes.freeze
|
31
31
|
@refund.reload
|
32
32
|
|
33
|
-
refute @refund.attributes.
|
33
|
+
refute @refund.attributes.frozen?
|
34
34
|
end
|
35
35
|
|
36
36
|
def test_that_retrieveing_a_non_existing_refund_will_raise_an_error
|
data/test/omise/test_token.rb
CHANGED
data/test/support.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Clart
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
@@ -94,13 +94,29 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '5.4'
|
97
|
-
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description:
|
98
112
|
email:
|
99
113
|
- robin@omise.co
|
100
114
|
executables: []
|
101
115
|
extensions: []
|
102
116
|
extra_rdoc_files: []
|
103
117
|
files:
|
118
|
+
- ".github/workflows/code-coverage.yml"
|
119
|
+
- ".github/workflows/publish.yml"
|
104
120
|
- ".github/workflows/ruby.yml"
|
105
121
|
- ".gitignore"
|
106
122
|
- CHANGELOG.md
|
@@ -156,6 +172,7 @@ files:
|
|
156
172
|
- lib/omise/vault.rb
|
157
173
|
- lib/omise/version.rb
|
158
174
|
- omise.gemspec
|
175
|
+
- sonar-project.properties
|
159
176
|
- test/fixtures/api.omise.co/account-get.json
|
160
177
|
- test/fixtures/api.omise.co/account-patch.json
|
161
178
|
- test/fixtures/api.omise.co/balance-get.json
|
@@ -179,6 +196,7 @@ files:
|
|
179
196
|
- test/fixtures/api.omise.co/charges/chrg_test_4yq7duw15p9hdrjp8oq/refunds/404-get.json
|
180
197
|
- test/fixtures/api.omise.co/charges/chrg_test_4yq7duw15p9hdrjp8oq/refunds/rfnd_test_4yqmv79ahghsiz23y3c-get.json
|
181
198
|
- test/fixtures/api.omise.co/charges/chrg_test_4yq7duw15p9hdrjp8oq/reverse-post.json
|
199
|
+
- test/fixtures/api.omise.co/charges/chrg_test_5x8glktwl62j63dr3me-get.json
|
182
200
|
- test/fixtures/api.omise.co/customers-get.json
|
183
201
|
- test/fixtures/api.omise.co/customers-post.json
|
184
202
|
- test/fixtures/api.omise.co/customers/404-get.json
|
@@ -273,7 +291,7 @@ homepage: https://www.omise.co/
|
|
273
291
|
licenses:
|
274
292
|
- MIT
|
275
293
|
metadata: {}
|
276
|
-
post_install_message:
|
294
|
+
post_install_message:
|
277
295
|
rdoc_options: []
|
278
296
|
require_paths:
|
279
297
|
- lib
|
@@ -288,8 +306,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
288
306
|
- !ruby/object:Gem::Version
|
289
307
|
version: '0'
|
290
308
|
requirements: []
|
291
|
-
rubygems_version: 3.
|
292
|
-
signing_key:
|
309
|
+
rubygems_version: 3.4.10
|
310
|
+
signing_key:
|
293
311
|
specification_version: 4
|
294
312
|
summary: Omise Ruby client
|
295
313
|
test_files:
|
@@ -316,6 +334,7 @@ test_files:
|
|
316
334
|
- test/fixtures/api.omise.co/charges/chrg_test_4yq7duw15p9hdrjp8oq/refunds/404-get.json
|
317
335
|
- test/fixtures/api.omise.co/charges/chrg_test_4yq7duw15p9hdrjp8oq/refunds/rfnd_test_4yqmv79ahghsiz23y3c-get.json
|
318
336
|
- test/fixtures/api.omise.co/charges/chrg_test_4yq7duw15p9hdrjp8oq/reverse-post.json
|
337
|
+
- test/fixtures/api.omise.co/charges/chrg_test_5x8glktwl62j63dr3me-get.json
|
319
338
|
- test/fixtures/api.omise.co/customers-get.json
|
320
339
|
- test/fixtures/api.omise.co/customers-post.json
|
321
340
|
- test/fixtures/api.omise.co/customers/404-get.json
|