gust 0.1.1 → 0.1.2
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/gust.gemspec +1 -1
- data/lib/gust.rb +1 -1
- data/spec/gust_spec.rb +1 -1
- metadata +3 -3
data/gust.gemspec
CHANGED
data/lib/gust.rb
CHANGED
|
@@ -5,7 +5,7 @@ require 'RedCloth'
|
|
|
5
5
|
class Gust
|
|
6
6
|
|
|
7
7
|
def self.parse(code, options = {})
|
|
8
|
-
return "<div class=\"
|
|
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"
|
data/spec/gust_spec.rb
CHANGED
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 1
|
|
8
|
-
-
|
|
9
|
-
version: 0.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-
|
|
17
|
+
date: 2011-07-09 00:00:00 +02:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|