haml-edge 3.1.38 → 3.1.39

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.38
1
+ 3.1.39
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.38
1
+ 3.1.39
data/lib/haml/exec.rb CHANGED
@@ -700,7 +700,10 @@ END
700
700
  private
701
701
 
702
702
  def process_directory
703
- input = @options[:input] = @args.shift
703
+ unless input = @options[:input] = @args.shift
704
+ raise "Error: directory required when using --recursive."
705
+ end
706
+
704
707
  output = @options[:output] = @args.shift
705
708
  raise "Error: --from required when using --recursive." unless @options[:from]
706
709
  raise "Error: --to required when using --recursive." unless @options[:to]
@@ -12,7 +12,8 @@ unless defined?(Sass::RAILS_LOADED)
12
12
  if defined?(ActionController::Metal)
13
13
  # Rails >= 3.0
14
14
  require 'sass/plugin/rack'
15
- Rails.configuration.middleware.use(Sass::Plugin::Rack)
15
+ Rails.application.instance_variable_set('@app',
16
+ Sass::Plugin::Rack.new(Rails.application.app))
16
17
  elsif defined?(ActionController::Dispatcher) &&
17
18
  defined?(ActionController::Dispatcher.middleware)
18
19
  # Rails >= 2.3
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.38
4
+ version: 3.1.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-06-08 00:00:00 -04:00
14
+ date: 2010-06-09 00:00:00 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency