appbombado_foundation 0.0.8 → 0.0.9
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 +17 -8
- data/lib/generators/appbombado/templates/application.sass +4 -0
- data/lib/generators/appbombado/templates/font-awesome.css +1332 -0
- data/lib/generators/appbombado/templates/fonts/fontawesome-webfont.eot +0 -0
- data/lib/generators/appbombado/templates/fonts/fontawesome-webfont.svg +414 -0
- data/lib/generators/appbombado/templates/fonts/fontawesome-webfont.ttf +0 -0
- data/lib/generators/appbombado/templates/fonts/fontawesome-webfont.woff +0 -0
- metadata +7 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8ca5249c323fad75adc2977224e4ab498ebca56
|
4
|
+
data.tar.gz: 41ba1096e075aea67801923b14d0a9ebde68ffa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12dde9ecae12157b27197649441f76bf11e964e533b3533a3e4c24c2bdfb426da360b3fcb5989e51c8d566c8ed05ce3d10b6e6a895573f5281884858c76ba824
|
7
|
+
data.tar.gz: 8840dd5140d1e7d73b3ecf98e88890aaac50e42cd66183fb3876c73e32ed1dbdf902c3387c526ebc02ad5da0ceefbecbbba1bdbe019cbb7474b04fd10735d3de
|
@@ -7,12 +7,8 @@ def generate_appbombado
|
|
7
7
|
remove_file "Gemfile"
|
8
8
|
copy_file "Gemfile"
|
9
9
|
|
10
|
-
|
11
|
-
|
12
10
|
run "bundle install"
|
13
|
-
run "bundle update"
|
14
11
|
|
15
|
-
|
16
12
|
remove_file "config/database.yml"
|
17
13
|
template "database.yml", "config/database.yml"
|
18
14
|
run "rake db:create"
|
@@ -33,13 +29,21 @@ def generate_appbombado
|
|
33
29
|
|
34
30
|
|
35
31
|
application do
|
36
|
-
"config.
|
32
|
+
"config.assets.paths << Rails.root.join("app", "assets", "fonts")
|
33
|
+
|
34
|
+
config.i18n.default_locale = 'pt-BR'
|
37
35
|
config.time_zone = 'Brasilia'
|
38
36
|
|
37
|
+
config.generators.stylesheet_engine = :sass
|
38
|
+
config.assets.initialize_on_precompile = false
|
39
|
+
|
40
|
+
|
39
41
|
config.generators do |g|
|
40
42
|
g.assets false
|
41
43
|
g.helper false
|
42
|
-
g.
|
44
|
+
g.view_specs false
|
45
|
+
g.helper_specs false
|
46
|
+
g.controller_specs false
|
43
47
|
end"
|
44
48
|
end
|
45
49
|
|
@@ -57,6 +61,10 @@ def generate_appbombado
|
|
57
61
|
|
58
62
|
remove_file "app/assets/stylesheets/application.css"
|
59
63
|
copy_file "application.sass", "app/assets/stylesheets/application.sass"
|
64
|
+
|
65
|
+
copy_file "font-awesome.css", "app/assets/stylesheets/font-awesome.css"
|
66
|
+
|
67
|
+
directory 'app/assets/fonts', 'fonts'
|
60
68
|
|
61
69
|
remove_file "app/helpers/application_helper.rb"
|
62
70
|
copy_file "application_helper.rb", "app/helpers/application_helper.rb"
|
@@ -67,8 +75,6 @@ def generate_appbombado
|
|
67
75
|
|
68
76
|
run "bower install bourbon"
|
69
77
|
run "bower install animate.css"
|
70
|
-
|
71
|
-
run "bower install font-awesome"
|
72
78
|
|
73
79
|
run "rails g controller home index"
|
74
80
|
|
@@ -78,6 +84,9 @@ def generate_appbombado
|
|
78
84
|
|
79
85
|
route "root 'home#index'"
|
80
86
|
|
87
|
+
gsub_file 'production.rb', 'config.serve_static_assets = false', 'config.serve_static_assets = true'
|
88
|
+
gsub_file 'production.rb', 'config.assets.compile = false', 'config.assets.compile = true'
|
89
|
+
|
81
90
|
end
|
82
91
|
|
83
92
|
def file_name
|
@@ -1,3 +1,7 @@
|
|
1
|
+
@font-face
|
2
|
+
font-family: 'FontAwesome'
|
3
|
+
src: url(font-path('fontawesome-webfont.eot') + "?#iefix") format('embedded-opentype'), url(font-path('fontawesome-webfont.woff')) format('woff'), url(font-path('fontawesome-webfont.ttf')) format('truetype'), url(font-path('fontawesome-webfont.svg') + "#fontawesome-webfont") format('svg')
|
4
|
+
|
1
5
|
*
|
2
6
|
-webkit-box-sizing: border-box
|
3
7
|
-moz-box-sizing: border-box
|