blueberry_rails 0.4.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +5 -5
  2. data/.circleci/config.yml +47 -0
  3. data/.eslintrc +21 -0
  4. data/.hound.yml +0 -3
  5. data/.rubocop.yml +22 -13
  6. data/.ruby-version +1 -1
  7. data/README.md +1 -53
  8. data/blueberry_rails.gemspec +2 -2
  9. data/lib/blueberry_rails/app_builder.rb +45 -74
  10. data/lib/blueberry_rails/generators/app_generator.rb +21 -25
  11. data/lib/blueberry_rails/version.rb +3 -3
  12. data/spec/blueberry_rails_spec.rb +7 -23
  13. data/templates/Gemfile_custom.erb +24 -39
  14. data/templates/Procfile +1 -0
  15. data/templates/app.json.erb +2 -2
  16. data/templates/circle.yml.erb +68 -10
  17. data/templates/config/initializers/translation_engine.rb +1 -1
  18. data/templates/gitignore_custom.erb +7 -5
  19. data/templates/puma.rb +2 -3
  20. data/templates/spec/controllers/root_controller_spec.rb +2 -4
  21. data/templates/spec/drivers.rb +16 -0
  22. data/templates/spec/factories/administrators.rb +2 -2
  23. data/templates/spec/factories/users.rb +2 -2
  24. data/templates/spec/factories_spec.rb +3 -3
  25. data/templates/spec/factory_bot_syntax.rb +3 -0
  26. data/templates/spec/spec_helper.rb +0 -7
  27. data/templates/views/layouts/admin.html.slim.erb +3 -3
  28. data/templates/views/layouts/application.html.slim.erb +3 -3
  29. data/templates/views/layouts/mailer.html.slim.erb +7 -0
  30. metadata +13 -68
  31. data/circle.yml +0 -5
  32. data/templates/admin_assets/javascripts/admin.coffee +0 -6
  33. data/templates/admin_assets/javascripts/admin/.keep +0 -0
  34. data/templates/admin_assets/stylesheets/admin.sass +0 -4
  35. data/templates/admin_assets/stylesheets/admin/.keep +0 -0
  36. data/templates/assets/icons/_font_icons.scss +0 -18
  37. data/templates/assets/images/blueberry-logo.png +0 -0
  38. data/templates/assets/javascripts/application.coffee +0 -6
  39. data/templates/assets/javascripts/common/.keep +0 -0
  40. data/templates/assets/javascripts/frontend/.keep +0 -0
  41. data/templates/assets/stylesheets/application.sass +0 -9
  42. data/templates/assets/stylesheets/frontend/base/buttons.sass +0 -3
  43. data/templates/assets/stylesheets/frontend/base/typo.sass +0 -3
  44. data/templates/assets/stylesheets/frontend/common/bootstrap-ms.sass +0 -128
  45. data/templates/assets/stylesheets/frontend/common/bootstrap-override.sass +0 -3
  46. data/templates/assets/stylesheets/frontend/common/bootstrap.sass +0 -50
  47. data/templates/assets/stylesheets/frontend/common/variables.sass +0 -37
  48. data/templates/assets/stylesheets/frontend/components/.keep +0 -0
  49. data/templates/assets/stylesheets/frontend/components/blocks.sass +0 -19
  50. data/templates/assets/stylesheets/frontend/components/navbar.sass +0 -0
  51. data/templates/assets/stylesheets/frontend/layout/body.sass +0 -3
  52. data/templates/assets/stylesheets/frontend/layout/footer.sass +0 -3
  53. data/templates/assets/stylesheets/frontend/layout/header.sass +0 -3
  54. data/templates/assets/stylesheets/frontend/pages/.keep +0 -0
  55. data/templates/assets/stylesheets/frontend/third-party/includes.sass +0 -1
  56. data/templates/assets/stylesheets/frontend/utils/functions.sass +0 -23
  57. data/templates/assets/stylesheets/frontend/utils/make-columns.sass +0 -67
  58. data/templates/assets/stylesheets/frontend/utils/mixins.sass +0 -29
  59. data/templates/assets/stylesheets/frontend/utils/render-to.sass +0 -66
  60. data/templates/assets/stylesheets/frontend/utils/renderto-debug.sass +0 -22
  61. data/templates/gulp/application.js.coffee +0 -11
  62. data/templates/gulp/application.sass +0 -10
  63. data/templates/gulp/config.coffee +0 -47
  64. data/templates/gulp/global.coffee +0 -3
  65. data/templates/gulp/global.sass +0 -8
  66. data/templates/gulp/gulp_helper.rb +0 -16
  67. data/templates/gulp/gulpfile.js +0 -20
  68. data/templates/gulp/message.coffee +0 -1
  69. data/templates/gulp/package.json +0 -53
  70. data/templates/gulp/rev_manifest.rb +0 -5
  71. data/templates/gulp/tasks/browserSync.coffee +0 -6
  72. data/templates/gulp/tasks/browserify.coffee +0 -50
  73. data/templates/gulp/tasks/build.coffee +0 -25
  74. data/templates/gulp/tasks/clean.coffee +0 -6
  75. data/templates/gulp/tasks/default.coffee +0 -3
  76. data/templates/gulp/tasks/fontIcons/generateIconSass.coffee +0 -23
  77. data/templates/gulp/tasks/fontIcons/index.coffee +0 -9
  78. data/templates/gulp/tasks/fontIcons/template.sass +0 -33
  79. data/templates/gulp/tasks/images.coffee +0 -12
  80. data/templates/gulp/tasks/rev/index.coffee +0 -12
  81. data/templates/gulp/tasks/rev/rev-assets.coffee +0 -11
  82. data/templates/gulp/tasks/rev/rev-font-workaround.coffee +0 -49
  83. data/templates/gulp/tasks/sass.coffee +0 -24
  84. data/templates/gulp/tasks/watch.coffee +0 -14
  85. data/templates/gulp/tasks/watchify.coffee +0 -6
  86. data/templates/gulp/util/bundleLogger.coffee +0 -23
  87. data/templates/gulp/util/handleErrors.coffee +0 -11
  88. data/templates/secret_token.rb.erb +0 -18
  89. data/templates/spec/factory_girl_syntax.rb +0 -3
  90. data/templates/tasks/icons.rake +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c406dea7cfbeac218cb081773eeffd0a27c31f95
