orats 5.2.0 → 5.2.1
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 +4 -4
- data/CHANGELOG.md +4 -0
- data/bin/orats +2 -4
- data/lib/orats/templates/base/.env.example +1 -1
- data/lib/orats/templates/base/.rubocop.yml +3 -0
- data/lib/orats/templates/base/Rakefile +2 -1
- data/lib/orats/templates/base/bin/yarn +3 -3
- data/lib/orats/templates/base/config/environments/development.rb +4 -2
- data/lib/orats/templates/base/config/environments/production.rb +22 -11
- data/lib/orats/templates/base/config/environments/test.rb +2 -1
- data/lib/orats/templates/base/config/initializers/backtrace_silencers.rb +4 -2
- data/lib/orats/templates/base/config/initializers/content_security_policy.rb +3 -1
- data/lib/orats/templates/base/config/initializers/wrap_parameters.rb +2 -1
- data/lib/orats/templates/base/db/seeds.rb +5 -3
- data/lib/orats/templates/base/test/application_system_test_case.rb +1 -1
- data/lib/orats/templates/base/test/test_helper.rb +1 -1
- data/lib/orats/version.rb +1 -1
- data/orats.gemspec +2 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ad010149f9412908867835e81691cf6bc103fd367cc78580669b796f129d6d33
|
4
|
+
data.tar.gz: 698e81a3d28446836ff207ebbc0bb0801c34fd4d0e5ac9d10a0e042c59019850
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82e5dc668f20f77c552a6e8bfed554d43ecbc96ac74774b6c4adb9dd0efe130636b853dc5ac4b5b10b4c7a820741eded4d69a12c28d935a5baf1581af03f74f9
|
7
|
+
data.tar.gz: 256fd420eea36e3348e7067ef0ad3f5f917eb321fc5dd193e7dd13cf58970c6001e23f74e3d7a28ca4f66be1f866cbca20bf254803a0d004cc53d11d067c3f2e
|
data/CHANGELOG.md
CHANGED
data/bin/orats
CHANGED
@@ -7,11 +7,9 @@
|
|
7
7
|
# since git directories are not included in gem releases we can
|
8
8
|
# determine if the gem is being actively developed by searching
|
9
9
|
# for a git repo
|
10
|
-
git_path = File.expand_path('
|
10
|
+
git_path = File.expand_path('../.git', __dir__)
|
11
11
|
|
12
|
-
if File.exist?(git_path)
|
13
|
-
$LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
|
14
|
-
end
|
12
|
+
$LOAD_PATH.unshift(File.expand_path('../lib', __dir__)) if File.exist?(git_path)
|
15
13
|
|
16
14
|
require 'orats/cli'
|
17
15
|
Orats::CLI.start
|
@@ -33,7 +33,7 @@ REQUEST_TIMEOUT=5
|
|
33
33
|
|
34
34
|
# Required by the Postgres Docker image. This sets up the initial database when
|
35
35
|
# you first run it.
|
36
|
-
POSTGRES_USER=
|
36
|
+
POSTGRES_USER=orats_base
|
37
37
|
POSTGRES_PASSWORD=yourpassword
|
38
38
|
|
39
39
|
# The database name will automatically get the Rails environment appended to it
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
-
# for example lib/tasks/capistrano.rake, and they will automatically be
|
2
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be
|
3
|
+
# available to Rake.
|
3
4
|
|
4
5
|
require_relative 'config/application'
|
5
6
|
|
@@ -2,10 +2,10 @@
|
|
2
2
|
APP_ROOT = File.expand_path('..', __dir__)
|
3
3
|
Dir.chdir(APP_ROOT) do
|
4
4
|
begin
|
5
|
-
exec
|
5
|
+
exec 'yarnpkg', *ARGV
|
6
6
|
rescue Errno::ENOENT
|
7
|
-
|
8
|
-
|
7
|
+
warn 'Yarn executable was not detected in the system.'
|
8
|
+
warn 'Download Yarn at https://yarnpkg.com/en/docs/install'
|
9
9
|
exit 1
|
10
10
|
end
|
11
11
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
Rails.application.configure do
|
2
|
-
# Settings specified here will take precedence over those
|
2
|
+
# Settings specified here will take precedence over those
|
3
|
+
# in config/application.rb.
|
3
4
|
|
4
5
|
# In the development environment your application's code is reloaded on
|
5
6
|
# every request. This slows down response time but is perfect for development
|
@@ -27,7 +28,8 @@ Rails.application.configure do
|
|
27
28
|
config.cache_store = :null_store
|
28
29
|
end
|
29
30
|
|
30
|
-
# Store uploaded files on the local file system
|
31
|
+
# Store uploaded files on the local file system
|
32
|
+
# (see config/storage.yml for options)
|
31
33
|
config.active_storage.service = :local
|
32
34
|
|
33
35
|
# Don't care if the mailer can't send.
|
@@ -1,5 +1,6 @@
|
|
1
1
|
Rails.application.configure do
|
2
|
-
# Settings specified here will take precedence over
|
2
|
+
# Settings specified here will take precedence over
|
3
|
+
# those in config/application.rb.
|
3
4
|
|
4
5
|
# Code is not reloaded between requests.
|
5
6
|
config.cache_classes = true
|
@@ -14,8 +15,10 @@ Rails.application.configure do
|
|
14
15
|
config.consider_all_requests_local = false
|
15
16
|
config.action_controller.perform_caching = true
|
16
17
|
|
17
|
-
# Ensures that a master key has been made available in
|
18
|
-
#
|
18
|
+
# Ensures that a master key has been made available in
|
19
|
+
# either ENV["RAILS_MASTER_KEY"]
|
20
|
+
# or in config/master.key. This key is used to decrypt credentials
|
21
|
+
# (and other encrypted files).
|
19
22
|
# config.require_master_key = true
|
20
23
|
|
21
24
|
# Disable serving static files from the `/public` folder by default since
|
@@ -29,7 +32,8 @@ Rails.application.configure do
|
|
29
32
|
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
33
|
config.assets.compile = false
|
31
34
|
|
32
|
-
# `config.assets.precompile` and `config.assets.version` have moved
|
35
|
+
# `config.assets.precompile` and `config.assets.version` have moved
|
36
|
+
# to config/initializers/assets.rb
|
33
37
|
|
34
38
|
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
35
39
|
# config.action_controller.asset_host = 'http://assets.example.com'
|
@@ -38,15 +42,20 @@ Rails.application.configure do
|
|
38
42
|
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
39
43
|
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
40
44
|
|
41
|
-
# Store uploaded files on the local file system
|
45
|
+
# Store uploaded files on the local file system
|
46
|
+
# (see config/storage.yml for options)
|
42
47
|
config.active_storage.service = :local
|
43
48
|
|
44
49
|
# Mount Action Cable outside main process or domain
|
45
50
|
# config.action_cable.mount_path = nil
|
46
51
|
# config.action_cable.url = 'wss://example.com/cable'
|
47
|
-
# config.action_cable.allowed_request_origins = [
|
52
|
+
# config.action_cable.allowed_request_origins = [
|
53
|
+
# 'http://example.com',
|
54
|
+
# /http:\/\/example.*/
|
55
|
+
# ]
|
48
56
|
|
49
|
-
# Force all access to the app over SSL, use Strict-Transport-Security,
|
57
|
+
# Force all access to the app over SSL, use Strict-Transport-Security,
|
58
|
+
# and use secure cookies.
|
50
59
|
# config.force_ssl = true
|
51
60
|
|
52
61
|
# Use the lowest log level to ensure availability of diagnostic information
|
@@ -54,19 +63,21 @@ Rails.application.configure do
|
|
54
63
|
config.log_level = :debug
|
55
64
|
|
56
65
|
# Prepend all log lines with the following tags.
|
57
|
-
config.log_tags = [
|
66
|
+
config.log_tags = [:request_id]
|
58
67
|
|
59
68
|
# Use a different cache store in production.
|
60
69
|
# config.cache_store = :mem_cache_store
|
61
70
|
|
62
|
-
# Use a real queuing backend for Active Job
|
71
|
+
# Use a real queuing backend for Active Job
|
72
|
+
# (and separate queues per environment)
|
63
73
|
# config.active_job.queue_adapter = :resque
|
64
74
|
# config.active_job.queue_name_prefix = "testtingrails_#{Rails.env}"
|
65
75
|
|
66
76
|
config.action_mailer.perform_caching = false
|
67
77
|
|
68
78
|
# Ignore bad email addresses and do not raise email delivery errors.
|
69
|
-
# Set this to true and configure the email server for immediate delivery to
|
79
|
+
# Set this to true and configure the email server for immediate delivery to
|
80
|
+
# raise delivery errors.
|
70
81
|
# config.action_mailer.raise_delivery_errors = false
|
71
82
|
|
72
83
|
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
@@ -81,7 +92,7 @@ Rails.application.configure do
|
|
81
92
|
|
82
93
|
# Use a different logger for distributed setups.
|
83
94
|
# require 'syslog/logger'
|
84
|
-
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new '
|
95
|
+
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'orats')
|
85
96
|
|
86
97
|
# Do not dump schema after migrations.
|
87
98
|
config.active_record.dump_schema_after_migration = false
|
@@ -1,5 +1,6 @@
|
|
1
1
|
Rails.application.configure do
|
2
|
-
# Settings specified here will take precedence over those in
|
2
|
+
# Settings specified here will take precedence over those in
|
3
|
+
# config/application.rb.
|
3
4
|
|
4
5
|
# The test environment is used exclusively to run your application's
|
5
6
|
# test suite. You never need to work with it otherwise. Remember that
|
@@ -1,7 +1,9 @@
|
|
1
1
|
# Be sure to restart your server when you modify this file.
|
2
2
|
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't
|
4
|
+
# wish to see in your backtraces.
|
4
5
|
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
6
|
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that
|
7
|
+
# You can also remove all the silencers if you're trying to debug a problem that
|
8
|
+
# might stem from framework code.
|
7
9
|
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -17,7 +17,9 @@
|
|
17
17
|
# end
|
18
18
|
|
19
19
|
# If you are using UJS then enable automatic nonce generation
|
20
|
-
|
20
|
+
Rails.application.config.content_security_policy_nonce_generator = lambda(_r) {
|
21
|
+
SecureRandom.base64(16)
|
22
|
+
}
|
21
23
|
|
22
24
|
# Report CSP violations to a specified URI
|
23
25
|
# For further information see the following documentation:
|
@@ -3,7 +3,8 @@
|
|
3
3
|
# This file contains settings for ActionController::ParamsWrapper which
|
4
4
|
# is enabled by default.
|
5
5
|
|
6
|
-
# Enable parameter wrapping for JSON. You can disable this by
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by
|
7
|
+
# setting :format to an empty array.
|
7
8
|
ActiveSupport.on_load(:action_controller) do
|
8
9
|
wrap_parameters format: [:json]
|
9
10
|
end
|
@@ -1,7 +1,9 @@
|
|
1
|
-
# This file should contain all the record creation needed to seed the database
|
2
|
-
#
|
1
|
+
# This file should contain all the record creation needed to seed the database
|
2
|
+
# with its default values.
|
3
|
+
# The data can then be loaded with the rails db:seed command
|
4
|
+
# (or created alongside the database with db:setup).
|
3
5
|
#
|
4
6
|
# Examples:
|
5
7
|
#
|
6
|
-
# movies = Movie.create([{ name: 'Star Wars' }, { name: '
|
8
|
+
# movies = Movie.create([{ name: 'Star Wars' }, { name: 'LoTR' }])
|
7
9
|
# Character.create(name: 'Luke', movie: movies.first)
|
@@ -3,7 +3,7 @@ require_relative '../config/environment'
|
|
3
3
|
require 'rails/test_help'
|
4
4
|
|
5
5
|
class ActiveSupport::TestCase
|
6
|
-
# Setup all fixtures in test/fixtures/*.yml for all tests in
|
6
|
+
# Setup all fixtures in test/fixtures/*.yml for all tests in abc order.
|
7
7
|
fixtures :all
|
8
8
|
|
9
9
|
# Add more helper methods to be used by all tests here...
|
data/lib/orats/version.rb
CHANGED
data/orats.gemspec
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
lib = File.expand_path('
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
3
|
require 'orats/version'
|
4
4
|
|
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'bundler', '~> 1.5'
|
25
25
|
spec.add_development_dependency 'minitest', '~> 5.3'
|
26
26
|
spec.add_development_dependency 'rake', '~> 0'
|
27
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
27
|
+
spec.add_development_dependency 'rubocop', '~> 0.54'
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: orats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.
|
4
|
+
version: 5.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Janetakis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '0.
|
75
|
+
version: '0.54'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '0.
|
82
|
+
version: '0.54'
|
83
83
|
description: Generate Dockerized Ruby on Rails applications using best practices.
|
84
84
|
email:
|
85
85
|
- nick.janetakis@gmail.com
|