sinatra-sprockets-ext 0.0.1 → 0.0.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/README.md +2 -2
- data/lib/sinatra/sprockets/helpers.rb +4 -4
- data/lib/sinatra/sprockets/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Sinatra
|
1
|
+
# Sinatra Sprockets
|
2
2
|
|
3
3
|
Sinatra extension for Sprockets integration.
|
4
4
|
|
@@ -43,5 +43,5 @@ You'll also get helper functions that will be familiar to those who use Rails:
|
|
43
43
|
|
44
44
|
## Credits & License
|
45
45
|
|
46
|
-
Copyright ©2012 J. Andrew Marshall. All rights reserved.
|
46
|
+
Copyright © 2012 J. Andrew Marshall. All rights reserved.
|
47
47
|
License is available in the LICENSE file.
|
@@ -27,11 +27,11 @@ module Sinatra::Sprockets
|
|
27
27
|
if debug && asset = asset_paths.asset_for(source, 'js')
|
28
28
|
asset.to_a.map do |dep|
|
29
29
|
src = asset_path(dep, :ext => 'js', :body => true, :digest => digest)
|
30
|
-
"<script src=#{src} type='
|
30
|
+
"<script src=#{src} type='text/javascript'></script>"
|
31
31
|
end
|
32
32
|
else
|
33
33
|
src = asset_path(source, :ext => 'js', :body => body, :digest => digest)
|
34
|
-
"<script src=#{src} type='
|
34
|
+
"<script src=#{src} type='text/javascript'></script>"
|
35
35
|
end
|
36
36
|
end.join("\n")
|
37
37
|
end
|
@@ -46,11 +46,11 @@ module Sinatra::Sprockets
|
|
46
46
|
if debug && asset = asset_paths.asset_for(source, 'css')
|
47
47
|
asset.to_a.map do |dep|
|
48
48
|
href = asset_path(dep, :ext => 'css', :body => true, :protocol => :request, :digest => digest)
|
49
|
-
"<link href='#{href}' media='screen' rel='stylesheet'
|
49
|
+
"<link href='#{href}' media='screen' rel='stylesheet' type='text/css' />"
|
50
50
|
end
|
51
51
|
else
|
52
52
|
href = asset_path(source, :ext => 'css', :body => body, :protocol => :request, :digest => digest)
|
53
|
-
"<link href='#{href}' media='screen' rel='stylesheet'
|
53
|
+
"<link href='#{href}' media='screen' rel='stylesheet' type='text/css' />"
|
54
54
|
end
|
55
55
|
end.join("\n")
|
56
56
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-sprockets-ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sprockets
|