githuh 0.2.0 → 0.2.1

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: b3a45fc490639008c37abdd3146bed48d32e37f6ac8dbdb1ff6233ae09f7f02d
4
- data.tar.gz: 8c0b02873e0610f53ec6fbda2929e0f4bff89c038a89cbfcb8781c64f6799617
3
+ metadata.gz: 511863db2788e1b18cb2dfa73b3f4547191cbc0ed3420d02f7da840cd39c3baf
4
+ data.tar.gz: 81d396dea2a067c736225149f213c99a528cf6e4fa17ce7ecc1662b0649c5034
5
5
  SHA512:
6
- metadata.gz: 4c4f4028647cba9c4ac7e911186fbe13627d3337aa6179c2b6e658d1fb8e65030006b8ff8e5959cfed11304c4eac0aec31e6081c5cd02b817e3e7d414201d1d9
7
- data.tar.gz: 2615059a09a55172b2aade924cfe98468060459f71905d7219516c47342cbf324ed9ac2cd17fb25ae7c81f36d0e4174416d5b9334e7a32264a9e41e7179296f3
6
+ metadata.gz: 7dddbd8c7e9c878be15af398d89150d0d1c72ef73fb780f85f7e126b7a42b41fc9b902828518580a6e7fe4ba37898dae104dec49380be70d73529977a228939f
7
+ data.tar.gz: 5524851da5c59ffe9009502d1d0366a414406e79583cefd0826a0c9f6ba9440e35ed8d6208d7bc20900953f309a8942b14d0c19e60df32ef4ecd13f780b769f5
data/.envrc CHANGED
@@ -1,2 +1,4 @@
1
1
 
2
+ export GITHUB_TOKEN=47b933ddfdc4696f27b67299bf9fe59ce0925a78
3
+
2
4
  export PATH=$(pwd)/exe:${PATH}
@@ -17,8 +17,9 @@ jobs:
17
17
  uses: actions/setup-ruby@v1
18
18
  with:
19
19
  ruby-version: 2.6.x
20
- - name: Build and test with Rake
20
+ - name: Run Tests
21
21
  run: |
22
22
  gem install bundler
23
23
  bundle install --jobs 4 --retry 3
24
24
  bundle exec rspec
25
+ bundle exec rubocop
data/.gitignore CHANGED
@@ -22,3 +22,4 @@ pkg
22
22
  ## PROJECT::SPECIFIC
23
23
  .yardoc
24
24
  .ruby-version
25
+ *.csv
@@ -0,0 +1,176 @@
1
+ # Relaxed.Ruby.Style
2
+ ## Version 2.4
3
+
4
+ Style/Alias:
5
+ Enabled: false
6
+ StyleGuide: https://relaxed.ruby.style/#stylealias
7
+
8
+ Style/AsciiComments:
9
+ Enabled: false
10
+ StyleGuide: https://relaxed.ruby.style/#styleasciicomments
11
+
12
+ Style/BeginBlock:
13
+ Enabled: false
14
+ StyleGuide: https://relaxed.ruby.style/#stylebeginblock
15
+
16
+ Style/BlockDelimiters:
17
+ Enabled: false
18
+ StyleGuide: https://relaxed.ruby.style/#styleblockdelimiters
19
+
20
+ Style/CommentAnnotation:
21
+ Enabled: false
22
+ StyleGuide: https://relaxed.ruby.style/#stylecommentannotation
23
+
24
+ Style/Documentation:
25
+ Enabled: false
26
+ StyleGuide: https://relaxed.ruby.style/#styledocumentation
27
+
28
+ Layout/DotPosition:
29
+ Enabled: false
30
+ StyleGuide: https://relaxed.ruby.style/#layoutdotposition
31
+
32
+ Style/DoubleNegation:
33
+ Enabled: false
34
+ StyleGuide: https://relaxed.ruby.style/#styledoublenegation
35
+
36
+ Style/EndBlock:
37
+ Enabled: false
38
+ StyleGuide: https://relaxed.ruby.style/#styleendblock
39
+
40
+ Style/FormatString:
41
+ Enabled: false
42
+ StyleGuide: https://relaxed.ruby.style/#styleformatstring
43
+
44
+ Style/IfUnlessModifier:
45
+ Enabled: false
46
+ StyleGuide: https://relaxed.ruby.style/#styleifunlessmodifier
47
+
48
+ Style/Lambda:
49
+ Enabled: false
50
+ StyleGuide: https://relaxed.ruby.style/#stylelambda
51
+
52
+ Style/ModuleFunction:
53
+ Enabled: false
54
+ StyleGuide: https://relaxed.ruby.style/#stylemodulefunction
55
+
56
+ Style/MultilineBlockChain:
57
+ Enabled: false
58
+ StyleGuide: https://relaxed.ruby.style/#stylemultilineblockchain
59
+
60
+ Style/NegatedIf:
61
+ Enabled: false
62
+ StyleGuide: https://relaxed.ruby.style/#stylenegatedif
63
+
64
+ Style/NegatedWhile:
65
+ Enabled: false
66
+ StyleGuide: https://relaxed.ruby.style/#stylenegatedwhile
67
+
68
+ Style/NumericPredicate:
69
+ Enabled: false
70
+ StyleGuide: https://relaxed.ruby.style/#stylenumericpredicate
71
+
72
+ Style/ParallelAssignment:
73
+ Enabled: false
74
+ StyleGuide: https://relaxed.ruby.style/#styleparallelassignment
75
+
76
+ Style/PercentLiteralDelimiters:
77
+ Enabled: false
78
+ StyleGuide: https://relaxed.ruby.style/#stylepercentliteraldelimiters
79
+
80
+ Style/PerlBackrefs:
81
+ Enabled: false
82
+ StyleGuide: https://relaxed.ruby.style/#styleperlbackrefs
83
+
84
+ Style/Semicolon:
85
+ Enabled: false
86
+ StyleGuide: https://relaxed.ruby.style/#stylesemicolon
87
+
88
+ Style/SignalException:
89
+ Enabled: false
90
+ StyleGuide: https://relaxed.ruby.style/#stylesignalexception
91
+
92
+ Style/SingleLineBlockParams:
93
+ Enabled: false
94
+ StyleGuide: https://relaxed.ruby.style/#stylesinglelineblockparams
95
+
96
+ Style/SingleLineMethods:
97
+ Enabled: false
98
+ StyleGuide: https://relaxed.ruby.style/#stylesinglelinemethods
99
+
100
+ Layout/SpaceBeforeBlockBraces:
101
+ Enabled: false
102
+ StyleGuide: https://relaxed.ruby.style/#layoutspacebeforeblockbraces
103
+
104
+ Layout/SpaceInsideParens:
105
+ Enabled: false
106
+ StyleGuide: https://relaxed.ruby.style/#layoutspaceinsideparens
107
+
108
+ Layout/LineLength:
109
+ Enabled: false
110
+
111
+ Style/SpecialGlobalVars:
112
+ Enabled: false
113
+ StyleGuide: https://relaxed.ruby.style/#stylespecialglobalvars
114
+
115
+ Style/StringLiterals:
116
+ Enabled: false
117
+ StyleGuide: https://relaxed.ruby.style/#stylestringliterals
118
+
119
+ Style/TrailingCommaInArguments:
120
+ Enabled: false
121
+ StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarguments
122
+
123
+ Style/TrailingCommaInArrayLiteral:
124
+ Enabled: false
125
+ StyleGuide: https://relaxed.ruby.style/#styletrailingcommainarrayliteral
126
+
127
+ Style/TrailingCommaInHashLiteral:
128
+ Enabled: false
129
+ StyleGuide: https://relaxed.ruby.style/#styletrailingcommainhashliteral
130
+
131
+ Style/SymbolArray:
132
+ Enabled: false
133
+ StyleGuide: http://relaxed.ruby.style/#stylesymbolarray
134
+
135
+ Style/WhileUntilModifier:
136
+ Enabled: false
137
+ StyleGuide: https://relaxed.ruby.style/#stylewhileuntilmodifier
138
+
139
+ Style/WordArray:
140
+ Enabled: false
141
+ StyleGuide: https://relaxed.ruby.style/#stylewordarray
142
+
143
+ Lint/AmbiguousRegexpLiteral:
144
+ Enabled: false
145
+ StyleGuide: https://relaxed.ruby.style/#lintambiguousregexpliteral
146
+
147
+ Lint/AssignmentInCondition:
148
+ Enabled: false
149
+ StyleGuide: https://relaxed.ruby.style/#lintassignmentincondition
150
+
151
+ Metrics/AbcSize:
152
+ Enabled: false
153
+
154
+ Metrics/BlockNesting:
155
+ Enabled: false
156
+
157
+ Metrics/ClassLength:
158
+ Enabled: false
159
+
160
+ Metrics/ModuleLength:
161
+ Enabled: false
162
+
163
+ Metrics/CyclomaticComplexity:
164
+ Enabled: false
165
+
166
+ Metrics/MethodLength:
167
+ Enabled: false
168
+
169
+ Metrics/ParameterLists:
170
+ Enabled: false
171
+
172
+ Metrics/PerceivedComplexity:
173
+ Enabled: false
174
+
175
+ Metrics/BlockLength:
176
+ Enabled: false
@@ -0,0 +1,44 @@
1
+ inherit_from:
2
+ - .rubocop_todo.yml
3
+ - .relaxed-rubocop-2.4.yml
4
+
5
+
6
+
7
+ AllCops:
8
+ TargetRubyVersion: 2.6
9
+ UseCache: true
10
+ DefaultFormatter: progress
11
+ DisplayStyleGuide: true
12
+ DisplayCopNames: true
13
+ Exclude:
14
+ - "external*/**/*"
15
+ - "bazel-*/**/*"
16
+ - "**/examples/**/*"
17
+ - "**/BUILD"
18
+ - "**/*.bazel"
19
+ - "**/*.bzl"
20
+ - "**/rubocop"
21
+ - "**/vendor/bundle/**/*"
22
+ Include:
23
+ - '**/*.rb'
24
+ - '**/*.gemfile'
25
+ - '**/*.gemspec'
26
+ - '**/*.rake'
27
+ - '**/*.ru'
28
+ - '**/Gemfile'
29
+ - '**/Rakefile'
30
+
31
+ Layout/HashAlignment:
32
+ Enabled: true
33
+ EnforcedColonStyle: table
34
+
35
+ Style/Dir:
36
+ Enabled: false
37
+
38
+ Layout/MultilineMethodCallIndentation:
39
+ Enabled: true
40
+ EnforcedStyle: indented_relative_to_receiver
41
+
42
+ Style/FrozenStringLiteralComment:
43
+ Exclude:
44
+ - exe/githuh
@@ -0,0 +1,115 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2020-09-09 20:59:51 UTC using RuboCop version 0.90.0.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
8
+
9
+ # Offense count: 1
10
+ # Configuration parameters: Include.
11
+ # Include: **/*.gemspec
12
+ Gemspec/RequiredRubyVersion:
13
+ Exclude:
14
+ - 'githuh.gemspec'
15
+
16
+ # Offense count: 6
17
+ # Cop supports --auto-correct.
18
+ # Configuration parameters: IndentOneStep, IndentationWidth.
19
+ # SupportedStyles: case, end
20
+ Layout/CaseIndentation:
21
+ EnforcedStyle: end
22
+
23
+ # Offense count: 1
24
+ # Cop supports --auto-correct.
25
+ Layout/ElseAlignment:
26
+ Exclude:
27
+ - 'lib/githuh/cli/commands/issue/export.rb'
28
+
29
+ # Offense count: 3
30
+ # Cop supports --auto-correct.
31
+ # Configuration parameters: EnforcedStyleAlignWith, Severity.
32
+ # SupportedStylesAlignWith: keyword, variable, start_of_line
33
+ Layout/EndAlignment:
34
+ Exclude:
35
+ - 'lib/githuh/cli/commands/issue/export.rb'
36
+ - 'lib/githuh/cli/commands/repo/list.rb'
37
+
38
+ # Offense count: 9
39
+ # Cop supports --auto-correct.
40
+ # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
41
+ # SupportedHashRocketStyles: key, separator, table
42
+ # SupportedColonStyles: key, separator, table
43
+ # SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
44
+ Layout/HashAlignment:
45
+ Exclude:
46
+ - 'lib/githuh/cli/commands/issue/export.rb'
47
+
48
+ # Offense count: 1
49
+ # Cop supports --auto-correct.
50
+ # Configuration parameters: Width, IgnoredPatterns.
51
+ Layout/IndentationWidth:
52
+ Exclude:
53
+ - 'lib/githuh/cli/commands/issue/export.rb'
54
+
55
+ # Offense count: 1
56
+ # Cop supports --auto-correct.
57
+ # Configuration parameters: EnforcedStyle, IndentationWidth.
58
+ # SupportedStyles: aligned, indented
59
+ Layout/MultilineOperationIndentation:
60
+ Exclude:
61
+ - 'lib/githuh/cli/commands/issue/export.rb'
62
+
63
+ # Offense count: 1
64
+ # Cop supports --auto-correct.
65
+ # Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator.
66
+ # SupportedStylesForExponentOperator: space, no_space
67
+ Layout/SpaceAroundOperators:
68
+ Exclude:
69
+ - 'lib/githuh/cli/commands/issue/export.rb'
70
+
71
+ # Offense count: 1
72
+ # Cop supports --auto-correct.
73
+ # Configuration parameters: EnforcedStyle.
74
+ # SupportedStyles: final_newline, final_blank_line
75
+ Layout/TrailingEmptyLines:
76
+ Exclude:
77
+ - 'Gemfile'
78
+
79
+ # Offense count: 1
80
+ # Cop supports --auto-correct.
81
+ Lint/NonDeterministicRequireOrder:
82
+ Exclude:
83
+ - 'spec/spec_helper.rb'
84
+
85
+ # Offense count: 1
86
+ # Cop supports --auto-correct.
87
+ Lint/ScriptPermission:
88
+ Exclude:
89
+ - 'lib/githuh/cli/commands/issue/export.rb'
90
+
91
+ # Offense count: 1
92
+ # Cop supports --auto-correct.
93
+ Style/ExpandPathArguments:
94
+ Exclude:
95
+ - 'spec/spec_helper.rb'
96
+
97
+ # Offense count: 12
98
+ # Configuration parameters: .
99
+ # SupportedStyles: annotated, template, unannotated
100
+ Style/FormatStringToken:
101
+ EnforcedStyle: unannotated
102
+
103
+ # Offense count: 1
104
+ # Cop supports --auto-correct.
105
+ # Configuration parameters: EnforcedStyle.
106
+ # SupportedStyles: always, always_true, never
107
+ Style/FrozenStringLiteralComment:
108
+ Exclude:
109
+ - 'lib/githuh/cli/commands/issue/export_paginated.rb'
110
+
111
+ # Offense count: 1
112
+ # Configuration parameters: MinBodyLength.
113
+ Style/GuardClause:
114
+ Exclude:
115
+ - 'lib/githuh/cli/launcher.rb'
data/Gemfile CHANGED
@@ -3,3 +3,4 @@
3
3
  source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
