railman 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/railman/version.rb +1 -1
  3. data/railman.gemspec +0 -2
  4. data/templates/rails_app/.babelrc +5 -0
  5. data/templates/rails_app/.gitignore +8 -2
  6. data/templates/rails_app/.postcssrc.yml +4 -0
  7. data/templates/rails_app/Gemfile +15 -13
  8. data/templates/rails_app/Rakefile +1 -1
  9. data/templates/rails_app/app/assets/javascripts/application.js +1 -1
  10. data/templates/rails_app/app/assets/stylesheets/application.sass +1 -1
  11. data/templates/rails_app/app/assets/stylesheets/main.sass +7 -2
  12. data/templates/rails_app/app/javascript/packs/app.vue +22 -0
  13. data/templates/rails_app/app/javascript/packs/application.js +2 -9
  14. data/templates/rails_app/app/javascript/packs/hello_vue.js +19 -0
  15. data/templates/rails_app/bin/rails +0 -5
  16. data/templates/rails_app/bin/rake +0 -5
  17. data/templates/rails_app/bin/webpack +25 -11
  18. data/templates/rails_app/bin/webpack-dev-server +22 -16
  19. data/templates/rails_app/bin/yarn +3 -2
  20. data/templates/rails_app/config.ru +1 -1
  21. data/templates/rails_app/config/application.rb.tt +3 -0
  22. data/templates/rails_app/config/database.yml.tt +2 -2
  23. data/templates/rails_app/config/environments/development.rb +0 -3
  24. data/templates/rails_app/config/environments/production.rb.tt +0 -3
  25. data/templates/rails_app/config/{puma.rb → puma.rb.tt} +5 -6
  26. data/templates/rails_app/config/webpack/configuration.js +26 -0
  27. data/templates/rails_app/config/webpack/development.js +3 -17
  28. data/templates/rails_app/config/webpack/development.server.js +17 -0
  29. data/templates/rails_app/config/webpack/development.server.yml +17 -0
  30. data/templates/rails_app/config/webpack/loaders/assets.js +12 -0
  31. data/templates/rails_app/config/webpack/loaders/babel.js +5 -0
  32. data/templates/rails_app/config/webpack/loaders/coffee.js +4 -0
  33. data/templates/rails_app/config/webpack/loaders/erb.js +9 -0
  34. data/templates/rails_app/config/webpack/loaders/sass.js +14 -0
  35. data/templates/rails_app/config/webpack/loaders/vue.js +12 -0
  36. data/templates/rails_app/config/webpack/paths.yml +33 -0
  37. data/templates/rails_app/config/webpack/production.js +5 -7
  38. data/templates/rails_app/config/webpack/shared.js +28 -54
  39. data/templates/rails_app/config/webpack/test.js +6 -0
  40. data/templates/rails_app/package.json.tt +24 -17
  41. data/templates/rails_app/public/404.html +51 -51
  42. data/templates/rails_app/public/422.html +51 -51
  43. data/templates/rails_app/public/500.html +50 -50
  44. data/templates/rails_app/test/application_system_test_case.rb +5 -2
  45. data/templates/rails_app/test/fixtures/files/.keep +0 -0
  46. metadata +20 -37
  47. data/templates/rails_app/app/javascript/packs/hello.vue +0 -11
  48. data/templates/rails_app/bin/spring +0 -17
  49. data/templates/rails_app/bin/webpack-watcher +0 -10
  50. data/templates/rails_app/config/initializers/new_framework_defaults.rb +0 -25
  51. data/templates/rails_app/config/spring.rb +0 -6
@@ -4,64 +4,64 @@
4
4
  <title>The change you wanted was rejected (422)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
14
 
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
20
 
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
33
 
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
39
 
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
58
- <!-- This file lives in public/422.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>The change you wanted was rejected.</h1>
62
- <p>Maybe you tried to change something you didn't have access to.</p>
63
- </div>
64
- <p>If you are the application owner check the logs for more information.</p>
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
65
63
  </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
65
+ </div>
66
66
  </body>
67
67
  </html>
@@ -4,63 +4,63 @@
4
4
  <title>We're sorry, but something went wrong (500)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
8
- background-color: #EFEFEF;
9
- color: #2E2F30;
10
- text-align: center;
11
- font-family: arial, sans-serif;
12
- margin: 0;
13
- }
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
14
 
15
- div.dialog {
16
- width: 95%;
17
- max-width: 33em;
18
- margin: 4em auto 0;
19
- }
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
20
 
21
- div.dialog > div {
22
- border: 1px solid #CCC;
23
- border-right-color: #999;
24
- border-left-color: #999;
25
- border-bottom-color: #BBB;
26
- border-top: #B00100 solid 4px;
27
- border-top-left-radius: 9px;
28
- border-top-right-radius: 9px;
29
- background-color: white;
30
- padding: 7px 12% 0;
31
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
- }
21
+ .rails-default-error-page div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
33
 
34
- h1 {
35
- font-size: 100%;
36
- color: #730E15;
37
- line-height: 1.5em;
38
- }
34
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
39
 
40
- div.dialog > p {
41
- margin: 0 0 1em;
42
- padding: 1em;
43
- background-color: #F7F7F7;
44
- border: 1px solid #CCC;
45
- border-right-color: #999;
46
- border-left-color: #999;
47
- border-bottom-color: #999;
48
- border-bottom-left-radius: 4px;
49
- border-bottom-right-radius: 4px;
50
- border-top-color: #DADADA;
51
- color: #666;
52
- box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
- }
40
+ .rails-default-error-page div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
58
- <!-- This file lives in public/500.html -->
59
- <div class="dialog">
60
- <div>
61
- <h1>We're sorry, but something went wrong.</h1>
62
- </div>
63
- <p>If you are the application owner check the logs for more information.</p>
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
64
62
  </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
65
  </body>
66
66
  </html>
@@ -2,8 +2,11 @@ require "test_helper"
2
2
  require "capybara/poltergeist"
3
3
 
4
4
  class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
5
- driven_by :poltergeist
6
- #driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
5
+ if ENV["HEADLESS"] == "true"
6
+ driven_by :poltergeist
7
+ else
8
+ driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
9
+ end
7
10
 
8
11
  fixtures :all
9
12
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: railman
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Jancev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-03-06 00:00:00.000000000 Z
11
+ date: 2017-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
- - !ruby/object:Gem::Dependency
42
- name: minitest
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '5.8'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '5.8'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: minitest-reporters
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -80,20 +66,6 @@ dependencies:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
68
  version: '0.7'
83
- - !ruby/object:Gem::Dependency
84
- name: geminabox
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '0.13'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '0.13'
97
69
  - !ruby/object:Gem::Dependency
98
70
  name: coveralls
99
71
  requirement: !ruby/object:Gem::Requirement
@@ -164,11 +136,13 @@ files:
164
136
  - lib/railman/secret.rb
165
137
  - lib/railman/version.rb
166
138
  - railman.gemspec
139
+ - templates/rails_app/.babelrc
167
140
  - templates/rails_app/.env.example.development.tt
168
141
  - templates/rails_app/.env.example.production.tt
169
142
  - templates/rails_app/.env.example.test.tt
170
143
  - templates/rails_app/.envrc
171
144
  - templates/rails_app/.gitignore
145
+ - templates/rails_app/.postcssrc.yml
172
146
  - templates/rails_app/.ruby-version
173
147
  - templates/rails_app/.simplecov
174
148
  - templates/rails_app/Capfile
@@ -190,8 +164,9 @@ files:
190
164
  - templates/rails_app/app/controllers/concerns/.keep
191
165
  - templates/rails_app/app/controllers/home_controller.rb
192
166
  - templates/rails_app/app/helpers/application_helper.rb
167
+ - templates/rails_app/app/javascript/packs/app.vue
193
168
  - templates/rails_app/app/javascript/packs/application.js
194
- - templates/rails_app/app/javascript/packs/hello.vue
169
+ - templates/rails_app/app/javascript/packs/hello_vue.js
195
170
  - templates/rails_app/app/jobs/application_job.rb
196
171
  - templates/rails_app/app/mailers/application_mailer.rb.tt
197
172
  - templates/rails_app/app/models/application_record.rb
@@ -207,11 +182,9 @@ files:
207
182
  - templates/rails_app/bin/setup
208
183
  - templates/rails_app/bin/sidekiq
209
184
  - templates/rails_app/bin/sidekiqctl
210
- - templates/rails_app/bin/spring
211
185
  - templates/rails_app/bin/update
212
186
  - templates/rails_app/bin/webpack
213
187
  - templates/rails_app/bin/webpack-dev-server
214
- - templates/rails_app/bin/webpack-watcher
215
188
  - templates/rails_app/bin/yarn
216
189
  - templates/rails_app/config.ru
217
190
  - templates/rails_app/config/application.rb.tt
@@ -233,14 +206,13 @@ files:
233
206
  - templates/rails_app/config/initializers/inflections.rb
234
207
  - templates/rails_app/config/initializers/log_formatting.rb
235
208
  - templates/rails_app/config/initializers/mime_types.rb
236
- - templates/rails_app/config/initializers/new_framework_defaults.rb
237
209
  - templates/rails_app/config/initializers/redis.rb.tt
238
210
  - templates/rails_app/config/initializers/session_store.rb.tt
239
211
  - templates/rails_app/config/initializers/sidekiq.rb.tt
240
212
  - templates/rails_app/config/initializers/wrap_parameters.rb
241
213
  - templates/rails_app/config/locales/en.yml
