g2_command 0.3.0 → 2.2.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: c2c7e60893e03e11328bae24d2c98329695981f3fed89e1b4417f709db1588d3
4
- data.tar.gz: 76e183fefc48fd4de032d71eaf3f4028f48cec235f5adee52144420d61864b55
3
+ metadata.gz: 37d3ff7d695a44bf5b9f03bc6b74869f2c22258b09fef87ce3068e4ad901df11
4
+ data.tar.gz: 661b1cb48d488551978ccb94783af650e903673bb5eab8a6e12593669e3886d3
5
5
  SHA512:
6
- metadata.gz: 2fd05cfef8208fb26c5a472d35826ce438689699413f9016399a06112da1a3e304f2971bf325aee189b6f7838b5920678c895b0791f84e33b7dceafc0d87d403
7
- data.tar.gz: 241e6ea7df5db0beceb3f8548d81110d25212a92ae010d5ea0af5e5b90bf48c3b32fbc45b7ffbb283c3c852174aca76e01ae5ffec51ad3a16599ffb2e51f6aad
6
+ metadata.gz: d72406ecd35b764f26fb45455bd7deeaa1721b39f2e9ba48979ea4ef1f9a5b5412ab1a17055186cda79c4c9339c126c3795f1f8c49c791993319215f808d9939
7
+ data.tar.gz: 514a19da936b88ff1fe2fa191f5a76832a09cfdee7b8c42c0fda19b9927617b58205344d101f3070bc6b2c1a752f00ad806edac60e2f9efffb1c80efcc7ec452
@@ -0,0 +1,84 @@
1
+ version: 2.1
2
+
3
+ orbs:
4
+ ruby: g2crowd/ruby@0.0.12
5
+
6
+ commands:
7
+ load-cache:
8
+ description: 'Load cached RubyGems.'
9
+ parameters:
10
+ key:
11
+ description: 'The cache key to use. The key is immutable.'
12
+ type: string
13
+ default: 'gems-v1'
14
+ gemfile:
15
+ description: 'The gemfile to use'
16
+ type: string
17
+ default: 'Gemfile.lock'
18
+ steps:
19
+ - restore_cache:
20
+ keys:
21
+ - << parameters.key >>-{{ checksum "<< parameters.gemfile >>" }}
22
+ - << parameters.key >>-
23
+ save-cache:
24
+ description: "Save RubyGems to cache."
25
+ parameters:
26
+ key:
27
+ description: "The cache key to use. The key is immutable."
28
+ type: string
29
+ default: "gems-v1"
30
+ gemfile:
31
+ description: 'The gemfile to use'
32
+ type: string
33
+ default: 'Gemfile.lock'
34
+ steps:
35
+ - save_cache:
36
+ key: << parameters.key >>-{{ checksum "<< parameters.gemfile >>" }}
37
+ paths:
38
+ - vendor/bundle
39
+
40
+ jobs:
41
+ appraisal:
42
+ parameters:
43
+ ruby:
44
+ description: 'The ruby version to use'
45
+ type: string
46
+ default: '2.7.1'
47
+ gemfile:
48
+ description: 'The gemfile version to use'
49
+ type: string
50
+ default: '6.0'
51
+ executor:
52
+ name: ruby/ruby
53
+ ruby: << parameters.ruby >>
54
+ environment:
55
+ BUNDLE_GEMFILE: gemfiles/rails_<< parameters.gemfile >>.gemfile
56
+ steps:
57
+ - checkout
58
+ - load-cache:
59
+ gemfile: gemfiles/rails_<< parameters.gemfile >>.gemfile
60
+ - ruby/install-deps:
61
+ bundler-version: '2.1.4'
62
+ - save-cache:
63
+ gemfile: gemfiles/rails_<< parameters.gemfile >>.gemfile
64
+ - run:
65
+ name: Run Specs
66
+ command: bundle exec appraisal rails-<< parameters.gemfile >> rspec --require fivemat --format Fivemat
67
+
68
+ workflows:
69
+ version: 2
70
+ build:
71
+ jobs:
72
+ - appraisal:
73
+ context: g2crowd-global
74
+ matrix:
75
+ parameters:
76
+ ruby: ['2.4.10', '2.5.8', '2.6.6', '2.7.1']
77
+ gemfile: ['5.1', '5.2', '6.0']
78
+ exclude:
79
+ - ruby: '2.4.10'
80
+ gemfile: '6.0'
81
+ - ruby/build:
82
+ context: g2crowd-global
83
+ setup-database: false
84
+ bundler-version: '2.1.4'
@@ -0,0 +1,17 @@
1
+ check_name: 'RuboCop'
2
+
3
+ # Instead of installing gems from rubygems, we can run `bundle install` on your project,
4
+ # you would need to do this if you are using something like 'rubocop-github' or if you don't
5
+ # want to list out dependencies with the `versions` key.
6
+ # Valid options: true || false
7
+ # Default: false
8
+ bundle: true
9
+
10
+ # The scope of code that Rubocop should lint. Use this if you only want to lint changed files. If this is not set
11
+ # or not equal to 'modified', Rubocop is run against the entire codebase. Note that this will not work on the main branch.
12
+ # Valid options: 'modified'
13
+ # Default: nil
14
+ check_scope: 'modified'
15
+
16
+ rubocop_force_exclusion: true
17
+ base_branch: "origin/main"
@@ -0,0 +1,17 @@
1
+ name: Linters
2
+
3
+ on:
4
+ push:
5
+ branches-ignore:
6
+ - main
7
+
8
+ jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+
14
+ - name: Rubocop Linter
15
+ uses: g2crowd/rubocop-linter-action@v3.4.0
16
+ env:
17
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,46 +1,15 @@
1
+ inherit_gem:
2
+ rubocop-g2:
3
+ - config/ruby/default.yml
4
+
1
5
  require:
