orats 5.2.0 → 5.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f1bd727ba8f85bca5299e42c4b1b60b8bf1e17bef7d860485719de63eb2cc77e
4
- data.tar.gz: 780bc594d642b6b64e7b9e2e553dbe83308e6c4696d7d3dba398e2d1744138a7
3
+ metadata.gz: ad010149f9412908867835e81691cf6bc103fd367cc78580669b796f129d6d33
4
+ data.tar.gz: 698e81a3d28446836ff207ebbc0bb0801c34fd4d0e5ac9d10a0e042c59019850
5
5
  SHA512:
6
- metadata.gz: 10ef7f6011f92e11f223bc4d4c19dab92d9d4b53b4c25342d7c7781ea8f7a31f70cfa2f10b69d3c128be6829cdd18c7fb87c147b9f51545d3ac9d0220de4f90f
7
- data.tar.gz: e5efd9b81e30aed4139e3cd3a1144d25a71a76e8e0b3af490f44c2f828d510e3fa8f69140128119dd5437211e17bebd032149e1a6a6853db05c4f52017529584
6
+ metadata.gz: 82e5dc668f20f77c552a6e8bfed554d43ecbc96ac74774b6c4adb9dd0efe130636b853dc5ac4b5b10b4c7a820741eded4d69a12c28d935a5baf1581af03f74f9
7
+ data.tar.gz: 256fd420eea36e3348e7067ef0ad3f5f917eb321fc5dd193e7dd13cf58970c6001e23f74e3d7a28ca4f66be1f866cbca20bf254803a0d004cc53d11d067c3f2e
@@ -1,3 +1,7 @@
1
+ ## orats 5.2.1 (April 12, 2018)
2
+
3
+ - Fix hardcoded `POSTGRES_USER` value
4
+
1
5
  ## orats 5.2.0 (April 11, 2018)
2
6
 
3
7
  - Update PostgreSQL to `10.3`
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('../../.git', __FILE__)
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=testo
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
@@ -27,3 +27,6 @@ Style/ClassAndModuleChildren:
27
27
  #
28
28
  # With it disabled, either or is valid.
29
29
  Enabled: false
30
+
31
+ Style/MixinUsage:
32
+ Enabled: false
@@ -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 available to Rake.
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 "yarnpkg", *ARGV
5
+ exec 'yarnpkg', *ARGV
6
6
  rescue Errno::ENOENT
7
- $stderr.puts "Yarn executable was not detected in the system."
8
- $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install"
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 in config/application.rb.
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 (see config/storage.yml for options)
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 those in config/application.rb.
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 either ENV["RAILS_MASTER_KEY"]
18
- # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
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 to config/initializers/assets.rb
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 (see config/storage.yml for options)
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 = [ 'http://example.com', /http:\/\/example.*/ ]
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, and use secure cookies.
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 = [ :request_id ]
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 (and separate queues per environment)
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 raise delivery errors.
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 'app-name')
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 config/application.rb.
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 wish to see in your backtraces.
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 might stem from framework code.
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
- # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
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 setting :format to an empty array.
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 with its default values.
2
- # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
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: 'Lord of the Rings' }])
8
+ # movies = Movie.create([{ name: 'Star Wars' }, { name: 'LoTR' }])
7
9
  # Character.create(name: 'Luke', movie: movies.first)
@@ -1,4 +1,4 @@
1
- require "test_helper"
1
+ require 'test_helper'
2
2
 
3
3
  class ApplicationSystemTestCase < ActionDispatch::SystemTestCase
4
4
  # driven_by :selenium, using: :chrome, screen_size: [1400, 1400]
@@ -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 alphabetical order.
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...
@@ -1,4 +1,4 @@
1
1
  # set the version of this gem
2
2
  module Orats
3
- VERSION = '5.2.0'.freeze
3
+ VERSION = '5.2.1'.freeze
4
4
  end
@@ -1,4 +1,4 @@
1
- lib = File.expand_path('../lib', __FILE__)
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.49'
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.0
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 00:00:00.000000000 Z
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.49'
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.49'
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