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 +4 -4
- data/lib/appbombado_foundation/version.rb +1 -1
- data/lib/generators/appbombado/appbombado_generator.rb +6 -0
- data/lib/generators/appbombado/templates/application.html.slim +7 -2
- data/lib/generators/appbombado/templates/application_helper.rb +17 -0
- data/lib/generators/appbombado/templates/index.html.slim +9 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcac20bcfd44d02743ef7089af9268919aef435c
|
4
|
+
data.tar.gz: 9168bda1849a4e97f3383f07e3fd6b43b8a13596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 720e1660116ac778eb11ba2bd058e27a2eeca2f133c35b7263d04baba64fd4209a0155d1bace7cc311012e88ff5286e1a95d182e9abf898e7b5697dde1e264d7
|
7
|
+
data.tar.gz: c8093bfb8e774cce555ec0cace89a93344f3ae241bef953396f4a4f56efd9a62c7eed141726b56775596ecf3bb4d6dd907aacecf57e10b1decaa26e23dd70c84
|
@@ -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
|
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.
|
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
|