4
- data.tar.gz: 371ddadce54b93bc4881e398a2529261cb004cdb
2
+ SHA256:
3
+ metadata.gz: 4fbb8c6e103d826c985348415655e945ea6e12ca3462a7c420baa131a0a36e0a
4
+ data.tar.gz: 0e39bce765bc81dcdd4c0f6e6fd31501c396d779f52ef2de6a85768db7c33ac2
5
5
  SHA512:
6
- metadata.gz: 9c0d5bb28b507c0591e3734d02da80c9527297e3431389021d969dfe67026c41be298ed049a0bf6957d562b13fc0fe3873c233eca809859e54d2a380a7f71348
7
- data.tar.gz: 1e209b2600673e51bea02fa11f1681470e787c1ddedf016aa0e58cd36fd660013f3fd477807e937a3b77bc628faaccabca6b5c8233c60dcc71d0e761fb6bd24a
6
+ metadata.gz: 89275f78f96f19de1e8b7b448088410be260e3c96a9e0cc1e8f647d9d5f410421e441f0b1629b3d6fdc81be793f67410de2ea59e2c5abd7ce4e740d2ec87e6b2
7
+ data.tar.gz: d137d50afce3b360f996083bbb1cd8dcb0423c7b6ff384f71cb722d6988a890795f317f2fb16ec5577968d003fffddaaadd6ef4a071c1c57000b9b86a9f570de
@@ -0,0 +1,47 @@
1
+ version: 2
2
+ jobs:
3
+ build:
4
+ docker:
5
+ # specify the version you desire here
6
+ - image: circleci/ruby:2.5.1-node-browsers
7
+ environment:
8
+ BUNDLE_JOBS: 3
9
+ BUNDLE_RETRY: 3
10
+ RAILS_ENV: test
11
+ DATABASE_URL: "postgres://bb@localhost:5432/test_project_test"
12
+ - image: circleci/postgres:9.5-alpine
13
+ environment:
14
+ POSTGRES_USER: bb
15
+ POSTGRES_DB: test_project_test
16
+ POSTGRES_PASSWORD: ""
17
+
18
+ working_directory: ~/repo
19
+
20
+ steps:
21
+ - checkout
22
+
23
+ - run:
24
+ name: Update bundler
25
+ command: sudo gem update bundler
26
+
27
+ # Download and cache dependencies
28
+ - restore_cache:
29
+ keys:
30
+ - v1-dependencies-{{ checksum "lib/blueberry_rails/version.rb" }}
31
+ # fallback to using the latest cache if no exact match is found
32
+ - v1-dependencies-
33
+
34
+ - run:
35
+ name: install dependencies
36
+ command: |
37
+ bundle install --jobs=4 --retry=3
38
+
39
+ - save_cache:
40
+ paths:
41
+ - ./
42
+ key: v1-dependencies-{{ checksum "lib/blueberry_rails/version.rb" }}
43
+
44
+ # run tests!
45
+ - run:
46
+ name: run tests
47
+ command: bundle exec rake
@@ -0,0 +1,21 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es6": true,
5
+ "mocha": true,
6
+ "node": true
7
+ },
8
+ "extends": ["airbnb-base"],
9
+ "rules": {
10
+ "import/no-extraneous-dependencies": [
11
+ "error",
12
+ ],
13
+ "object-property-newline": [
14
+ "error",
15
+ { "allowAllPropertiesOnSameLine": false }
16
+ ]
17
+ },
18
+ "globals": {
19
+ "expect": true
20
+ }
21
+ }
data/.hound.yml CHANGED
@@ -1,6 +1,3 @@
1
- coffee_script:
2
- enabled: true
3
-
4
1
  ruby:
5
2
  enabled: true
6
3
  config_file: .rubocop.yml
@@ -2,7 +2,7 @@ AllCops:
2
2
  Exclude:
3
3
  - db/schema.rb
4
4
  - bin/*
5
-
5
+ TargetRubyVersion: 2.5
6
6
  Rails:
7
7
  Enabled: true
8
8
 
@@ -10,7 +10,7 @@ AbcSize:
10
10
  Enabled: false
11
11
 
12
12
  AccessorMethodName:
13
- Enabled: true
13
+ Enabled: false
14
14
 
15
15
  ActionFilter:
16
16
  Enabled: true
@@ -72,14 +72,14 @@ CyclomaticComplexity:
72
72
  Delegate:
73
73
  Enabled: false
74
74
 
75
- DeprecatedHashMethods:
75
+ PreferedHashMethods:
76
76
  Enabled: true
77
77
 
78
78
  Documentation:
79
79
  Enabled: false
80
80
 
81
81
  DotPosition:
82
- EnforcedStyle: trailing
82
+ EnforcedStyle: leading
83
83
 
84
84
  DoubleNegation:
85
85
  Enabled: false
@@ -114,9 +114,6 @@ FormatString:
114
114
  Enabled: true
115
115
  EnforcedStyle: percent
116
116
 
117
- FrozenStringLiteralComment:
118
- Enabled: false
119
-
120
117
  GlobalVars:
121
118
  Enabled: true
122
119
 
@@ -133,10 +130,10 @@ InlineComment:
133
130
  Enabled: false
134
131
 
135
132
  Lambda:
136
- Enabled: true
133
+ Enabled: false
137
134
 
138
135
  LambdaCall:
139
- Enabled: true
136
+ Enabled: false
140
137
 
141
138
  LineEndConcatenation:
142
139
  Enabled: true
@@ -174,7 +171,7 @@ NumericLiterals:
174
171
  OneLineConditional:
175
172
  Enabled: true
176
173
 
177
- OpMethod:
174
+ BinaryOperatorParameter:
178
175
  Enabled: true
179
176
 
180
177
  ParameterLists:
@@ -214,13 +211,22 @@ SignalException:
214
211
  SpecialGlobalVars:
215
212
  Enabled: true
216
213
 
214
+ SpaceInLambdaLiteral:
215
+ Enabled: false
216
+
217
217
  StringLiterals:
218
218
  EnforcedStyle: single_quotes
219
219
 
220
+ Style/MutableConstant:
221
+ Enabled: false
222
+
223
+ Style/FrozenStringLiteralComment:
224
+ Enabled: false
225
+
220
226
  VariableInterpolation:
221
227
  Enabled: false
222
228
 
223
- TrailingCommaInLiteral:
229
+ TrailingCommaInArrayLiteral:
224
230
  Enabled: true
225
231
 
226
232
  TrivialAccessors:
@@ -233,7 +239,7 @@ WhileUntilModifier:
233
239
  Enabled: false
234
240
 
235
241
  WordArray:
236
- Enabled: true
242
+ Enabled: false
237
243
 
238
244
  # Lint
239
245
 
@@ -258,7 +264,7 @@ ElseLayout:
258
264
  HandleExceptions:
259
265
  Enabled: false
260
266
 
261
- InvalidCharacterLiteral:
267
+ MultilineMethodCallIndentation:
262
268
  Enabled: false
263
269
 
264
270
  LiteralInCondition:
@@ -281,3 +287,6 @@ UnderscorePrefixedVariableName:
281
287
 
282
288
  Void:
283
289
  Enabled: false
290
+
291
+ SymbolArray:
292
+ Enabled: false
@@ -1 +1 @@
1
- 2.4.0
1
+ 2.5.1
data/README.md CHANGED
@@ -28,10 +28,6 @@ Custom Erros
28
28
 
29
29
  --custom-errors
30
30
 
31
- Fontcustom
32
-
33
- --fontncustom
34
-
35
31
  Twitter bootstrap
36
32
 
37
33
  --bootstrap
@@ -44,10 +40,6 @@ Devise model
44
40
 
45
41
  --devise_model User
46
42
 
47
- Use Gulp instead of Asset Pipeline
48
-
49
- --gulp
50
-
51
43
  ## Gems
52
44
 
53
45
  Blueberry Rails template contains following gems by default:
@@ -65,53 +57,9 @@ Testing related:
65
57
 
66
58
  * [Capybara](https://github.com/jnicklas/capybara) for acceptance testing
67
59
  * [Guard](https://github.com/ranmocy/guard-rails) for automatically running specs
68
- * [Factory Girl](https://github.com/rspec/rspec-rails) as a fixtures replacement
60
+ * [factory_bot](https://github.com/thoughtbot/factory_bot) as a fixtures replacement
69
61
  * [Rspec](https://github.com/rspec/rspec-rails)
70
62
 
71
- ## Gulp
72
-
73
- Based on [Gulp on Rails: Replacing the Asset Pipeline](http://viget.com/extend/gulp-rails-asset-pipeline) and [corresponding GitHub repository](https://github.com/vigetlabs/gulp-rails-pipeline).
74
-
75
- Additional articles
76
- * [Gulp - a modern approach to asset pipeline for Rails developers](http://blog.arkency.com/2015/03/gulp-modern-approach-to-asset-pipeline-for-rails-developers/)
77
-
78
- ### Usage
79
-
80
- $ blueberry_rails newproject --gulp
81
- $ npm install
82
-
83
- Default Gulp task, compiles stylesheets/javascripts and starts BrowserSync (for frontend dev)
84
-
85
- $ gulp
86
-
87
- Compile all assets w/o BrowserSync (for backend dev)
88
-
89
- $ gulp development
90
-
91
- Generate production ready assets (including fingerprinting)
92
-
93
- $ gulp build
94
-
95
- Start BrowserSync
96
-
97
- $ gulp watch
98
-
99
- Optimize image size
100
-
101
- $ gulp images
102
-
103
- Generate font icons from SVGs
104
-
105
- $ gulp fontIcons
106
-
107
- Add fingerprints to assets
108
-
109
- $ gulp rev
110
-
111
- Remove all assets
112
-
113
- $ gulp clean
114
-
115
63
  ## Other great stuff
116
64
 
117
65
  * Do not secret token in the repo - load it via ENV variable
@@ -18,11 +18,11 @@ Gem::Specification.new do |gem|
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ['lib']
20
20
 
21
- gem.add_dependency 'bundler', '~> 1.3'
21
+ gem.add_dependency 'bundler', '~> 1.17'
22
22
  gem.add_dependency 'rails', BlueberryRails::RAILS_VERSION
23
23
 
24
24
  gem.add_development_dependency 'rake'
25
25
 
26
- gem.required_ruby_version = '>= 1.9.2'
26
+ gem.required_ruby_version = '>= 2.5.1'
27
27
 
28
28
  end
@@ -14,26 +14,26 @@ module BlueberryRails
14
14
  template 'Gemfile_custom.erb', 'Gemfile'
15
15
  end
16
16
 
17
- def secret_token
18
- template 'secret_token.rb.erb', 'config/initializers/secret_token.rb'
19
- end
20
-
21
- def setup_secret_token
22
- inject_into_file 'config/secrets.yml',
23
- "\nstaging:\n" \
24
- " secret_key_base: <%= ENV[\"SECRET_KEY_BASE\"] %>\n",
25
- after: " secret_key_base: <%= ENV[\"SECRET_KEY_BASE\"] %>\n"
26
- end
27
-
28
17
  def hound_config
29
18
  copy_file '../.hound.yml', '.hound.yml'
19
+ copy_file '../.eslintrc', '.eslintrc'
30
20
  copy_file '../.rubocop.yml', '.rubocop.yml'
21
+
22
+ run 'yarn add -D eslint eslint-config-airbnb-base eslint-config-import'
23
+ end
24
+
25
+ def cocoon_config
26
+ run 'yarn add https://github.com/1776/cocoon'
27
+ inject_into_file 'app/javascript/packs/application.js',
28
+ "import 'cocoon';\n",
29
+ before: 'import { Application } from "stimulus"'
31
30
  end
32
31
 
33
32
  def setup_mailer_hosts
34
33
  action_mailer_host 'development', "development.#{app_name}.com"
35
34
  action_mailer_host 'test', "test.#{app_name}.com"
36
35
  action_mailer_host 'staging', "staging.#{app_name}.com"
36
+ action_mailer_host 'integration', "integration.#{app_name}.com"
37
37
  action_mailer_host 'production', "#{app_name}.com"
38
38
  end
39
39
 
@@ -50,6 +50,11 @@ module BlueberryRails
50
50
  'config.consider_all_requests_local = true'
51
51
  end
52
52
 
53
+ def setup_integration_environment
54
+ copy_file 'config/environments/production.rb',
55
+ 'config/environments/integration.rb'
56
+ end
57
+
53
58
  def setup_admin
54
59
  directory 'admin_controllers', 'app/controllers/admin'
55
60
  directory 'admin_views', 'app/views/admin'
@@ -65,14 +70,19 @@ module BlueberryRails
65
70
  end
66
71
 
67
72
  def create_partials_directory
68
- directory 'views/application', 'app/views/application'
73
+ directory 'views/application', 'app/views/application', force: true
69
74
  end
70
75
 
71
76
  def create_application_layout
72
77
  remove_file 'app/views/layouts/application.html.erb'
78
+ remove_file 'app/views/layouts/mailer.html.erb'
79
+ remove_file 'app/views/layouts/mailer.text.erb'
73
80
 
74
81
  template 'views/layouts/application.html.slim.erb',
75
- 'app/views/layouts/application.html.slim'
82
+ 'app/views/layouts/application.html.slim', force: true
83
+
84
+ template 'views/layouts/mailer.html.slim.erb',
85
+ 'app/views/layouts/mailer.html.slim', force: true
76
86
 
77
87
  directory 'helpers', 'app/helpers', force: true
78
88
 
@@ -81,19 +91,15 @@ module BlueberryRails
81
91
  end
82
92
 
83
93
  def copy_assets_directory
84
- remove_file 'app/assets/stylesheets/application.css'
85
- remove_file 'app/assets/javascripts/application.js'
94
+ remove_file 'app/assets/stylesheets', force: true
95
+ remove_file 'app/assets/javascripts', force: true
86
96
 
87
- directory 'assets', 'app/assets'
88
-
89
- remove_file 'app/assets/icons'
97
+ run 'mkdir app/javascript/stylesheets', force: true
98
+ run 'touch app/javascript/packs/application.sass', force: true
90
99
 
91
100
  if options[:administration]
92
- directory 'admin_assets', 'app/assets'
93
-
94
- replace_in_file 'config/initializers/assets.rb',
95
- '.precompile += %w( ',
96
- '.precompile += %w( admin.css admin.js '
101
+ run 'touch app/javascript/packs/admin.js', force: true
102
+ run 'touch app/javascript/packs/admin.sass', force: true
97
103
  end
98
104
  end
99
105
 
@@ -127,12 +133,14 @@ module BlueberryRails
127
133
  end
128
134
 
129
135
  def create_database
130
- bundle_command 'exec rake db:create'
136
+ bundle_command 'exec rails db:create'
131
137
  end
132
138
 
133
139
  def generate_rspec
134
140
  generate 'rspec:install'
135
141
 
142
+ copy_file 'spec/drivers.rb', 'spec/support/drivers.rb'
143
+
136
144
  inject_into_file 'spec/rails_helper.rb',
137
145
  "\n# Screenshots\n" \
138
146
  "require 'capybara-screenshot/rspec'\n" \
@@ -150,7 +158,7 @@ module BlueberryRails
150
158
  end
151
159
 
152
160
  def setup_rspec_support_files
153
- copy_file 'spec/factory_girl_syntax.rb', 'spec/support/factory_girl.rb'
161
+ copy_file 'spec/factory_bot_syntax.rb', 'spec/support/factory_bot.rb'
154
162
  copy_file 'spec/database_cleaner_setup.rb', 'spec/support/database_cleaner.rb'
155
163
  copy_file 'spec/mail_body_helpers.rb', 'spec/support/mixins/mail_body_helpers.rb'
156
164
  end
@@ -196,11 +204,11 @@ module BlueberryRails
196
204
 
197
205
  def configure_i18n
198
206
  inject_into_file "config/application.rb",
199
- "\n\n config.i18n.load_path += Dir[Rails.root.join 'config/locales/**/*.{rb,yml}']",
207
+ "\n config.i18n.load_path += Dir[Rails.root.join 'config/locales/**/*.{rb,yml}']",
200
208
  before: "\n # Settings"
201
209
 
202
210
  inject_into_file 'config/application.rb',
203
- "\n\n config.i18n.available_locales = [:cs, :en]\n config.i18n.default_locale = :cs",
211
+ "\n config.i18n.available_locales = [:cs, :en]\n config.i18n.default_locale = :cs",
204
212
  before: "\n # Settings"
205
213
 
206
214
  remove_file 'config/locales/en.yml'
@@ -214,7 +222,8 @@ module BlueberryRails
214
222
  end
215
223
 
216
224
  def configure_circle
217
- template 'circle.yml.erb', 'circle.yml'
225
+ empty_directory '.circleci'
226
+ template 'circle.yml.erb', '.circleci/config.yml'
218
227
  end
219
228
 
220
229
  def add_ruby_version_file
@@ -224,7 +233,7 @@ module BlueberryRails
224
233
  else
225
234
  "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
226
235
  end
227
- add_file '.ruby-version', "#{version}\n"
236
+ add_file '.ruby-version', "#{version}\n", force: true
228
237
  end
229
238
 
230
239
  def install_devise
@@ -284,12 +293,14 @@ module BlueberryRails
284
293
  end
285
294
 
286
295
  def setup_gitignore
287
- [ 'spec/lib',
296
+ [
297
+ 'spec/lib',
288
298
  'spec/controllers',
289
299
  'spec/features',
290
300
  'spec/support/matchers',
291
301
  'spec/support/mixins',
292
- 'spec/support/shared_examples' ].each do |dir|
302
+ 'spec/support/shared_examples'
303
+ ].each do |dir|
293
304
  run "mkdir -p #{dir}"
