haml-edge 2.3.4 → 2.3.5

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
- 2.3.4
1
+ 2.3.5
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.4
1
+ 2.3.5
@@ -51,6 +51,7 @@ module Sass::Tree
51
51
  return if invisible?
52
52
 
53
53
  content = (value.split("\n") + lines.map {|l| l.text})
54
+ return "/* */" if content.empty?
54
55
  content.map! {|l| (l.empty? ? "" : " ") + l}
55
56
  content.first.gsub!(/^ /, '')
56
57
  content.last.gsub!(%r{ ?\*/ *$}, '')
@@ -790,6 +790,14 @@ CSS
790
790
  SASS
791
791
  end
792
792
 
793
+ def test_empty_comment
794
+ assert_equal(<<CSS, render(<<SASS))
795
+ /* */
796
+ CSS
797
+ /*
798
+ SASS
799
+ end
800
+
793
801
  private
794
802
 
795
803
  def render(sass, options = {})
@@ -89,15 +89,6 @@ class SassPluginTest < Test::Unit::TestCase
89
89
  assert_renders_correctly('more1_with_line_comments', 'more1', :prefix => 'more_')
90
90
  end
91
91
 
92
- def test_rails_update
93
- File.delete(tempfile_loc('basic'))
94
- assert Sass::Plugin.stylesheet_needs_update?('basic', template_loc, tempfile_loc)
95
-
96
- ActionController::Base.new.process
97
-
98
- assert !Sass::Plugin.stylesheet_needs_update?('basic', template_loc, tempfile_loc)
99
- end
100
-
101
92
  def test_merb_update
102
93
  begin
103
94
  require 'merb'
@@ -207,8 +198,3 @@ class Sass::Engine
207
198
  old_render
208
199
  end
209
200
  end
210
-
211
- class ActionController::Base
212
- undef :sass_old_process
213
- def sass_old_process(*args); end
214
- end
data/test/test_helper.rb CHANGED
@@ -7,6 +7,8 @@ $:.unshift lib_dir unless $:.include?(lib_dir)
7
7
  require 'haml'
8
8
  require 'sass'
9
9
 
10
+ Sass::RAILS_LOADED = true
11
+
10
12
  # required because of Sass::Plugin
11
13
  unless defined? RAILS_ROOT
12
14
  RAILS_ROOT = '.'
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: 2.3.4
4
+ version: 2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -44,9 +44,9 @@ extensions: []
44
44
 
45
45
  extra_rdoc_files:
46
46
  - README.md
47
- - VERSION
48
- - MIT-LICENSE
49
47
  - REVISION
48
+ - MIT-LICENSE
49
+ - VERSION
50
50
  - VERSION_NAME
51
51
  - EDGE_GEM_VERSION
52
52
  files:
@@ -249,9 +249,9 @@ files:
249
249
  - init.rb
250
250
  - .yardopts
251
251
  - README.md
252
- - VERSION
253
- - MIT-LICENSE
254
252
  - REVISION
253
+ - MIT-LICENSE
254
+ - VERSION
255
255
  - VERSION_NAME
256
256
  - EDGE_GEM_VERSION
257
257
  has_rdoc: true