kickstart_rails 3.0.29 → 3.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kickstart_rails.rb +28 -1
- data/lib/kickstart_rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99a817ca4579b336176dfab007099f7856af168e
|
4
|
+
data.tar.gz: c64833a51db3401a0335b251e077500113e9b338
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6743f78be33dc8e8ba438fe3e23fe387501493a905d247b1b33ba7fb060b46af99bc5f423fbe8ec4ef94fd59d7ee7c86c22c7b8264555cd7d2b0e6454c25a707
|
7
|
+
data.tar.gz: a8be827210617014a1388d389a1d998e233d2cb375fbed82d049882b4bd3a00d212397476ad4c2db9191d725f73db2b19b3c1eab3a061f054a6c562431f0d932
|
data/lib/kickstart_rails.rb
CHANGED
@@ -1,5 +1,32 @@
|
|
1
1
|
module Kickstart_rails
|
2
2
|
class Engine < Rails::Engine
|
3
|
-
|
3
|
+
initializer 'kickstart_rails.assets.precompile' do |app|
|
4
|
+
%w(stylesheets javascripts).each do |sub|
|
5
|
+
app.config.assets.paths << root.join('assets', sub)
|
6
|
+
end
|
7
|
+
end
|
4
8
|
end
|
9
|
+
|
10
|
+
def gem_path
|
11
|
+
@gem_path ||= File.expand_path '..', File.dirname(__FILE__)
|
12
|
+
end
|
13
|
+
|
14
|
+
def assets_path
|
15
|
+
@assets_path ||= File.join gem_path, 'assets'
|
16
|
+
end
|
17
|
+
|
18
|
+
def stylesheets_path
|
19
|
+
File.join assets_path, 'stylesheets'
|
20
|
+
end
|
21
|
+
|
22
|
+
def javascripts_path
|
23
|
+
File.join assets_path, 'javascripts'
|
24
|
+
end
|
25
|
+
|
26
|
+
def configure_sass
|
27
|
+
require 'sass'
|
28
|
+
|
29
|
+
::Sass.load_paths << stylesheets_path
|
30
|
+
::Sass::Script::Number.precision = [10, ::Sass::Script::Number.precision].max
|
31
|
+
end
|
5
32
|
end
|