coins_paid_rails 1.4.0 → 2.0.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: f346670118262abe7f87249bad43d50553c3f5b0fd593ca90239efd02af7af7a
4
- data.tar.gz: 73502131a9b21c5804b1a11a1a90a99d2cc0698d36123982541ed5ce5c702600
3
+ metadata.gz: e72aed922e164ed648aab91e7b67399b55bfa6f01424a5688aa0ad888e3d84bf
4
+ data.tar.gz: db85ce76304c869ae0e4a4c290f345a084f5477b293cb07294ccf40a11210589
5
5
  SHA512:
6
- metadata.gz: 3eb5405ca21db8b6a0079bb9fe3e13d070eded4c4c07192d3a4bfe4e1193ad9774a68d57bdac74f7dff5e55488f2ce790ff36eac222e1cecfb2897909932fea1
7
- data.tar.gz: 2d9d9d06890a6e7ef02ac602cb616ac147830e30b506c87c2305d33cdaf591156e48b57bb528d7650db31367d1d3719cb0534ac686f7286eeda217a8772d78e9
6
+ metadata.gz: 6963c96686358a8ae35be06744963a25019fca1f5b3c8e021f87224dcc3f363facdfd4638f933f8b10a05e0f31cc9343a5fb4ad69383f0b895f60c0b5f915d3c
7
+ data.tar.gz: c036f6ff762e6b41f92aeb2fe7e2efe868ecf1ea8dc203edb52a88d87ce318c500ea31162018e3f31cdd24f7b766941ba40713be31ae3e9135dfef57758e2d0d
@@ -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
@@ -3,7 +3,7 @@ source "http://www.rubygems.org"
3
3
  gemspec
4
4
 
5
5
  group :test do
6
- gem 'simplecov', require: false
6
+ gem 'simplecov', '0.13', require: false
7
7
  gem 'sqlite3'
8
8
  gem 'rspec-its'
9
9
  gem 'rqrcode'
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- coins_paid_rails (1.3.0)
5
- activerecord (~> 6.1.4)
6
- coins_paid_api (>= 1.2.0, < 2.0)
4
+ coins_paid_rails (2.0.0)
5
+ activerecord (< 8.0)
6
+ coins_paid_api (>= 2.0.0, < 3.0)
7
7
  dry-initializer (~> 3.0)
8
8
  dry-struct (~> 1.0)
9
9
 
@@ -36,23 +36,19 @@ GEM
36
36
  zeitwerk (~> 2.3)
37
37
  builder (3.2.4)
38
38
  chunky_png (1.4.0)
39
- coins_paid_api (1.2.0)
39
+ coins_paid_api (2.0.0)
40
40
  dry-struct (~> 1.0)
41
41
  faraday (~> 0.12)
42
42
  faraday_middleware (~> 0.11)
43
43
  concurrent-ruby (1.1.10)
44
44
  crass (1.0.6)
45
45
  diff-lcs (1.5.0)
46
- docile (1.4.0)
47
- dry-configurable (0.14.0)
46
+ docile (1.1.5)
47
+ dry-container (0.11.0)
48
48
  concurrent-ruby (~> 1.0)
49
- dry-core (~> 0.6)
50
- dry-container (0.9.0)
49
+ dry-core (0.8.1)
51
50
  concurrent-ruby (~> 1.0)
52
- dry-configurable (~> 0.13, >= 0.13.0)
53
- dry-core (0.7.1)
54
- concurrent-ruby (~> 1.0)
55
- dry-inflector (0.2.1)
51
+ dry-inflector (0.3.0)
56
52
  dry-initializer (3.1.1)
57
53
  dry-logic (1.2.0)
58
54
  concurrent-ruby (~> 1.0)
@@ -68,20 +64,21 @@ GEM
68
64
  dry-inflector (~> 0.1, >= 0.1.2)
69
65
  dry-logic (~> 1.0, >= 1.0.2)
70
66
  erubi (1.10.0)
71
- faraday (0.17.5)
67
+ faraday (0.17.6)
72
68
  multipart-post (>= 1.2, < 3)
73
69
  faraday_middleware (0.14.0)
74
70
  faraday (>= 0.7.4, < 1.0)
75
71
  i18n (1.10.0)
76
72
  concurrent-ruby (~> 1.0)
77
73
  ice_nine (0.11.2)
74
+ json (2.7.2)
78
75
  loofah (2.15.0)
79
76
  crass (~> 1.0.2)
80
77
  nokogiri (>= 1.5.9)
81
78
  method_source (1.0.0)
82
79
  mini_portile2 (2.8.0)
83
80
  minitest (5.15.0)
84
- multipart-post (2.1.1)
81
+ multipart-post (2.4.1)
85
82
  nokogiri (1.13.3)
86
83
  mini_portile2 (~> 2.8.0)
87
84
  racc (~> 1.4)
@@ -125,12 +122,11 @@ GEM
125
122
  rspec-mocks (~> 3.10)
126
123
  rspec-support (~> 3.10)
127
124
  rspec-support (3.11.0)
128
- simplecov (0.21.2)
129
- docile (~> 1.1)
130
- simplecov-html (~> 0.11)
131
- simplecov_json_formatter (~> 0.1)
132
- simplecov-html (0.12.3)
133
- 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)
134
130
  sqlite3 (1.4.2)
135
131
  thor (1.2.1)
136
132
  tzinfo (2.0.4)
@@ -145,8 +141,8 @@ DEPENDENCIES
145
141
  rqrcode
146
142
  rspec-its
147
143
  rspec-rails
148
- simplecov
144
+ simplecov (= 0.13)
149
145
  sqlite3
150
146
 
151
147
  BUNDLED WITH
152
- 2.2.32
148
+ 2.3.26
@@ -1,13 +1,13 @@
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.0'
4
+ s.version = '2.0.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', '>= 1.2.0', '<2.0'
10
- s.add_runtime_dependency 'activerecord', '~> 6.1.4'
9
+ s.add_runtime_dependency 'coins_paid_api', '>= 2.0.0', '<3.0'
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'
13
13
  s.add_development_dependency 'rspec-rails'
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  ENV['COINS_PAID_CURRENCY'] = 'EUR'
2
2
 
3
- if ENV['CIRCLE_ARTIFACTS']
3
+ if ENV['COVERAGE']
4
4
  require 'simplecov'
5
5
  SimpleCov.start
6
6
  end
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.0
4
+ version: 2.0.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: 2022-03-31 00:00:00.000000000 Z
12
+ date: 2024-07-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coins_paid_api
@@ -17,34 +17,34 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 1.2.0
20
+ version: 2.0.0
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '2.0'
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: 1.2.0
30
+ version: 2.0.0
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.0'
33
+ version: '3.0'
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: activerecord
36
36
  requirement: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - "<"
39
39
  - !ruby/object:Gem::Version
40
- version: 6.1.4
40
+ version: '8.0'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - "<"
46
46
  - !ruby/object:Gem::Version
47
- version: 6.1.4
47
+ version: '8.0'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: dry-initializer
50
50
  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