+
@@ -1,16 +1,24 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- githuh (0.2.0)
4
+ githuh (0.2.1)
5
+ activesupport
5
6
  colored2 (~> 3)
6
7
  dry-cli (~> 0.6)
7
8
  octokit (~> 4)
8
- tty-box (~> 0.5)
9
+ tty-box
9
10
  tty-progressbar
11
+ tty-screen
10
12
 
11
13
  GEM
12
14
  remote: https://rubygems.org/
13
15
  specs:
16
+ activesupport (6.0.3.3)
17
+ concurrent-ruby (~> 1.0, >= 1.0.2)
18
+ i18n (>= 0.7, < 2)
19
+ minitest (~> 5.1)
20
+ tzinfo (~> 1.1)
21
+ zeitwerk (~> 2.2, >= 2.2.2)
14
22
  addressable (2.7.0)
15
23
  public_suffix (>= 2.0.2, < 5.0)
16
24
  aruba (1.0.0)
@@ -20,14 +28,15 @@ GEM
20
28
  ffi (~> 1.9)
21
29
  rspec-expectations (~> 3.4)
22
30
  thor (~> 1.0)
31
+ ast (2.4.1)
23
32
  awesome_print (1.8.0)
24
- backports (3.17.1)
33
+ backports (3.18.2)
25
34
  builder (3.2.4)
