Skip to content
This repository has been archived by the owner on May 12, 2023. It is now read-only.

Commit

Permalink
Merge branch 'release/0.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Kreeftmeijer committed Jul 9, 2011
2 parents 66b49c5 + ff12baf commit 9c9bc73
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gust.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)

Gem::Specification.new do |s|
s.name = "gust"
s.version = '0.1.1'
s.version = '0.1.2'
s.platform = Gem::Platform::RUBY
s.authors = ["Jeff Kreeftmeijer"]
s.email = ["jeff@kreeftmeijer.nl"]
Expand Down
2 changes: 1 addition & 1 deletion lib/gust.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
class Gust

def self.parse(code, options = {})
return "<div class=\"markup\">#{code}</div>\n" unless options[:filename]
return "<div class=\"highlight\"><pre>#{code}</pre></div>\n" unless options[:filename]

case options[:filename]
when /.*\.png$/ then "<div class=\"image\"><img src=\"#{options[:url]}\"/></div>\n"
Expand Down
2 changes: 1 addition & 1 deletion spec/gust_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

subject { Gust.parse('foo') }

it { should == "<div class=\"markup\">foo</div>\n" }
it { should == "<div class=\"highlight\"><pre>foo</pre></div>\n" }

end

Expand Down

0 comments on commit 9c9bc73

Please sign in to comment.