less-rails 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/Gemfile +3 -0
- data/Gemfile.rails-3.2 +1 -1
- data/lib/less/rails/helpers.rb +4 -2
- data/lib/less/rails/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.rails-3.2
CHANGED
data/lib/less/rails/helpers.rb
CHANGED
@@ -6,8 +6,10 @@ module Less
|
|
6
6
|
|
7
7
|
def self.register_rails_helper(name, &block)
|
8
8
|
tree = @loader.require('less/tree')
|
9
|
-
tree.functions[name] = lambda do |
|
10
|
-
|
9
|
+
tree.functions[name] = lambda do |*args|
|
10
|
+
# args: (this, node) v8 >= 0.10, otherwise (node)
|
11
|
+
raise ArgumentError, "missing node" if args.empty?
|
12
|
+
tree[:Anonymous].new block.call(tree, args.last)
|
11
13
|
end
|
12
14
|
end
|
13
15
|
|
data/lib/less/rails/version.rb
CHANGED
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:
|
4
|
+
hash: 5
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 2.2.
|
9
|
+
- 1
|
10
|
+
version: 2.2.1
|
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-
|
18
|
+
date: 2012-04-15 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: less
|