bootsaas 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +48 -0
- data/Rakefile +2 -0
- data/bootsaas.gemspec +23 -0
- data/lib/bootsaas/version.rb +3 -0
- data/lib/bootsaas.rb +5 -0
- data/lib/generators/bootsaas/install_generator.rb +33 -0
- data/lib/generators/bootsaas/templates/assets/images/banner-bg.jpg +0 -0
- data/lib/generators/bootsaas/templates/assets/images/dog.png +0 -0
- data/lib/generators/bootsaas/templates/assets/images/intro-bg.jpg +0 -0
- data/lib/generators/bootsaas/templates/assets/images/ipad.png +0 -0
- data/lib/generators/bootsaas/templates/assets/images/phones.png +0 -0
- data/lib/generators/bootsaas/templates/assets/javascripts/bootstrap.js +2306 -0
- data/lib/generators/bootsaas/templates/assets/javascripts/bootstrap.min.js +7 -0
- data/lib/generators/bootsaas/templates/assets/javascripts/static_pages.coffee +3 -0
- data/lib/generators/bootsaas/templates/assets/stylesheets/bootstrap.css +6566 -0
- data/lib/generators/bootsaas/templates/assets/stylesheets/bootstrap.min.css +5 -0
- data/lib/generators/bootsaas/templates/assets/stylesheets/landing-page.css.scss +169 -0
- data/lib/generators/bootsaas/templates/assets/stylesheets/static_pages.scss +3 -0
- data/lib/generators/bootsaas/templates/controllers/static_pages_controller.rb +9 -0
- data/lib/generators/bootsaas/templates/font-awesome/css/font-awesome.css +1672 -0
- data/lib/generators/bootsaas/templates/font-awesome/css/font-awesome.min.css +4 -0
- data/lib/generators/bootsaas/templates/font-awesome/fonts/FontAwesome.otf +0 -0
- data/lib/generators/bootsaas/templates/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/lib/generators/bootsaas/templates/font-awesome/fonts/fontawesome-webfont.svg +520 -0
- data/lib/generators/bootsaas/templates/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/lib/generators/bootsaas/templates/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/bordered-pulled.less +16 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/core.less +11 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/fixed-width.less +6 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/font-awesome.less +17 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/icons.less +552 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/larger.less +13 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/list.less +19 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/mixins.less +25 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/path.less +14 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/rotated-flipped.less +20 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/spinning.less +29 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/stacked.less +20 -0
- data/lib/generators/bootsaas/templates/font-awesome/less/variables.less +561 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_bordered-pulled.scss +16 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_core.scss +11 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_fixed-width.scss +6 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_icons.scss +552 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_larger.scss +13 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_list.scss +19 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_mixins.scss +25 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_path.scss +14 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_rotated-flipped.scss +20 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_spinning.scss +29 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_stacked.scss +20 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/_variables.scss +561 -0
- data/lib/generators/bootsaas/templates/font-awesome/scss/font-awesome.scss +17 -0
- data/lib/generators/bootsaas/templates/fonts/glyphicons-halflings-regular.eot +0 -0
- data/lib/generators/bootsaas/templates/fonts/glyphicons-halflings-regular.svg +288 -0
- data/lib/generators/bootsaas/templates/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/lib/generators/bootsaas/templates/fonts/glyphicons-halflings-regular.woff +0 -0
- data/lib/generators/bootsaas/templates/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/lib/generators/bootsaas/templates/helpers/static_pages_helper.rb +2 -0
- data/lib/generators/bootsaas/templates/layouts/pages.html.erb +69 -0
- data/lib/generators/bootsaas/templates/test/controllers/.keep +0 -0
- data/lib/generators/bootsaas/templates/test/controllers/static_pages_controller_test.rb +14 -0
- data/lib/generators/bootsaas/templates/views/coming_soon.html.erb +22 -0
- data/lib/generators/bootsaas/templates/views/index.html.erb +96 -0
- metadata +140 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b4ce83c787ba7fa8f46857c60af946bf1d2d65c5
|
4
|
+
data.tar.gz: 38cc1fd65168f510eefcba67e623e243e96c4d49
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 771b31369dbdc626b8a9232f2d7783153888e902f8adf843cc4345cd7f019de1dba8a40d4ea9adb2c97a3939a81604bdb1871a422c09faf82971ca17b236631a
|
7
|
+
data.tar.gz: 70fd797efb38f93db13c99befd633b9dd70a897bdc8201fc48193073810bd7925f1100d1e8fc3a7b3f958f95e4af2b417c1579de835e8695666be161796dd6f9
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2015 Spencer Dixon
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
# BootSaaS
|
2
|
+
|
3
|
+
Bootstrap your start up! BootSaaS sets up your application and generates basic layouts to get your app started. Just create a blank rails app, add the gem and follow the installation instructions. Forget about the setup, concentrate on building the meat of your startup.
|
4
|
+
|
5
|
+
### What it does
|
6
|
+
|
7
|
+
- Sets up Bootstrap
|
8
|
+
- Sets up a static pages controller, layouts, template views and partials for your front facing pages
|
9
|
+
- Creates a simple home page and a coming soon page
|
10
|
+
- Adds rails 12 factor gem for assets precompilation on heroku
|
11
|
+
- Sets up routes for your new pages
|
12
|
+
- Adds tests!
|
13
|
+
|
14
|
+
## Installation
|
15
|
+
|
16
|
+
Add this line to your application's Gemfile (You may want to fix the version):
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
gem 'bootsaas'
|
20
|
+
```
|
21
|
+
|
22
|
+
And then run:
|
23
|
+
|
24
|
+
$ bundle
|
25
|
+
|
26
|
+
Or install it yourself as:
|
27
|
+
|
28
|
+
$ gem install bootsaas
|
29
|
+
|
30
|
+
Then run:
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
rails g bootsaas:install
|
34
|
+
```
|
35
|
+
|
36
|
+
BootSaaS will create a static pages controller for the front end of your app and a 'coming soon' page to direct signups to. It's all bootstrap so you can hop in and get tweaking straight away! Drop in your google analytics, mailchimp form, and edit the sass for customisation.
|
37
|
+
|
38
|
+
## With thanks
|
39
|
+
|
40
|
+
Thanks to http://startbootstrap.com for the sweet landing page template
|
41
|
+
|
42
|
+
## Contributing
|
43
|
+
|
44
|
+
1. Fork it ( https://github.com/[my-github-username]/bootsaas/fork )
|
45
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
46
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
47
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
48
|
+
5. Create a new Pull Request with nice documentation of your changes
|
data/Rakefile
ADDED
data/bootsaas.gemspec
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'bootsaas/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "bootsaas"
|
8
|
+
spec.version = Bootsaas::VERSION
|
9
|
+
spec.authors = ["Spencer Dixon"]
|
10
|
+
spec.email = ["spencerlloyddixon@gmail.com"]
|
11
|
+
spec.summary = "BootSaaS sets up your application and generates basic layouts to get your app started"
|
12
|
+
spec.description = "BootSaaS sets up your application and generates basic layouts to get your app started"
|
13
|
+
spec.homepage = "https://github.com/spencerldixon/BootSaaS"
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0")
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_development_dependency "bundler", "~> 1.7"
|
22
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
23
|
+
end
|
data/lib/bootsaas.rb
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
require 'rails/generators'
|
2
|
+
module Bootsaas
|
3
|
+
class InstallGenerator < Rails::Generators::Base
|
4
|
+
source_root File.expand_path("../templates", __FILE__)
|
5
|
+
|
6
|
+
def copy_assets
|
7
|
+
directory "assets", "app/assets"
|
8
|
+
directory "controllers", "app/controllers"
|
9
|
+
directory "helpers", "app/helpers"
|
10
|
+
directory "test", "test"
|
11
|
+
directory "layouts", "app/views/layouts"
|
12
|
+
directory "views", "app/views/static_pages"
|
13
|
+
end
|
14
|
+
|
15
|
+
def add_routes
|
16
|
+
insert_into_file 'config/routes.rb', :after => "Rails.application.routes.draw do" do
|
17
|
+
"\n # BootSaaS routes for home page and coming soon landing page\n root 'static_pages#index'\n get 'coming_soon', to: 'static_pages#coming_soon', as: 'coming_soon'\n"
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
def add_gems
|
22
|
+
append_to_file 'Gemfile' do
|
23
|
+
"\ngem 'rails_12factor', group: :production"
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def add_padding_for_navbar
|
28
|
+
append_to_file 'app/assets/stylesheets/application.css' do
|
29
|
+
"body { padding-top: 50px; }"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
33
|
+
end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|