less-rails 2.1.3 → 2.1.4

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.
@@ -1,6 +1,11 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 2.1.4 - =01/31/2012
5
+
6
+ * More friendly import processor with missing files. Fixes #13.
7
+
8
+
4
9
  2.1.3 - 01/23/2012
5
10
 
6
11
  * Make sure vendor/assets/stylesheets .less files work.
@@ -10,10 +10,12 @@ module Less
10
10
  def evaluate(context, locals, &block)
11
11
  import_paths = data.scan(IMPORT_SCANNER).flatten.compact.uniq
12
12
  import_paths.each do |path|
13
- asset = context.environment[path]
14
- if asset && asset.pathname.to_s.ends_with?('.less')
15
- context.depend_on_asset(asset.pathname)
16
- end
13
+ pathname = begin
14
+ context.resolve(path)
15
+ rescue FileNotFound
16
+ nil
17
+ end
18
+ context.depend_on(path) if pathname && pathname.to_s.ends_with?('.less')
17
19
  end
18
20
  data
19
21
  end
@@ -1,5 +1,5 @@
1
1
  module Less
2
2
  module Rails
3
- VERSION = "2.1.3"
3
+ VERSION = "2.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 3
10
- version: 2.1.3
9
+ - 4
10
+ version: 2.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ken Collins
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-23 00:00:00 Z
18
+ date: 2012-01-31 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: less
@@ -165,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements: []
166
166
 
167
167
  rubyforge_project:
168
- rubygems_version: 1.8.15
168
+ rubygems_version: 1.8.12
169
169
  signing_key:
170
170
  specification_version: 3
171
171
  summary: The dynamic stylesheet language for the Rails asset pipeline.
@@ -184,3 +184,4 @@ test_files:
184
184
  - test/dummy_app/tmp/cache/.gitkeep
185
185
  - test/dummy_app/vendor/assets/stylesheets/vendored.less
186
186
  - test/spec_helper.rb
187
+ has_rdoc: