fudge 0.0.3 → 0.0.4
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.
- data/lib/fudge/tasks/cane.rb +3 -0
- data/lib/fudge/version.rb +1 -1
- data/spec/lib/fudge/tasks/cane_spec.rb +8 -0
- metadata +2 -2
data/lib/fudge/tasks/cane.rb
CHANGED
|
@@ -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
|
data/lib/fudge/version.rb
CHANGED
|
@@ -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.
|
|
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-
|
|
12
|
+
date: 2012-10-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: thor
|