guac 0.1.4 → 0.1.5

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
  SHA1:
3
- metadata.gz: bd23b505b29e0cee351ea400af2de892a22df9d0
4
- data.tar.gz: 7fe03ac74da14e28788256686da28d48a58eacde
3
+ metadata.gz: 73bb215bbec1960b4bd3f61a508cf8538110b457
4
+ data.tar.gz: fd2ff0aca3f2188d928f1496999b45519e056fec
5
5
  SHA512:
6
- metadata.gz: b379a1684aa339bdbc8dc2cc78b665bcc5a8bfcfc9dfe30b084d8c1347c04a30147a0496061f58ed7099a48b403f7711f8fc25c6dcd73897b3548d589c1b8a08
7
- data.tar.gz: 74250e13ea1db25471b7ec77883af7c2a4dc3cf2e9df0c41c830c1e275693b93bb07791528ba640ea6457a83abc6b73fde1e901c6ca3f7a703d299221477ca45
6
+ metadata.gz: ef720904de1321616e975bebf44625345a75be9a8f45417da52eb799e86d83cfd95ff645c715855f05034659c826321775d39bd9080202674d8c269c73c26c3e
7
+ data.tar.gz: a659e1cf8f7ba50a57ab12e1ac5be1534475acd38feebd338412cce4ebd239ae6ae0f58793ca88dbdaea5e438b04bb46dcfe8d9067b1f3f502b316caa949cecc
data/.rubocop.yml ADDED
@@ -0,0 +1,97 @@
1
+ # This is the configuration used to check the rubocop source code.
2
+
3
+ inherit_from: .rubocop_todo.yml
4
+ require:
5
+ - rubocop/cop/internal_affairs
6
+ - rubocop-rspec
7
+
8
+ AllCops:
9
+ Exclude:
10
+ - 'vendor/**/*'
11
+ - 'spec/fixtures/**/*'
12
+ - 'tmp/**/*'
13
+ TargetRubyVersion: 2.4
14
+
15
+ Naming/PredicateName:
16
+ # Method define macros for dynamically generated method.
17
+ MethodDefinitionMacros:
18
+ - define_method
19
+ - define_singleton_method
20
+ - def_node_matcher
21
+ - def_node_search
22
+
23
+ Style/FrozenStringLiteralComment:
24
+ EnforcedStyle: when_needed
25
+
26
+ Style/FormatStringToken:
27
+ # Because we parse a lot of source codes from strings. Percent arrays
28
+ # look like unannotated format string tokens to this cop.
29
+ Exclude:
30
+ - spec/**/*
31
+
32
+ Style/IpAddresses:
33
+ # The test for this cop includes strings that would cause offenses
34
+ Exclude:
35
+ - spec/rubocop/cop/style/ip_addresses_spec.rb
36
+
37
+ Layout/EndOfLine:
38
+ EnforcedStyle: lf
39
+
40
+ Layout/ClassStructure:
41
+ Enabled: true
42
+ Categories:
43
+ module_inclusion:
44
+ - include
45
+ - prepend
46
+ - extend
47
+ ExpectedOrder:
48
+ - module_inclusion
49
+ - constants
50
+ - public_class_methods
51
+ - initializer
52
+ - instance_methods
53
+ - protected_methods
54
+ - private_methods
55
+
56
+ Layout/IndentHeredoc:
57
+ EnforcedStyle: powerpack
58
+
59
+ # Trailing white space is meaningful in code examples
60
+ Layout/TrailingWhitespace:
61
+ AllowInHeredoc: true
62
+
63
+ Lint/AmbiguousBlockAssociation:
64
+ Exclude:
65
+ - 'spec/**/*.rb'
66
+
67
+ Lint/InterpolationCheck:
68
+ Exclude:
69
+ - 'spec/**/*.rb'
70
+
71
+ Lint/UselessAccessModifier:
72
+ MethodCreatingMethods:
73
+ - 'def_matcher'
74
+ - 'def_node_matcher'
75
+
76
+ Lint/BooleanSymbol:
77
+ Enabled: false
78
+
79
+ Metrics/BlockLength:
80
+ Exclude:
81
+ - 'Rakefile'
82
+ - '**/*.rake'
83
+ - 'spec/**/*.rb'
84
+
85
+ Metrics/ModuleLength:
86
+ Exclude:
87
+ - 'spec/**/*.rb'
88
+
89
+ Performance/Caller:
90
+ Exclude:
91
+ - spec/rubocop/cop/performance/caller_spec.rb
92
+
93
+ RSpec/PredicateMatcher:
94
+ EnforcedStyle: explicit
95
+
96
+ RSpec/NestedGroups:
97
+ Max: 7
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,263 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config`
3
+ # on 2018-12-09 15:12:18 -0600 using RuboCop version 0.61.1.
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/DuplicatedAssignment:
13
+ Exclude:
14
+ - 'guac.gemspec'
15
+
16
+ # Offense count: 1
17
+ # Cop supports --auto-correct.
18
+ # Configuration parameters: EnforcedStyle.
19
+ # SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines, beginning_only, ending_only
20
+ Layout/EmptyLinesAroundClassBody:
21
+ Exclude:
22
+ - 'lib/guac/commands/config.rb'
23
+
24
+ # Offense count: 3
25
+ # Cop supports --auto-correct.
26
+ # Configuration parameters: EnforcedStyle.
27
+ # SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
28
+ Layout/IndentHeredoc:
29
+ Exclude:
30
+ - 'spec/integration/config_spec.rb'
31
+ - 'spec/integration/status_spec.rb'
32
+ - 'spec/integration/up_spec.rb'
33
+
34
+ # Offense count: 1
35
+ # Cop supports --auto-correct.
36
+ # Configuration parameters: EnforcedStyle.
37
+ # SupportedStyles: normal, rails
38
+ Layout/IndentationConsistency:
39
+ Exclude:
40
+ - 'lib/guac/config.rb'
41
+
42
+ # Offense count: 1
43
+ # Cop supports --auto-correct.
44
+ # Configuration parameters: Width, IgnoredPatterns.
45
+ Layout/IndentationWidth:
46
+ Exclude:
47
+ - 'lib/guac/config.rb'
48
+
49
+ # Offense count: 1
50
+ # Cop supports --auto-correct.
51
+ Layout/LeadingBlankLines:
52
+ Exclude:
53
+ - 'guac.gemspec'
54
+
55
+ # Offense count: 1
56
+ # Cop supports --auto-correct.
57
+ # Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
58
+ # SupportedStyles: space, no_space
59
+ # SupportedStylesForEmptyBraces: space, no_space
60
+ Layout/SpaceInsideBlockBraces:
61
+ Exclude:
62
+ - 'Gemfile'
63
+
64
+ # Offense count: 1
65
+ # Cop supports --auto-correct.
66
+ # Configuration parameters: EnforcedStyle.
67
+ # SupportedStyles: final_newline, final_blank_line
68
+ Layout/TrailingBlankLines:
69
+ Exclude:
70
+ - 'lib/guac/config.rb'
71
+
72
+ # Offense count: 3
73
+ # Cop supports --auto-correct.
74
+ # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods.
75
+ Lint/UnusedMethodArgument:
76
+ Exclude:
77
+ - 'lib/guac/commands/config.rb'
78
+ - 'lib/guac/commands/status.rb'
79
+ - 'lib/guac/commands/up.rb'
80
+
81
+ # Offense count: 2
82
+ Lint/UselessAssignment:
83
+ Exclude:
84
+ - 'lib/guac/sys_command.rb'
85
+
86
+ # Offense count: 2
87
+ Metrics/AbcSize:
88
+ Max: 19
89
+
90
+ # Offense count: 1
91
+ # Configuration parameters: CountComments, ExcludedMethods.
92
+ # ExcludedMethods: refine
93
+ Metrics/BlockLength:
94
+ Max: 31
95
+
96
+ # Offense count: 4
97
+ # Configuration parameters: CountComments, ExcludedMethods.
98
+ Metrics/MethodLength:
99
+ Max: 15
100
+
101
+ # Offense count: 3
102
+ RSpec/DescribeClass:
103
+ Exclude:
104
+ - 'spec/integration/config_spec.rb'
105
+ - 'spec/integration/status_spec.rb'
106
+ - 'spec/integration/up_spec.rb'
107
+
108
+ # Offense count: 3
109
+ # Cop supports --auto-correct.
110
+ # Configuration parameters: SkipBlocks, EnforcedStyle.
111
+ # SupportedStyles: described_class, explicit
112
+ RSpec/DescribedClass:
113
+ Exclude:
114
+ - 'spec/unit/config_spec.rb'
115
+ - 'spec/unit/status_spec.rb'
116
+ - 'spec/unit/up_spec.rb'
117
+
118
+ # Offense count: 3
119
+ # Configuration parameters: Max.
120
+ RSpec/ExampleLength:
121
+ Exclude:
122
+ - 'spec/integration/config_spec.rb'
123
+ - 'spec/integration/status_spec.rb'
124
+ - 'spec/integration/up_spec.rb'
125
+
126
+ # Offense count: 3
127
+ # Configuration parameters: CustomTransform, IgnoreMethods.
128
+ RSpec/FilePath:
129
+ Exclude:
130
+ - 'spec/unit/config_spec.rb'
131
+ - 'spec/unit/status_spec.rb'
132
+ - 'spec/unit/up_spec.rb'
133
+
134
+ # Offense count: 2
135
+ # Cop supports --auto-correct.
136
+ Security/YAMLLoad:
137
+ Exclude:
138
+ - 'lib/guac/config.rb'
139
+
140
+ # Offense count: 8
141
+ Style/Documentation:
142
+ Exclude:
143
+ - 'spec/**/*'
144
+ - 'test/**/*'
145
+ - 'lib/guac.rb'
146
+ - 'lib/guac/colors.rb'
147
+ - 'lib/guac/commands/config.rb'
148
+ - 'lib/guac/commands/status.rb'
149
+ - 'lib/guac/commands/up.rb'
150
+ - 'lib/guac/config.rb'
151
+ - 'lib/guac/repo.rb'
152
+ - 'lib/guac/sys_command.rb'
153
+
154
+ # Offense count: 2
155
+ # Cop supports --auto-correct.
156
+ Style/ExpandPathArguments:
157
+ Exclude:
158
+ - 'guac.gemspec'
159
+
160
+ # Offense count: 15
161
+ # Cop supports --auto-correct.
162
+ # Configuration parameters: EnforcedStyle.
163
+ # SupportedStyles: when_needed, always, never
164
+ Style/FrozenStringLiteralComment:
165
+ Exclude:
166
+ - 'Gemfile'
167
+ - 'Rakefile'
168
+ - 'bin/console'
169
+ - 'guac.gemspec'
170
+ - 'lib/guac.rb'
171
+ - 'lib/guac/config.rb'
172
+ - 'lib/guac/version.rb'
173
+ - 'spec/guac_spec.rb'
174
+ - 'spec/integration/config_spec.rb'
175
+ - 'spec/integration/status_spec.rb'
176
+ - 'spec/integration/up_spec.rb'
177
+ - 'spec/spec_helper.rb'
178
+ - 'spec/unit/config_spec.rb'
179
+ - 'spec/unit/status_spec.rb'
180
+ - 'spec/unit/up_spec.rb'
181
+
182
+ # Offense count: 1
183
+ # Cop supports --auto-correct.
184
+ # Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
185
+ # SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
186
+ Style/HashSyntax:
187
+ Exclude:
188
+ - 'Rakefile'
189
+
190
+ # Offense count: 1
191
+ # Cop supports --auto-correct.
192
+ Style/IfUnlessModifier:
193
+ Exclude:
194
+ - 'lib/guac/sys_command.rb'
195
+
196
+ # Offense count: 1
197
+ # Cop supports --auto-correct.
198
+ Style/MutableConstant:
199
+ Exclude:
200
+ - 'lib/guac/version.rb'
201
+
202
+ # Offense count: 1
203
+ # Cop supports --auto-correct.
204
+ # Configuration parameters: EnforcedStyle.
205
+ # SupportedStyles: both, prefix, postfix
206
+ Style/NegatedIf:
207
+ Exclude:
208
+ - 'exe/guac'
209
+
210
+ # Offense count: 3
211
+ # Cop supports --auto-correct.
212
+ # Configuration parameters: PreferredDelimiters.
213
+ Style/PercentLiteralDelimiters:
214
+ Exclude:
215
+ - 'lib/guac/cli.rb'
216
+ - 'lib/guac/repo.rb'
217
+
218
+ # Offense count: 2
219
+ # Cop supports --auto-correct.
220
+ # Configuration parameters: EnforcedStyle.
221
+ # SupportedStyles: use_perl_names, use_english_names
222
+ Style/SpecialGlobalVars:
223
+ Exclude:
224
+ - 'exe/guac'
225
+
226
+ # Offense count: 20
227
+ # Cop supports --auto-correct.
228
+ # Configuration parameters: EnforcedStyle, ConsistentQuotesInMultiline.
229
+ # SupportedStyles: single_quotes, double_quotes
230
+ Style/StringLiterals:
231
+ Exclude:
232
+ - 'Gemfile'
233
+ - 'Rakefile'
234
+ - 'bin/console'
235
+ - 'lib/guac.rb'
236
+ - 'lib/guac/version.rb'
237
+ - 'spec/integration/config_spec.rb'
238
+ - 'spec/integration/status_spec.rb'
239
+ - 'spec/integration/up_spec.rb'
240
+ - 'spec/spec_helper.rb'
241
+ - 'spec/unit/config_spec.rb'
242
+ - 'spec/unit/status_spec.rb'
243
+ - 'spec/unit/up_spec.rb'
244
+
245
+ # Offense count: 1
246
+ # Cop supports --auto-correct.
247
+ # Configuration parameters: EnforcedStyleForMultiline.
248
+ # SupportedStylesForMultiline: comma, consistent_comma, no_comma
249
+ Style/TrailingCommaInHashLiteral:
250
+ Exclude:
251
+ - 'lib/guac/commands/config.rb'
252
+
253
+ # Offense count: 1
254
+ # Cop supports --auto-correct.
255
+ Style/UnneededCondition:
256
+ Exclude:
257
+ - 'lib/guac/repo.rb'
258
+
259
+ # Offense count: 12
260
+ # Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
261
+ # URISchemes: http, https
262
+ Metrics/LineLength:
263
+ Max: 101
data/.travis.yml CHANGED
@@ -1,5 +1,11 @@
1
1
  sudo: false
2
2
  language: ruby
3
+ notifications:
4
+ email:
5
+ on_success: never
6
+ on_failure: never
3
7
  rvm:
4
8
  - 2.4.0
5
9
  before_install: gem install bundler -v 1.16.2
10
+ before_script:
11
+ - bundle exec rake build
data/Gemfile CHANGED
@@ -4,7 +4,3 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
4
 
5
5
  # Specify your gem's dependencies in guac.gemspec
6
6
  gemspec
7
-
8
- gem 'tty'
9
- gem 'pry'
10
- gem 'colorize'
data/Gemfile.lock CHANGED
@@ -1,152 +1,60 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- guac (0.1.4)
5
- pastel (~> 0.7.2)
6
- thor (~> 0.20.0)
7
- tty-color (~> 0.4.2)
8
- tty-command (~> 0.8.0)
9
- tty-config (~> 0.2.0)
10
- tty-cursor (~> 0.5.0)
11
- tty-editor (~> 0.4.0)
12
- tty-file (~> 0.6.0)
13
- tty-font (~> 0.2.0)
14
- tty-markdown (~> 0.4.0)
15
- tty-pager (~> 0.11.0)
16
- tty-platform (~> 0.1.0)
17
- tty-progressbar (~> 0.15.0)
18
- tty-prompt (~> 0.16.1)
19
- tty-screen (~> 0.6.4)
20
- tty-spinner (~> 0.8.0)
21
- tty-table (~> 0.10.0)
22
- tty-tree (~> 0.1.0)
23
- tty-which (~> 0.3.0)
4
+ guac (0.1.5)
5
+ colorize (= 0.8.1)
6
+ thor (= 0.20.0)
24
7
 
25
8
  GEM
26
9
  remote: https://rubygems.org/
27
10
  specs:
28
- coderay (1.1.2)
11
+ ast (2.4.0)
29
12
  colorize (0.8.1)
30
13
  diff-lcs (1.3)
31
- equatable (0.5.0)
32
- hitimes (1.3.0)
33
- kramdown (1.16.2)
34
- method_source (0.9.0)
35
- necromancer (0.4.0)
36
- pastel (0.7.2)
37
- equatable (~> 0.5.0)
38
- tty-color (~> 0.4.0)
39
- pry (0.11.3)
40
- coderay (~> 1.1.0)
41
- method_source (~> 0.9.0)
14
+ jaro_winkler (1.5.1)
15
+ parallel (1.12.1)
16
+ parser (2.5.3.0)
17
+ ast (~> 2.4.0)
18
+ powerpack (0.1.2)
19
+ rainbow (3.0.0)
42
20
  rake (10.5.0)
43
- rouge (3.1.1)
44
21
  rspec (3.8.0)
45
22
  rspec-core (~> 3.8.0)
46
23
  rspec-expectations (~> 3.8.0)
47
24
  rspec-mocks (~> 3.8.0)
48
25
  rspec-core (3.8.0)
49
26
  rspec-support (~> 3.8.0)
50
- rspec-expectations (3.8.0)
27
+ rspec-expectations (3.8.2)
51
28
  diff-lcs (>= 1.2.0, < 2.0)
52
29
  rspec-support (~> 3.8.0)
53
30
  rspec-mocks (3.8.0)
54
31
  diff-lcs (>= 1.2.0, < 2.0)
55
32
  rspec-support (~> 3.8.0)
56
33
  rspec-support (3.8.0)
57
- strings (0.1.1)
58
- unicode-display_width (~> 1.3.0)
59
- unicode_utils (~> 1.4.0)
34
+ rubocop (0.61.1)
35
+ jaro_winkler (~> 1.5.1)
36
+ parallel (~> 1.10)
37
+ parser (>= 2.5, != 2.5.1.1)
38
+ powerpack (~> 0.1)
39
+ rainbow (>= 2.2.2, < 4.0)
40
+ ruby-progressbar (~> 1.7)
41
+ unicode-display_width (~> 1.4.0)
42
+ rubocop-rspec (1.30.1)
43
+ rubocop (>= 0.60.0)
44
+ ruby-progressbar (1.10.0)
60
45
  thor (0.20.0)
61
- timers (4.1.2)
62
- hitimes
63
- tty (0.8.1)
64
- bundler (~> 1.16, < 2.0)
65
- equatable (~> 0.5.0)
66
- pastel (~> 0.7.2)
67
- thor (~> 0.20.0)
68
- tty-color (~> 0.4.2)
69
- tty-command (~> 0.8.0)
70
- tty-config (~> 0.2.0)
71
- tty-cursor (~> 0.5.0)
72
- tty-editor (~> 0.4.0)
73
- tty-file (~> 0.6.0)
74
- tty-font (~> 0.2.0)
75
- tty-markdown (~> 0.4.0)
76
- tty-pager (~> 0.11.0)
77
- tty-platform (~> 0.1.0)
78
- tty-progressbar (~> 0.15.0)
79
- tty-prompt (~> 0.16.1)
80
- tty-screen (~> 0.6.4)
81
- tty-spinner (~> 0.8.0)
82
- tty-table (~> 0.10.0)
83
- tty-tree (~> 0.1.0)
84
- tty-which (~> 0.3.0)
85
- tty-color (0.4.3)
86
- tty-command (0.8.1)
87
- pastel (~> 0.7.0)
88
- tty-config (0.2.0)
89
- tty-cursor (0.5.0)
90
- tty-editor (0.4.0)
91
- tty-prompt (~> 0.16.0)
92
- tty-which (~> 0.3.0)
93
- tty-file (0.6.0)
94
- diff-lcs (~> 1.3.0)
95
- pastel (~> 0.7.2)
96
- tty-prompt (~> 0.16.1)
97
- tty-font (0.2.0)
98
- tty-markdown (0.4.0)
99
- kramdown (~> 1.16.2)
100
- pastel (~> 0.7.2)
101
- rouge (~> 3.1.0)
102
- strings (~> 0.1.0)
103
- tty-color (~> 0.4.2)
104
- tty-screen (~> 0.6.4)
105
- tty-pager (0.11.0)
106
- strings (~> 0.1.0)
107
- tty-screen (~> 0.6.4)
108
- tty-which (~> 0.3.0)
109
- tty-platform (0.1.0)
110
- tty-progressbar (0.15.1)
111
- tty-cursor (~> 0.5.0)
112
- tty-screen (~> 0.6.4)
113
- unicode-display_width (~> 1.3)
114
- tty-prompt (0.16.1)
115
- necromancer (~> 0.4.0)
116
- pastel (~> 0.7.0)
117
- timers (~> 4.0)
118
- tty-cursor (~> 0.5.0)
119
- tty-reader (~> 0.3.0)
120
- tty-reader (0.3.0)
121
- tty-cursor (~> 0.5.0)
122
- tty-screen (~> 0.6.4)
123
- wisper (~> 2.0.0)
124
- tty-screen (0.6.5)
125
- tty-spinner (0.8.0)
126
- tty-cursor (>= 0.5.0)
127
- tty-table (0.10.0)
128
- equatable (~> 0.5.0)
129
- necromancer (~> 0.4.0)
130
- pastel (~> 0.7.2)
131
- strings (~> 0.1.0)
132
- tty-screen (~> 0.6.4)
133
- tty-tree (0.1.0)
134
- tty-which (0.3.0)
135
- unicode-display_width (1.3.3)
136
- unicode_utils (1.4.0)
137
- wisper (2.0.0)
46
+ unicode-display_width (1.4.0)
138
47
 
139
48
  PLATFORMS
140
49
  ruby
141
50
 
142
51
  DEPENDENCIES
143
52
  bundler (~> 1.16)
144
- colorize
145
53
  guac!
146
- pry
147
54
  rake (~> 10.0)
148
55
  rspec (~> 3.0)
149
- tty
56
+ rubocop (~> 0.61.1)
57
+ rubocop-rspec (~> 1.30.1)
150
58
 
151
59
  BUNDLED WITH
152
- 1.16.2
60
+ 1.17.1