294
305
  run "touch #{dir}/.keep"
295
306
  end
@@ -301,9 +312,6 @@ module BlueberryRails
301
312
 
302
313
  def copy_rake_tasks
303
314
  copy_file 'tasks/images.rake', 'lib/tasks/images.rake'
304
- if options[:fontcustom]
305
- copy_file 'tasks/icons.rake', 'lib/tasks/icons.rake'
306
- end
307
315
  end
308
316
 
309
317
  def copy_custom_errors
@@ -316,15 +324,9 @@ module BlueberryRails
316
324
 
317
325
  inject_into_class 'config/application.rb', 'Application', config
318
326
 
319
- remove_file 'public/404.html'
320
- remove_file 'public/422.html'
321
- remove_file 'public/500.html'
322
- end
323
-
324
- def copy_fontcustom_config
325
- copy_file 'fontcustom.yml', 'fontcustom.yml'
326
- copy_file 'assets/icons/_font_icons.scss',
327
- 'app/assets/icons/_font_icons.scss'
327
+ remove_file 'public/404.html', force: true
328
+ remove_file 'public/422.html', force: true
329
+ remove_file 'public/500.html', force: true
328
330
  end
329
331
 
330
332
  def configure_bin_setup
@@ -345,36 +347,5 @@ module BlueberryRails
345
347
  def reviews_app