242
214
  - templates/rails_app/config/locales/readme.txt
243
- - templates/rails_app/config/puma.rb
215
+ - templates/rails_app/config/puma.rb.tt
244
216
  - templates/rails_app/config/routes.rb
245
217
  - templates/rails_app/config/scheduler.yml
246
218
  - templates/rails_app/config/secrets.yml
@@ -248,10 +220,20 @@ files:
248
220
  - templates/rails_app/config/server/logrotate.conf.tt
249
221
  - templates/rails_app/config/server/nginx.conf.tt
250
222
  - templates/rails_app/config/sidekiq.yml
251
- - templates/rails_app/config/spring.rb
223
+ - templates/rails_app/config/webpack/configuration.js
252
224
  - templates/rails_app/config/webpack/development.js
225
+ - templates/rails_app/config/webpack/development.server.js
226
+ - templates/rails_app/config/webpack/development.server.yml
227
+ - templates/rails_app/config/webpack/loaders/assets.js
228
+ - templates/rails_app/config/webpack/loaders/babel.js
229
+ - templates/rails_app/config/webpack/loaders/coffee.js
230
+ - templates/rails_app/config/webpack/loaders/erb.js
231
+ - templates/rails_app/config/webpack/loaders/sass.js
232
+ - templates/rails_app/config/webpack/loaders/vue.js
233
+ - templates/rails_app/config/webpack/paths.yml
253
234
  - templates/rails_app/config/webpack/production.js
254
235
  - templates/rails_app/config/webpack/shared.js
236
+ - templates/rails_app/config/webpack/test.js
255
237
  - templates/rails_app/db/seeds.rb
256
238
  - templates/rails_app/jenkins/all_tests.sh
257
239
  - templates/rails_app/jenkins/brakeman.sh
@@ -270,6 +252,7 @@ files:
270
252
  - templates/rails_app/test/application_system_test_case.rb
271
253
  - templates/rails_app/test/controllers/.keep
272
254
  - templates/rails_app/test/fixtures/.keep
255
+ - templates/rails_app/test/fixtures/files/.keep
273
256
  - templates/rails_app/test/helpers/.keep
274
257
  - templates/rails_app/test/integration/.keep
275
258
  - templates/rails_app/test/mailers/.keep
@@ -297,7 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
280
  version: '0'
298
281
  requirements: []
299
282
  rubyforge_project:
300
- rubygems_version: 2.5.2
283
+ rubygems_version: 2.6.11
301
284
  signing_key:
302
285
  specification_version: 4
303
286
  summary: Rails application generator
@@ -1,11 +0,0 @@
1
- <template>
2
- <div class="hello">
3
- Hello Igor, hier is your Vue.js!
4
- </div>
5
- </template>
6
-
7
- <style>
8
- .hello {
9
- border: 2px solid lightgray;
10
- }
11
- </style>
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # This file loads spring without using Bundler, in order to be fast.
4
- # It gets overwritten when you run the `spring binstub` command.
5
-
6
- unless defined?(Spring)
7
- require 'rubygems'
8
- require 'bundler'
9
-
10
- lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read)
11
- spring = lockfile.specs.detect { |spec| spec.name == "spring" }
12
- if spring
13
- Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path
14
- gem 'spring', spring.version
15
- require 'spring/binstub'
16
- end
17
- end
@@ -1,10 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- ENV['RAILS_ENV'] ||= 'development'
4
- ENV['NODE_ENV'] ||= ENV['RAILS_ENV']
5
-
6
- BIN_PATH = File.expand_path('.', __dir__)
7
-
8
- Dir.chdir(BIN_PATH) do
9
- exec "./webpack --watch --progress --color #{ARGV.join(" ")}"
10
- end
@@ -1,25 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains migration options to ease your Rails 5.0 upgrade.
4
- #
5
- # Read the Guide for Upgrading Ruby on Rails for more info on each option.
6
-
7
- # Enable per-form CSRF tokens. Previous versions had false.
8
- Rails.application.config.action_controller.per_form_csrf_tokens = true
9
-
10
- # Enable origin-checking CSRF mitigation. Previous versions had false.
11
- Rails.application.config.action_controller.forgery_protection_origin_check = true
12
-
13
- # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
14
- # Previous versions had false.
15
- ActiveSupport.to_time_preserves_timezone = true
16
-
17
- # Require `belongs_to` associations by default. Previous versions had false.
18
- Rails.application.config.active_record.belongs_to_required_by_default = true
19
-
20
- # Configure SSL options to enable HSTS with subdomains. Previous versions had false.
21
- Rails.application.config.ssl_options = { hsts: { subdomains: true } }
22
-
23
- # Unknown asset fallback will return the path passed in when the given
24
- # asset is not present in the asset pipeline.
25
- Rails.application.config.assets.unknown_asset_fallback = false