railman 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -1
- data/lib/railman/version.rb +1 -1
- data/templates/rails_app/Gemfile +1 -7
- data/templates/rails_app/app/assets/javascripts/application.js +0 -4
- data/templates/rails_app/app/assets/stylesheets/application.sass +1 -1
- data/templates/rails_app/app/assets/stylesheets/main.sass +5 -0
- data/templates/rails_app/app/controllers/application_controller.rb +1 -0
- data/templates/rails_app/lib/tasks/auto_annotate_models.rake +48 -0
- data/templates/rails_app/test/integration/homepage_test.rb.tt +1 -1
- metadata +3 -2
- data/templates/rails_app/lib/tasks/.keep +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7afc910d29c549c3ee870d03750045f303109868
|
4
|
+
data.tar.gz: e2411024c38c6b748a3011c8a300fa40ab4b7289
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 31f71fac965866a4eb9d9d7740435b20c2961ddad21a255bf3e947a9a394bc3a9d2cc7e69cf5f63cf8c05e6894f89b43fede6337e6f4075c30e9c8232688123a
|
7
|
+
data.tar.gz: e7051fd10792aece235700183bd7f33fd46814ef3341cdb5f0409db0552235575d021cc3217086b884aaeba2f40e4d0266b5912f1a8e671d577f234f8447e13c
|
data/README.md
CHANGED
@@ -12,7 +12,16 @@
|
|
12
12
|
[codeclimate]: https://codeclimate.com/github/igorj/railman
|
13
13
|
[coveralls]: https://coveralls.io/r/igorj/railman
|
14
14
|
|
15
|
-
Railman generates new rails applications based on a customized template
|
15
|
+
Railman generates new rails applications based on a customized template and ready for deployment in production.
|
16
|
+
It can also update existing applications when railman-template changes.
|
17
|
+
|
18
|
+
The generated rails application includes:
|
19
|
+
- semantic-rails-ui gem with modified scaffolds,
|
20
|
+
- .env configuration
|
21
|
+
- deployment configuration,
|
22
|
+
- sidekiq background jobs and scheduled jobs
|
23
|
+
- jenkins scripts
|
24
|
+
- test infrastructure for capybara headless webtests
|
16
25
|
|
17
26
|
|
18
27
|
## Installation
|
data/lib/railman/version.rb
CHANGED
data/templates/rails_app/Gemfile
CHANGED
@@ -5,13 +5,6 @@ gem 'dotenv-rails', '2.1.1', require: 'dotenv/rails-now' # load ENV from .env
|
|
5
5
|
gem 'rails', '4.2.6'
|
6
6
|
gem 'pg', '0.18.2'
|
7
7
|
|
8
|
-
gem 'sass-rails', '~> 5.0'
|
9
|
-
gem 'uglifier', '>= 1.3.0'
|
10
|
-
gem 'coffee-rails', '~> 4.1.0'
|
11
|
-
gem 'jquery-rails'
|
12
|
-
gem 'turbolinks'
|
13
|
-
gem 'jquery-turbolinks'
|
14
|
-
|
15
8
|
gem 'semantic-rails-ui' # semantic-ui + simple_form + rails helpers
|
16
9
|
|
17
10
|
gem 'dalli', '2.7.6' # memcached client
|
@@ -31,6 +24,7 @@ gem 'railman-deployment', '~> 0.2' # capistrano deployment
|
|
31
24
|
gem 'exception_notification', '4.1.2' # exception notification per email
|
32
25
|
|
33
26
|
group :development do
|
27
|
+
gem 'annotate', '~> 2.7.1' # add comments to models with db column information
|
34
28
|
gem 'better_errors' # better error pages in development
|
35
29
|
gem 'binding_of_caller' # repl on the error page
|
36
30
|
gem 'quiet_assets' # less noise in development log
|
@@ -10,9 +10,5 @@
|
|
10
10
|
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
11
11
|
// about supported directives.
|
12
12
|
//
|
13
|
-
//= require jquery
|
14
|
-
//= require jquery.turbolinks
|
15
|
-
//= require jquery_ujs
|
16
|
-
//= require turbolinks
|
17
13
|
//= require semantic-rails-ui
|
18
14
|
//= require_tree .
|
@@ -1,2 +1,2 @@
|
|
1
1
|
@import "semantic-rails-ui"
|
2
|
-
|
2
|
+
@import "main"
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# NOTE: only doing this in development as some production environments (Heroku)
|
2
|
+
# NOTE: are sensitive to local FS writes, and besides -- it's just not proper
|
3
|
+
# NOTE: to have a dev-mode tool do its thing in production.
|
4
|
+
if Rails.env.development?
|
5
|
+
task :set_annotation_options do
|
6
|
+
# You can override any of these by setting an environment variable of the
|
7
|
+
# same name.
|
8
|
+
Annotate.set_defaults(
|
9
|
+
'routes' => 'false',
|
10
|
+
'position_in_routes' => 'before',
|
11
|
+
'position_in_class' => 'before',
|
12
|
+
'position_in_test' => 'before',
|
13
|
+
'position_in_fixture' => 'before',
|
14
|
+
'position_in_factory' => 'before',
|
15
|
+
'position_in_serializer' => 'before',
|
16
|
+
'show_foreign_keys' => 'true',
|
17
|
+
'show_indexes' => 'true',
|
18
|
+
'simple_indexes' => 'false',
|
19
|
+
'model_dir' => 'app/models',
|
20
|
+
'root_dir' => '',
|
21
|
+
'include_version' => 'false',
|
22
|
+
'require' => '',
|
23
|
+
'exclude_tests' => 'false',
|
24
|
+
'exclude_fixtures' => 'false',
|
25
|
+
'exclude_factories' => 'false',
|
26
|
+
'exclude_serializers' => 'false',
|
27
|
+
'exclude_scaffolds' => 'true',
|
28
|
+
'exclude_controllers' => 'true',
|
29
|
+
'exclude_helpers' => 'true',
|
30
|
+
'ignore_model_sub_dir' => 'false',
|
31
|
+
'ignore_columns' => nil,
|
32
|
+
'ignore_routes' => nil,
|
33
|
+
'ignore_unknown_models' => 'false',
|
34
|
+
'hide_limit_column_types' => 'integer,boolean',
|
35
|
+
'skip_on_db_migrate' => 'false',
|
36
|
+
'format_bare' => 'true',
|
37
|
+
'format_rdoc' => 'false',
|
38
|
+
'format_markdown' => 'false',
|
39
|
+
'sort' => 'false',
|
40
|
+
'force' => 'false',
|
41
|
+
'trace' => 'false',
|
42
|
+
'wrapper_open' => nil,
|
43
|
+
'wrapper_close' => nil
|
44
|
+
)
|
45
|
+
end
|
46
|
+
|
47
|
+
Annotate.load_tasks
|
48
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railman
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Jancev
|
@@ -179,6 +179,7 @@ files:
|
|
179
179
|
- templates/rails_app/app/assets/images/.keep
|
180
180
|
- templates/rails_app/app/assets/javascripts/application.js
|
181
181
|
- templates/rails_app/app/assets/stylesheets/application.sass
|
182
|
+
- templates/rails_app/app/assets/stylesheets/main.sass
|
182
183
|
- templates/rails_app/app/controllers/application_controller.rb
|
183
184
|
- templates/rails_app/app/controllers/concerns/.keep
|
184
185
|
- templates/rails_app/app/controllers/home_controller.rb
|
@@ -235,7 +236,7 @@ files:
|
|
235
236
|
- templates/rails_app/jenkins/brakeman.sh
|
236
237
|
- templates/rails_app/jenkins/bundle_audit.sh
|
237
238
|
- templates/rails_app/lib/assets/.keep
|
238
|
-
- templates/rails_app/lib/tasks
|
239
|
+
- templates/rails_app/lib/tasks/auto_annotate_models.rake
|
239
240
|
- templates/rails_app/log/.keep
|
240
241
|
- templates/rails_app/public/404.html
|
241
242
|
- templates/rails_app/public/422.html
|
File without changes
|