coins_paid_rails 1.5.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.semaphore/semaphore.yml +53 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +13 -13
- data/coins_paid_rails.gemspec +2 -2
- data/spec/spec_helper.rb +1 -1
- metadata +7 -7
- data/.circleci/config.yml +0 -97
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f671ba0c4133e7627dce77fadbfa70af1c7fbe5236dca93191c410106358a435
|
4
|
+
data.tar.gz: b6cc28e8bab06e203f157b71cc0320e06260fe7c4e7ff0508e39fe3e737d293f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d73fdc293c92574fe3fa622f2dbe81682d989ac5191ef18983ff419f136bbed00af9972a17b49649e76eb0e28fb88a7948a1ee19667f2ba1e5d93d1016b39e5a
|
7
|
+
data.tar.gz: 6d0bbd0059cf45081d66155c5b2f4b900c212446c11d915892e0b653e7ee74f65a58dc94733d89186e7358f3a8889df9bb02b7e9ec9f9c275d955f1ac527b26e
|
@@ -0,0 +1,53 @@
|
|
1
|
+
version: v1.0
|
2
|
+
name: Web Application
|
3
|
+
agent:
|
4
|
+
machine:
|
5
|
+
type: e1-standard-2
|
6
|
+
os_image: ubuntu2004
|
7
|
+
auto_cancel:
|
8
|
+
running:
|
9
|
+
when: "branch != 'master'"
|
10
|
+
blocks:
|
11
|
+
- name: Install dependencies
|
12
|
+
task:
|
13
|
+
jobs:
|
14
|
+
- name: Run Bundler
|
15
|
+
commands:
|
16
|
+
- checkout
|
17
|
+
- cache restore gems-$SEMAPHORE_GIT_SHA
|
18
|
+
- sem-version ruby 2.7.5
|
19
|
+
- bundle config set --local path 'vendor/bundle'
|
20
|
+
- bundle install --jobs=4 --retry=3
|
21
|
+
- cache store gems-$SEMAPHORE_GIT_SHA vendor/bundle
|
22
|
+
- name: Download CC
|
23
|
+
commands:
|
24
|
+
- mkdir -p cc/
|
25
|
+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-0.7.0-linux-amd64 > ~/cc/cc-test-reporter
|
26
|
+
- chmod +x ~/cc/cc-test-reporter
|
27
|
+
- cache store cc-test-reporter ~/cc/cc-test-reporter
|
28
|
+
- name: Run Tests
|
29
|
+
task:
|
30
|
+
env_vars:
|
31
|
+
- name: COVERAGE
|
32
|
+
value: '1'
|
33
|
+
jobs:
|
34
|
+
- name: Run Rspec
|
35
|
+
commands:
|
36
|
+
- checkout
|
37
|
+
- cache restore cc-test-reporter
|
38
|
+
- cache restore gems-$SEMAPHORE_GIT_SHA
|
39
|
+
- sem-version ruby 2.7.5
|
40
|
+
- bundle config set --local path 'vendor/bundle'
|
41
|
+
- bundle exec rspec spec
|
42
|
+
- ~/cc/cc-test-reporter format-coverage -t simplecov -o ~/cc/codeclimate.rspec.json tmp/coverage/.resultset.json
|
43
|
+
- cache store rspec-report-$SEMAPHORE_GIT_SHA ~/cc/codeclimate.rspec.json
|
44
|
+
- name: Upload CC report
|
45
|
+
task:
|
46
|
+
secrets:
|
47
|
+
- name: private-repo
|
48
|
+
jobs:
|
49
|
+
- name: Upload coverage result
|
50
|
+
commands:
|
51
|
+
- cache restore cc-test-reporter
|
52
|
+
- cache restore rspec-report-$SEMAPHORE_GIT_SHA
|
53
|
+
- ~/cc/cc-test-reporter upload-coverage -i ~/cc/codeclimate.rspec.json
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
coins_paid_rails (
|
4
|
+
coins_paid_rails (2.0.0)
|
5
5
|
activerecord (< 8.0)
|
6
|
-
coins_paid_api (>=
|
6
|
+
coins_paid_api (>= 2.0.0, < 3.0)
|
7
7
|
dry-initializer (~> 3.0)
|
8
8
|
dry-struct (~> 1.0)
|
9
9
|
|
@@ -36,14 +36,14 @@ GEM
|
|
36
36
|
zeitwerk (~> 2.3)
|
37
37
|
builder (3.2.4)
|
38
38
|
chunky_png (1.4.0)
|
39
|
-
coins_paid_api (1.
|
39
|
+
coins_paid_api (2.1.0)
|
40
40
|
dry-struct (~> 1.0)
|
41
41
|
faraday (~> 0.12)
|
42
42
|
faraday_middleware (~> 0.11)
|
43
|
-
concurrent-ruby (1.
|
43
|
+
concurrent-ruby (1.3.3)
|
44
44
|
crass (1.0.6)
|
45
45
|
diff-lcs (1.5.0)
|
46
|
-
docile (1.
|
46
|
+
docile (1.1.5)
|
47
47
|
dry-container (0.11.0)
|
48
48
|
concurrent-ruby (~> 1.0)
|
49
49
|
dry-core (0.8.1)
|
@@ -71,13 +71,14 @@ GEM
|
|
71
71
|
i18n (1.10.0)
|
72
72
|
concurrent-ruby (~> 1.0)
|
73
73
|
ice_nine (0.11.2)
|
74
|
+
json (2.7.2)
|
74
75
|
loofah (2.15.0)
|
75
76
|
crass (~> 1.0.2)
|
76
77
|
nokogiri (>= 1.5.9)
|
77
78
|
method_source (1.0.0)
|
78
79
|
mini_portile2 (2.8.0)
|
79
80
|
minitest (5.15.0)
|
80
|
-
multipart-post (2.
|
81
|
+
multipart-post (2.4.1)
|
81
82
|
nokogiri (1.13.3)
|
82
83
|
mini_portile2 (~> 2.8.0)
|
83
84
|
racc (~> 1.4)
|
@@ -121,12 +122,11 @@ GEM
|
|
121
122
|
rspec-mocks (~> 3.10)
|
122
123
|
rspec-support (~> 3.10)
|
123
124
|
rspec-support (3.11.0)
|
124
|
-
simplecov (0.
|
125
|
-
docile (~> 1.1)
|
126
|
-
|
127
|
-
|
128
|
-
simplecov-html (0.
|
129
|
-
simplecov_json_formatter (0.1.4)
|
125
|
+
simplecov (0.13.0)
|
126
|
+
docile (~> 1.1.0)
|
127
|
+
json (>= 1.8, < 3)
|
128
|
+
simplecov-html (~> 0.10.0)
|
129
|
+
simplecov-html (0.10.2)
|
130
130
|
sqlite3 (1.4.2)
|
131
131
|
thor (1.2.1)
|
132
132
|
tzinfo (2.0.4)
|
@@ -141,7 +141,7 @@ DEPENDENCIES
|
|
141
141
|
rqrcode
|
142
142
|
rspec-its
|
143
143
|
rspec-rails
|
144
|
-
simplecov
|
144
|
+
simplecov (= 0.13)
|
145
145
|
sqlite3
|
146
146
|
|
147
147
|
BUNDLED WITH
|
data/coins_paid_rails.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'coins_paid_rails'
|
3
3
|
s.authors = ['Artem Biserov(artembiserov)', 'Oleg Ivanov(morhekil)']
|
4
|
-
s.version = '1.
|
4
|
+
s.version = '2.1.0'
|
5
5
|
s.files = `git ls-files`.split("\n")
|
6
6
|
s.summary = 'CoinsPaid Rails Integration'
|
7
7
|
s.license = 'MIT'
|
8
8
|
|
9
|
-
s.add_runtime_dependency 'coins_paid_api', '>=
|
9
|
+
s.add_runtime_dependency 'coins_paid_api', '>= 2.0.0', '<3.0'
|
10
10
|
s.add_runtime_dependency 'activerecord', '< 8.0'
|
11
11
|
s.add_runtime_dependency 'dry-initializer', '~> 3.0'
|
12
12
|
s.add_runtime_dependency 'dry-struct', '~> 1.0'
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coins_paid_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artem Biserov(artembiserov)
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-08-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coins_paid_api
|
@@ -17,20 +17,20 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version:
|
20
|
+
version: 2.0.0
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '3.0'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
version:
|
30
|
+
version: 2.0.0
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '3.0'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: activerecord
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,11 +93,11 @@ executables: []
|
|
93
93
|
extensions: []
|
94
94
|
extra_rdoc_files: []
|
95
95
|
files:
|
96
|
-
- ".circleci/config.yml"
|
97
96
|
- ".gitignore"
|
98
97
|
- ".rspec"
|
99
98
|
- ".rubocop.yml"
|
100
99
|
- ".ruby-version"
|
100
|
+
- ".semaphore/semaphore.yml"
|
101
101
|
- Gemfile
|
102
102
|
- Gemfile.lock
|
103
103
|
- coins_paid_rails.gemspec
|
data/.circleci/config.yml
DELETED
@@ -1,97 +0,0 @@
|
|
1
|
-
version: 2.0
|
2
|
-
|
3
|
-
defaults: &defaults
|
4
|
-
docker:
|
5
|
-
- image: cimg/ruby:2.7-node
|
6
|
-
working_directory: ~/project
|
7
|
-
|
8
|
-
jobs:
|
9
|
-
checkout_code:
|
10
|
-
<<: *defaults
|
11
|
-
steps:
|
12
|
-
- checkout
|
13
|
-
- run: mkdir log
|
14
|
-
- persist_to_workspace:
|
15
|
-
root: ~/project
|
16
|
-
paths:
|
17
|
-
- ./
|
18
|
-
|
19
|
-
download_cc_reporter:
|
20
|
-
<<: *defaults
|
21
|
-
steps:
|
22
|
-
- run:
|
23
|
-
name: Download cc-test-reporter
|
24
|
-
command: |
|
25
|
-
mkdir -p cc/
|
26
|
-
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc/cc-test-reporter
|
27
|
-
chmod +x ./cc/cc-test-reporter
|
28
|
-
- persist_to_workspace:
|
29
|
-
root: ~/project
|
30
|
-
paths:
|
31
|
-
- cc/cc-test-reporter
|
32
|
-
|
33
|
-
run_bundler:
|
34
|
-
<<: *defaults
|
35
|
-
steps:
|
36
|
-
- attach_workspace:
|
37
|
-
at: ~/project
|
38
|
-
- restore_cache:
|
39
|
-
key: v1-bundle-{{ checksum "Gemfile.lock" }}
|
40
|
-
- run: echo "export rvm_ignore_gemsets_flag=1" >> ~/.rvmrc
|
41
|
-
- run: sudo apt-get update && sudo apt-get install -y libsodium-dev
|
42
|
-
- run: bundle config set --local path 'vendor/bundle'
|
43
|
-
- run: bundle check || bundle install --path=vendor/bundle --jobs=4 --retry=3
|
44
|
-
- save_cache:
|
45
|
-
key: v1-bundle-{{ checksum "Gemfile.lock" }}
|
46
|
-
paths:
|
47
|
-
- ~/project/vendor/bundle
|
48
|
-
|
49
|
-
run_rspec_tests:
|
50
|
-
<<: *defaults
|
51
|
-
docker:
|
52
|
-
- image: cimg/ruby:2.7-node
|
53
|
-
environment:
|
54
|
-
RACK_ENV: "test"
|
55
|
-
CIRCLE_ARTIFACTS: "./tmp"
|
56
|
-
steps:
|
57
|
-
- attach_workspace:
|
58
|
-
at: ~/project
|
59
|
-
- restore_cache:
|
60
|
-
key: v1-bundle-{{ checksum "Gemfile.lock" }}
|
61
|
-
- run: sudo apt-get update && sudo apt-get install -y libsodium-dev
|
62
|
-
- run: bundle config set --local path 'vendor/bundle'
|
63
|
-
- run: bundle check
|
64
|
-
- run: bundle exec rspec spec
|
65
|
-
- run: ./cc/cc-test-reporter format-coverage -t simplecov -o cc/codeclimate.rspec.json tmp/coverage/.resultset.json
|
66
|
-
- persist_to_workspace:
|
67
|
-
root: ~/project
|
68
|
-
paths:
|
69
|
-
- cc/codeclimate.rspec.json
|
70
|
-
|
71
|
-
upload_cc_coverage:
|
72
|
-
<<: *defaults
|
73
|
-
steps:
|
74
|
-
- attach_workspace:
|
75
|
-
at: ~/project
|
76
|
-
- run:
|
77
|
-
name: Upload coverage results to Code Climate
|
78
|
-
command: |
|
79
|
-
./cc/cc-test-reporter upload-coverage -i cc/codeclimate.rspec.json
|
80
|
-
|
81
|
-
workflows:
|
82
|
-
version: 2
|
83
|
-
build_test_deploy:
|
84
|
-
jobs:
|
85
|
-
- checkout_code
|
86
|
-
- download_cc_reporter:
|
87
|
-
requires:
|
88
|
-
- checkout_code
|
89
|
-
- run_bundler:
|
90
|
-
requires:
|
91
|
-
- download_cc_reporter
|
92
|
-
- run_rspec_tests:
|
93
|
-
requires:
|
94
|
-
- run_bundler
|
95
|
-
- upload_cc_coverage:
|
96
|
-
requires:
|
97
|
-
- run_rspec_tests
|