26
35
  childprocess (3.0.0)
27
36
  colored2 (3.1.2)
28
37
  concurrent-ruby (1.1.7)
29
38
  contracts (0.16.0)
30
- cucumber (3.1.2)
39
+ cucumber (3.2.0)
31
40
  builder (>= 2.1.2)
32
41
  cucumber-core (~> 3.2.0)
33
42
  cucumber-expressions (~> 6.0.1)
@@ -43,33 +52,42 @@ GEM
43
52
  cucumber-expressions (6.0.1)
44
53
  cucumber-tag_expressions (1.1.1)
45
54
  cucumber-wire (0.0.1)
46
- diff-lcs (1.3)
55
+ diff-lcs (1.4.4)
47
56
  docile (1.3.2)
48
57
  dry-cli (0.6.0)
49
58
  concurrent-ruby (~> 1.0)
50
59
  equatable (0.6.1)
51
60
  faraday (1.0.1)
52
61
  multipart-post (>= 1.2, < 3)
53
- ffi (1.12.2)
62
+ ffi (1.13.1)
54
63
  gherkin (5.1.0)
55
- multi_json (1.14.1)
64
+ i18n (1.8.5)
65
+ concurrent-ruby (~> 1.0)
66
+ minitest (5.14.2)
67
+ multi_json (1.15.0)
56
68
  multi_test (0.1.2)
