appbombado_startae 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4c66e821f193301afd3c1474eb5b9116076f7d6f
4
+ data.tar.gz: 2d7ff9788958eb9a6869bce7df561233171895f0
5
+ SHA512:
6
+ metadata.gz: 9ed9915bf75a222cd917ccae0c2b445e30539261db56870845d5bcf00bcfe404c8c720e9fdd428f5893773c3567f1e635de77aa2f1235e4e073631831b0af7d0
7
+ data.tar.gz: 3f9e854ed62d3d5f8812e5654a6651035d91927a55975d3f62062014ca23dcab2bf654525d6dc0bfc864aa7c215cda1adcef048e08ddcce935c559ef0dfb2ebc
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://rubygems.org"
2
+
3
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Bruno Santos Chagas
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,34 @@
1
+ # AppbombadoStartae
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'appbombado_startae', git: 'git://github.com/brunoprimo/appbombado_startae'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install appbombado_startae
18
+
19
+ ## Usage
20
+
21
+ rails new <nomedoapp>
22
+
23
+ insira na Gemfile:
24
+ gem 'appbombado_startae', git: 'git://github.com/brunoprimo/appbombado_startae'
25
+
26
+ rails g appbombado
27
+
28
+ ## Contributing
29
+
30
+ 1. Fork it
31
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
32
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
33
+ 4. Push to the branch (`git push origin my-new-feature`)
34
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "appbombado_startae/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "appbombado_startae"
7
+ s.version = AppbombadoStartae::VERSION
8
+ s.platform = Gem::Platform::RUBY
9
+ s.authors = ["Bruno Santos Chagas"]
10
+ s.email = ["brunoprimo@gmail.com"]
11
+ s.homepage = ""
12
+ s.summary = %q{App Bombando generator.}
13
+ s.description = %q{Bombando seu app startae.}
14
+
15
+ s.add_development_dependency "rspec"
16
+
17
+ s.rubyforge_project = "appbombado_startae"
18
+
19
+ s.files = `git ls-files`.split("\n")
20
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
21
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
+ s.require_paths = ["lib"]
23
+ end
@@ -0,0 +1,3 @@
1
+ module AppbombadoStartae
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,5 @@
1
+ require "appbombado_startae/version"
2
+
3
+ module AppbombadoStartae
4
+ # Your code goes here...
5
+ end
@@ -0,0 +1,8 @@
1
+ Description:
2
+ Explain the generator app bombado
3
+
4
+ Example:
5
+ rails generate appbombado Thing app bombado
6
+
7
+ This will create:
8
+ what/will/it/create
@@ -0,0 +1,56 @@
1
+ class AppbombadoGenerator < Rails::Generators::Base
2
+ source_root File.expand_path('../templates', __FILE__)
3
+
4
+ def generate_appbombado
5
+
6
+ remove_file "Gemfile"
7
+ copy_file "Gemfile"
8
+ inside Rails.root do
9
+ run "bundle install"
10
+ end
11
+ remove_file "config/database.yml"
12
+ copy_file "database.yml", "config/database.yml"
13
+
14
+ inside Rails.root do
15
+ run "rake db:create"
16
+ end
17
+
18
+ run "rails g simple_form:install --bootstrap"
19
+ remove_file "config/initializers/simple_form_bootstrap.rb"
20
+ copy_file "simple_form_bootstrap.rb", "config/initializers/simple_form_bootstrap.rb"
21
+
22
+ copy_file ".bowerrc"
23
+ run "bundle exec guard init"
24
+ run "rails g start:heroku"
25
+ run "rails g start:heroku_wake_up"
26
+ run "rails g start:locales"
27
+ run "rails g start:slim"
28
+ run "rails g start:unicorn"
29
+ application do
30
+ "config.i18n.default_locale = 'pt-BR'
31
+ config.time_zone = 'Brasilia'
32
+
33
+ config.generators do |g|
34
+ g.assets false
35
+ g.helper false
36
+ g.test_framework nil
37
+ end"
38
+ end
39
+
40
+ remove_file "app/views/layouts/application.html.erb"
41
+ copy_file "application.html.slim", "app/views/layouts/application.html.slim"
42
+
43
+ remove_file "app/assets/javascripts/application.js"
44
+ copy_file "application.coffee", "app/assets/javascripts/application.coffee"
45
+
46
+ remove_file "app/assets/stylesheets/application.css"
47
+ copy_file "application.sass", "app/assets/stylesheets/application.sass"
48
+
49
+ copy_file "layout.sass", "app/assets/stylesheets/layout.sass"
50
+
51
+ run "bower install bootstrap"
52
+ run "bower install bourbon"
53
+ run "bower install animate.css"
54
+
55
+ end
56
+ end
@@ -0,0 +1,3 @@
1
+ {
2
+ "directory": "vendor/assets/components"
3
+ }
@@ -0,0 +1,76 @@
1
+ source 'http://rubygems.org'
2
+ ruby '2.0.0'
3
+
4
+ gem 'rails', '4.0.0'
5
+
6
+ # database
7
+ gem 'pg', '~> 0.16.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
+
16
+
17
+ # turbolinks
18
+ gem 'turbolinks', '~> 1.3.0'
19
+ gem 'jquery-turbolinks', '~> 2.0.1'
20
+
21
+ # json
22
+ # gem 'jbuilder', '~> 1.2'
23
+
24
+ # server
25
+ # gem 'unicorn', '~> 4.6.2'
26
+ # gem 'rack-timeout', '~> 0.0.4'
27
+
28
+ # static pages
29
+ gem 'high_voltage', '~> 1.2.4'
30
+
31
+ # authentication
32
+ gem 'devise', '~> 3.1.0'
33
+
34
+ #forms
35
+ gem 'simple_form', '~> 3.0.0'
36
+
37
+ # pagination
38
+ gem 'kaminari', '~> 0.14.1'
39
+
40
+
41
+
42
+ # urls
43
+ gem 'friendly_id', '~> 5.0.0.rc2'
44
+
45
+ group :production do
46
+ gem 'rails_12factor'
47
+ gem 'rufus-scheduler', '~> 2.0.19'
48
+ end
49
+
50
+ group :development do
51
+ gem 'foreman', '~> 0.63.0'
52
+ gem 'better_errors', '~> 0.9.0'
53
+ gem 'binding_of_caller', '~> 0.7.1'
54
+ gem 'xray-rails', '~> 0.1.6'
55
+ gem 'ffaker'
56
+ gem 'simplecov', '~> 0.7.1', require: false
57
+ gem 'start'
58
+ gem 'guard'
59
+ gem 'guard-livereload'
60
+ end
61
+
62
+ group :test, :development do
63
+ gem 'rspec-rails', '~> 2.14.0'
64
+ gem 'pry-rails', '~> 0.3.2'
65
+ end
66
+
67
+ gem "mini_magick"
68
+ gem "carrierwave"
69
+ gem "fog"
70
+ gem "mail_form"
71
+ gem 'redactor-rails'
72
+
73
+
74
+
75
+
76
+ # gem 'start', path: '../start'
@@ -0,0 +1,4 @@
1
+ #= require jquery
2
+ #= require jquery_ujs
3
+ #= require turbolinks
4
+ #= require bootstrap/dist/js/bootstrap.js
@@ -0,0 +1,31 @@
1
+ doctype 5
2
+ html
3
+ head
4
+
5
+ meta name="viewport" content="width=device-width, initial-scale=1.0"
6
+ title asdasdadas
7
+
8
+ = stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
9
+ = csrf_meta_tags
10
+
11
+ /[if lt IE 9]>
12
+ = javascript_include_tag "bootstrap/assets/js/html5shiv.js", "data-turbolinks-track" => true
13
+ = javascript_include_tag "bootstrap/assets/js/respond.min.js", "data-turbolinks-track" => true
14
+
15
+
16
+ body
17
+ .navbar.navbar-inverse.navbar-fixed-top
18
+ .container
19
+ .navbar-header
20
+ =link_to 'Blog', root_path, class: 'navbar-brand'
21
+ navbar-collapse
22
+ ul.nav.navbar-nav
23
+ - if @articles
24
+ li.active
25
+ =link_to "Artigos", articles_path
26
+ - else
27
+ li
28
+ =link_to "Artigos", articles_path
29
+ .container.animated.fadeInDown
30
+ = yield
31
+ = javascript_include_tag "application", "data-turbolinks-track" => true
@@ -0,0 +1,27 @@
1
+
2
+ *
3
+ -webkit-box-sizing: border-box
4
+ -moz-box-sizing: border-box
5
+ -o-box-sizing: border-box
6
+ -ms-box-sizing: border-box
7
+ box-sizing: border-box
8
+
9
+ .transicao
10
+ -webkit-transition: all 0.2s 0.1s ease
11
+ -moz-transition: all 0.2s 0.1s ease
12
+ -o-transition: all 0.2s 0.1s ease
13
+ -ms-transition: all 0.2s 0.1s ease
14
+ transition: all 0.2s 0.1s ease
15
+
16
+ .cresce
17
+ -webkit-transform: scale(1.1)
18
+ -moz-transform: scale(1.1)
19
+ -o-transform: scale(1.1)
20
+ -ms-transform: scale(1.1)
21
+ transform: scale(1.1)
22
+
23
+
24
+ @import bourbon/app/assets/stylesheets/bourbon.scss
25
+ @import bootstrap/dist/css/bootstrap.css
26
+ @import animate.css/animate.css
27
+ @import layout
@@ -0,0 +1,17 @@
1
+ development:
2
+ adapter: postgresql
3
+ database: app_database_development
4
+ pool: 5
5
+ timeout: 5000
6
+
7
+ test:
8
+ adapter: postgresql
9
+ database: app_datbase_test
10
+ pool: 5
11
+ timeout: 5000
12
+
13
+ production:
14
+ adapter: postgresql
15
+ database: app_datbase_production
16
+ pool: 5
17
+ timeout: 5000
@@ -0,0 +1,14 @@
1
+ body
2
+ margin-top: 60px
3
+
4
+ textarea.form-control
5
+ height: 250px
6
+
7
+ select.form-control
8
+ width: 120px
9
+ display: inline-block
10
+
11
+ .btn
12
+ @extend .transicao
13
+ &:hover
14
+ @extend .cresce
@@ -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,75 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: appbombado_startae
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-10-22 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rspec
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: Bombando seu app startae.
28
+ email:
29
+ - brunoprimo@gmail.com
30
+ executables: []
31
+ extensions: []
32
+ extra_rdoc_files: []
33
+ files:
34
+ - .gitignore
35
+ - Gemfile
36
+ - LICENSE.txt
37
+ - README.md
38
+ - Rakefile
39
+ - appbombado_startae.gemspec
40
+ - lib/appbombado_startae.rb
41
+ - lib/appbombado_startae/version.rb
42
+ - lib/generators/appbombado/USAGE
43
+ - lib/generators/appbombado/appbombado_generator.rb
44
+ - lib/generators/appbombado/templates/.bowerrc
45
+ - lib/generators/appbombado/templates/Gemfile
46
+ - lib/generators/appbombado/templates/application.coffee
47
+ - lib/generators/appbombado/templates/application.html.slim
48
+ - lib/generators/appbombado/templates/application.sass
49
+ - lib/generators/appbombado/templates/database.yml
50
+ - lib/generators/appbombado/templates/layout.sass
51
+ - lib/generators/appbombado/templates/simple_form_bootstrap.rb
52
+ homepage: ''
53
+ licenses: []
54
+ metadata: {}
55
+ post_install_message:
56
+ rdoc_options: []
57
+ require_paths:
58
+ - lib
59
+ required_ruby_version: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '0'
64
+ required_rubygems_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ requirements: []
70
+ rubyforge_project: appbombado_startae
71
+ rubygems_version: 2.0.6
72
+ signing_key:
73
+ specification_version: 4
74
+ summary: App Bombando generator.
75
+ test_files: []