mercury 0.9.5 → 0.9.6

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.
@@ -15,7 +15,7 @@ module Sinatra
15
15
 
16
16
  SASS = 'sass'
17
17
  JS = 'js'
18
- MARKDOWN = 'md'
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, MARKDOWN))).to_html
45
+ Markdown.new(open_file(find_file(mdfile, MDOWN))).to_html
46
46
  end
47
47
 
48
48
  def textile(txfile)
@@ -2,7 +2,7 @@ module Sinatra
2
2
  module MercuryImages
3
3
  def self.registered(app)
4
4
  # stream images
5
- app.get %r{[gif|jpg|png|jpeg]$} do
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
@@ -9,7 +9,7 @@ describe "helpers" do
9
9
  end
10
10
 
11
11
  it "should return js file" do
12
- puts app.render_script("test", "javascript")
12
+ #puts app.render_script("test", "javascript")
13
13
  #app.css(:hello).should =~ /^<script(.*)<\/script>$/
14
14
  end
15
15
 
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.5
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-03 00:00:00 -04:00
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.3
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