fudge 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,6 +19,9 @@ module Fudge
19
19
  args = []
20
20
  args << "--no-doc" unless options.fetch(:doc, true)
21
21
  args << "--no-style" unless options.fetch(:style, true)
22
+ if options.has_key?(:max_width)
23
+ args << "--style-measure #{options.fetch(:max_width)}"
24
+ end
22
25
  args
23
26
  end
24
27
  end
@@ -1,4 +1,4 @@
1
1
  module Fudge
2
2
  # Define gem version
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
@@ -26,6 +26,14 @@ describe Fudge::Tasks::Cane do
26
26
  end
27
27
  end
28
28
 
29
+ context 'with :max_width => 100' do
30
+ subject {described_class.new :max_width => 100 }
31
+
32
+ it "runs with --style-measure 100" do
33
+ subject.should run_command "cane --style-measure 100"
34
+ end
35
+ end
36
+
29
37
  it { should_not succeed_with_output 'any output from cane is bad' }
30
38
  it { should succeed_with_output '' }
31
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fudge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-24 00:00:00.000000000 Z
12
+ date: 2012-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor