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 +4 -0
- data/VERSION.yml +1 -1
- data/lib/darkext/sinatra.rb +3 -2
- metadata +2 -2
data/History.txt
CHANGED
data/VERSION.yml
CHANGED
data/lib/darkext/sinatra.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2009-02-24 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|