sinatra-template 1.1.0 → 1.2.0

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.
@@ -22,7 +22,7 @@ module Sinatra
22
22
  end
23
23
 
24
24
  def clean_string(f)
25
- f.gsub(Sinatra.template_dir, @app_dir).gsub("my_app", self.underscored).gsub("MyApp", self.classified)
25
+ f.gsub(Sinatra.template_dir, @app_dir).gsub("template_app", self.underscored).gsub("TemplateApp", self.classified)
26
26
  end
27
27
 
28
28
  end
@@ -1,5 +1,5 @@
1
1
  module Sinatra
2
2
  module Template
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -0,0 +1,10 @@
1
+ class TemplateApp < Sinatra::Base
2
+ register Sinatra::Twitter::Bootstrap::Assets
3
+
4
+ set :views, File.join(settings.views, "template_app")
5
+
6
+ get "/" do
7
+ erb :index
8
+ end
9
+
10
+ end
@@ -0,0 +1 @@
1
+ TemplateApp!
@@ -2,7 +2,7 @@
2
2
  <html lang="en">
3
3
  <head>
4
4
  <meta charset="utf-8">
5
- <title>MyApp</title>
5
+ <title>TemplateApp</title>
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
7
  <meta name="description" content="">
8
8
  <meta name="author" content="">
@@ -14,6 +14,6 @@ end
14
14
  use Rack::MethodOverride
15
15
 
16
16
  map "/" do
17
- run MyApp
17
+ run TemplateApp
18
18
  end
19
19
 
@@ -1,13 +1,13 @@
1
1
  development:
2
2
  sessions:
3
3
  default:
4
- database: my_app_development
4
+ database: template_app_development
5
5
  hosts:
6
6
  - localhost:27017
7
7
  test:
8
8
  sessions:
9
9
  default:
10
- database: my_app_test
10
+ database: template_app_test
11
11
  hosts:
12
12
  - localhost:27017
13
13
 
@@ -1,15 +1,15 @@
1
1
  require 'spec_helper'
2
2
 
3
- describe MyApp do
3
+ describe TemplateApp do
4
4
 
5
5
  def app
6
- MyApp
6
+ TemplateApp
7
7
  end
8
8
 
9
9
  it "says hello" do
10
10
  get '/'
11
11
  last_response.should be_ok
12
- last_response.body.should match("MyApp!")
12
+ last_response.body.should match("TemplateApp!")
13
13
  end
14
14
 
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-template
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -65,9 +65,9 @@ files:
65
65
  - template_app/Procfile.development
66
66
  - template_app/README.md
67
67
  - template_app/Rakefile
68
- - template_app/apps/my_app.rb
69
- - template_app/apps/views/my_app/index.erb
70
- - template_app/apps/views/my_app/layout.erb
68
+ - template_app/apps/template_app.rb
69
+ - template_app/apps/views/template_app/index.erb
70
+ - template_app/apps/views/template_app/layout.erb
71
71
  - template_app/assets/javascripts/application.js.coffee
72
72
  - template_app/assets/stylesheets/application.css.scss
73
73
  - template_app/assets/templates/.git-keep
@@ -76,7 +76,7 @@ files:
76
76
  - template_app/mongoid.yml
77
77
  - template_app/public/.git-keep
78
78
  - template_app/setup.rb
79
- - template_app/spec/apps/my_app_spec.rb
79
+ - template_app/spec/apps/template_app_spec.rb
80
80
  - template_app/spec/spec_helper.rb
81
81
  - template_app/vendor/assets/javascripts/backbone.js
82
82
  - template_app/vendor/assets/javascripts/jquery.js
@@ -1,10 +0,0 @@
1
- class MyApp < Sinatra::Base
2
- register Sinatra::Twitter::Bootstrap::Assets
3
-
4
- set :views, File.join(settings.views, "my_app")
5
-
6
- get "/" do
7
- erb :index
8
- end
9
-
10
- end
@@ -1 +0,0 @@
1
- MyApp!