railman 0.6.6 → 0.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fabece77f00170567f632b187939011eb836155b
4
- data.tar.gz: 023e40b05461872ce6e8eae60ca0f08729fa74e1
3
+ metadata.gz: 7afc910d29c549c3ee870d03750045f303109868
4
+ data.tar.gz: e2411024c38c6b748a3011c8a300fa40ab4b7289
5
5
  SHA512:
6
- metadata.gz: 9740e138e75187a047f18d34963fdd096fdd96b4a47fe8cb8a4ceecbcc1dd4f7ad9a29445fee7b25ff9dc90f644794ef86973f706dd6d123e04b8176a6384b9e
7
- data.tar.gz: d20729081ca9753eec6a0edffc3e49ad21d707a6265de51284539f7c574f6a0f309dce882121e1bc659e1544f6e3734852a7246af1704292fe4fce2c9d5e5f2e
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. Railman is currently work in progress.
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
@@ -1,3 +1,3 @@
1
1
  module Railman
2
- VERSION = '0.6.6'
2
+ VERSION = '0.6.7'
3
3
  end
@@ -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,5 @@
1
+ body
2
+ background-color: #f7f0e9
3
+
4
+ #content
5
+ margin: 2em
@@ -1,3 +1,4 @@
1
1
  class ApplicationController < ActionController::Base
2
2
  protect_from_forgery with: :exception
3
+ add_flash_types :success, :error, :warning, :info
3
4
  end
@@ -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
@@ -4,6 +4,6 @@ class HomepageTest < WebTest
4
4
  test 'homepage' do
5
5
  visit '/'
6
6
  screenshot 'homepage'
7
- must_have_content 'Welcome to: <%= @config.class_name %>'
7
+ must_have_content 'Welcome to <%= @config.class_name %> :-)'
8
8
  end
9
9
  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.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/.keep
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