57
69
  multipart-post (2.1.1)
58
70
  octokit (4.18.0)
59
71
  faraday (>= 0.9)
60
72
  sawyer (~> 0.8.0, >= 0.5.3)
73
+ parallel (1.19.2)
74
+ parser (2.7.1.4)
75
+ ast (~> 2.4.1)
61
76
  pastel (0.7.3)
62
77
  equatable (~> 0.6)
63
78
  tty-color (~> 0.5)
64
- public_suffix (4.0.5)
79
+ public_suffix (4.0.6)
80
+ rainbow (3.0.0)
65
81
  rake (13.0.1)
82
+ regexp_parser (1.7.1)
83
+ rexml (3.2.4)
66
84
  rspec (3.9.0)
67
85
  rspec-core (~> 3.9.0)
68
86
  rspec-expectations (~> 3.9.0)
69
87
  rspec-mocks (~> 3.9.0)
70
- rspec-core (3.9.1)
71
- rspec-support (~> 3.9.1)
72
- rspec-expectations (3.9.1)
88
+ rspec-core (3.9.2)
89
+ rspec-support (~> 3.9.3)
90
+ rspec-expectations (3.9.2)
73
91
  diff-lcs (>= 1.2.0, < 2.0)
74
92
  rspec-support (~> 3.9.0)
75
93
  rspec-its (1.3.0)
@@ -78,11 +96,23 @@ GEM
78
96
  rspec-mocks (3.9.1)
79
97
  diff-lcs (>= 1.2.0, < 2.0)
80
98
  rspec-support (~> 3.9.0)
81
- rspec-support (3.9.2)
99
+ rspec-support (3.9.3)
100
+ rubocop (0.90.0)
101
+ parallel (~> 1.10)
102
+ parser (>= 2.7.1.1)
103
+ rainbow (>= 2.2.2, < 4.0)
104
+ regexp_parser (>= 1.7)
105
+ rexml
106
+ rubocop-ast (>= 0.3.0, < 1.0)
107
+ ruby-progressbar (~> 1.7)
108
+ unicode-display_width (>= 1.4.0, < 2.0)
109
+ rubocop-ast (0.3.0)
110
+ parser (>= 2.7.1.4)
111
+ ruby-progressbar (1.10.1)
82
112
  sawyer (0.8.2)
83
113
  addressable (>= 2.3.5)
84
114
  faraday (> 0.8, < 2.0)
85
- simplecov (0.18.5)
115
+ simplecov (0.19.0)
86
116
  docile (~> 1.1)
87
117
  simplecov-html (~> 0.11)
88
118
  simplecov-formatter-badge (0.1.0)
@@ -93,20 +123,24 @@ GEM
93
123
  unicode_utils (~> 1.4)
94
124
  strings-ansi (0.1.0)
95
125
  thor (1.0.1)
126
+ thread_safe (0.3.6)
96
127
  tty-box (0.5.0)
97
128
  pastel (~> 0.7.2)
98
129
  strings (~> 0.1.6)
99
130
  tty-cursor (~> 0.7)
100
- tty-color (0.5.1)
131
+ tty-color (0.5.2)
101
132
  tty-cursor (0.7.1)
102
133
  tty-progressbar (0.17.0)
103
134
  strings-ansi (~> 0.1.0)
104
135
  tty-cursor (~> 0.7)
105
136
  tty-screen (~> 0.7)
106
137
  unicode-display_width (~> 1.6)
107
- tty-screen (0.7.1)
138
+ tty-screen (0.8.1)
139
+ tzinfo (1.2.7)
140
+ thread_safe (~> 0.1)
108
141
  unicode-display_width (1.7.0)
109
142
  unicode_utils (1.4.0)
143
+ zeitwerk (2.4.0)
110
144
 
111
145
  PLATFORMS
112
146
  ruby
@@ -119,6 +153,7 @@ DEPENDENCIES
119
153
  rake (~> 13)
120
154
  rspec (~> 3)
121
155
  rspec-its (~> 1)
156
+ rubocop
122
157
  simplecov
123
158
  simplecov-formatter-badge
124
159