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 CHANGED
@@ -1,6 +1,11 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 2.2.1 - 04/15/2012
5
+
6
+ * Make it usable with therubyrhino (and older versions of therubyracer as well). Fixes #36.
7
+
8
+
4
9
  2.2.0 - 03/29/2012
5
10
 
6
11
  * Upgrade to therubyracer 0.10.x call semantics. Fixes #34.
data/Gemfile CHANGED
@@ -1,5 +1,8 @@
1
1
  eval File.read('Gemfile.rails-3.2')
2
2
 
3
+ gem "therubyracer", ">= 0.10.1", :require => nil, :platforms => :ruby
4
+ gem "therubyrhino", ">= 1.73.2", :require => nil, :platforms => :jruby
5
+
3
6
  group :test do
4
7
  if RUBY_PLATFORM =~ /darwin/
5
8
  gem 'rb-fsevent'
data/Gemfile.rails-3.2 CHANGED
@@ -6,4 +6,4 @@ deps = spec.dependencies.map { |dep| {:name => dep.name, :version => dep.require
6
6
  deps.reject! { |dep| dep[:name] =~ /actionpack|rails/ }
7
7
  deps.each { |dep| gem dep[:name], dep[:version] }
8
8
 
9
- gem 'rails', '3.2.0'
9
+ gem 'rails', '~> 3.2.2'
@@ -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 |this, node|
10
- tree[:Anonymous].new block.call(tree, node)
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
 
@@ -1,5 +1,5 @@
1
1
  module Less
2
2
  module Rails
3
- VERSION = "2.2.0"
3
+ VERSION = "2.2.1"
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 2
9
- - 0
10
- version: 2.2.0
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-03-29 00:00:00 Z
18
+ date: 2012-04-15 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: less