less-rails 2.4.1 → 2.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -0
- data/lib/less/rails/railtie.rb +11 -30
- data/lib/less/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OWQ0MmE4NzBjMTgwMzM0ZmIzNzkyYTY4NGMxMzQxZDEzYjRlODI5OA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
N2U4YWFkNGZhOTA3NTc1ZjFlY2I3YWNmZmUxNmY4NDMxMDg1NjVkNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmZhYjcyYzcxNWJjZjQzZGQ0ODhjN2RmY2NjOTY4YjkyM2IyY2I1Zjk2ZmUy
|
10
|
+
NGIzYWY3MDhhZmNmZjlhYjExNzY5MDNmYzdjNzU4ZmNlZjk3ZjY0NTY4OTk1
|
11
|
+
YjcyY2ZkZWFhOTM4YWEzOTA1Zjg2NjhlYmJiYzA1ZWY3YWI4MmY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTE4OTk2YWZmMTA1ZTM1ZmExNThlMzNlMzZhNDU4N2Y0YWIxMDdjNWFhY2U1
|
14
|
+
NWZhZTdlMGY3OGY0Zjk4OGM5NTI0MWEwOGVhZDU5Yjg1NTkwZWZiMTdiOWU0
|
15
|
+
NzIxNzA3ODlmOTQ3N2FmZjAxNDk1ZDliZTY3ODE3YmJmMDVkOTU=
|
data/CHANGELOG.md
CHANGED
data/lib/less/rails/railtie.rb
CHANGED
@@ -11,38 +11,19 @@ module Less
|
|
11
11
|
config.less.compress = false
|
12
12
|
config.app_generators.stylesheet_engine :less
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
Sprockets.register_engine '.less', LessTemplate
|
21
|
-
end
|
22
|
-
|
23
|
-
initializer 'less-rails.after.load_config_initializers', :after => :load_config_initializers, :group => :all do |app|
|
24
|
-
(Sprockets.respond_to?('register_preprocessor') ? Sprockets : app.assets).register_preprocessor 'text/css', ImportProcessor
|
25
|
-
app.assets.context_class.extend(LessContext)
|
26
|
-
app.assets.context_class.less_config = app.config.less
|
27
|
-
end
|
28
|
-
|
29
|
-
else
|
30
|
-
|
31
|
-
config.before_initialize do |app|
|
32
|
-
require 'less'
|
33
|
-
require 'less-rails'
|
34
|
-
Sprockets::Engines #force autoloading
|
35
|
-
Sprockets.register_engine '.less', LessTemplate
|
36
|
-
(Sprockets.respond_to?('register_preprocessor') ? Sprockets : app.assets).register_preprocessor 'text/css', ImportProcessor
|
37
|
-
end
|
38
|
-
|
39
|
-
config.after_initialize do |app|
|
40
|
-
app.assets.context_class.extend(LessContext)
|
41
|
-
app.assets.context_class.less_config = app.config.less
|
42
|
-
end
|
14
|
+
config.before_initialize do |app|
|
15
|
+
require 'less'
|
16
|
+
require 'less-rails'
|
17
|
+
Sprockets::Engines #force autoloading
|
18
|
+
Sprockets.register_engine '.less', LessTemplate
|
19
|
+
end
|
43
20
|
|
21
|
+
initializer 'less-rails.before.load_config_initializers', :before => :load_config_initializers, :group => :all do |app|
|
22
|
+
(Sprockets.respond_to?('register_preprocessor') ? Sprockets : app.assets).register_preprocessor 'text/css', ImportProcessor
|
23
|
+
app.assets.context_class.extend(LessContext)
|
24
|
+
app.assets.context_class.less_config = app.config.less
|
44
25
|
end
|
45
|
-
|
26
|
+
|
46
27
|
initializer 'less-rails.after.append_assets_path', :after => :append_assets_path, :group => :all do |app|
|
47
28
|
assets_stylesheet_paths = app.config.assets.paths.select { |p| p && p.to_s.ends_with?('stylesheets') }
|
48
29
|
app.config.less.paths.unshift(*assets_stylesheet_paths)
|
data/lib/less/rails/version.rb
CHANGED