darkhelmet-darkext 0.8.3 → 0.8.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.8.4 2009-2-24
2
+
3
+ * Add slash prefix option
4
+
1
5
  == 0.8.3 2009-2-23
2
6
 
3
7
  * Fix up sinatra stuff to be extensions
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 8
3
- :patch: 3
3
+ :patch: 4
4
4
  :major: 0
@@ -15,11 +15,11 @@ module Sinatra
15
15
  end
16
16
 
17
17
  def css_link_tag(sheet, media = 'screen,projection')
18
- partial("%link{ :type => 'text/css', :href => 'stylesheets/#{sheet}.css', :rel => 'stylesheet', :media => '#{media}' }")
18
+ partial("%link{ :type => 'text/css', :href => '#{options.slash ? '/' : ''}stylesheets/#{sheet}.css', :rel => 'stylesheet', :media => '#{media}' }")
19
19
  end
20
20
 
21
21
  def js_script_tag(script)
22
- partial("%script{ :type => 'text/javascript', :src => 'javascripts/#{script}.js' }")
22
+ partial("%script{ :type => 'text/javascript', :src => '#{options.slash ? '/' : ''}javascripts/#{script}.js' }")
23
23
  end
24
24
 
25
25
  def js_tag(script)
@@ -61,6 +61,7 @@ module Sinatra
61
61
 
62
62
  def self.registered(app)
63
63
  app.helpers HelperMethods
64
+ app.disable(:slash)
64
65
  end
65
66
  end
66
67
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: darkhelmet-darkext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Huckstep
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-23 00:00:00 -08:00
12
+ date: 2009-02-24 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15