vitrine 0.0.3 → 0.0.4
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/README.rdoc +1 -0
 - data/lib/version.rb +1 -1
 - data/lib/vitrine.rb +7 -1
 - data/vitrine.gemspec +1 -1
 - metadata +2 -2
 
    
        data/README.rdoc
    CHANGED
    
    | 
         @@ -18,6 +18,7 @@ console. If you have CSS errors that prevent the SASS stylesheets from compiling 
     | 
|
| 
       18 
18 
     | 
    
         
             
            in front of your body element.
         
     | 
| 
       19 
19 
     | 
    
         | 
| 
       20 
20 
     | 
    
         
             
            Vitrine will not do any minification, packaging or baking at this point - it's meant to be like a display case.
         
     | 
| 
      
 21 
     | 
    
         
            +
            If you have a file called 'layout.erb' (or any other extension) it is going to be used as layout, but you can also do without it.
         
     | 
| 
       21 
22 
     | 
    
         | 
| 
       22 
23 
     | 
    
         
             
            == Contributing to vitrine
         
     | 
| 
       23 
24 
     | 
    
         | 
    
        data/lib/version.rb
    CHANGED
    
    
    
        data/lib/vitrine.rb
    CHANGED
    
    | 
         @@ -108,7 +108,13 @@ class Vitrine::App < Sinatra::Base 
     | 
|
| 
       108 
108 
     | 
    
         | 
| 
       109 
109 
     | 
    
         
             
                # Auto-pick the template engine out of the extension
         
     | 
| 
       110 
110 
     | 
    
         
             
                template_engine = File.extname(template_path).gsub(/^\./, '')
         
     | 
| 
       111 
     | 
    
         
            -
                 
     | 
| 
      
 111 
     | 
    
         
            +
                
         
     | 
| 
      
 112 
     | 
    
         
            +
                render(template_engine, File.read(template_path), :layout => get_layout)
         
     | 
| 
      
 113 
     | 
    
         
            +
              end
         
     | 
| 
      
 114 
     | 
    
         
            +
              
         
     | 
| 
      
 115 
     | 
    
         
            +
              def get_layout
         
     | 
| 
      
 116 
     | 
    
         
            +
                layouts = Dir.glob(File.join(settings.views, 'layout.*'))
         
     | 
| 
      
 117 
     | 
    
         
            +
                layouts.any? ? :layout : false
         
     | 
| 
       112 
118 
     | 
    
         
             
              end
         
     | 
| 
       113 
119 
     | 
    
         | 
| 
       114 
120 
     | 
    
         
             
              # Try to find SCSS replacement for missing CSS
         
     | 
    
        data/vitrine.gemspec
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: vitrine
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.0.4
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       7 
7 
     | 
    
         
             
            authors:
         
     | 
| 
         @@ -142,7 +142,7 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       142 
142 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       143 
143 
     | 
    
         
             
                  segments:
         
     | 
| 
       144 
144 
     | 
    
         
             
                  - 0
         
     | 
| 
       145 
     | 
    
         
            -
                  hash:  
     | 
| 
      
 145 
     | 
    
         
            +
                  hash: 3709566692180448024
         
     | 
| 
       146 
146 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
       147 
147 
     | 
    
         
             
              none: false
         
     | 
| 
       148 
148 
     | 
    
         
             
              requirements:
         
     |