346
348
  template 'app.json.erb', 'app.json'
347
349
  end
348
-
349
- # Gulp
350
- def gulp_files
351
- copy_file 'gulp/gulp_helper.rb', 'app/helpers/gulp_helper.rb'
352
- remove_file 'app/assets/stylesheets/application.css'
353
- copy_file 'gulp/application.sass',
354
- 'app/assets/stylesheets/application.sass'
355
- remove_file 'app/assets/javascripts/application.js'
356
- copy_file 'gulp/application.js.coffee',
357
- 'app/assets/javascripts/application.js.coffee'
358
-
359
- application do
360
- "# Make public assets requireable in manifest files\n " \
361
- "config.assets.paths << Rails.root.join('public', 'assets', 'stylesheets')\n " \
362
- "config.assets.paths << Rails.root.join('public', 'assets', 'javascripts')\n"
363
- end
364
-
365
- inject_into_file 'config/environments/development.rb',
366
- "config.assets.digest = false\n",
367
- before: 'config.assets.quiet = true'
368
-
369
- copy_file 'gulp/rev_manifest.rb', 'config/initializers/rev_manifest.rb'
370
- copy_file 'gulp/global.coffee', 'gulp/assets/javascripts/global.coffee'
371
- copy_file 'gulp/message.coffee', 'gulp/assets/javascripts/message.coffee'
372
- copy_file 'gulp/global.sass', 'gulp/assets/stylesheets/global.sass'
373
- copy_file 'gulp/config.coffee'
374
- directory 'gulp/tasks'
375
- directory 'gulp/util'
376
- copy_file 'gulp/gulpfile.js', 'gulpfile.js'
377
- copy_file 'gulp/package.json', 'package.json', force: true
378
- end
379
350
  end
380
351
  end