sinatra-twitter-bootstrap 2.3.1 → 2.3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sinatra/twitter-bootstrap.rb +10 -4
- metadata +1 -1
@@ -8,18 +8,24 @@ module Sinatra
|
|
8
8
|
|
9
9
|
ASSETS = {
|
10
10
|
:css => [
|
11
|
-
['bootstrap.min.css', '
|
12
|
-
['bootstrap-responsive.min.css', '
|
13
|
-
['glyphicons-halflings.png', '84f613631b07d4fe22acbab50e551c0fe04bd78b'],
|
11
|
+
['bootstrap.min.css', '6df96f1ee261f227752817cc6f94f4935e70d6fc' ],
|
12
|
+
['bootstrap-responsive.min.css', '11ea0ad5ea631f0f1d77ef4edaa47f78ba3970ec'],
|
14
13
|
],
|
15
14
|
:js => [
|
16
15
|
['jquery.min.js', '8b6babff47b8a9793f37036fd1b1a3ad41d38423'],
|
17
|
-
['bootstrap.min.js', '
|
16
|
+
['bootstrap.min.js', '6ab5d9b8349fc98fa656de69c8900ef968a96e75'],
|
18
17
|
['html5.js', 'c9d8ca77abcd9789b91b4c3263f257e1fc1ee103']
|
19
18
|
],
|
20
19
|
}
|
21
20
|
|
22
21
|
def self.generate_bootstrap_asset_routes(app)
|
22
|
+
# Add images
|
23
|
+
app.get '/img/glyphicons-halflings.png' do
|
24
|
+
cache_control :public, :must_revalidate, :max_age => 3600
|
25
|
+
etag '84f613631b07d4fe22acbab50e551c0fe04bd78b'
|
26
|
+
File.read(File.join(File.dirname(__FILE__), 'assets', 'glyphicons-halflings.png'))
|
27
|
+
end
|
28
|
+
# Other files
|
23
29
|
ASSETS.each do |kind, files|
|
24
30
|
files.each do |file|
|
25
31
|
name, sha1 = file
|