g2_command 0.4.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +25 -0
- data/.github/config/rubocop_linter_action.yml +17 -0
- data/.github/workflows/linters.yml +17 -0
- data/.rubocop.yml +9 -39
- data/.ruby-version +1 -0
- data/.tool-versions +1 -1
- data/Appraisals +13 -0
- data/Gemfile +4 -2
- data/Gemfile.lock +101 -80
- data/README.md +2 -2
- data/g2_command.gemspec +3 -3
- data/gemfiles/.bundle/config +2 -0
- data/gemfiles/rails_5.1.gemfile +16 -0
- data/gemfiles/rails_5.1.gemfile.lock +201 -0
- data/gemfiles/rails_5.2.gemfile +16 -0
- data/gemfiles/rails_5.2.gemfile.lock +209 -0
- data/gemfiles/rails_6.0.gemfile +15 -0
- data/gemfiles/rails_6.0.gemfile.lock +224 -0
- data/lib/command.rb +3 -4
- data/lib/command/input_middleware/symbolizer.rb +1 -1
- data/lib/command/version.rb +1 -1
- data/lib/gem_ext/active_model/errors.rb +10 -0
- metadata +25 -13
- data/.github/workflows/ruby.yml +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9217fb815c461a03b28aee50cc536dbc233f5e6382ec997bd49eca32974c7def
|
4
|
+
data.tar.gz: 4ed49dde0c58e37e1f5b94bf206cd80b2b7c2266d73346f26a3d026ad519df9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8cdc00cfe2a6c81ceb1ab2c7de10ecd160fb103e426e589c344ac1828643bcfba959e2ad4cb8c428654a50af074b7f34850616dc4bfa3a822a51978351b819fc
|
7
|
+
data.tar.gz: a7064a74ef68395310a38d4e80b33cccdee17ef3c2352de6e711366b88fc0bdc791ab145049339ef70868db9982e3d7f37fb6e6bef06a2c79d972cfa61828d0e
|
@@ -0,0 +1,25 @@
|
|
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.4.10', '2.5.8', '2.6.6', '2.7.2']
|
15
|
+
appraisal:
|
16
|
+
- rails_5.1
|
17
|
+
- rails_5.2
|
18
|
+
- rails_6.0
|
19
|
+
exclude:
|
20
|
+
- ruby: '2.4.10'
|
21
|
+
appraisal: rails_6.0
|
22
|
+
- ruby/build:
|
23
|
+
context: g2crowd-global
|
24
|
+
setup-database: false
|
25
|
+
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
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.7.2
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 2.
|
1
|
+
ruby 2.7.2
|
data/Appraisals
ADDED
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 '
|
12
|
-
gem 'rubocop-
|
13
|
+
gem 'rspec_junit_formatter'
|
14
|
+
gem 'rubocop-g2'
|
13
15
|
gem 'simplecov', '0.16.1'
|
data/Gemfile.lock
CHANGED
@@ -1,93 +1,97 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
g2_command (
|
5
|
-
activemodel (>=
|
6
|
-
activesupport (>=
|
4
|
+
g2_command (2.3.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.
|
14
|
-
actionpack (= 6.0.
|
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.
|
18
|
-
actionpack (= 6.0.
|
19
|
-
activejob (= 6.0.
|
20
|
-
activerecord (= 6.0.
|
21
|
-
activestorage (= 6.0.
|
22
|
-
activesupport (= 6.0.
|
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.
|
25
|
-
actionpack (= 6.0.
|
26
|
-
actionview (= 6.0.
|
27
|
-
activejob (= 6.0.
|
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.
|
31
|
-
actionview (= 6.0.
|
32
|
-
activesupport (= 6.0.
|
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.
|
38
|
-
actionpack (= 6.0.
|
39
|
-
activerecord (= 6.0.
|
40
|
-
activestorage (= 6.0.
|
41
|
-
activesupport (= 6.0.
|
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.
|
44
|
-
activesupport (= 6.0.
|
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.
|
50
|
-
activesupport (= 6.0.
|
49
|
+
activejob (6.0.3.3)
|
50
|
+
activesupport (= 6.0.3.3)
|
51
51
|
globalid (>= 0.3.6)
|
52
|
-
activemodel (6.0.
|
53
|
-
activesupport (= 6.0.
|
54
|
-
activerecord (6.0.
|
55
|
-
activemodel (= 6.0.
|
56
|
-
activesupport (= 6.0.
|
57
|
-
activestorage (6.0.
|
58
|
-
actionpack (= 6.0.
|
59
|
-
activejob (= 6.0.
|
60
|
-
activerecord (= 6.0.
|
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.
|
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
|
-
|
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.
|
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.
|
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.
|
91
|
+
i18n (1.8.5)
|
87
92
|
concurrent-ruby (~> 1.0)
|
88
|
-
jaro_winkler (1.5.4)
|
89
93
|
json (2.3.0)
|
90
|
-
loofah (2.
|
94
|
+
loofah (2.7.0)
|
91
95
|
crass (~> 1.0.2)
|
92
96
|
nokogiri (>= 1.5.9)
|
93
97
|
mail (2.7.1)
|
@@ -95,50 +99,51 @@ GEM
|
|
95
99
|
marcel (0.3.3)
|
96
100
|
mimemagic (~> 0.3.2)
|
97
101
|
method_source (0.9.2)
|
98
|
-
mimemagic (0.3.
|
102
|
+
mimemagic (0.3.5)
|
99
103
|
mini_mime (1.0.2)
|
100
104
|
mini_portile2 (2.4.0)
|
101
|
-
minitest (5.14.
|
102
|
-
nio4r (2.5.
|
103
|
-
nokogiri (1.10.
|
105
|
+
minitest (5.14.2)
|
106
|
+
nio4r (2.5.4)
|
107
|
+
nokogiri (1.10.10)
|
104
108
|
mini_portile2 (~> 2.4.0)
|
105
|
-
parallel (1.19.
|
106
|
-
parser (2.7.
|
107
|
-
ast (~> 2.4.
|
109
|
+
parallel (1.19.2)
|
110
|
+
parser (2.7.2.0)
|
111
|
+
ast (~> 2.4.1)
|
108
112
|
pry (0.12.2)
|
109
113
|
coderay (~> 1.1.0)
|
110
114
|
method_source (~> 0.9.0)
|
111
|
-
rack (2.2.
|
115
|
+
rack (2.2.3)
|
112
116
|
rack-test (1.1.0)
|
113
117
|
rack (>= 1.0, < 3)
|
114
|
-
rails (6.0.
|
115
|
-
actioncable (= 6.0.
|
116
|
-
actionmailbox (= 6.0.
|
117
|
-
actionmailer (= 6.0.
|
118
|
-
actionpack (= 6.0.
|
119
|
-
actiontext (= 6.0.
|
120
|
-
actionview (= 6.0.
|
121
|
-
activejob (= 6.0.
|
122
|
-
activemodel (= 6.0.
|
123
|
-
activerecord (= 6.0.
|
124
|
-
activestorage (= 6.0.
|
125
|
-
activesupport (= 6.0.
|
118
|
+
rails (6.0.3.3)
|
119
|
+
actioncable (= 6.0.3.3)
|
120
|
+
actionmailbox (= 6.0.3.3)
|
121
|
+
actionmailer (= 6.0.3.3)
|
122
|
+
actionpack (= 6.0.3.3)
|
123
|
+
actiontext (= 6.0.3.3)
|
124
|
+
actionview (= 6.0.3.3)
|
125
|
+
activejob (= 6.0.3.3)
|
126
|
+
activemodel (= 6.0.3.3)
|
127
|
+
activerecord (= 6.0.3.3)
|
128
|
+
activestorage (= 6.0.3.3)
|
129
|
+
activesupport (= 6.0.3.3)
|
126
130
|
bundler (>= 1.3.0)
|
127
|
-
railties (= 6.0.
|
131
|
+
railties (= 6.0.3.3)
|
128
132
|
sprockets-rails (>= 2.0.0)
|
129
133
|
rails-dom-testing (2.0.3)
|
130
134
|
activesupport (>= 4.2.0)
|
131
135
|
nokogiri (>= 1.6)
|
132
136
|
rails-html-sanitizer (1.3.0)
|
133
137
|
loofah (~> 2.3)
|
134
|
-
railties (6.0.
|
135
|
-
actionpack (= 6.0.
|
136
|
-
activesupport (= 6.0.
|
138
|
+
railties (6.0.3.3)
|
139
|
+
actionpack (= 6.0.3.3)
|
140
|
+
activesupport (= 6.0.3.3)
|
137
141
|
method_source
|
138
142
|
rake (>= 0.8.7)
|
139
143
|
thor (>= 0.20.3, < 2.0)
|
140
144
|
rainbow (3.0.0)
|
141
145
|
rake (12.3.3)
|
146
|
+
regexp_parser (1.8.2)
|
142
147
|
rexml (3.2.4)
|
143
148
|
rspec (3.9.0)
|
144
149
|
rspec-core (~> 3.9.0)
|
@@ -153,26 +158,40 @@ GEM
|
|
153
158
|
diff-lcs (>= 1.2.0, < 2.0)
|
154
159
|
rspec-support (~> 3.9.0)
|
155
160
|
rspec-support (3.9.2)
|
156
|
-
|
157
|
-
|
161
|
+
rspec_junit_formatter (0.4.1)
|
162
|
+
rspec-core (>= 2, < 4, != 2.12.0)
|
163
|
+
rubocop (0.93.1)
|
158
164
|
parallel (~> 1.10)
|
159
|
-
parser (>= 2.7.
|
165
|
+
parser (>= 2.7.1.5)
|
160
166
|
rainbow (>= 2.2.2, < 4.0)
|
167
|
+
regexp_parser (>= 1.8)
|
161
168
|
rexml
|
169
|
+
rubocop-ast (>= 0.6.0)
|
162
170
|
ruby-progressbar (~> 1.7)
|
163
171
|
unicode-display_width (>= 1.4.0, < 2.0)
|
164
|
-
rubocop-
|
165
|
-
|
172
|
+
rubocop-ast (1.1.0)
|
173
|
+
parser (>= 2.7.1.5)
|
174
|
+
rubocop-g2 (1.2.1)
|
175
|
+
rubocop (>= 0.82)
|
176
|
+
rubocop-rails (>= 2.5)
|
177
|
+
rubocop-rspec (>= 1.39)
|
178
|
+
rubocop-rails (2.8.1)
|
179
|
+
activesupport (>= 4.2.0)
|
180
|
+
rack (>= 1.1)
|
181
|
+
rubocop (>= 0.87.0)
|
182
|
+
rubocop-rspec (1.44.1)
|
183
|
+
rubocop (~> 0.87)
|
184
|
+
rubocop-ast (>= 0.7.1)
|
166
185
|
ruby-progressbar (1.10.1)
|
167
186
|
simplecov (0.16.1)
|
168
187
|
docile (~> 1.1)
|
169
188
|
json (>= 1.8, < 3)
|
170
189
|
simplecov-html (~> 0.10.0)
|
171
190
|
simplecov-html (0.10.2)
|
172
|
-
sprockets (4.0.
|
191
|
+
sprockets (4.0.2)
|
173
192
|
concurrent-ruby (~> 1.0)
|
174
193
|
rack (> 1, < 3)
|
175
|
-
sprockets-rails (3.2.
|
194
|
+
sprockets-rails (3.2.2)
|
176
195
|
actionpack (>= 4.0)
|
177
196
|
activesupport (>= 4.0)
|
178
197
|
sprockets (>= 3.0.0)
|
@@ -181,22 +200,24 @@ GEM
|
|
181
200
|
tzinfo (1.2.7)
|
182
201
|
thread_safe (~> 0.1)
|
183
202
|
unicode-display_width (1.7.0)
|
184
|
-
websocket-driver (0.7.
|
203
|
+
websocket-driver (0.7.3)
|
185
204
|
websocket-extensions (>= 0.1.0)
|
186
|
-
websocket-extensions (0.1.
|
187
|
-
zeitwerk (2.
|
205
|
+
websocket-extensions (0.1.5)
|
206
|
+
zeitwerk (2.4.0)
|
188
207
|
|
189
208
|
PLATFORMS
|
190
209
|
ruby
|
191
210
|
|
192
211
|
DEPENDENCIES
|
212
|
+
appraisal
|
213
|
+
fivemat
|
193
214
|
g2_command!
|
194
215
|
pry
|
195
216
|
rails
|
196
217
|
rake (~> 12.0)
|
197
218
|
rspec (~> 3.0)
|
198
|
-
|
199
|
-
rubocop-
|
219
|
+
rspec_junit_formatter
|
220
|
+
rubocop-g2
|
200
221
|
simplecov (= 0.16.1)
|
201
222
|
|
202
223
|
BUNDLED WITH
|