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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3735ec2161e568ca9a99d0623706e956376891f4
4
- data.tar.gz: b379f5d5d757aad5d08364405094600c0a36ab13
3
+ metadata.gz: c8ca5249c323fad75adc2977224e4ab498ebca56
4
+ data.tar.gz: 41ba1096e075aea67801923b14d0a9ebde68ffa3
5
5
  SHA512:
6
- metadata.gz: bfd457cd5bd2bc23fd85ecf804e34bfba4db3d9de50638928b3d781d754a2a2306dc602681dc9f7483b9966a7f3034dc866a3793b21e381f3b072243a9c7a4e3
7
- data.tar.gz: e581487a7ed36f444401b024f92c483f6fc621947a8b63cb33f7151200468cfa08721d916e2182571292850a351c39af9471151f1b76821031a8e7b185d5b2a7
6
+ metadata.gz: 12dde9ecae12157b27197649441f76bf11e964e533b3533a3e4c24c2bdfb426da360b3fcb5989e51c8d566c8ed05ce3d10b6e6a895573f5281884858c76ba824
7
+ data.tar.gz: 8840dd5140d1e7d73b3ecf98e88890aaac50e42cd66183fb3876c73e32ed1dbdf902c3387c526ebc02ad5da0ceefbecbbba1bdbe019cbb7474b04fd10735d3de
@@ -1,3 +1,3 @@
1
1
  module AppbombadoFoundation
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -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.i18n.default_locale = 'pt-BR'
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.test_framework nil
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