less-rails 2.4.1 → 2.4.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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTBiNWI5NzczYTlhNzc2MTMxZDcxYjQ3N2RhMmQ2OTgwNjM5MjVmNQ==
4
+ OWQ0MmE4NzBjMTgwMzM0ZmIzNzkyYTY4NGMxMzQxZDEzYjRlODI5OA==
5
5
  data.tar.gz: !binary |-
6
- NzYxZWIzZDBkZmIxZTNlMWUwY2E4MGMzZGY3OTk1ZDdjMzYzZTAzYQ==
6
+ N2U4YWFkNGZhOTA3NTc1ZjFlY2I3YWNmZmUxNmY4NDMxMDg1NjVkNA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MzIyZTMyYmY3NjMyYmRmN2RhY2YwZTk5ODZiZjgwMGJlMTIxY2NkOTk4ZjE2
10
- ZmExOTc1NWY5MWQxZDJmNzUyZTU2MmE5MzU0OWM2MGMzODE5ZDMxZTg1YzQ5
11
- NTlkNGQ2OWY2ZWQ5Y2I3NzExZjM3ODRkMjUxZmZiMzU1Mzc3MmQ=
9
+ NmZhYjcyYzcxNWJjZjQzZGQ0ODhjN2RmY2NjOTY4YjkyM2IyY2I1Zjk2ZmUy
10
+ NGIzYWY3MDhhZmNmZjlhYjExNzY5MDNmYzdjNzU4ZmNlZjk3ZjY0NTY4OTk1
11
+ YjcyY2ZkZWFhOTM4YWEzOTA1Zjg2NjhlYmJiYzA1ZWY3YWI4MmY=
12
12
  data.tar.gz: !binary |-
13
- ZTc3NzA2MTg1MjNiOTZkMTBhYzNmNDI0MDZlNzEyOTA1MzZhMzcxMzliMjgy
14
- MDUxMzk5ZWRhYTVkNjRlMTljNDBjOGU3MDA2NzI1ZWQ4ZThlOTIxMjljNzk0
15
- OGFiNzY0MDJhOGE4ZTM1NTAwN2RjYjA1ZjliOTlkODM1NjY2NDQ=
13
+ ZTE4OTk2YWZmMTA1ZTM1ZmExNThlMzNlMzZhNDU4N2Y0YWIxMDdjNWFhY2U1
14
+ NWZhZTdlMGY3OGY0Zjk4OGM5NTI0MWEwOGVhZDU5Yjg1NTkwZWZiMTdiOWU0
15
+ NzIxNzA3ODlmOTQ3N2FmZjAxNDk1ZDliZTY3ODE3YmJmMDVkOTU=
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ### 2.4.2 - 2013-09-07
4
+
5
+ * Another stab at better initialization process. Fixes #68. Fixes #62.
6
+
3
7
  ### 2.4.1 - 2013-09-07
4
8
 
5
9
  * Fix import hooks to allow relative paths to files. Fixes #72 and #64.
@@ -11,38 +11,19 @@ module Less
11
11
  config.less.compress = false
12
12
  config.app_generators.stylesheet_engine :less
13
13
 
14
- if ::Rails::VERSION::STRING =~ /\A3.[12]/
15
-
16
- config.before_initialize do |app|
17
- require 'less'
18
- require 'less-rails'
19
- Sprockets::Engines #force autoloading
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)
@@ -1,5 +1,5 @@
1
1
  module Less
2
2
  module Rails
3
- VERSION = "2.4.1"
3
+ VERSION = "2.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.1
4
+ version: 2.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins