kelredd-sinatra-helpers 0.1.7 → 0.1.8
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/Rakefile
    CHANGED
    
    | 
         @@ -54,10 +54,3 @@ task :gemspec do 
     | 
|
| 
       54 
54 
     | 
    
         
             
              File.open(file, 'w') {|f| f << spec.to_ruby }
         
     | 
| 
       55 
55 
     | 
    
         
             
              puts "Created gemspec: #{file}"
         
     | 
| 
       56 
56 
     | 
    
         
             
            end
         
     | 
| 
       57 
     | 
    
         
            -
             
     | 
| 
       58 
     | 
    
         
            -
            require 'cucumber'
         
     | 
| 
       59 
     | 
    
         
            -
            require 'cucumber/rake/task'
         
     | 
| 
       60 
     | 
    
         
            -
             
     | 
| 
       61 
     | 
    
         
            -
            Cucumber::Rake::Task.new(:features) do |t|
         
     | 
| 
       62 
     | 
    
         
            -
              t.cucumber_opts = "test/features --format pretty" 
         
     | 
| 
       63 
     | 
    
         
            -
            end
         
     | 
| 
         @@ -1,15 +1,22 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require 'test_helper'
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
     | 
    
         
            -
            class  
     | 
| 
      
 3 
     | 
    
         
            +
            class LayoutTest < Test::Unit::TestCase
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
5 
     | 
    
         
             
              def app
         
     | 
| 
       6 
6 
     | 
    
         
             
                Sinatra::Application
         
     | 
| 
       7 
7 
     | 
    
         
             
              end
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
              context "The app" do
         
     | 
| 
      
 9 
     | 
    
         
            +
              context "The app's layout" do
         
     | 
| 
       10 
10 
     | 
    
         | 
| 
       11 
     | 
    
         
            -
                 
     | 
| 
      
 11 
     | 
    
         
            +
                before do
         
     | 
| 
       12 
12 
     | 
    
         
             
                  visit '/'
         
     | 
| 
      
 13 
     | 
    
         
            +
                end
         
     | 
| 
      
 14 
     | 
    
         
            +
             
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                # TODO: write better tests...
         
     | 
| 
      
 17 
     | 
    
         
            +
                # => this is just for show :)
         
     | 
| 
      
 18 
     | 
    
         
            +
                
         
     | 
| 
      
 19 
     | 
    
         
            +
                should "say hello" do
         
     | 
| 
       13 
20 
     | 
    
         
             
                  assert_contain "Hello from <%= @class_name %>!"
         
     | 
| 
       14 
21 
     | 
    
         
             
                end
         
     | 
| 
       15 
22 
     | 
    
         | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: kelredd-sinatra-helpers
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.8
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors: 
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Kelly Redding
         
     | 
| 
         @@ -9,7 +9,7 @@ autorequire: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            date:  
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2010-02-08 00:00:00 -06:00
         
     | 
| 
       13 
13 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
         @@ -41,7 +41,6 @@ files: 
     | 
|
| 
       41 
41 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/app.js.erb
         
     | 
| 
       42 
42 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/app.less.erb
         
     | 
| 
       43 
43 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/app.rb.erb
         
     | 
| 
       44 
     | 
    
         
            -
            - lib/sinatra_helpers/generator/file_templates/app_test.rb.erb
         
     | 
| 
       45 
44 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/boot.rb.erb
         
     | 
| 
       46 
45 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/Capfile.erb
         
     | 
| 
       47 
46 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/console.erb
         
     | 
| 
         @@ -56,6 +55,7 @@ files: 
     | 
|
| 
       56 
55 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/gitignore.erb
         
     | 
| 
       57 
56 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/index.html.erb.erb
         
     | 
| 
       58 
57 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/layout
         
     | 
| 
      
 58 
     | 
    
         
            +
            - lib/sinatra_helpers/generator/file_templates/layout_test.rb.erb
         
     | 
| 
       59 
59 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/model_test.rb.erb
         
     | 
| 
       60 
60 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/production.ru.erb
         
     | 
| 
       61 
61 
     | 
    
         
             
            - lib/sinatra_helpers/generator/file_templates/Rakefile.erb
         
     |