appbombado_foundation 0.0.1
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.
- checksums.yaml +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/appbombado_foundation.gemspec +23 -0
- data/lib/appbombado_foundation/version.rb +3 -0
- data/lib/appbombado_foundation.rb +5 -0
- data/lib/generators/appbombado/USAGE +8 -0
- data/lib/generators/appbombado/appbombado_generator.rb +73 -0
- data/lib/generators/appbombado/templates/.bowerrc +3 -0
- data/lib/generators/appbombado/templates/Gemfile +73 -0
- data/lib/generators/appbombado/templates/application.coffee +5 -0
- data/lib/generators/appbombado/templates/application.html.slim +15 -0
- data/lib/generators/appbombado/templates/application.sass +26 -0
- data/lib/generators/appbombado/templates/better_errors.rb +1 -0
- data/lib/generators/appbombado/templates/database.yml +17 -0
- data/lib/generators/appbombado/templates/layout.sass +1 -0
- data/lib/generators/appbombado/templates/simple_form_bootstrap.rb +45 -0
- metadata +62 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9b9b2871ce994eaac12f00bab2323614f62ffc9a
|
4
|
+
data.tar.gz: 24ef4c9edadca01204b7ea9270e38fdf97e31eae
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d4c0a87b979b648e9c3e25f14baa350f8519bd6eff27efc9a4dda1187035abc1e2ed67e659f7c9f2e042f6fe54de6e780e941112c5dbc3ab24d1bc76df27071e
|
7
|
+
data.tar.gz: c22bbff86a67b3d888f33d7b61bfa2d731bccadf3bd9045f2516b1692f34d40b4aad7b25f3929abfcd5db48c368fb7edaf65d5524b00d7a1e540e037a8ea857f
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 brunoprimo
|
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,29 @@
|
|
1
|
+
# AppbombadoFoundation
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'appbombado_foundation'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install appbombado_foundation
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "appbombado_foundation/version"
|
4
|
+
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = "appbombado_foundation"
|
8
|
+
s.version = AppbombadoFoundation::VERSION
|
9
|
+
s.platform = Gem::Platform::RUBY
|
10
|
+
s.authors = ["Bruno Santos Chagas"]
|
11
|
+
s.email = ["brunoprimo@gmail.com"]
|
12
|
+
s.homepage = ""
|
13
|
+
s.summary = %q{App Bombando generator.}
|
14
|
+
s.description = %q{Bombando seu app startae.}
|
15
|
+
|
16
|
+
s.rubyforge_project = "appbombado_foundation"
|
17
|
+
|
18
|
+
s.files = `git ls-files`.split("\n")
|
19
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
20
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
21
|
+
s.require_paths = ["lib"]
|
22
|
+
end
|
23
|
+
|
@@ -0,0 +1,73 @@
|
|
1
|
+
class AppbombadoGenerator < Rails::Generators::Base
|
2
|
+
source_root File.expand_path('../templates', __FILE__)
|
3
|
+
argument :app_name, :type => :string, :default => "app"
|
4
|
+
|
5
|
+
def generate_appbombado
|
6
|
+
|
7
|
+
remove_file "Gemfile"
|
8
|
+
copy_file "Gemfile"
|
9
|
+
|
10
|
+
run "bundle update"
|
11
|
+
run "bundle install"
|
12
|
+
|
13
|
+
|
14
|
+
remove_file "config/database.yml"
|
15
|
+
template "database.yml", "config/database.yml"
|
16
|
+
run "rake db:create"
|
17
|
+
|
18
|
+
copy_file ".bowerrc"
|
19
|
+
|
20
|
+
run "bundle exec guard init"
|
21
|
+
|
22
|
+
run "rails g start:slim"
|
23
|
+
|
24
|
+
run "rails g start:heroku"
|
25
|
+
run "rails g start:heroku_wake_up"
|
26
|
+
run "rails g start:unicorn"
|
27
|
+
|
28
|
+
run "rails g start:locales"
|
29
|
+
|
30
|
+
|
31
|
+
application do
|
32
|
+
"config.i18n.default_locale = 'pt-BR'
|
33
|
+
config.time_zone = 'Brasilia'
|
34
|
+
|
35
|
+
config.generators do |g|
|
36
|
+
g.assets false
|
37
|
+
g.helper false
|
38
|
+
g.test_framework nil
|
39
|
+
end"
|
40
|
+
end
|
41
|
+
|
42
|
+
run "rails g simple_form:install"
|
43
|
+
run "rails g foundation:install"
|
44
|
+
|
45
|
+
|
46
|
+
copy_file "better_errors.rb", "config/initializers/better_errors.rb"
|
47
|
+
|
48
|
+
remove_file "app/views/layouts/application.html.erb"
|
49
|
+
template "application.html.slim", "app/views/layouts/application.html.slim"
|
50
|
+
|
51
|
+
remove_file "app/assets/javascripts/application.js"
|
52
|
+
copy_file "application.coffee", "app/assets/javascripts/application.coffee"
|
53
|
+
|
54
|
+
remove_file "app/assets/stylesheets/application.css"
|
55
|
+
copy_file "application.sass", "app/assets/stylesheets/application.sass"
|
56
|
+
|
57
|
+
copy_file "layout.sass", "app/assets/stylesheets/layout.sass"
|
58
|
+
|
59
|
+
run "bower install bourbon"
|
60
|
+
run "bower install animate.css"
|
61
|
+
|
62
|
+
run "rails g controller home index"
|
63
|
+
|
64
|
+
route "root 'home#index'"
|
65
|
+
|
66
|
+
end
|
67
|
+
|
68
|
+
def file_name
|
69
|
+
app_name.underscore
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
73
|
+
|
@@ -0,0 +1,73 @@
|
|
1
|
+
source 'http://rubygems.org'
|
2
|
+
ruby '2.0.0'
|
3
|
+
|
4
|
+
gem 'rails', '4.0.1'
|
5
|
+
|
6
|
+
# database
|
7
|
+
gem 'pg', '~> 0.17.0'
|
8
|
+
|
9
|
+
# assets
|
10
|
+
gem 'sass-rails', '~> 4.0.0'
|
11
|
+
gem 'uglifier', '~> 1.3.0'
|
12
|
+
gem 'coffee-rails', '~> 4.0.0'
|
13
|
+
gem 'jquery-rails', '~> 3.0.4'
|
14
|
+
|
15
|
+
# turbolinks
|
16
|
+
gem 'turbolinks', '~> 1.3.0'
|
17
|
+
gem 'jquery-turbolinks', '~> 2.0.1'
|
18
|
+
|
19
|
+
# json
|
20
|
+
# gem 'jbuilder', '~> 1.2'
|
21
|
+
|
22
|
+
# server
|
23
|
+
# gem 'unicorn', '~> 4.6.2'
|
24
|
+
# gem 'rack-timeout', '~> 0.0.4'
|
25
|
+
|
26
|
+
# static pages
|
27
|
+
gem 'high_voltage', '~> 1.2.4'
|
28
|
+
|
29
|
+
# authentication
|
30
|
+
gem 'devise', '~> 3.1.0'
|
31
|
+
|
32
|
+
#forms
|
33
|
+
gem 'simple_form', '~> 3.0.0'
|
34
|
+
|
35
|
+
# pagination
|
36
|
+
gem 'kaminari', '~> 0.14.1'
|
37
|
+
|
38
|
+
# urls
|
39
|
+
gem 'friendly_id', '~> 5.0.1'
|
40
|
+
|
41
|
+
group :production do
|
42
|
+
gem 'rails_12factor'
|
43
|
+
gem 'rufus-scheduler', '~> 2.0.19'
|
44
|
+
end
|
45
|
+
|
46
|
+
group :development do
|
47
|
+
gem 'foreman', '~> 0.63.0'
|
48
|
+
gem 'better_errors', '~> 0.9.0'
|
49
|
+
gem 'binding_of_caller', '~> 0.7.1'
|
50
|
+
gem 'xray-rails', '~> 0.1.6'
|
51
|
+
gem 'ffaker'
|
52
|
+
gem 'simplecov', '~> 0.7.1', require: false
|
53
|
+
gem 'start', '~> 0.0.10'
|
54
|
+
gem 'guard'
|
55
|
+
gem 'guard-livereload'
|
56
|
+
gem 'foundation-rails'
|
57
|
+
gem "appbombado_foundation"
|
58
|
+
end
|
59
|
+
|
60
|
+
group :test, :development do
|
61
|
+
gem 'rspec-rails', '~> 2.14.0'
|
62
|
+
gem 'pry-rails', '~> 0.3.2'
|
63
|
+
end
|
64
|
+
|
65
|
+
gem "mini_magick"
|
66
|
+
gem "carrierwave"
|
67
|
+
gem "fog"
|
68
|
+
gem 'unf'
|
69
|
+
gem 'redactor-rails'
|
70
|
+
gem 'roadie'
|
71
|
+
|
72
|
+
|
73
|
+
# gem 'start', path: '../start'
|
@@ -0,0 +1,15 @@
|
|
1
|
+
doctype 5
|
2
|
+
html
|
3
|
+
head
|
4
|
+
|
5
|
+
meta name="viewport" content="width=device-width, initial-scale=1.0"
|
6
|
+
title <%= app_name %>
|
7
|
+
|
8
|
+
= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
|
9
|
+
= csrf_meta_tags
|
10
|
+
|
11
|
+
|
12
|
+
body
|
13
|
+
.container.animated.fadeInDown
|
14
|
+
= yield
|
15
|
+
= javascript_include_tag "application", "data-turbolinks-track" => true
|
@@ -0,0 +1,26 @@
|
|
1
|
+
*
|
2
|
+
-webkit-box-sizing: border-box
|
3
|
+
-moz-box-sizing: border-box
|
4
|
+
-o-box-sizing: border-box
|
5
|
+
-ms-box-sizing: border-box
|
6
|
+
box-sizing: border-box
|
7
|
+
|
8
|
+
.transicao
|
9
|
+
-webkit-transition: all 0.2s 0.1s ease
|
10
|
+
-moz-transition: all 0.2s 0.1s ease
|
11
|
+
-o-transition: all 0.2s 0.1s ease
|
12
|
+
-ms-transition: all 0.2s 0.1s ease
|
13
|
+
transition: all 0.2s 0.1s ease
|
14
|
+
|
15
|
+
.cresce
|
16
|
+
-webkit-transform: scale(1.1)
|
17
|
+
-moz-transform: scale(1.1)
|
18
|
+
-o-transform: scale(1.1)
|
19
|
+
-ms-transform: scale(1.1)
|
20
|
+
transform: scale(1.1)
|
21
|
+
|
22
|
+
|
23
|
+
@import bourbon/app/assets/stylesheets/bourbon.scss
|
24
|
+
@import foundation_and_overrides.scss
|
25
|
+
@import animate.css/animate.css
|
26
|
+
@import layout
|
@@ -0,0 +1 @@
|
|
1
|
+
BetterErrors.editor = :sublime if defined? BetterErrors
|
@@ -0,0 +1,17 @@
|
|
1
|
+
development:
|
2
|
+
adapter: postgresql
|
3
|
+
database: <%= app_name %>_database_development
|
4
|
+
pool: 5
|
5
|
+
timeout: 5000
|
6
|
+
|
7
|
+
test:
|
8
|
+
adapter: postgresql
|
9
|
+
database: <%= app_name %>_datbase_test
|
10
|
+
pool: 5
|
11
|
+
timeout: 5000
|
12
|
+
|
13
|
+
production:
|
14
|
+
adapter: postgresql
|
15
|
+
database: <%= app_name %>_datbase_production
|
16
|
+
pool: 5
|
17
|
+
timeout: 5000
|
@@ -0,0 +1 @@
|
|
1
|
+
|
@@ -0,0 +1,45 @@
|
|
1
|
+
# Use this setup block to configure all options available in SimpleForm.
|
2
|
+
SimpleForm.setup do |config|
|
3
|
+
config.wrappers :bootstrap, :tag => 'div', :class => 'form-group', :error_class => 'has-error' do |b|
|
4
|
+
b.use :html5
|
5
|
+
b.use :placeholder
|
6
|
+
b.use :label
|
7
|
+
b.use :input, :wrap_with => { :tag => 'div', :class => 'controls' }
|
8
|
+
b.use :error, :wrap_with => { :tag => 'span', :class => 'help-block' }
|
9
|
+
b.use :hint, :wrap_with => { :tag => 'p', :class => 'help-block' }
|
10
|
+
end
|
11
|
+
config.form_class = "form-vertical"
|
12
|
+
config.input_class = "form-control"
|
13
|
+
|
14
|
+
config.wrappers :prepend, tag: 'div', class: "control-group", error_class: 'error' do |b|
|
15
|
+
b.use :html5
|
16
|
+
b.use :placeholder
|
17
|
+
b.use :label
|
18
|
+
b.wrapper tag: 'div', class: 'controls' do |input|
|
19
|
+
input.wrapper tag: 'div', class: 'input-prepend' do |prepend|
|
20
|
+
prepend.use :input
|
21
|
+
end
|
22
|
+
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
23
|
+
input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
config.wrappers :append, tag: 'div', class: "control-group", error_class: 'error' do |b|
|
28
|
+
b.use :html5
|
29
|
+
b.use :placeholder
|
30
|
+
b.use :label
|
31
|
+
b.wrapper tag: 'div', class: 'controls' do |input|
|
32
|
+
input.wrapper tag: 'div', class: 'input-append' do |append|
|
33
|
+
append.use :input
|
34
|
+
end
|
35
|
+
input.use :hint, wrap_with: { tag: 'span', class: 'help-block' }
|
36
|
+
input.use :error, wrap_with: { tag: 'span', class: 'help-inline' }
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# Wrappers for forms and inputs using the Twitter Bootstrap toolkit.
|
41
|
+
# Check the Bootstrap docs (http://twitter.github.com/bootstrap)
|
42
|
+
# to learn about the different styles for forms and inputs,
|
43
|
+
# buttons and other elements.
|
44
|
+
config.default_wrapper = :bootstrap
|
45
|
+
end
|
metadata
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: appbombado_foundation
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Bruno Santos Chagas
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-11-22 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: Bombando seu app startae.
|
14
|
+
email:
|
15
|
+
- brunoprimo@gmail.com
|
16
|
+
executables: []
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- .gitignore
|
21
|
+
- Gemfile
|
22
|
+
- LICENSE.txt
|
23
|
+
- README.md
|
24
|
+
- Rakefile
|
25
|
+
- appbombado_foundation.gemspec
|
26
|
+
- lib/appbombado_foundation.rb
|
27
|
+
- lib/appbombado_foundation/version.rb
|
28
|
+
- lib/generators/appbombado/USAGE
|
29
|
+
- lib/generators/appbombado/appbombado_generator.rb
|
30
|
+
- lib/generators/appbombado/templates/.bowerrc
|
31
|
+
- lib/generators/appbombado/templates/Gemfile
|
32
|
+
- lib/generators/appbombado/templates/application.coffee
|
33
|
+
- lib/generators/appbombado/templates/application.html.slim
|
34
|
+
- lib/generators/appbombado/templates/application.sass
|
35
|
+
- lib/generators/appbombado/templates/better_errors.rb
|
36
|
+
- lib/generators/appbombado/templates/database.yml
|
37
|
+
- lib/generators/appbombado/templates/layout.sass
|
38
|
+
- lib/generators/appbombado/templates/simple_form_bootstrap.rb
|
39
|
+
homepage: ''
|
40
|
+
licenses: []
|
41
|
+
metadata: {}
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options: []
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - '>='
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - '>='
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubyforge_project: appbombado_foundation
|
58
|
+
rubygems_version: 2.1.10
|
59
|
+
signing_key:
|
60
|
+
specification_version: 4
|
61
|
+
summary: App Bombando generator.
|
62
|
+
test_files: []
|