haml-edge 3.1.16 → 3.1.17

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.16
1
+ 3.1.17
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.16
1
+ 3.1.17
data/lib/haml/util.rb CHANGED
@@ -219,6 +219,8 @@ module Haml
219
219
  def caller_info(entry = caller[1])
220
220
  info = entry.scan(/^(.*?):(-?.*?)(?::.*`(.+)')?$/).first
221
221
  info[1] = info[1].to_i
222
+ # This is added by Rubinius to designate a block, but we don't care about it.
223
+ info[2].sub!(/ \{\}\Z/, '') if info[2]
222
224
  info
223
225
  end
224
226
 
data/lib/haml/version.rb CHANGED
@@ -25,7 +25,7 @@ module Haml
25
25
  #
26
26
  # If a prerelease version of Haml is being used,
27
27
  # the `:string` and `:number` fields will reflect the full version
28
- # (e.g. `"2.2.beta.1"`), and the `:tiny` field will be `-1`.
28
+ # (e.g. `"2.2.beta.1"`), and the `:teeny` field will be `-1`.
29
29
  # A `:prerelease` key will contain the name of the prerelease (e.g. `"beta"`),
30
30
  # and a `:prerelease_number` key will contain the rerelease number.
31
31
  # For example:
@@ -33,7 +33,7 @@ module Haml
33
33
  # {
34
34
  # :string => "3.0.beta.1",
35
35
  # :number => "3.0.beta.1",
36
- # :major => 3, :minor => 0, :tiny => -1,
36
+ # :major => 3, :minor => 0, :teeny => -1,
37
37
  # :prerelease => "beta",
38
38
  # :prerelease_number => 1
39
39
  # }
@@ -1,12 +1,13 @@
1
1
  unless defined?(Sass::RAILS_LOADED)
2
2
  Sass::RAILS_LOADED = true
3
3
 
4
- Sass::Plugin.options.merge!(:template_location => Haml::Util.rails_root + '/public/stylesheets/sass',
5
- :css_location => Haml::Util.rails_root + '/public/stylesheets',
6
- :cache_location => Haml::Util.rails_root + '/tmp/sass-cache',
7
- :always_check => Haml::Util.rails_env == "development",
8
- :quiet => Haml::Util.rails_env != "production",
9
- :full_exception => Haml::Util.rails_env != "production")
4
+ # Reverse-merging (we're in Rails, anyway) so we dont' clobber what's already been defined further up-stream
5
+ Sass::Plugin.options.reverse_merge!(:template_location => Haml::Util.rails_root + '/public/stylesheets/sass',
6
+ :css_location => Haml::Util.rails_root + '/public/stylesheets',
7
+ :cache_location => Haml::Util.rails_root + '/tmp/sass-cache',
8
+ :always_check => Haml::Util.rails_env == "development",
9
+ :quiet => Haml::Util.rails_env != "production",
10
+ :full_exception => Haml::Util.rails_env != "production")
10
11
 
11
12
  if defined?(ActionController::Metal)
12
13
  # Rails >= 3.0
@@ -211,6 +211,7 @@ class UtilTest < Test::Unit::TestCase
211
211
  assert_equal(["(haml)", 12, "blah"], caller_info("(haml):12: in `blah'"))
212
212
  assert_equal(["", 12, "boop"], caller_info(":12: in `boop'"))
213
213
  assert_equal(["/tmp/foo.rb", -12, "fizzle"], caller_info("/tmp/foo.rb:-12: in `fizzle'"))
214
+ assert_equal(["/tmp/foo.rb", 12, "fizzle"], caller_info("/tmp/foo.rb:12: in `fizzle {}'"))
214
215
  end
215
216
 
216
217
  def test_def_static_method
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.16
4
+ version: 3.1.17
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-05-14 00:00:00 -04:00
14
+ date: 2010-05-17 00:00:00 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency