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 CHANGED
@@ -1 +1 @@
1
- 3.1.10
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
- `git checkout #{version}`
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
- `rm -rf test/rails`
395
+ sh %{rm -rf test/rails}
396
396
  puts "Checking out rails. Please wait."
397
- system("git clone git://github.com/rails/rails.git test/rails")
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
- system("git clone git://github.com/NZKoz/rails_xss.git test/plugins/rails_xss")
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.10
1
+ 3.1.11
@@ -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 13, e.backtrace[0].scan(/:(\d+)/).first.first.to_i
390
+ assert_equal 12, e.backtrace[0].scan(/:(\d+)/).first.first.to_i
392
391
  end
393
392
 
394
393
  class ActsLikeTag
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
  require File.dirname(__FILE__) + '/../test_helper'
3
- require 'haml/template'
4
3
  require 'sass/plugin'
5
4
  require File.dirname(__FILE__) + '/mocks/article'
6
5
 
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
@@ -7,6 +7,7 @@ $:.unshift lib_dir unless $:.include?(lib_dir)
7
7
  require 'haml'
8
8
  require 'sass'
9
9
 
10
+ require 'haml/template'
10
11
  Haml::Template.options[:ugly] = false
11
12
 
12
13
  Sass::RAILS_LOADED = true unless defined?(Sass::RAILS_LOADED)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.10
4
+ version: 3.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum