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.
- data/lib/sinatra/commands/name_command.rb +1 -1
- data/lib/sinatra/template/version.rb +1 -1
- data/template_app/apps/template_app.rb +10 -0
- data/template_app/apps/views/template_app/index.erb +1 -0
- data/template_app/apps/views/{my_app → template_app}/layout.erb +1 -1
- data/template_app/config.ru +1 -1
- data/template_app/mongoid.yml +2 -2
- data/template_app/spec/apps/{my_app_spec.rb → template_app_spec.rb} +3 -3
- metadata +5 -5
- data/template_app/apps/my_app.rb +0 -10
- data/template_app/apps/views/my_app/index.erb +0 -1
@@ -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("
|
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
|
@@ -0,0 +1 @@
|
|
1
|
+
TemplateApp!
|
data/template_app/config.ru
CHANGED
data/template_app/mongoid.yml
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
development:
|
2
2
|
sessions:
|
3
3
|
default:
|
4
|
-
database:
|
4
|
+
database: template_app_development
|
5
5
|
hosts:
|
6
6
|
- localhost:27017
|
7
7
|
test:
|
8
8
|
sessions:
|
9
9
|
default:
|
10
|
-
database:
|
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
|
3
|
+
describe TemplateApp do
|
4
4
|
|
5
5
|
def app
|
6
|
-
|
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("
|
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.
|
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/
|
69
|
-
- template_app/apps/views/
|
70
|
-
- template_app/apps/views/
|
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/
|
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
|
data/template_app/apps/my_app.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
MyApp!
|