fawry 1.3.1 → 1.4.0
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/.github/workflows/ruby.yml +2 -2
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +47 -31
- data/fawry.gemspec +3 -2
- data/lib/fawry/connection.rb +1 -1
- data/lib/fawry/contracts/charge_request_contract.rb +6 -4
- data/lib/fawry/contracts/create_card_token_request_contract.rb +3 -2
- data/lib/fawry/contracts/delete_token_request_contract.rb +6 -4
- data/lib/fawry/contracts/list_tokens_request_contract.rb +6 -4
- data/lib/fawry/contracts/payment_status_request_contract.rb +6 -4
- data/lib/fawry/contracts/refund_request_contract.rb +6 -4
- data/lib/fawry/version.rb +1 -1
- metadata +8 -14
- data/.circleci/config.yml +0 -57
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47e5eac31f75494992bedc65eae9f99ea3a4fe369f8194be3e0b7f1abe445a69
|
|
4
|
+
data.tar.gz: 2f803d4ec113061428dab757363f3c93a6d10c25d2dcb7674be591ab98edfbd6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af7bf3f371239ca3a3f9918b88725b990a169b64aba1bb38c43bc7224eb9ef42d8d06cde4426bdb8ac9b3a9e4dc7d07476ea2720780621709d174cca15da2040
|
|
7
|
+
data.tar.gz: ae244b3ab8ad17adfb279f0f6c2f8b15d237b178eb21503d632143b03d751e2ee792ce1278dbdbf8d71b5f542732fbd706bbb5f82015e8791c74ed33716c9fed
|
data/.github/workflows/ruby.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
fawry (1.
|
|
5
|
-
dry-validation (~> 1.
|
|
6
|
-
faraday (~>
|
|
4
|
+
fawry (1.4.0)
|
|
5
|
+
dry-validation (~> 1.7)
|
|
6
|
+
faraday (~> 1.8)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
@@ -12,27 +12,26 @@ GEM
|
|
|
12
12
|
public_suffix (>= 2.0.2, < 5.0)
|
|
13
13
|
ast (2.4.2)
|
|
14
14
|
byebug (11.1.3)
|
|
15
|
-
concurrent-ruby (1.1.
|
|
15
|
+
concurrent-ruby (1.1.9)
|
|
16
16
|
crack (0.4.5)
|
|
17
17
|
rexml
|
|
18
|
-
diff-lcs (1.
|
|
19
|
-
dry-configurable (0.
|
|
18
|
+
diff-lcs (1.5.0)
|
|
19
|
+
dry-configurable (0.13.0)
|
|
20
20
|
concurrent-ruby (~> 1.0)
|
|
21
|
-
dry-core (~> 0.
|
|
22
|
-
dry-container (0.
|
|
21
|
+
dry-core (~> 0.6)
|
|
22
|
+
dry-container (0.9.0)
|
|
23
23
|
concurrent-ruby (~> 1.0)
|
|
24
|
-
dry-configurable (~> 0.
|
|
25
|
-
dry-core (0.
|
|
24
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
|
25
|
+
dry-core (0.7.1)
|
|
26
26
|
concurrent-ruby (~> 1.0)
|
|
27
|
-
dry-
|
|
28
|
-
dry-inflector (0.2.0)
|
|
27
|
+
dry-inflector (0.2.1)
|
|
29
28
|
dry-initializer (3.0.4)
|
|
30
29
|
dry-logic (1.2.0)
|
|
31
30
|
concurrent-ruby (~> 1.0)
|
|
32
31
|
dry-core (~> 0.5, >= 0.5)
|
|
33
|
-
dry-schema (1.
|
|
32
|
+
dry-schema (1.8.0)
|
|
34
33
|
concurrent-ruby (~> 1.0)
|
|
35
|
-
dry-configurable (~> 0.
|
|
34
|
+
dry-configurable (~> 0.13, >= 0.13.0)
|
|
36
35
|
dry-core (~> 0.5, >= 0.5)
|
|
37
36
|
dry-initializer (~> 3.0)
|
|
38
37
|
dry-logic (~> 1.0)
|
|
@@ -43,24 +42,40 @@ GEM
|
|
|
43
42
|
dry-core (~> 0.5, >= 0.5)
|
|
44
43
|
dry-inflector (~> 0.1, >= 0.1.2)
|
|
45
44
|
dry-logic (~> 1.0, >= 1.0.2)
|
|
46
|
-
dry-validation (1.
|
|
45
|
+
dry-validation (1.7.0)
|
|
47
46
|
concurrent-ruby (~> 1.0)
|
|
48
47
|
dry-container (~> 0.7, >= 0.7.1)
|
|
49
|
-
dry-core (~> 0.
|
|
50
|
-
dry-equalizer (~> 0.2)
|
|
48
|
+
dry-core (~> 0.5, >= 0.5)
|
|
51
49
|
dry-initializer (~> 3.0)
|
|
52
|
-
dry-schema (~> 1.
|
|
53
|
-
faraday (
|
|
50
|
+
dry-schema (~> 1.8, >= 1.8.0)
|
|
51
|
+
faraday (1.8.0)
|
|
52
|
+
faraday-em_http (~> 1.0)
|
|
53
|
+
faraday-em_synchrony (~> 1.0)
|
|
54
|
+
faraday-excon (~> 1.1)
|
|
55
|
+
faraday-httpclient (~> 1.0.1)
|
|
56
|
+
faraday-net_http (~> 1.0)
|
|
57
|
+
faraday-net_http_persistent (~> 1.1)
|
|
58
|
+
faraday-patron (~> 1.0)
|
|
59
|
+
faraday-rack (~> 1.0)
|
|
54
60
|
multipart-post (>= 1.2, < 3)
|
|
61
|
+
ruby2_keywords (>= 0.0.4)
|
|
62
|
+
faraday-em_http (1.0.0)
|
|
63
|
+
faraday-em_synchrony (1.0.0)
|
|
64
|
+
faraday-excon (1.1.0)
|
|
65
|
+
faraday-httpclient (1.0.1)
|
|
66
|
+
faraday-net_http (1.0.1)
|
|
67
|
+
faraday-net_http_persistent (1.2.0)
|
|
68
|
+
faraday-patron (1.0.0)
|
|
69
|
+
faraday-rack (1.0.0)
|
|
55
70
|
hashdiff (1.0.1)
|
|
56
71
|
multipart-post (2.1.1)
|
|
57
|
-
parallel (1.
|
|
58
|
-
parser (3.0.
|
|
72
|
+
parallel (1.21.0)
|
|
73
|
+
parser (3.0.3.2)
|
|
59
74
|
ast (~> 2.4.1)
|
|
60
75
|
public_suffix (4.0.6)
|
|
61
76
|
rainbow (3.0.0)
|
|
62
|
-
rake (13.0.
|
|
63
|
-
regexp_parser (2.
|
|
77
|
+
rake (13.0.6)
|
|
78
|
+
regexp_parser (2.2.0)
|
|
64
79
|
rexml (3.2.5)
|
|
65
80
|
rspec (3.10.0)
|
|
66
81
|
rspec-core (~> 3.10.0)
|
|
@@ -74,24 +89,25 @@ GEM
|
|
|
74
89
|
rspec-mocks (3.10.2)
|
|
75
90
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
76
91
|
rspec-support (~> 3.10.0)
|
|
77
|
-
rspec-support (3.10.
|
|
92
|
+
rspec-support (3.10.3)
|
|
78
93
|
rspec_junit_formatter (0.4.1)
|
|
79
94
|
rspec-core (>= 2, < 4, != 2.12.0)
|
|
80
|
-
rubocop (1.
|
|
95
|
+
rubocop (1.24.0)
|
|
81
96
|
parallel (~> 1.10)
|
|
82
97
|
parser (>= 3.0.0.0)
|
|
83
98
|
rainbow (>= 2.2.2, < 4.0)
|
|
84
99
|
regexp_parser (>= 1.8, < 3.0)
|
|
85
100
|
rexml
|
|
86
|
-
rubocop-ast (>= 1.
|
|
101
|
+
rubocop-ast (>= 1.15.0, < 2.0)
|
|
87
102
|
ruby-progressbar (~> 1.7)
|
|
88
103
|
unicode-display_width (>= 1.4.0, < 3.0)
|
|
89
|
-
rubocop-ast (1.
|
|
104
|
+
rubocop-ast (1.15.0)
|
|
90
105
|
parser (>= 3.0.1.1)
|
|
91
106
|
ruby-progressbar (1.11.0)
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
107
|
+
ruby2_keywords (0.0.5)
|
|
108
|
+
unicode-display_width (2.1.0)
|
|
109
|
+
webmock (3.14.0)
|
|
110
|
+
addressable (>= 2.8.0)
|
|
95
111
|
crack (>= 0.3.2)
|
|
96
112
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
97
113
|
|
|
@@ -109,4 +125,4 @@ DEPENDENCIES
|
|
|
109
125
|
webmock (~> 3.12)
|
|
110
126
|
|
|
111
127
|
BUNDLED WITH
|
|
112
|
-
2.
|
|
128
|
+
2.3.3
|
data/fawry.gemspec
CHANGED
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
|
|
19
19
|
spec.metadata['homepage_uri'] = 'https://github.com/amrrbakry/fawry'
|
|
20
20
|
spec.metadata['source_code_uri'] = 'https://github.com/amrrbakry/fawry'
|
|
21
|
+
spec.metadata['rubygems_mfa_required'] = 'true'
|
|
21
22
|
|
|
22
23
|
# Specify which files should be added to the gem when it is released.
|
|
23
24
|
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
@@ -28,8 +29,8 @@ Gem::Specification.new do |spec|
|
|
|
28
29
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
29
30
|
spec.require_paths = ['lib']
|
|
30
31
|
|
|
31
|
-
spec.add_dependency 'dry-validation', '~> 1.
|
|
32
|
-
spec.add_dependency 'faraday', '~>
|
|
32
|
+
spec.add_dependency 'dry-validation', '~> 1.7'
|
|
33
|
+
spec.add_dependency 'faraday', '~> 1.8'
|
|
33
34
|
|
|
34
35
|
spec.add_development_dependency 'bundler', '~> 2.0'
|
|
35
36
|
spec.add_development_dependency 'byebug', '~> 11.0'
|
data/lib/fawry/connection.rb
CHANGED
|
@@ -41,15 +41,17 @@ module Fawry
|
|
|
41
41
|
|
|
42
42
|
rule(:fawry_secure_key) do
|
|
43
43
|
if Fawry.configuration.fawry_secure_key.nil? && ENV['FAWRY_SECURE_KEY'].nil? && value.nil?
|
|
44
|
-
key(:fawry_secure_key)
|
|
45
|
-
'
|
|
44
|
+
key(:fawry_secure_key)
|
|
45
|
+
.failure('fawry secure key is required in either Fawry.configuration or'\
|
|
46
|
+
'as an environment variable (FAWRY_SECURE_KEY), or as an argument to this method')
|
|
46
47
|
end
|
|
47
48
|
end
|
|
48
49
|
|
|
49
50
|
rule(:merchant_code) do
|
|
50
51
|
if Fawry.configuration.fawry_merchant_code.nil? && ENV['FAWRY_MERCHANT_CODE'].nil? && value.nil?
|
|
51
|
-
key(:merchant_code)
|
|
52
|
-
'
|
|
52
|
+
key(:merchant_code)
|
|
53
|
+
.failure('fawry merchant code is required in either Fawry.configuration or'\
|
|
54
|
+
'as an environment variable (FAWRY_MERCHANT_CODE), or as an argument to this method')
|
|
53
55
|
end
|
|
54
56
|
end
|
|
55
57
|
end
|
|
@@ -24,8 +24,9 @@ module Fawry
|
|
|
24
24
|
|
|
25
25
|
rule(:merchant_code) do
|
|
26
26
|
if Fawry.configuration.fawry_merchant_code.nil? && ENV['FAWRY_MERCHANT_CODE'].nil? && value.nil?
|
|
27
|
-
key(:merchant_code)
|
|
28
|
-
'
|
|
27
|
+
key(:merchant_code)
|
|
28
|
+
.failure('fawry merchant code is required in either Fawry.configuration or'\
|
|
29
|
+
'as an environment variable (FAWRY_MERCHANT_CODE), or as an argument to this method')
|
|
29
30
|
end
|
|
30
31
|
end
|
|
31
32
|
end
|
|
@@ -14,15 +14,17 @@ module Fawry
|
|
|
14
14
|
|
|
15
15
|
rule(:fawry_secure_key) do
|
|
16
16
|
if Fawry.configuration.fawry_secure_key.nil? && ENV['FAWRY_SECURE_KEY'].nil? && value.nil?
|
|
17
|
-
key(:fawry_secure_key)
|
|
18
|
-
'
|
|
17
|
+
key(:fawry_secure_key)
|
|
18
|
+
.failure('fawry secure key is required in either Fawry.configuration or'\
|
|
19
|
+
'as an environment variable (FAWRY_SECURE_KEY), or as an argument to this method')
|
|
19
20
|
end
|
|
20
21
|
end
|
|
21
22
|
|
|
22
23
|
rule(:merchant_code) do
|
|
23
24
|
if Fawry.configuration.fawry_merchant_code.nil? && ENV['FAWRY_MERCHANT_CODE'].nil? && value.nil?
|
|
24
|
-
key(:merchant_code)
|
|
25
|
-
'
|
|
25
|
+
key(:merchant_code)
|
|
26
|
+
.failure('fawry merchant code is required in either Fawry.configuration or'\
|
|
27
|
+
'as an environment variable (FAWRY_MERCHANT_CODE), or as an argument to this method')
|
|
26
28
|
end
|
|
27
29
|
end
|
|
28
30
|
end
|
|
@@ -13,15 +13,17 @@ module Fawry
|
|
|
13
13
|
|
|
14
14
|
rule(:fawry_secure_key) do
|
|
15
15
|
if Fawry.configuration.fawry_secure_key.nil? && ENV['FAWRY_SECURE_KEY'].nil? && value.nil?
|
|
16
|
-
key(:fawry_secure_key)
|
|
17
|
-
'
|
|
16
|
+
key(:fawry_secure_key)
|
|
17
|
+
.failure('fawry secure key is required in either Fawry.configuration or'\
|
|
18
|
+
'as an environment variable (FAWRY_SECURE_KEY), or as an argument to this method')
|
|
18
19
|
end
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
rule(:merchant_code) do
|
|
22
23
|
if Fawry.configuration.fawry_merchant_code.nil? && ENV['FAWRY_MERCHANT_CODE'].nil? && value.nil?
|
|
23
|
-
key(:merchant_code)
|
|
24
|
-
'
|
|
24
|
+
key(:merchant_code)
|
|
25
|
+
.failure('fawry merchant code is required in either Fawry.configuration or'\
|
|
26
|
+
'as an environment variable (FAWRY_MERCHANT_CODE), or as an argument to this method')
|
|
25
27
|
end
|
|
26
28
|
end
|
|
27
29
|
end
|
|
@@ -13,15 +13,17 @@ module Fawry
|
|
|
13
13
|
|
|
14
14
|
rule(:fawry_secure_key) do
|
|
15
15
|
if Fawry.configuration.fawry_secure_key.nil? && ENV['FAWRY_SECURE_KEY'].nil? && value.nil?
|
|
16
|
-
key(:fawry_secure_key)
|
|
17
|
-
'
|
|
16
|
+
key(:fawry_secure_key)
|
|
17
|
+
.failure('fawry secure key is required in either Fawry.configuration or'\
|
|
18
|
+
'as an environment variable (FAWRY_SECURE_KEY), or as an argument to this method')
|
|
18
19
|
end
|
|
19
20
|
end
|
|
20
21
|
|
|
21
22
|
rule(:merchant_code) do
|
|
22
23
|
if Fawry.configuration.fawry_merchant_code.nil? && ENV['FAWRY_MERCHANT_CODE'].nil? && value.nil?
|
|
23
|
-
key(:merchant_code)
|
|
24
|
-
'
|
|
24
|
+
key(:merchant_code)
|
|
25
|
+
.failure('fawry merchant code is required in either Fawry.configuration or'\
|
|
26
|
+
'as an environment variable (FAWRY_MERCHANT_CODE), or as an argument to this method')
|
|
25
27
|
end
|
|
26
28
|
end
|
|
27
29
|
end
|
|
@@ -15,15 +15,17 @@ module Fawry
|
|
|
15
15
|
|
|
16
16
|
rule(:fawry_secure_key) do
|
|
17
17
|
if Fawry.configuration.fawry_secure_key.nil? && ENV['FAWRY_SECURE_KEY'].nil? && value.nil?
|
|
18
|
-
key(:fawry_secure_key)
|
|
19
|
-
'
|
|
18
|
+
key(:fawry_secure_key)
|
|
19
|
+
.failure('fawry secure key is required in either Fawry.configuration or'\
|
|
20
|
+
'as an environment variable (FAWRY_SECURE_KEY), or as an argument to this method')
|
|
20
21
|
end
|
|
21
22
|
end
|
|
22
23
|
|
|
23
24
|
rule(:merchant_code) do
|
|
24
25
|
if Fawry.configuration.fawry_merchant_code.nil? && ENV['FAWRY_MERCHANT_CODE'].nil? && value.nil?
|
|
25
|
-
key(:merchant_code)
|
|
26
|
-
'
|
|
26
|
+
key(:merchant_code)
|
|
27
|
+
.failure('fawry merchant code is required in either Fawry.configuration or'\
|
|
28
|
+
'as an environment variable (FAWRY_MERCHANT_CODE), or as an argument to this method')
|
|
27
29
|
end
|
|
28
30
|
end
|
|
29
31
|
end
|
data/lib/fawry/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fawry
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amr El Bakry
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-12-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dry-validation
|
|
@@ -16,34 +16,28 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '1.
|
|
20
|
-
- - ">="
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: 1.3.1
|
|
19
|
+
version: '1.7'
|
|
23
20
|
type: :runtime
|
|
24
21
|
prerelease: false
|
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
23
|
requirements:
|
|
27
24
|
- - "~>"
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '1.
|
|
30
|
-
- - ">="
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: 1.3.1
|
|
26
|
+
version: '1.7'
|
|
33
27
|
- !ruby/object:Gem::Dependency
|
|
34
28
|
name: faraday
|
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
|
36
30
|
requirements:
|
|
37
31
|
- - "~>"
|
|
38
32
|
- !ruby/object:Gem::Version
|
|
39
|
-
version:
|
|
33
|
+
version: '1.8'
|
|
40
34
|
type: :runtime
|
|
41
35
|
prerelease: false
|
|
42
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
43
37
|
requirements:
|
|
44
38
|
- - "~>"
|
|
45
39
|
- !ruby/object:Gem::Version
|
|
46
|
-
version:
|
|
40
|
+
version: '1.8'
|
|
47
41
|
- !ruby/object:Gem::Dependency
|
|
48
42
|
name: bundler
|
|
49
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -149,7 +143,6 @@ executables: []
|
|
|
149
143
|
extensions: []
|
|
150
144
|
extra_rdoc_files: []
|
|
151
145
|
files:
|
|
152
|
-
- ".circleci/config.yml"
|
|
153
146
|
- ".github/workflows/ruby.yml"
|
|
154
147
|
- ".gitignore"
|
|
155
148
|
- ".rspec"
|
|
@@ -192,6 +185,7 @@ licenses:
|
|
|
192
185
|
metadata:
|
|
193
186
|
homepage_uri: https://github.com/amrrbakry/fawry
|
|
194
187
|
source_code_uri: https://github.com/amrrbakry/fawry
|
|
188
|
+
rubygems_mfa_required: 'true'
|
|
195
189
|
post_install_message:
|
|
196
190
|
rdoc_options: []
|
|
197
191
|
require_paths:
|
|
@@ -207,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
207
201
|
- !ruby/object:Gem::Version
|
|
208
202
|
version: '0'
|
|
209
203
|
requirements: []
|
|
210
|
-
rubygems_version: 3.
|
|
204
|
+
rubygems_version: 3.2.32
|
|
211
205
|
signing_key:
|
|
212
206
|
specification_version: 4
|
|
213
207
|
summary: A library to interface with Fawry's payment gateway API (charge, refund,
|
data/.circleci/config.yml
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
jobs:
|
|
3
|
-
build:
|
|
4
|
-
docker:
|
|
5
|
-
- image: circleci/ruby:2.6.0
|
|
6
|
-
|
|
7
|
-
working_directory: ~/repo
|
|
8
|
-
|
|
9
|
-
steps:
|
|
10
|
-
- checkout
|
|
11
|
-
|
|
12
|
-
# Download and cache dependencies
|
|
13
|
-
- restore_cache:
|
|
14
|
-
keys:
|
|
15
|
-
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
|
16
|
-
# fallback to using the latest cache if no exact match is found
|
|
17
|
-
- v1-dependencies-
|
|
18
|
-
|
|
19
|
-
- run:
|
|
20
|
-
name: install bundler
|
|
21
|
-
command: gem install bundler
|
|
22
|
-
|
|
23
|
-
- run:
|
|
24
|
-
name: install dependencies
|
|
25
|
-
command: |
|
|
26
|
-
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
|
27
|
-
|
|
28
|
-
- save_cache:
|
|
29
|
-
paths:
|
|
30
|
-
- ./vendor/bundle
|
|
31
|
-
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
|
32
|
-
|
|
33
|
-
# run tests!
|
|
34
|
-
- run:
|
|
35
|
-
name: run tests
|
|
36
|
-
command: |
|
|
37
|
-
mkdir /tmp/test-results
|
|
38
|
-
TEST_FILES="$(circleci tests glob "spec/**/*_spec.rb" | \
|
|
39
|
-
circleci tests split --split-by=timings)"
|
|
40
|
-
|
|
41
|
-
bundle exec rspec \
|
|
42
|
-
--format progress \
|
|
43
|
-
--format RspecJunitFormatter \
|
|
44
|
-
--out /tmp/test-results/rspec.xml \
|
|
45
|
-
--format progress \
|
|
46
|
-
$TEST_FILES
|
|
47
|
-
|
|
48
|
-
- run:
|
|
49
|
-
name: run rubocop
|
|
50
|
-
command: bundle exec rubocop
|
|
51
|
-
|
|
52
|
-
# collect reports
|
|
53
|
-
- store_test_results:
|
|
54
|
-
path: /tmp/test-results
|
|
55
|
-
- store_artifacts:
|
|
56
|
-
path: /tmp/test-results
|
|
57
|
-
destination: test-results
|