deano 1.0.0 → 1.1.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/README.md CHANGED
@@ -1,6 +1,8 @@
1
- # Deano::Template
1
+ # Deano
2
2
 
3
- TODO: Write a gem description
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
@@ -1,4 +1,11 @@
1
1
  require "deano/version"
2
2
 
3
3
  module Deano
4
+
5
+ class << self
6
+
7
+ attr_accessor :root
8
+
9
+ end
10
+
4
11
  end
data/lib/deano/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Deano
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -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
@@ -1,8 +1,6 @@
1
- class TemplateApp < Sinatra::Base
1
+ class TemplateApp < Deano::Base
2
2
  register Sinatra::Twitter::Bootstrap::Assets
3
3
 
4
- set :views, File.join(settings.views, "template_app")
5
-
6
4
  get "/" do
7
5
  erb :index
8
6
  end
@@ -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>
@@ -1,3 +1,11 @@
1
1
  body {
2
2
  padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
3
- }
3
+ }
4
+
5
+ #footer {
6
+ position: fixed;
7
+ bottom: 0px;
8
+ height: 60px;
9
+ background-color: #f5f5f5;
10
+ width: 100%;
11
+ }
@@ -2,7 +2,10 @@ require 'bundler'
2
2
  Bundler.setup
3
3
 
4
4
  require 'active_support/core_ext'
5
- require 'sinatra/base'
5
+ require 'deano/base'
6
+
7
+ Deano.root = File.dirname(__FILE__)
8
+
6
9
  require 'sinatra/twitter-bootstrap'
7
10
  require 'sprockets'
8
11
  require 'mongoid'
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.0.0
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