darkhelmet-sinatra_more 0.3.34 → 0.3.35
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/lib/sinatra/markup_plugin/asset_tag_helpers.rb +10 -4
- data/sinatra_more.gemspec +1 -1
- metadata +1 -1
|
@@ -92,8 +92,11 @@ module Sinatra
|
|
|
92
92
|
result_path = "/javascripts/#{source.gsub(/.js$/, '')}"
|
|
93
93
|
result_path << ".js" unless source =~ /\.js\w{2,4}$/
|
|
94
94
|
disk_path = "#{options.public}#{result_path}"
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
if File.exist?(disk_path)
|
|
96
|
+
"#{result_path}?#{File.mtime(disk_path).to_i}"
|
|
97
|
+
else
|
|
98
|
+
result_path
|
|
99
|
+
end
|
|
97
100
|
end
|
|
98
101
|
|
|
99
102
|
def stylesheet_path(source)
|
|
@@ -101,8 +104,11 @@ module Sinatra
|
|
|
101
104
|
result_path = "/stylesheets/#{source.gsub(/.css$/, '')}"
|
|
102
105
|
result_path << ".css" unless source =~ /\.css\w{2,4}$/
|
|
103
106
|
disk_path = "#{options.public}#{result_path}"
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
if File.exist?(disk_path)
|
|
108
|
+
"#{result_path}?#{File.mtime(disk_path).to_i}"
|
|
109
|
+
else
|
|
110
|
+
result_path
|
|
111
|
+
end
|
|
106
112
|
end
|
|
107
113
|
end
|
|
108
114
|
end
|
data/sinatra_more.gemspec
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{darkhelmet-sinatra_more}
|
|
8
|
-
s.version = "0.3.
|
|
8
|
+
s.version = "0.3.35"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Nathan Esquenazi", "Daniel Huckstep"]
|