g2_command 2.0.0 → 2.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a996a6d1ebafe9d351d3b0762c9695ffaf531d9afb32430151f9eb694fa34929
4
- data.tar.gz: c26f9ee43fce8981d4fc26235f015d7b6059e735bc32b260ea48bb8fdcec838e
3
+ metadata.gz: f1c4f9ab0d59f753d75d5bb7cbc5c192bcd439948743fe961cc9a01694100265
4
+ data.tar.gz: 9df11cdc0c347adc088dfc71c8250fa0f93421643474d4673c77c7bb66bd6d80
5
5
  SHA512:
6
- metadata.gz: 3fe9068260e085981e0b0d8a49b7309a5e2a549bf05161cb6e8a2c86ece2991b7249e59748ae48e2091de3f9e79f58a5a16463670eb2ffb0c79e393c4b1b8b00
7
- data.tar.gz: 8e88889b4057693f1f6ac0dcc84526e01a4048ab188ee216f4b6d852bb59d830f567e4f7f95f3feb411a8cb4d53987864f5d749895ec4f29ebe5e9580997d89f
6
+ metadata.gz: 1efe1b711a961cf41a1e94e623ff15a0d4e8ebb71f5ed87296e35007646a02b055b639b20af46b195112f153a97ef6688cedea675880e031be7ab4310e4fe6d9
7
+ data.tar.gz: f4f52986d616a8984efae1e1a36fcbe142b02019a1d7407a39322d1775f9e353e18e22d33c83096524ac02e1536b1c5fb329aeb3ebc29e0bf719df3a46e73a3a
@@ -0,0 +1,30 @@
1
+ version: 2.1
2
+
3
+ orbs:
4
+ ruby: g2crowd/ruby@0.0.13
5
+
6
+ workflows:
7
+ version: 2
8
+ build:
9
+ jobs:
10
+ - ruby/appraisal:
11
+ context: g2crowd-global
12
+ matrix:
13
+ parameters:
14
+ ruby: ['2.5.8', '2.6.6', '2.7.2', '3.0.0']
15
+ appraisal:
16
+ - rails_5.1
17
+ - rails_5.2
18
+ - rails_6.0
19
+ - rails_6.1
20
+ exclude:
21
+ - ruby: '3.0.0'
22
+ appraisal: rails_5.1
23
+ - ruby: '3.0.0'
24
+ appraisal: rails_5.2
25
+ - ruby: '3.0.0'
26
+ appraisal: rails_6.0
27
+ - ruby/build:
28
+ context: g2crowd-global
29
+ setup-database: false
30
+ 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 }}
data/.rubocop.yml CHANGED
@@ -1,46 +1,16 @@
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
+ NewCops: enable
11
+ TargetRubyVersion: 2.4
12
+ Exclude:
13
+ - gemfiles/*
21
14
 
22
15
  Style/Documentation:
23
16
  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
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.6.6
1
+ 2.7.2
data/.tool-versions CHANGED
@@ -1 +1 @@
1
- ruby 2.6.6
1
+ ruby 3.0.0
data/Appraisals ADDED
@@ -0,0 +1,17 @@
1
+ appraise 'rails_5.1' do
2
+ gem 'rails', '~> 5.1', '< 5.2'
3
+ gem 'sprockets', '~> 3'
4
+ end
5
+
6
+ appraise 'rails_5.2' do
7
+ gem 'rails', '~> 5.2'
8
+ gem 'sprockets', '~> 3'
9
+ end
10
+
11
+ appraise 'rails_6.0' do
12
+ gem 'rails', '~> 6.0.3'
13
+ end
14
+
15
+ appraise 'rails_6.1' do
16
+ gem 'rails', '~> 6.1.0'
17
+ 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'
data/Gemfile.lock CHANGED
@@ -1,93 +1,101 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- g2_command (2.0.0)
5
- activemodel (>= 6.0, < 7)
6
- activesupport (>= 6.0, < 7)
4
+ g2_command (2.4.1)
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.1.3)
14
+ actionpack (= 6.1.3)
15
+ activesupport (= 6.1.3)
15
16
  nio4r (~> 2.0)
16
17
  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)
18
+ actionmailbox (6.1.3)
19
+ actionpack (= 6.1.3)
20
+ activejob (= 6.1.3)
21
+ activerecord (= 6.1.3)
22
+ activestorage (= 6.1.3)
23
+ activesupport (= 6.1.3)
23
24
  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)
25
+ actionmailer (6.1.3)
26
+ actionpack (= 6.1.3)
27
+ actionview (= 6.1.3)
28
+ activejob (= 6.1.3)
29
+ activesupport (= 6.1.3)
28
30
  mail (~> 2.5, >= 2.5.4)
29
31
  rails-dom-testing (~> 2.0)
30
- actionpack (6.0.2.2)
31
- actionview (= 6.0.2.2)
32
- activesupport (= 6.0.2.2)
33
- rack (~> 2.0, >= 2.0.8)
32
+ actionpack (6.1.3)
33
+ actionview (= 6.1.3)
34
+ activesupport (= 6.1.3)
35
+ rack (~> 2.0, >= 2.0.9)
34
36
  rack-test (>= 0.6.3)
35
37
  rails-dom-testing (~> 2.0)
36
38
  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)
39
+ actiontext (6.1.3)
40
+ actionpack (= 6.1.3)
41
+ activerecord (= 6.1.3)
42
+ activestorage (= 6.1.3)
43
+ activesupport (= 6.1.3)
42
44
  nokogiri (>= 1.8.5)
43
- actionview (6.0.2.2)
44
- activesupport (= 6.0.2.2)
45
+ actionview (6.1.3)
46
+ activesupport (= 6.1.3)
45
47
  builder (~> 3.1)
46
48
  erubi (~> 1.4)
47
49
  rails-dom-testing (~> 2.0)
48
50
  rails-html-sanitizer (~> 1.1, >= 1.2.0)
49
- activejob (6.0.2.2)
50
- activesupport (= 6.0.2.2)
51
+ activejob (6.1.3)
52
+ activesupport (= 6.1.3)
51
53
  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)
54
+ activemodel (6.1.3)
55
+ activesupport (= 6.1.3)
56
+ activerecord (6.1.3)
57
+ activemodel (= 6.1.3)
58
+ activesupport (= 6.1.3)
59
+ activestorage (6.1.3)
60
+ actionpack (= 6.1.3)
61
+ activejob (= 6.1.3)
62
+ activerecord (= 6.1.3)
63
+ activesupport (= 6.1.3)
61
64
  marcel (~> 0.3.1)
62
- activesupport (6.0.2.2)
65
+ mimemagic (~> 0.3.2)
66
+ activesupport (6.1.3)
63
67
  concurrent-ruby (~> 1.0, >= 1.0.2)
64
- i18n (>= 0.7, < 2)
65
- minitest (~> 5.1)
66
- tzinfo (~> 1.1)
67
- zeitwerk (~> 2.2)
68
- ast (2.4.0)
68
+ i18n (>= 1.6, < 2)
69
+ minitest (>= 5.1)
70
+ tzinfo (~> 2.0)
71
+ zeitwerk (~> 2.3)
72
+ appraisal (2.3.0)
73
+ bundler
74
+ rake
75
+ thor (>= 0.14.0)
76
+ ast (2.4.1)
69
77
  builder (3.2.4)
70
78
  coderay (1.1.2)
71
- concurrent-ruby (1.1.6)
79
+ concurrent-ruby (1.1.8)
72
80
  crass (1.0.6)
73
- diff-lcs (1.3)
81
+ diff-lcs (1.4.4)
74
82
  docile (1.3.2)
75
- dry-core (0.4.9)
83
+ dry-core (0.5.0)
76
84
  concurrent-ruby (~> 1.0)
77
85
  dry-equalizer (0.3.0)
78
- dry-initializer (3.0.3)
86
+ dry-initializer (3.0.4)
79
87
  dry-monads (1.3.5)
80
88
  concurrent-ruby (~> 1.0)
81
89
  dry-core (~> 0.4, >= 0.4.4)
82
90
  dry-equalizer
83
- erubi (1.9.0)
91
+ erubi (1.10.0)
92
+ fivemat (1.3.7)
84
93
  globalid (0.4.2)
85
94
  activesupport (>= 4.2.0)
86
- i18n (1.8.2)
95
+ i18n (1.8.9)
87
96
  concurrent-ruby (~> 1.0)
88
- jaro_winkler (1.5.4)
89
97
  json (2.3.0)
90
- loofah (2.5.0)
98
+ loofah (2.9.0)
91
99
  crass (~> 1.0.2)
92
100
  nokogiri (>= 1.5.9)
93
101
  mail (2.7.1)
@@ -95,109 +103,127 @@ GEM
95
103
  marcel (0.3.3)
96
104
  mimemagic (~> 0.3.2)
97
105
  method_source (0.9.2)
98
- mimemagic (0.3.4)
106
+ mimemagic (0.3.5)
99
107
  mini_mime (1.0.2)
100
- mini_portile2 (2.4.0)
101
- minitest (5.14.0)
102
- nio4r (2.5.2)
103
- nokogiri (1.10.9)
104
- mini_portile2 (~> 2.4.0)
105
- parallel (1.19.1)
106
- parser (2.7.1.1)
107
- ast (~> 2.4.0)
108
+ mini_portile2 (2.5.0)
109
+ minitest (5.14.4)
110
+ nio4r (2.5.5)
111
+ nokogiri (1.11.1)
112
+ mini_portile2 (~> 2.5.0)
113
+ racc (~> 1.4)
114
+ parallel (1.19.2)
115
+ parser (2.7.2.0)
116
+ ast (~> 2.4.1)
108
117
  pry (0.12.2)
109
118
  coderay (~> 1.1.0)
110
119
  method_source (~> 0.9.0)
111
- rack (2.2.2)
120
+ racc (1.5.2)
121
+ rack (2.2.3)
112
122
  rack-test (1.1.0)
113
123
  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)
126
- bundler (>= 1.3.0)
127
- railties (= 6.0.2.2)
124
+ rails (6.1.3)
125
+ actioncable (= 6.1.3)
126
+ actionmailbox (= 6.1.3)
127
+ actionmailer (= 6.1.3)
128
+ actionpack (= 6.1.3)
129
+ actiontext (= 6.1.3)
130
+ actionview (= 6.1.3)
131
+ activejob (= 6.1.3)
132
+ activemodel (= 6.1.3)
133
+ activerecord (= 6.1.3)
134
+ activestorage (= 6.1.3)
135
+ activesupport (= 6.1.3)
136
+ bundler (>= 1.15.0)
137
+ railties (= 6.1.3)
128
138
  sprockets-rails (>= 2.0.0)
129
139
  rails-dom-testing (2.0.3)
130
140
  activesupport (>= 4.2.0)
131
141
  nokogiri (>= 1.6)
132
142
  rails-html-sanitizer (1.3.0)
133
143
  loofah (~> 2.3)
134
- railties (6.0.2.2)
135
- actionpack (= 6.0.2.2)
136
- activesupport (= 6.0.2.2)
144
+ railties (6.1.3)
145
+ actionpack (= 6.1.3)
146
+ activesupport (= 6.1.3)
137
147
  method_source
138
148
  rake (>= 0.8.7)
139
- thor (>= 0.20.3, < 2.0)
149
+ thor (~> 1.0)
140
150
  rainbow (3.0.0)
141
151
  rake (12.3.3)
152
+ regexp_parser (1.8.2)
142
153
  rexml (3.2.4)
143
- rspec (3.9.0)
144
- rspec-core (~> 3.9.0)
145
- rspec-expectations (~> 3.9.0)
146
- rspec-mocks (~> 3.9.0)
147
- rspec-core (3.9.1)
148
- rspec-support (~> 3.9.1)
149
- rspec-expectations (3.9.1)
154
+ rspec (3.10.0)
155
+ rspec-core (~> 3.10.0)
156
+ rspec-expectations (~> 3.10.0)
157
+ rspec-mocks (~> 3.10.0)
158
+ rspec-core (3.10.1)
159
+ rspec-support (~> 3.10.0)
160
+ rspec-expectations (3.10.1)
150
161
  diff-lcs (>= 1.2.0, < 2.0)
151
- rspec-support (~> 3.9.0)
152
- rspec-mocks (3.9.1)
162
+ rspec-support (~> 3.10.0)
163
+ rspec-mocks (3.10.2)
153
164
  diff-lcs (>= 1.2.0, < 2.0)
154
- rspec-support (~> 3.9.0)
155
- rspec-support (3.9.2)
156
- rubocop (0.82.0)
157
- jaro_winkler (~> 1.5.1)
165
+ rspec-support (~> 3.10.0)
166
+ rspec-support (3.10.2)
167
+ rspec_junit_formatter (0.4.1)
168
+ rspec-core (>= 2, < 4, != 2.12.0)
169
+ rubocop (0.93.1)
158
170
  parallel (~> 1.10)
159
- parser (>= 2.7.0.1)
171
+ parser (>= 2.7.1.5)
160
172
  rainbow (>= 2.2.2, < 4.0)
173
+ regexp_parser (>= 1.8)
161
174
  rexml
175
+ rubocop-ast (>= 0.6.0)
162
176
  ruby-progressbar (~> 1.7)
163
177
  unicode-display_width (>= 1.4.0, < 2.0)
164
- rubocop-rspec (1.38.1)
165
- rubocop (>= 0.68.1)
178
+ rubocop-ast (1.1.0)
179
+ parser (>= 2.7.1.5)
180
+ rubocop-g2 (1.2.1)
181
+ rubocop (>= 0.82)
182
+ rubocop-rails (>= 2.5)
183
+ rubocop-rspec (>= 1.39)
184
+ rubocop-rails (2.8.1)
185
+ activesupport (>= 4.2.0)
186
+ rack (>= 1.1)
187
+ rubocop (>= 0.87.0)
188
+ rubocop-rspec (1.44.1)
189
+ rubocop (~> 0.87)
190
+ rubocop-ast (>= 0.7.1)
166
191
  ruby-progressbar (1.10.1)
167
192
  simplecov (0.16.1)
168
193
  docile (~> 1.1)
169
194
  json (>= 1.8, < 3)
170
195
  simplecov-html (~> 0.10.0)
171
196
  simplecov-html (0.10.2)
172
- sprockets (4.0.0)
197
+ sprockets (4.0.2)
173
198
  concurrent-ruby (~> 1.0)
174
199
  rack (> 1, < 3)
175
- sprockets-rails (3.2.1)
200
+ sprockets-rails (3.2.2)
176
201
  actionpack (>= 4.0)
177
202
  activesupport (>= 4.0)
178
203
  sprockets (>= 3.0.0)
179
- thor (1.0.1)
180
- thread_safe (0.3.6)
181
- tzinfo (1.2.7)
182
- thread_safe (~> 0.1)
204
+ thor (1.1.0)
205
+ tzinfo (2.0.4)
206
+ concurrent-ruby (~> 1.0)
183
207
  unicode-display_width (1.7.0)
184
- websocket-driver (0.7.1)
208
+ websocket-driver (0.7.3)
185
209
  websocket-extensions (>= 0.1.0)
186
- websocket-extensions (0.1.4)
187
- zeitwerk (2.3.0)
210
+ websocket-extensions (0.1.5)
211
+ zeitwerk (2.4.2)
188
212
 
189
213
  PLATFORMS
190
214
  ruby
191
215
 
192
216
  DEPENDENCIES
217
+ appraisal
218
+ fivemat
193
219
  g2_command!
194
220
  pry
195
221
  rails
196
222
  rake (~> 12.0)
197
223
  rspec (~> 3.0)
198
- rubocop
199
- rubocop-rspec
224
+ rspec_junit_formatter
225
+ rubocop-g2
200
226
  simplecov (= 0.16.1)
201
227
 
202
228
  BUNDLED WITH
203
- 2.1.4
229
+ 2.2.3