appbombado_startae 0.0.3 → 0.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8e74bbbe598c251f4a8806af2b3ebb631d62445
4
- data.tar.gz: d73c6279d0b1ee9335e860726a72bbd90ca8c562
3
+ metadata.gz: f9c17849ab77d60e12c7c7ccdd026c68f2ade4cb
4
+ data.tar.gz: 0bfd7db169c2b9618edb314bd775ced9c3707a99
5
5
  SHA512:
6
- metadata.gz: 2ba1a780096714686a24dd25c77118b71296ce2b0bd20cf5b8ee99e54e2f1d5554799d0cfd0cf6f1573e83aee5b9bfd6d24140bf8fd29b0d4782f11d17ad5ddd
7
- data.tar.gz: 3df96d22bf4e7d4fdeac5f99a46f0d18b165e39647b933effc45be54971af42ece2e0784ca7fa76023c3047f8d91a77906e3da4f68c4a8078a9b0111d46bf5c2
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.3"
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.3"
24
+ gem "appbombado_startae", "~> 0.0.4"
25
25
 
26
26
  bundle install
27
27
 
@@ -2,6 +2,7 @@
2
2
  $:.push File.expand_path("../lib", __FILE__)
3
3
  require "appbombado_startae/version"
4
4
 
5
+
5
6
  Gem::Specification.new do |s|
6
7
  s.name = "appbombado_startae"
7
8
  s.version = AppbombadoStartae::VERSION
@@ -1,3 +1,3 @@
1
1
  module AppbombadoStartae
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -3,3 +3,5 @@ require "appbombado_startae/version"
3
3
  module AppbombadoStartae
4
4
  # Your code goes here...
5
5
  end
6
+
7
+
@@ -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
+
@@ -1,4 +1,4 @@
1
1
  #= require jquery
2
2
  #= require jquery_ujs
3
3
  #= require turbolinks
4
- #= require bootstrap/dist/js/bootstrap.js
4
+ #= require bootstrap/dist/js/bootstrap
@@ -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: app_database_development
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: app_datbase_test
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: app_datbase_production
15
+ database: <%= app_name %>_datbase_production
16
16
  pool: 5
17
17
  timeout: 5000
@@ -1,5 +1,3 @@
1
- body
2
- margin-top: 60px
3
1
 
4
2
  textarea.form-control
5
3
  height: 250px
@@ -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,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,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
+
@@ -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
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.3
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: {}