haml-edge 3.1.16 → 3.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/EDGE_GEM_VERSION +1 -1
 - data/VERSION +1 -1
 - data/lib/haml/util.rb +2 -0
 - data/lib/haml/version.rb +2 -2
 - data/lib/sass/plugin/rails.rb +7 -6
 - data/test/haml/util_test.rb +1 -0
 - metadata +2 -2
 
    
        data/EDGE_GEM_VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            3.1. 
     | 
| 
      
 1 
     | 
    
         
            +
            3.1.17
         
     | 
    
        data/VERSION
    CHANGED
    
    | 
         @@ -1 +1 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            3.1. 
     | 
| 
      
 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 `: 
     | 
| 
      
 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, : 
     | 
| 
      
 36 
     | 
    
         
            +
                #       :major => 3, :minor => 0, :teeny => -1,
         
     | 
| 
       37 
37 
     | 
    
         
             
                #       :prerelease => "beta",
         
     | 
| 
       38 
38 
     | 
    
         
             
                #       :prerelease_number => 1
         
     | 
| 
       39 
39 
     | 
    
         
             
                #     }
         
     | 
    
        data/lib/sass/plugin/rails.rb
    CHANGED
    
    | 
         @@ -1,12 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            unless defined?(Sass::RAILS_LOADED)
         
     | 
| 
       2 
2 
     | 
    
         
             
              Sass::RAILS_LOADED = true
         
     | 
| 
       3 
3 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
               
     | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
       6 
     | 
    
         
            -
             
     | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
             
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
      
 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
         
     | 
    
        data/test/haml/util_test.rb
    CHANGED
    
    | 
         @@ -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. 
     | 
| 
      
 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 
     | 
    
         
            +
            date: 2010-05-17 00:00:00 -04:00
         
     | 
| 
       15 
15 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       16 
16 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       17 
17 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |