Skip to content

Commit

Permalink
Make diff code 1.8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
lsegal committed Aug 6, 2012
1 parent 8b2b944 commit ec45a8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/yard/cli/diff.rb
Expand Up @@ -62,7 +62,7 @@ def run(*args)
log.puts
end
all_objects_notice = false
log.print (@compact ? "#{short} " : " ") +
log.print "" + (@compact ? "#{short} " : " ") +
object.path + " (#{object.file}:#{object.line})"
last_object = object
first_object = true
Expand Down
2 changes: 1 addition & 1 deletion spec/cli/diff_spec.rb
Expand Up @@ -156,7 +156,7 @@ def baz; BAR end
end

it "should accept --query" do
run('--compact', '--query', 'type == :method')
run('--compact', '--query', 'o.type == :method')
@data.string.should == <<-eof
A A#foo ((stdin):6)
A A.foo ((stdin):5)
Expand Down

0 comments on commit ec45a8d

Please sign in to comment.