ruumba 0.1.5 → 0.1.6
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 +4 -4
- data/bin/ruumba +9 -0
- data/lib/ruumba/analyzer.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 499ac4d5c4a2e6ed257da7a16218a65fe5f48c8b
|
4
|
+
data.tar.gz: 2068f31c26ad2011256ae53cbdbe978895898316
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7050b2578545ba9d0c393e3829d8a824c0b9e175aa22afb26ade2518af446bc11a9e9ab84afc2d29500ac1764c37cb2d1c49bdc58e95111dfd18e6687eb544fe
|
7
|
+
data.tar.gz: 8ee48c0e20a55debd4cfce935ea843851fc5c4ee37ad496051b150af33eac51957839bc578a52ae22f963332bb66ab10584b83dbf9ef71788664b5c163190612
|
data/bin/ruumba
CHANGED
@@ -26,6 +26,11 @@ opts_parser = OptionParser.new do |opts|
|
|
26
26
|
options[:arguments] << File.expand_path(c)
|
27
27
|
end
|
28
28
|
|
29
|
+
opts.on('-C', '--cache FLAG', "Use result caching (FLAG=true) or don't", '(FLAG=false), default determined by', 'configuration parameter AllCops: UseCache.') do |flag|
|
30
|
+
options[:arguments] << '--cache'
|
31
|
+
options[:arguments] << flag
|
32
|
+
end
|
33
|
+
|
29
34
|
opts.on('-d', '--debug', 'Display debug info.') do ||
|
30
35
|
options[:arguments] << '--debug'
|
31
36
|
end
|
@@ -48,6 +53,10 @@ opts_parser = OptionParser.new do |opts|
|
|
48
53
|
options[:arguments] << cops
|
49
54
|
end
|
50
55
|
|
56
|
+
opts.on('-l', '--lint', 'Run only lint cops.') do
|
57
|
+
options[:arguments] << '--lint'
|
58
|
+
end
|
59
|
+
|
51
60
|
opts.on('-r', '--require [FILE]', 'Require Ruby file.') do |file|
|
52
61
|
options[:arguments] << '--require'
|
53
62
|
options[:arguments] << file
|
data/lib/ruumba/analyzer.rb
CHANGED
@@ -124,17 +124,17 @@ module Ruumba
|
|
124
124
|
args = ['rubocop'] + (@options[:arguments] || []) + [target.to_s]
|
125
125
|
todo = tmp + '.rubocop_todo.yml'
|
126
126
|
|
127
|
-
pwd =
|
127
|
+
pwd = Dir.pwd
|
128
128
|
|
129
129
|
replacements = []
|
130
130
|
|
131
|
-
replacements << [/^#{Regexp.quote(tmp.to_s)}/, pwd]
|
132
|
-
|
133
131
|
unless @options[:disable_rb_extension]
|
134
132
|
replacements << [/\.erb\.rb/, '.erb']
|
135
133
|
end
|
136
134
|
|
137
135
|
result = Dir.chdir(tmp) do
|
136
|
+
replacements.unshift([/^#{Regexp.quote(Dir.pwd)}/, pwd])
|
137
|
+
|
138
138
|
stdout, stderr, status = Open3.capture3(*args)
|
139
139
|
|
140
140
|
munge_output(stdout, stderr, replacements)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruumba
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Weinstein
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-
|
13
|
+
date: 2018-10-11 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rubocop
|