2
6
  - rubocop-rspec
7
+ - rubocop-g2
3
8
 
4
9
  AllCops:
5
- TargetRubyVersion: 2.6
6
-
7
- Layout/LineLength:
8
- Max: 120
9
-
10
- Layout/MultilineMethodCallIndentation:
11
- EnforcedStyle: indented_relative_to_receiver
12
-
13
- Layout/SpaceAroundMethodCallOperator:
14
- Enabled: true
15
-
16
- Lint/RaiseException:
17
- Enabled: true
18
-
19
- Lint/StructNewOverride:
20
- Enabled: true
10
+ TargetRubyVersion: 2.7
11
+ Exclude:
12
+ - gemfiles/*
21
13
 
22
14
  Style/Documentation:
23
15
  Enabled: false
24
-
25
- Style/ExponentialNotation:
26
- Enabled: true
27
-
28
- Style/HashEachMethods:
29
- Enabled: true
30
-
31
- Style/HashTransformKeys:
32
- Enabled: false
33
-
34
- Style/HashTransformValues:
35
- Enabled: false
36
-
37
- Style/PercentLiteralDelimiters:
38
- PreferredDelimiters:
39
- default: ()
40
- '%w': '()'
41
- '%W': '()'
42
- '%i': '()'
43
- '%I': '()'
44
-
45
- Style/NumericLiterals:
46
- Enabled: false
@@ -0,0 +1 @@
1
+ 2.7.1
@@ -1 +1 @@
1
- ruby 2.6.6
1
+ ruby 2.7.2
@@ -0,0 +1,13 @@
1
+ appraise 'rails-5.1' do
2
+ gem 'rails', '5.1.7'
3
+ gem 'sprockets', '~> 3'
4
+ end
5
+
6
+ appraise 'rails-5.2' do
7
+ gem 'rails', '5.2.4'
8
+ gem 'sprockets', '~> 3'
9
+ end
10
+
11
+ appraise 'rails-6.0' do
12
+ gem 'rails', '6.0.3'
13
+ end
data/Gemfile CHANGED
@@ -4,10 +4,12 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
+ gem 'appraisal'
8
+ gem 'fivemat'
7
9
  gem 'pry'
8
10
  gem 'rails'
9
11
  gem 'rake', '~> 12.0'
10
12
  gem 'rspec', '~> 3.0'
11
- gem 'rubocop'
12
- gem 'rubocop-rspec'
13
+ gem 'rspec_junit_formatter'
14
+ gem 'rubocop-g2'
13
15
  gem 'simplecov', '0.16.1'
@@ -1,93 +1,98 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- g2_command (0.3.0)
5
- activemodel (>= 6.0, < 7)
6
- activesupport (>= 6.0, < 7)
4
+ g2_command (2.2.0)
5
+ activemodel (>= 5.0, < 7)
6
+ activesupport (>= 5.0, < 7)
7
7
  dry-initializer (~> 3.0)
8
8
  dry-monads (~> 1.3)
9
9
 
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- actioncable (6.0.2.2)
14
- actionpack (= 6.0.2.2)
13
+ actioncable (6.0.3.3)
14
+ actionpack (= 6.0.3.3)
15
15
  nio4r (~> 2.0)
16
16
  websocket-driver (>= 0.6.1)
17
- actionmailbox (6.0.2.2)
18
- actionpack (= 6.0.2.2)
19
- activejob (= 6.0.2.2)
20
- activerecord (= 6.0.2.2)
21
- activestorage (= 6.0.2.2)
22
- activesupport (= 6.0.2.2)
17
+ actionmailbox (6.0.3.3)
18
+ actionpack (= 6.0.3.3)
19
+ activejob (= 6.0.3.3)
20
+ activerecord (= 6.0.3.3)
21
+ activestorage (= 6.0.3.3)
22
+ activesupport (= 6.0.3.3)
23
23
  mail (>= 2.7.1)
24
- actionmailer (6.0.2.2)
25
- actionpack (= 6.0.2.2)
26
- actionview (= 6.0.2.2)
27
- activejob (= 6.0.2.2)
24
+ actionmailer (6.0.3.3)
25
+ actionpack (= 6.0.3.3)
26
+ actionview (= 6.0.3.3)
27
+ activejob (= 6.0.3.3)
28
28
  mail (~> 2.5, >= 2.5.4)
29
29
  rails-dom-testing (~> 2.0)
30
- actionpack (6.0.2.2)
31
- actionview (= 6.0.2.2)
32
- activesupport (= 6.0.2.2)
30
+ actionpack (6.0.3.3)
31
+ actionview (= 6.0.3.3)
32
+ activesupport (= 6.0.3.3)
33
33
  rack (~> 2.0, >= 2.0.8)
34
34
  rack-test (>= 0.6.3)
35
35
  rails-dom-testing (~> 2.0)
36
36
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
37
- actiontext (6.0.2.2)
38
- actionpack (= 6.0.2.2)
39
- activerecord (= 6.0.2.2)
40
- activestorage (= 6.0.2.2)
41
- activesupport (= 6.0.2.2)
37
+ actiontext (6.0.3.3)
38
+ actionpack (= 6.0.3.3)
39
+ activerecord (= 6.0.3.3)
40
+ activestorage (= 6.0.3.3)
41
+ activesupport (= 6.0.3.3)
42
42
  nokogiri (>= 1.8.5)
43
- actionview (6.0.2.2)
44
- activesupport (= 6.0.2.2)
43
+ actionview (6.0.3.3)
44
+ activesupport (= 6.0.3.3)
45
45
  builder (~> 3.1)
46
46
  erubi (~> 1.4)
47
47
  rails-dom-testing (~> 2.0)
48
48
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
- activejob (6.0.2.2)
50
- activesupport (= 6.0.2.2)
49
+ activejob (6.0.3.3)
50
+ activesupport (= 6.0.3.3)
51
51
  globalid (>= 0.3.6)
52
- activemodel (6.0.2.2)
53
- activesupport (= 6.0.2.2)
54
- activerecord (6.0.2.2)
55
- activemodel (= 6.0.2.2)
56
- activesupport (= 6.0.2.2)
57
- activestorage (6.0.2.2)
58
- actionpack (= 6.0.2.2)
59
- activejob (= 6.0.2.2)
60
- activerecord (= 6.0.2.2)
52
+ activemodel (6.0.3.3)
53
+ activesupport (= 6.0.3.3)
54
+ activerecord (6.0.3.3)
55
+ activemodel (= 6.0.3.3)
56
+ activesupport (= 6.0.3.3)
57
+ activestorage (6.0.3.3)
58
+ actionpack (= 6.0.3.3)
59
+ activejob (= 6.0.3.3)
60
+ activerecord (= 6.0.3.3)
61
61
  marcel (~> 0.3.1)
62
- activesupport (6.0.2.2)
62
+ activesupport (6.0.3.3)
63
63
  concurrent-ruby (~> 1.0, >= 1.0.2)
64
64
  i18n (>= 0.7, < 2)
65
65
  minitest (~> 5.1)
66
66
  tzinfo (~> 1.1)
67
- zeitwerk (~> 2.2)
68
- ast (2.4.0)
67
+ zeitwerk (~> 2.2, >= 2.2.2)
68
+ appraisal (2.3.0)
69
+ bundler
70
+ rake
71
+ thor (>= 0.14.0)
72
+ ast (2.4.1)
69
73
  builder (3.2.4)
70
74
  coderay (1.1.2)
71
- concurrent-ruby (1.1.6)
75
+ concurrent-ruby (1.1.7)
72
76
  crass (1.0.6)
73
77
  diff-lcs (1.3)
74
78
  docile (1.3.2)
75
79
  dry-core (0.4.9)
76
80
  concurrent-ruby (~> 1.0)
77
81
  dry-equalizer (0.3.0)
78
- dry-initializer (3.0.3)
82
+ dry-initializer (3.0.4)
79
83
  dry-monads (1.3.5)
80
84
  concurrent-ruby (~> 1.0)
81
85
  dry-core (~> 0.4, >= 0.4.4)
82
86
  dry-equalizer
83
87
  erubi (1.9.0)
88
+ fivemat (1.3.7)
84
89
  globalid (0.4.2)
85
90
  activesupport (>= 4.2.0)
86
- i18n (1.8.2)
91
+ i18n (1.8.5)
87
92
  concurrent-ruby (~> 1.0)
88
93
  jaro_winkler (1.5.4)
89
94
  json (2.3.0)
90
- loofah (2.5.0)
95
+ loofah (2.7.0)
91
96
  crass (~> 1.0.2)
92
97
  nokogiri (>= 1.5.9)
93
98
  mail (2.7.1)
@@ -95,45 +100,45 @@ GEM
95
100
  marcel (0.3.3)
96
101
  mimemagic (~> 0.3.2)
97
102
  method_source (0.9.2)
98
- mimemagic (0.3.4)
103
+ mimemagic (0.3.5)
99
104
  mini_mime (1.0.2)
100
105
  mini_portile2 (2.4.0)
101
- minitest (5.14.0)
102
- nio4r (2.5.2)
103
- nokogiri (1.10.9)
106
+ minitest (5.14.2)
107
+ nio4r (2.5.4)
108
+ nokogiri (1.10.10)
104
109
  mini_portile2 (~> 2.4.0)
105
- parallel (1.19.1)
106
- parser (2.7.1.1)
107
- ast (~> 2.4.0)
110
+ parallel (1.19.2)
111
+ parser (2.7.1.4)
112
+ ast (~> 2.4.1)
108
113
  pry (0.12.2)
109
114
  coderay (~> 1.1.0)
110
115
  method_source (~> 0.9.0)
111
- rack (2.2.2)
116
+ rack (2.2.3)
112
117
  rack-test (1.1.0)
113
118
  rack (>= 1.0, < 3)
114
- rails (6.0.2.2)
115
- actioncable (= 6.0.2.2)
116
- actionmailbox (= 6.0.2.2)
117
- actionmailer (= 6.0.2.2)
118
- actionpack (= 6.0.2.2)
119
- actiontext (= 6.0.2.2)
120
- actionview (= 6.0.2.2)
121
- activejob (= 6.0.2.2)
122
- activemodel (= 6.0.2.2)
123
- activerecord (= 6.0.2.2)
124
- activestorage (= 6.0.2.2)
125
- activesupport (= 6.0.2.2)
119
+ rails (6.0.3.3)
120
+ actioncable (= 6.0.3.3)
121
+ actionmailbox (= 6.0.3.3)
122
+ actionmailer (= 6.0.3.3)
123
+ actionpack (= 6.0.3.3)
124
+ actiontext (= 6.0.3.3)
125
+ actionview (= 6.0.3.3)
126
+ activejob (= 6.0.3.3)
127
+ activemodel (= 6.0.3.3)
128
+ activerecord (= 6.0.3.3)
129
+ activestorage (= 6.0.3.3)
130
+ activesupport (= 6.0.3.3)
126
131
  bundler (>= 1.3.0)
127
- railties (= 6.0.2.2)
132
+ railties (= 6.0.3.3)
128
133
  sprockets-rails (>= 2.0.0)
129
134
  rails-dom-testing (2.0.3)
130
135
  activesupport (>= 4.2.0)
131
136
  nokogiri (>= 1.6)
132
137
  rails-html-sanitizer (1.3.0)
133
138
  loofah (~> 2.3)
134
- railties (6.0.2.2)
135
- actionpack (= 6.0.2.2)
136
- activesupport (= 6.0.2.2)
139
+ railties (6.0.3.3)
140
+ actionpack (= 6.0.3.3)
141
+ activesupport (= 6.0.3.3)
137
142
  method_source
138
143
  rake (>= 0.8.7)
139
144
  thor (>= 0.20.3, < 2.0)
@@ -153,6 +158,8 @@ GEM
153
158
  diff-lcs (>= 1.2.0, < 2.0)
154
159
  rspec-support (~> 3.9.0)
155
160
  rspec-support (3.9.2)
161
+ rspec_junit_formatter (0.4.1)
162
+ rspec-core (>= 2, < 4, != 2.12.0)
156
163
  rubocop (0.82.0)
157
164
  jaro_winkler (~> 1.5.1)
158
165
  parallel (~> 1.10)
@@ -161,7 +168,15 @@ GEM
161
168
  rexml
162
169
  ruby-progressbar (~> 1.7)
163
170
  unicode-display_width (>= 1.4.0, < 2.0)
164
- rubocop-rspec (1.38.1)
171
+ rubocop-g2 (1.1.0)
172
+ rubocop (= 0.82.0)
173
+ rubocop-rails (= 2.5.2)
174
+ rubocop-rspec (= 1.39.0)
175
+ rubocop-rails (2.5.2)
176
+ activesupport
177
+ rack (>= 1.1)
178
+ rubocop (>= 0.72.0)
179
+ rubocop-rspec (1.39.0)
165
180
  rubocop (>= 0.68.1)
166
181
  ruby-progressbar (1.10.1)
167
182
  simplecov (0.16.1)
@@ -169,10 +184,10 @@ GEM
169
184
  json (>= 1.8, < 3)
170
185
  simplecov-html (~> 0.10.0)
171
186
  simplecov-html (0.10.2)
172
- sprockets (4.0.0)
187
+ sprockets (4.0.2)
173
188
  concurrent-ruby (~> 1.0)
174
189
  rack (> 1, < 3)
175
- sprockets-rails (3.2.1)
190
+ sprockets-rails (3.2.2)
176
191
  actionpack (>= 4.0)
177
192
  activesupport (>= 4.0)
178
193
  sprockets (>= 3.0.0)
@@ -181,22 +196,24 @@ GEM
181
196
  tzinfo (1.2.7)
182
197
  thread_safe (~> 0.1)
183
198
  unicode-display_width (1.7.0)
184
- websocket-driver (0.7.1)
199
+ websocket-driver (0.7.3)
185
200
  websocket-extensions (>= 0.1.0)
186
- websocket-extensions (0.1.4)
187
- zeitwerk (2.3.0)
201
+ websocket-extensions (0.1.5)
202
+ zeitwerk (2.4.0)
188
203
 
189
204
  PLATFORMS
190
205
  ruby
191
206
 
192
207
  DEPENDENCIES
208
+ appraisal
209
+ fivemat
193
210
  g2_command!
194
211
  pry
195
212
  rails
196
213
  rake (~> 12.0)
197
214
  rspec (~> 3.0)
198
- rubocop
199
- rubocop-rspec
215
+ rspec_junit_formatter
216
+ rubocop-g2
200
217
  simplecov (= 0.16.1)
201
218
 
202
219
  BUNDLED WITH