haml-edge 3.1.10 → 3.1.11
Sign up to get free protection for your applications and to get access to all the features.
- data/EDGE_GEM_VERSION +1 -1
- data/Rakefile +4 -4
- data/VERSION +1 -1
- data/test/haml/helper_test.rb +1 -2
- data/test/haml/template_test.rb +0 -1
- data/test/linked_rails.rb +7 -0
- data/test/test_helper.rb +1 -0
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.11
|
data/Rakefile
CHANGED
@@ -382,7 +382,7 @@ rails_versions << "v2.0.5" if RUBY_VERSION =~ /^1\.8/
|
|
382
382
|
|
383
383
|
def test_rails_version(version)
|
384
384
|
Dir.chdir "test/rails" do
|
385
|
-
|
385
|
+
sh %{git checkout #{version}}
|
386
386
|
end
|
387
387
|
puts "Testing Rails #{version}"
|
388
388
|
Rake::Task['test'].reenable
|
@@ -392,14 +392,14 @@ end
|
|
392
392
|
namespace :test do
|
393
393
|
desc "Test all supported versions of rails. This takes a while."
|
394
394
|
task :rails_compatibility do
|
395
|
-
|
395
|
+
sh %{rm -rf test/rails}
|
396
396
|
puts "Checking out rails. Please wait."
|
397
|
-
|
397
|
+
sh %{git clone git://github.com/rails/rails.git test/rails}
|
398
398
|
begin
|
399
399
|
rails_versions.each {|version| test_rails_version version}
|
400
400
|
|
401
401
|
puts "Checking out rails_xss. Please wait."
|
402
|
-
|
402
|
+
sh %{git clone git://github.com/NZKoz/rails_xss.git test/plugins/rails_xss}
|
403
403
|
test_rails_version(rails_versions.find {|s| s =~ /^v2\.3/})
|
404
404
|
ensure
|
405
405
|
`rm -rf test/rails`
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.11
|
data/test/haml/helper_test.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require File.dirname(__FILE__) + '/../test_helper'
|
3
|
-
require 'haml/template'
|
4
3
|
|
5
4
|
class ActionView::Base
|
6
5
|
def nested_tag
|
@@ -388,7 +387,7 @@ MESSAGE
|
|
388
387
|
render("- something_that_uses_haml_concat")
|
389
388
|
assert false, "Expected Haml::Error"
|
390
389
|
rescue Haml::Error => e
|
391
|
-
assert_equal
|
390
|
+
assert_equal 12, e.backtrace[0].scan(/:(\d+)/).first.first.to_i
|
392
391
|
end
|
393
392
|
|
394
393
|
class ActsLikeTag
|
data/test/haml/template_test.rb
CHANGED
data/test/linked_rails.rb
CHANGED
@@ -5,11 +5,18 @@ if File.exists?(linked_rails) && !$:.include?(linked_rails + '/activesupport/lib
|
|
5
5
|
puts "[ using linked Rails ]"
|
6
6
|
$:.unshift linked_rails + '/activesupport/lib'
|
7
7
|
$:.unshift linked_rails + '/actionpack/lib'
|
8
|
+
$:.unshift linked_rails + '/railties/lib'
|
8
9
|
end
|
9
10
|
require 'rubygems'
|
10
11
|
require 'action_controller'
|
11
12
|
require 'action_view'
|
12
13
|
|
14
|
+
begin
|
15
|
+
# Necessary for Rails 3
|
16
|
+
require 'rails'
|
17
|
+
rescue LoadError
|
18
|
+
end
|
19
|
+
|
13
20
|
ActionController::Base.logger = Logger.new(nil)
|
14
21
|
|
15
22
|
# Load plugins from test/plugins.
|
data/test/test_helper.rb
CHANGED