gust 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/gust.gemspec +1 -1
  2. data/lib/gust.rb +1 -1
  3. data/spec/gust_spec.rb +1 -1
  4. metadata +3 -3
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "gust"
6
- s.version = '0.1.1'
6
+ s.version = '0.1.2'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Jeff Kreeftmeijer"]
9
9
  s.email = ["jeff@kreeftmeijer.nl"]
@@ -5,7 +5,7 @@ require 'RedCloth'
5
5
  class Gust
6
6
 
7
7
  def self.parse(code, options = {})
8
- return "<div class=\"markup\">#{code}</div>\n" unless options[:filename]
8
+ return "<div class=\"highlight\"><pre>#{code}</pre></div>\n" unless options[:filename]
9
9
 
10
10
  case options[:filename]
11
11
  when /.*\.png$/ then "<div class=\"image\"><img src=\"#{options[:url]}\"/></div>\n"
@@ -15,7 +15,7 @@ describe Gust do
15
15
 
16
16
  subject { Gust.parse('foo') }
17
17
 
18
- it { should == "<div class=\"markup\">foo</div>\n" }
18
+ it { should == "<div class=\"highlight\"><pre>foo</pre></div>\n" }
19
19
 
20
20
  end
21
21
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jeff Kreeftmeijer
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-06-27 00:00:00 +02:00
17
+ date: 2011-07-09 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency