deano 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -2
- data/lib/deano/base.rb +22 -0
- data/lib/deano/deano.rb +7 -0
- data/lib/deano/version.rb +1 -1
- data/template_app/Gemfile.lock +2 -0
- data/template_app/apps/template_app.rb +1 -3
- data/template_app/apps/views/{template_app → shared}/layout.erb +9 -0
- data/template_app/assets/stylesheets/application.css.scss +9 -1
- data/template_app/setup.rb +4 -1
- metadata +3 -2
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
|
-
# Deano
|
1
|
+
# Deano
|
2
2
|
|
3
|
-
|
3
|
+
A starter template and generators for Sinatra. This project is _incredibly_ opinionated. It will set up an asset pipeline using Sprockets. It sets up Twitter Bootstrap, RSpec, Mongoid, and Backbone as well.
|
4
|
+
|
5
|
+
Use at your own risk.
|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
data/lib/deano/base.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
require_relative 'deano'
|
2
|
+
require 'sinatra/base'
|
3
|
+
|
4
|
+
module Deano
|
5
|
+
class Base < Sinatra::Base
|
6
|
+
|
7
|
+
class << self
|
8
|
+
|
9
|
+
def inherited(klass)
|
10
|
+
super
|
11
|
+
klass.set :root, Deano.root
|
12
|
+
klass.set :views, [File.join(Deano.root, "apps", "views"), File.join(Deano.root, "apps", "views", "shared"), File.join(Deano.root, "apps", "views", klass.name.underscore.gsub(/(_app$)/, ''))]
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
def find_template(views, name, engine, &block)
|
18
|
+
Array(views).each { |v| super(v, name, engine, &block) }
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
data/lib/deano/deano.rb
CHANGED
data/lib/deano/version.rb
CHANGED
data/template_app/Gemfile.lock
CHANGED
@@ -19,6 +19,7 @@ GEM
|
|
19
19
|
execjs
|
20
20
|
coffee-script-source (1.4.0)
|
21
21
|
daemons (1.1.9)
|
22
|
+
deano (1.0.0)
|
22
23
|
diff-lcs (1.1.3)
|
23
24
|
eco (1.0.0)
|
24
25
|
coffee-script
|
@@ -85,6 +86,7 @@ PLATFORMS
|
|
85
86
|
DEPENDENCIES
|
86
87
|
activesupport
|
87
88
|
coffee-script
|
89
|
+
deano
|
88
90
|
eco
|
89
91
|
foreman
|
90
92
|
mongoid
|
@@ -47,5 +47,14 @@
|
|
47
47
|
|
48
48
|
</div> <!-- /container -->
|
49
49
|
|
50
|
+
|
51
|
+
<div id="footer">
|
52
|
+
<div class='container'>
|
53
|
+
<p class="muted credit">
|
54
|
+
Powered by <a href='https://github.com/markbates/deano' target='_blank'>Deano</a>
|
55
|
+
</p>
|
56
|
+
</div>
|
57
|
+
</div>
|
58
|
+
|
50
59
|
</body>
|
51
60
|
</html>
|
data/template_app/setup.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -43,6 +43,7 @@ files:
|
|
43
43
|
- Rakefile
|
44
44
|
- bin/deano
|
45
45
|
- deano.gemspec
|
46
|
+
- lib/deano/base.rb
|
46
47
|
- lib/deano/commands.rb
|
47
48
|
- lib/deano/commands/app_destroyer_command.rb
|
48
49
|
- lib/deano/commands/app_generator_command.rb
|
@@ -63,8 +64,8 @@ files:
|
|
63
64
|
- template_app/Procfile.development
|
64
65
|
- template_app/Rakefile
|
65
66
|
- template_app/apps/template_app.rb
|
67
|
+
- template_app/apps/views/shared/layout.erb
|
66
68
|
- template_app/apps/views/template_app/index.erb
|
67
|
-
- template_app/apps/views/template_app/layout.erb
|
68
69
|
- template_app/assets/javascripts/application.js.coffee
|
69
70
|
- template_app/assets/javascripts/template_app.js.coffee
|
70
71
|
- template_app/assets/stylesheets/application.css.scss
|