fudge 0.3.4 → 0.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cff8f24b694cfa6e7a7b59c3e5ddaa8480eb06cb
|
4
|
+
data.tar.gz: 552d56d926b92f7cb2205662b242883b37500167
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96aebb8552c29a340f34b1edfad2fd15580853b329b588c8ec410e9e33604dcfec7c85b0b8511ff1af24c9316bc4a49eecba7914dc5351118190219f4f47960d
|
7
|
+
data.tar.gz: 0ca8c46af6dba014476741d13e4c255c1c320b8d90213caa6ec69ebaaecba1294ef40fdd6296d5d7e0c3c060392aad91f851b8093c03f995256ffe47a2b44009
|
data/lib/fudge/file_finder.rb
CHANGED
@@ -21,14 +21,14 @@ module Fudge
|
|
21
21
|
def find_filters
|
22
22
|
filters = []
|
23
23
|
filters << 'find .'
|
24
|
-
filters << "grep -e '\\.rb$'"
|
24
|
+
filters << "grep --color=never -e '\\.rb$'"
|
25
25
|
filters << exclude_filter
|
26
26
|
filters.compact
|
27
27
|
end
|
28
28
|
|
29
29
|
def exclude_filter
|
30
30
|
if (pattern = options[:exclude])
|
31
|
-
"grep -v -E '#{pattern}'"
|
31
|
+
"grep --color=never -v -E '#{pattern}'"
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
data/lib/fudge/version.rb
CHANGED
@@ -20,7 +20,7 @@ EOF
|
|
20
20
|
|
21
21
|
describe :run do
|
22
22
|
it "runs flay on the codebase" do
|
23
|
-
subject.should run_command "flay --diff `find . | grep -e '\\.rb$'`"
|
23
|
+
subject.should run_command "flay --diff `find . | grep --color=never -e '\\.rb$'`"
|
24
24
|
end
|
25
25
|
|
26
26
|
context 'with :exclude => pattern' do
|
@@ -28,7 +28,7 @@ EOF
|
|
28
28
|
|
29
29
|
# Test doesn't check result :(
|
30
30
|
it "filters out the pattern" do
|
31
|
-
cmd = "flay --diff `find . | grep -e '\\.rb$' | grep -v -E 'spec/'`"
|
31
|
+
cmd = "flay --diff `find . | grep --color=never -e '\\.rb$' | grep --color=never -v -E 'spec/'`"
|
32
32
|
subject.should run_command cmd
|
33
33
|
end
|
34
34
|
end
|
@@ -47,7 +47,7 @@ EOF
|
|
47
47
|
|
48
48
|
describe :run do
|
49
49
|
it "runs flog on the codebase" do
|
50
|
-
subject.should run_command "flog `find . | grep -e '\\.rb$'`"
|
50
|
+
subject.should run_command "flog `find . | grep --color=never -e '\\.rb$'`"
|
51
51
|
end
|
52
52
|
|
53
53
|
context 'with :exclude => pattern' do
|
@@ -55,7 +55,7 @@ EOF
|
|
55
55
|
|
56
56
|
# Test doesn't check result :(
|
57
57
|
it "filters out the pattern" do
|
58
|
-
with_pattern = "flog `find . | grep -e '\\.rb$' | grep -v -E 'spec/'`"
|
58
|
+
with_pattern = "flog `find . | grep --color=never -e '\\.rb$' | grep --color=never -v -E 'spec/'`"
|
59
59
|
subject.should run_command with_pattern
|
60
60
|
end
|
61
61
|
end
|
@@ -64,7 +64,7 @@ EOF
|
|
64
64
|
subject {described_class.new :methods => true}
|
65
65
|
|
66
66
|
it "runs with methods only flag" do
|
67
|
-
with_pattern = "flog -m `find . | grep -e '\\.rb$'`"
|
67
|
+
with_pattern = "flog -m `find . | grep --color=never -e '\\.rb$'`"
|
68
68
|
subject.should run_command with_pattern
|
69
69
|
end
|
70
70
|
end
|
@@ -32,7 +32,7 @@ describe Fudge::Tasks::Shell do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'uses the output stream when reporting checks on build result' do
|
35
|
-
checker =
|
35
|
+
checker = double.as_null_object
|
36
36
|
Fudge::OutputChecker.should_receive(:new).with(anything, output) { checker }
|
37
37
|
subject.run :output => output
|
38
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fudge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sage One team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -359,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
359
359
|
- !ruby/object:Gem::Version
|
360
360
|
version: '0'
|
361
361
|
requirements: []
|
362
|
-
rubyforge_project:
|
362
|
+
rubyforge_project:
|
363
363
|
rubygems_version: 2.0.14
|
364
364
|
signing_key:
|
365
365
|
specification_version: 4
|