sprockets 2.0.2 → 2.0.3
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.
Potentially problematic release.
This version of sprockets might be problematic. Click here for more details.
    
        data/lib/sprockets/caching.rb
    CHANGED
    
    
| @@ -6,14 +6,21 @@ module Sprockets | |
| 6 6 | 
             
                  'application/javascript'
         | 
| 7 7 | 
             
                end
         | 
| 8 8 |  | 
| 9 | 
            +
                def self.default_namespace
         | 
| 10 | 
            +
                  'this.JST'
         | 
| 11 | 
            +
                end
         | 
| 12 | 
            +
             | 
| 9 13 | 
             
                def prepare
         | 
| 14 | 
            +
                  @namespace = self.class.default_namespace
         | 
| 10 15 | 
             
                end
         | 
| 11 16 |  | 
| 17 | 
            +
                attr_reader :namespace
         | 
| 18 | 
            +
             | 
| 12 19 | 
             
                def evaluate(scope, locals, &block)
         | 
| 13 20 | 
             
                  <<-JST
         | 
| 14 21 | 
             
            (function() {
         | 
| 15 | 
            -
               | 
| 16 | 
            -
               | 
| 22 | 
            +
              #{namespace} || (#{namespace} = {});
         | 
| 23 | 
            +
              #{namespace}[#{scope.logical_path.inspect}] = #{indent(data)};
         | 
| 17 24 | 
             
            }).call(this);
         | 
| 18 25 | 
             
                  JST
         | 
| 19 26 | 
             
                end
         | 
    
        data/lib/sprockets/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,13 +1,13 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification 
         | 
| 2 2 | 
             
            name: sprockets
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version 
         | 
| 4 | 
            -
              hash:  | 
| 4 | 
            +
              hash: 9
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
              segments: 
         | 
| 7 7 | 
             
              - 2
         | 
| 8 8 | 
             
              - 0
         | 
| 9 | 
            -
              -  | 
| 10 | 
            -
              version: 2.0. | 
| 9 | 
            +
              - 3
         | 
| 10 | 
            +
              version: 2.0.3
         | 
| 11 11 | 
             
            platform: ruby
         | 
| 12 12 | 
             
            authors: 
         | 
| 13 13 | 
             
            - Sam Stephenson
         | 
| @@ -16,7 +16,7 @@ autorequire: | |
| 16 16 | 
             
            bindir: bin
         | 
| 17 17 | 
             
            cert_chain: []
         | 
| 18 18 |  | 
| 19 | 
            -
            date: 2011-10- | 
| 19 | 
            +
            date: 2011-10-17 00:00:00 -05:00
         | 
| 20 20 | 
             
            default_executable: 
         | 
| 21 21 | 
             
            dependencies: 
         | 
| 22 22 | 
             
            - !ruby/object:Gem::Dependency 
         | 
| @@ -244,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 244 244 | 
             
            requirements: []
         | 
| 245 245 |  | 
| 246 246 | 
             
            rubyforge_project: sprockets
         | 
| 247 | 
            -
            rubygems_version: 1. | 
| 247 | 
            +
            rubygems_version: 1.5.2
         | 
| 248 248 | 
             
            signing_key: 
         | 
| 249 249 | 
             
            specification_version: 3
         | 
| 250 250 | 
             
            summary: Rack-based asset packaging system
         |