appbombado_foundation 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 64053c71e639edd7b783a12c1db1d67c1e5a9b1a
4
- data.tar.gz: 4397520877da53f9acc5ffd3134387a37d2080fb
3
+ metadata.gz: bcac20bcfd44d02743ef7089af9268919aef435c
4
+ data.tar.gz: 9168bda1849a4e97f3383f07e3fd6b43b8a13596
5
5
  SHA512:
6
- metadata.gz: d653e70616cfcf00555d49810c5966501030949d3506710b33bad3bca3701d1ddd8b61a4e877a21ef245fb3eed09f67bcb68d76f5d0e0efc369a2b5ea8d24e23
7
- data.tar.gz: 949ffdcca5f5b89c34713c54f3104f2ec27c2c4b9f5e6a0dfbb00400600f9843ba3a40a719a55f528e25a256e3b9c10eced24b641fa268eab4d395a9fded710b
6
+ metadata.gz: 720e1660116ac778eb11ba2bd058e27a2eeca2f133c35b7263d04baba64fd4209a0155d1bace7cc311012e88ff5286e1a95d182e9abf898e7b5697dde1e264d7
7
+ data.tar.gz: c8093bfb8e774cce555ec0cace89a93344f3ae241bef953396f4a4f56efd9a62c7eed141726b56775596ecf3bb4d6dd907aacecf57e10b1decaa26e23dd70c84
@@ -1,3 +1,3 @@
1
1
  module AppbombadoFoundation
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -59,6 +59,9 @@ def generate_appbombado
59
59
 
60
60
  remove_file "app/assets/stylesheets/application.css"
61
61
  copy_file "application.sass", "app/assets/stylesheets/application.sass"
62
+
63
+ remove_file "app/helpers/application_helper.rb"
64
+ copy_file "application.sass", "app/helpers/application_helper.rb"
62
65
 
63
66
  copy_file "redactor-rails.css", "app/assets/stylesheets/redactor-rails.css"
64
67
 
@@ -70,6 +73,9 @@ def generate_appbombado
70
73
  run "bower install font-awesome"
71
74
 
72
75
  run "rails g controller home index"
76
+ remove_file "app/views/home/index.html.slim"
77
+ copy_file "index.html.slim", "app/views/home/index.html.slim"
78
+
73
79
 
74
80
  route "root 'home#index'"
75
81
 
@@ -1,9 +1,14 @@
1
1
  doctype 5
2
2
  html
3
3
  head
4
-
4
+ meta http-equiv="content-language" content="pt-br"
5
+ meta name="robots" content="index, follow"
5
6
  meta name="viewport" content="width=device-width, initial-scale=1.0"
6
- title <%= app_name %>
7
+ title <%= app_name %> | #{yield(:titlepage)}
8
+ meta name="description" content="#{ yield(:description)}"
9
+ meta name="keywords" content="#{ yield(:keywords)}"
10
+ meta property="og:image" content="#{ yield(:facebookimage)}"
11
+ link rel="author" href="#{ yield(:googleplus)}"
7
12
 
8
13
  = stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
9
14
  = csrf_meta_tags
@@ -0,0 +1,17 @@
1
+ module ApplicationHelper
2
+ def titlepage(page_title)
3
+ content_for(:titlepage) { page_title }
4
+ end
5
+ def description(description)
6
+ content_for(:description) { description }
7
+ end
8
+ def keywords(keywords)
9
+ content_for(:keywords) { keywords }
10
+ end
11
+ def facebookimage(facebook_image)
12
+ content_for(:facebookimage) { facebook_image }
13
+ end
14
+ def googleplus(google_plus)
15
+ content_for(:googleplus) { google_plus }
16
+ end
17
+ end
@@ -0,0 +1,9 @@
1
+ -if @article
2
+ - titlepage @article.try(:slug)
3
+ - description @article.try(:resumo)
4
+ - keywords @article.try(:keywords)
5
+ - facebookimage image_path(@article.background)
6
+ - googleplus @article.try(:googleplus)
7
+
8
+ h1 Hello World
9
+ p Teste
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appbombado_foundation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Santos Chagas
@@ -33,8 +33,10 @@ files:
33
33
  - lib/generators/appbombado/templates/application.coffee
34
34
  - lib/generators/appbombado/templates/application.html.slim
35
35
  - lib/generators/appbombado/templates/application.sass
36
+ - lib/generators/appbombado/templates/application_helper.rb
36
37
  - lib/generators/appbombado/templates/better_errors.rb
37
38
  - lib/generators/appbombado/templates/database.yml
39
+ - lib/generators/appbombado/templates/index.html.slim
38
40
  - lib/generators/appbombado/templates/layout.sass
39
41
  - lib/generators/appbombado/templates/redactor-rails.css
40
42
  - lib/generators/appbombado/templates/simple_form_bootstrap.rb