fudge 0.3.4 → 0.3.5

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
  SHA1:
3
- metadata.gz: 352186552ae50ea666911e1d7d632396eb7463d1
4
- data.tar.gz: f4995a4f11d6a81c1d955933440b1cb82c9e2810
3
+ metadata.gz: cff8f24b694cfa6e7a7b59c3e5ddaa8480eb06cb
4
+ data.tar.gz: 552d56d926b92f7cb2205662b242883b37500167
5
5
  SHA512:
6
- metadata.gz: 14d0d9e72133c0c47ef4db9ecac169f3ea13273a5e5eec5c98eb35e399b4c00790c06a4eeae6c2c7ad256b3e1235c5142a08851e81527407c27ff5fe100f7d39
7
- data.tar.gz: 17de54f71d6e3722c1597e6fed568ce378860f0cbafd57f1daef0ce8a300ee4f911dea12541bbbaf6a63a42b7a63f2c21bcf4ec59d27ec302d3eeb617e17e1b9
6
+ metadata.gz: 96aebb8552c29a340f34b1edfad2fd15580853b329b588c8ec410e9e33604dcfec7c85b0b8511ff1af24c9316bc4a49eecba7914dc5351118190219f4f47960d
7
+ data.tar.gz: 0ca8c46af6dba014476741d13e4c255c1c320b8d90213caa6ec69ebaaecba1294ef40fdd6296d5d7e0c3c060392aad91f851b8093c03f995256ffe47a2b44009
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Fudge
2
2
  # Define gem version
3
- VERSION = '0.3.4'
3
+ VERSION = '0.3.5'
4
4
  end
@@ -16,7 +16,7 @@ describe Fudge::Build do
16
16
  end
17
17
 
18
18
  context "when there are callback hooks" do
19
- let(:hook) { mock(:Hook) }
19
+ let(:hook) { double(:Hook) }
20
20
 
21
21
  before :each do
22
22
  subject.callbacks = true
@@ -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 = stub.as_null_object
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
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-28 00:00:00.000000000 Z
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: fudge
362
+ rubyforge_project:
363
363
  rubygems_version: 2.0.14
364
364
  signing_key:
365
365
  specification_version: 4