appbombado_startae 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/appbombado_startae.gemspec +1 -0
- data/lib/appbombado_startae/version.rb +1 -1
- data/lib/appbombado_startae.rb +2 -0
- data/lib/generators/appbombado/appbombado_generator.rb +12 -0
- data/lib/generators/appbombado/templates/application.coffee +1 -1
- data/lib/generators/appbombado/templates/application.html.slim +0 -12
- data/lib/generators/appbombado/templates/database.yml +3 -3
- data/lib/generators/appbombado/templates/layout.sass +0 -2
- data/lib/generators/appbombado/templates/routes.rb +58 -0
- data/lib/generators/appbombado_article/USAGE +8 -0
- data/lib/generators/appbombado_article/appbombado_generator.rb +18 -0
- data/lib/generators/appbombado_article/templates/application-admin.html.slim +31 -0
- data/lib/generators/appbombado_article/templates/application-admin.sass +28 -0
- data/lib/generators/appbombado_article/templates/layout-admin.sass +14 -0
- metadata +7 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9c17849ab77d60e12c7c7ccdd026c68f2ade4cb
|
4
|
+
data.tar.gz: 0bfd7db169c2b9618edb314bd775ced9c3707a99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7aa87002abbdcd7fb12e93f27a2c5420a498a6597361a6dc120c734e91f11d05794dc35e82f134f3852034077284338f09d2c809739562466599069351b9d5f8
|
7
|
+
data.tar.gz: b544ab32f1bce9b76399e37264b5f72277e72d344dd3cb020ea0662e6c3f7c8c852c1bdc870e4872330a1e73a842663ca4b5d3437da37927776d9a7dd298d726
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ TODO: Write a gem description
|
|
6
6
|
|
7
7
|
Add this line to your application's Gemfile:
|
8
8
|
|
9
|
-
gem "appbombado_startae", "~> 0.0.
|
9
|
+
gem "appbombado_startae", "~> 0.0.4"
|
10
10
|
|
11
11
|
And then execute:
|
12
12
|
|
@@ -21,7 +21,7 @@ Or install it yourself as:
|
|
21
21
|
rails new <nomedoapp>
|
22
22
|
|
23
23
|
insira na Gemfile:
|
24
|
-
gem "appbombado_startae", "~> 0.0.
|
24
|
+
gem "appbombado_startae", "~> 0.0.4"
|
25
25
|
|
26
26
|
bundle install
|
27
27
|
|
data/appbombado_startae.gemspec
CHANGED
data/lib/appbombado_startae.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
class AppbombadoGenerator < Rails::Generators::Base
|
2
2
|
source_root File.expand_path('../templates', __FILE__)
|
3
|
+
argument :app_name, :type => :string, :default => "app"
|
3
4
|
|
4
5
|
def generate_appbombado
|
5
6
|
|
@@ -54,5 +55,16 @@ def generate_appbombado
|
|
54
55
|
run "bower install bourbon"
|
55
56
|
run "bower install animate.css"
|
56
57
|
|
58
|
+
run "rails g controller home index"
|
59
|
+
|
60
|
+
remove_file "config/routes.rb"
|
61
|
+
copy_file "routes.rb", "config/routes.rb"
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
def file_name
|
66
|
+
app_name.underscore
|
57
67
|
end
|
68
|
+
|
58
69
|
end
|
70
|
+
|
@@ -14,18 +14,6 @@ html
|
|
14
14
|
|
15
15
|
|
16
16
|
body
|
17
|
-
.navbar.navbar-inverse.navbar-fixed-top
|
18
|
-
.container
|
19
|
-
.navbar-header
|
20
|
-
.navbar-brand App
|
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
17
|
.container.animated.fadeInDown
|
30
18
|
= yield
|
31
19
|
= javascript_include_tag "application", "data-turbolinks-track" => true
|
@@ -1,17 +1,17 @@
|
|
1
1
|
development:
|
2
2
|
adapter: postgresql
|
3
|
-
database:
|
3
|
+
database: <%= app_name %>_database_development
|
4
4
|
pool: 5
|
5
5
|
timeout: 5000
|
6
6
|
|
7
7
|
test:
|
8
8
|
adapter: postgresql
|
9
|
-
database:
|
9
|
+
database: <%= app_name %>_datbase_test
|
10
10
|
pool: 5
|
11
11
|
timeout: 5000
|
12
12
|
|
13
13
|
production:
|
14
14
|
adapter: postgresql
|
15
|
-
database:
|
15
|
+
database: <%= app_name %>_datbase_production
|
16
16
|
pool: 5
|
17
17
|
timeout: 5000
|
@@ -0,0 +1,58 @@
|
|
1
|
+
Teste::Application.routes.draw do
|
2
|
+
resources :articles
|
3
|
+
|
4
|
+
# The priority is based upon order of creation: first created -> highest priority.
|
5
|
+
# See how all your routes lay out with "rake routes".
|
6
|
+
|
7
|
+
# You can have the root of your site routed with "root"
|
8
|
+
root 'home#index'
|
9
|
+
|
10
|
+
# Example of regular route:
|
11
|
+
# get 'products/:id' => 'catalog#view'
|
12
|
+
|
13
|
+
# Example of named route that can be invoked with purchase_url(id: product.id)
|
14
|
+
# get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
|
15
|
+
|
16
|
+
# Example resource route (maps HTTP verbs to controller actions automatically):
|
17
|
+
# resources :products
|
18
|
+
|
19
|
+
# Example resource route with options:
|
20
|
+
# resources :products do
|
21
|
+
# member do
|
22
|
+
# get 'short'
|
23
|
+
# post 'toggle'
|
24
|
+
# end
|
25
|
+
#
|
26
|
+
# collection do
|
27
|
+
# get 'sold'
|
28
|
+
# end
|
29
|
+
# end
|
30
|
+
|
31
|
+
# Example resource route with sub-resources:
|
32
|
+
# resources :products do
|
33
|
+
# resources :comments, :sales
|
34
|
+
# resource :seller
|
35
|
+
# end
|
36
|
+
|
37
|
+
# Example resource route with more complex sub-resources:
|
38
|
+
# resources :products do
|
39
|
+
# resources :comments
|
40
|
+
# resources :sales do
|
41
|
+
# get 'recent', on: :collection
|
42
|
+
# end
|
43
|
+
# end
|
44
|
+
|
45
|
+
# Example resource route with concerns:
|
46
|
+
# concern :toggleable do
|
47
|
+
# post 'toggle'
|
48
|
+
# end
|
49
|
+
# resources :posts, concerns: :toggleable
|
50
|
+
# resources :photos, concerns: :toggleable
|
51
|
+
|
52
|
+
# Example resource route within a namespace:
|
53
|
+
# namespace :admin do
|
54
|
+
# # Directs /admin/products/* to Admin::ProductsController
|
55
|
+
# # (app/controllers/admin/products_controller.rb)
|
56
|
+
# resources :products
|
57
|
+
# end
|
58
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
class AppbombadoArticleGenerator < Rails::Generators::Base
|
2
|
+
source_root File.expand_path('../templates', __FILE__)
|
3
|
+
|
4
|
+
def generate_appbombado_article
|
5
|
+
|
6
|
+
|
7
|
+
run "rails g scaffold article title body:text published_at:datetime"
|
8
|
+
run "rake db:migrate"
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
# run "rails g scaffold-controller admin/article title body:text published_at:datetime"
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
@@ -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-admin", 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
|
+
.navbar-brand App
|
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,28 @@
|
|
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
|
25
|
+
@import bootstrap/dist/css/bootstrap
|
26
|
+
@import animate.css/animate
|
27
|
+
@import layout-admin
|
28
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: appbombado_startae
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bruno Santos Chagas
|
@@ -48,7 +48,13 @@ files:
|
|
48
48
|
- lib/generators/appbombado/templates/application.sass
|
49
49
|
- lib/generators/appbombado/templates/database.yml
|
50
50
|
- lib/generators/appbombado/templates/layout.sass
|
51
|
+
- lib/generators/appbombado/templates/routes.rb
|
51
52
|
- lib/generators/appbombado/templates/simple_form_bootstrap.rb
|
53
|
+
- lib/generators/appbombado_article/USAGE
|
54
|
+
- lib/generators/appbombado_article/appbombado_generator.rb
|
55
|
+
- lib/generators/appbombado_article/templates/application-admin.html.slim
|
56
|
+
- lib/generators/appbombado_article/templates/application-admin.sass
|
57
|
+
- lib/generators/appbombado_article/templates/layout-admin.sass
|
52
58
|
homepage: ''
|
53
59
|
licenses: []
|
54
60
|
metadata: {}
|