mercury 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mercury/helpers.rb +2 -2
- data/lib/mercury/images.rb +1 -1
- data/spec/lib/mercury/helpers_spec.rb +1 -1
- metadata +3 -3
data/lib/mercury/helpers.rb
CHANGED
@@ -15,7 +15,7 @@ module Sinatra
|
|
15
15
|
|
16
16
|
SASS = 'sass'
|
17
17
|
JS = 'js'
|
18
|
-
|
18
|
+
MDOWN = 'md'
|
19
19
|
TEXTILE = 'textile'
|
20
20
|
COFFEE = 'coffee'
|
21
21
|
CSS = 'css'
|
@@ -42,7 +42,7 @@ module Sinatra
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def markdown(mdfile)
|
45
|
-
Markdown.new(open_file(find_file(mdfile,
|
45
|
+
Markdown.new(open_file(find_file(mdfile, MDOWN))).to_html
|
46
46
|
end
|
47
47
|
|
48
48
|
def textile(txfile)
|
data/lib/mercury/images.rb
CHANGED
@@ -2,7 +2,7 @@ module Sinatra
|
|
2
2
|
module MercuryImages
|
3
3
|
def self.registered(app)
|
4
4
|
# stream images
|
5
|
-
app.get %r{
|
5
|
+
app.get %r{(gif|jpg|png|jpeg)$} do
|
6
6
|
content_type get_image_type(request.path_info)
|
7
7
|
File.open(options.views + request.path_info, 'rb') do |file|
|
8
8
|
file.read
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mercury
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Wilson
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-04-
|
12
|
+
date: 2010-04-05 00:00:00 -04:00
|
13
13
|
default_executable: mercury
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -60,7 +60,7 @@ dependencies:
|
|
60
60
|
requirements:
|
61
61
|
- - ">="
|
62
62
|
- !ruby/object:Gem::Version
|
63
|
-
version: 4.2.
|
63
|
+
version: 4.2.2
|
64
64
|
version:
|
65
65
|
description: Hack with haml, sass, jquery and coffee-script!
|
66
66
|
email: thing2@jackhq.com
|