Compare commits
6 Commits
acl
...
dependabot
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23524bd807 | ||
|
|
d3c6c35b8a | ||
|
|
5e7fde423d | ||
|
|
f29b8b27e7 | ||
|
|
49b4573761 | ||
|
|
e25a887086 |
@@ -1,9 +1,8 @@
|
|||||||
language: ruby
|
language: ruby
|
||||||
cache: bundler
|
cache: bundler
|
||||||
rvm:
|
rvm:
|
||||||
- 2.3
|
|
||||||
- 2.4
|
|
||||||
- 2.5
|
- 2.5
|
||||||
|
- 2.6
|
||||||
script:
|
script:
|
||||||
- bundle exec rake spec
|
- bundle exec rake spec
|
||||||
- bundle exec rake litmus:run
|
- bundle exec rake litmus:run
|
||||||
|
|||||||
228
Gemfile.lock
228
Gemfile.lock
@@ -2,112 +2,141 @@ PATH
|
|||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
calligraphy (0.3.1)
|
calligraphy (0.3.1)
|
||||||
rails (~> 5.0, >= 5.0)
|
rails (>= 5.1.6.2)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
actioncable (5.1.4)
|
actioncable (6.1.3)
|
||||||
actionpack (= 5.1.4)
|
actionpack (= 6.1.3)
|
||||||
|
activesupport (= 6.1.3)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
websocket-driver (~> 0.6.1)
|
websocket-driver (>= 0.6.1)
|
||||||
actionmailer (5.1.4)
|
actionmailbox (6.1.3)
|
||||||
actionpack (= 5.1.4)
|
actionpack (= 6.1.3)
|
||||||
actionview (= 5.1.4)
|
activejob (= 6.1.3)
|
||||||
activejob (= 5.1.4)
|
activerecord (= 6.1.3)
|
||||||
|
activestorage (= 6.1.3)
|
||||||
|
activesupport (= 6.1.3)
|
||||||
|
mail (>= 2.7.1)
|
||||||
|
actionmailer (6.1.3)
|
||||||
|
actionpack (= 6.1.3)
|
||||||
|
actionview (= 6.1.3)
|
||||||
|
activejob (= 6.1.3)
|
||||||
|
activesupport (= 6.1.3)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (5.1.4)
|
actionpack (6.1.3)
|
||||||
actionview (= 5.1.4)
|
actionview (= 6.1.3)
|
||||||
activesupport (= 5.1.4)
|
activesupport (= 6.1.3)
|
||||||
rack (~> 2.0)
|
rack (~> 2.0, >= 2.0.9)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
||||||
actionview (5.1.4)
|
actiontext (6.1.3)
|
||||||
activesupport (= 5.1.4)
|
actionpack (= 6.1.3)
|
||||||
|
activerecord (= 6.1.3)
|
||||||
|
activestorage (= 6.1.3)
|
||||||
|
activesupport (= 6.1.3)
|
||||||
|
nokogiri (>= 1.8.5)
|
||||||
|
actionview (6.1.3)
|
||||||
|
activesupport (= 6.1.3)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
rails-html-sanitizer (~> 1.1, >= 1.2.0)
|
||||||
activejob (5.1.4)
|
activejob (6.1.3)
|
||||||
activesupport (= 5.1.4)
|
activesupport (= 6.1.3)
|
||||||
globalid (>= 0.3.6)
|
globalid (>= 0.3.6)
|
||||||
activemodel (5.1.4)
|
activemodel (6.1.3)
|
||||||
activesupport (= 5.1.4)
|
activesupport (= 6.1.3)
|
||||||
activerecord (5.1.4)
|
activerecord (6.1.3)
|
||||||
activemodel (= 5.1.4)
|
activemodel (= 6.1.3)
|
||||||
activesupport (= 5.1.4)
|
activesupport (= 6.1.3)
|
||||||
arel (~> 8.0)
|
activestorage (6.1.3)
|
||||||
activesupport (5.1.4)
|
actionpack (= 6.1.3)
|
||||||
|
activejob (= 6.1.3)
|
||||||
|
activerecord (= 6.1.3)
|
||||||
|
activesupport (= 6.1.3)
|
||||||
|
marcel (~> 0.3.1)
|
||||||
|
mimemagic (~> 0.3.2)
|
||||||
|
activesupport (6.1.3)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (~> 0.7)
|
i18n (>= 1.6, < 2)
|
||||||
minitest (~> 5.1)
|
minitest (>= 5.1)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 2.0)
|
||||||
arel (8.0.0)
|
zeitwerk (~> 2.3)
|
||||||
ast (2.3.0)
|
ast (2.4.0)
|
||||||
builder (3.2.3)
|
builder (3.2.4)
|
||||||
coderay (1.1.2)
|
coderay (1.1.2)
|
||||||
concurrent-ruby (1.0.5)
|
concurrent-ruby (1.1.8)
|
||||||
crass (1.0.3)
|
crass (1.0.6)
|
||||||
diff-lcs (1.3)
|
diff-lcs (1.3)
|
||||||
erubi (1.7.0)
|
erubi (1.10.0)
|
||||||
globalid (0.4.1)
|
globalid (0.4.2)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
i18n (0.9.1)
|
i18n (1.8.9)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
loofah (2.1.1)
|
jaro_winkler (1.5.3)
|
||||||
|
loofah (2.9.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
mail (2.7.0)
|
mail (2.7.1)
|
||||||
mini_mime (>= 0.1.1)
|
mini_mime (>= 0.1.1)
|
||||||
method_source (0.9.0)
|
marcel (0.3.3)
|
||||||
mini_mime (1.0.0)
|
mimemagic (~> 0.3.2)
|
||||||
mini_portile2 (2.3.0)
|
method_source (0.9.2)
|
||||||
minitest (5.10.3)
|
mimemagic (0.3.5)
|
||||||
nio4r (2.2.0)
|
mini_mime (1.0.2)
|
||||||
nokogiri (1.8.1)
|
mini_portile2 (2.5.0)
|
||||||
mini_portile2 (~> 2.3.0)
|
minitest (5.14.4)
|
||||||
parallel (1.12.1)
|
nio4r (2.5.5)
|
||||||
parser (2.4.0.2)
|
nokogiri (1.11.1)
|
||||||
ast (~> 2.3)
|
mini_portile2 (~> 2.5.0)
|
||||||
powerpack (0.1.1)
|
racc (~> 1.4)
|
||||||
pry (0.9.12.6)
|
parallel (1.17.0)
|
||||||
coderay (~> 1.0)
|
parser (2.6.4.0)
|
||||||
method_source (~> 0.8)
|
ast (~> 2.4.0)
|
||||||
slop (~> 3.4)
|
pry (0.12.2)
|
||||||
pry-nav (0.2.4)
|
coderay (~> 1.1.0)
|
||||||
pry (>= 0.9.10, < 0.11.0)
|
method_source (~> 0.9.0)
|
||||||
puma (3.11.0)
|
pry-nav (0.3.0)
|
||||||
rack (2.0.3)
|
pry (>= 0.9.10, < 0.13.0)
|
||||||
rack-test (0.8.2)
|
puma (4.1.0)
|
||||||
|
nio4r (~> 2.0)
|
||||||
|
racc (1.5.2)
|
||||||
|
rack (2.2.3)
|
||||||
|
rack-test (1.1.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
rails (5.1.4)
|
rails (6.1.3)
|
||||||
actioncable (= 5.1.4)
|
actioncable (= 6.1.3)
|
||||||
actionmailer (= 5.1.4)
|
actionmailbox (= 6.1.3)
|
||||||
actionpack (= 5.1.4)
|
actionmailer (= 6.1.3)
|
||||||
actionview (= 5.1.4)
|
actionpack (= 6.1.3)
|
||||||
activejob (= 5.1.4)
|
actiontext (= 6.1.3)
|
||||||
activemodel (= 5.1.4)
|
actionview (= 6.1.3)
|
||||||
activerecord (= 5.1.4)
|
activejob (= 6.1.3)
|
||||||
activesupport (= 5.1.4)
|
activemodel (= 6.1.3)
|
||||||
bundler (>= 1.3.0)
|
activerecord (= 6.1.3)
|
||||||
railties (= 5.1.4)
|
activestorage (= 6.1.3)
|
||||||
|
activesupport (= 6.1.3)
|
||||||
|
bundler (>= 1.15.0)
|
||||||
|
railties (= 6.1.3)
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
rails-dom-testing (2.0.3)
|
rails-dom-testing (2.0.3)
|
||||||
activesupport (>= 4.2.0)
|
activesupport (>= 4.2.0)
|
||||||
nokogiri (>= 1.6)
|
nokogiri (>= 1.6)
|
||||||
rails-html-sanitizer (1.0.3)
|
rails-html-sanitizer (1.3.0)
|
||||||
loofah (~> 2.0)
|
loofah (~> 2.3)
|
||||||
railties (5.1.4)
|
railties (6.1.3)
|
||||||
actionpack (= 5.1.4)
|
actionpack (= 6.1.3)
|
||||||
activesupport (= 5.1.4)
|
activesupport (= 6.1.3)
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.8.7)
|
rake (>= 0.8.7)
|
||||||
thor (>= 0.18.1, < 2.0)
|
thor (~> 1.0)
|
||||||
rainbow (3.0.0)
|
rainbow (3.0.0)
|
||||||
rake (12.3.0)
|
rake (12.3.3)
|
||||||
rspec-core (3.7.0)
|
rspec-core (3.7.1)
|
||||||
rspec-support (~> 3.7.0)
|
rspec-support (~> 3.7.0)
|
||||||
rspec-expectations (3.7.0)
|
rspec-expectations (3.7.0)
|
||||||
diff-lcs (>= 1.2.0, < 2.0)
|
diff-lcs (>= 1.2.0, < 2.0)
|
||||||
@@ -123,32 +152,31 @@ GEM
|
|||||||
rspec-expectations (~> 3.7.0)
|
rspec-expectations (~> 3.7.0)
|
||||||
rspec-mocks (~> 3.7.0)
|
rspec-mocks (~> 3.7.0)
|
||||||
rspec-support (~> 3.7.0)
|
rspec-support (~> 3.7.0)
|
||||||
rspec-support (3.7.0)
|
rspec-support (3.7.1)
|
||||||
rubocop (0.52.1)
|
rubocop (0.74.0)
|
||||||
|
jaro_winkler (~> 1.5.1)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 2.4.0.2, < 3.0)
|
parser (>= 2.6)
|
||||||
powerpack (~> 0.1)
|
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
ruby-progressbar (~> 1.7)
|
ruby-progressbar (~> 1.7)
|
||||||
unicode-display_width (~> 1.0, >= 1.0.1)
|
unicode-display_width (>= 1.4.0, < 1.7)
|
||||||
ruby-progressbar (1.9.0)
|
ruby-progressbar (1.10.1)
|
||||||
slop (3.6.0)
|
sprockets (4.0.2)
|
||||||
sprockets (3.7.1)
|
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
rack (> 1, < 3)
|
rack (> 1, < 3)
|
||||||
sprockets-rails (3.2.1)
|
sprockets-rails (3.2.2)
|
||||||
actionpack (>= 4.0)
|
actionpack (>= 4.0)
|
||||||
activesupport (>= 4.0)
|
activesupport (>= 4.0)
|
||||||
sprockets (>= 3.0.0)
|
sprockets (>= 3.0.0)
|
||||||
sqlite3 (1.3.13)
|
sqlite3 (1.4.1)
|
||||||
thor (0.20.0)
|
thor (1.1.0)
|
||||||
thread_safe (0.3.6)
|
tzinfo (2.0.4)
|
||||||
tzinfo (1.2.4)
|
concurrent-ruby (~> 1.0)
|
||||||
thread_safe (~> 0.1)
|
unicode-display_width (1.6.0)
|
||||||
unicode-display_width (1.3.0)
|
websocket-driver (0.7.3)
|
||||||
websocket-driver (0.6.5)
|
|
||||||
websocket-extensions (>= 0.1.0)
|
websocket-extensions (>= 0.1.0)
|
||||||
websocket-extensions (0.1.3)
|
websocket-extensions (0.1.5)
|
||||||
|
zeitwerk (2.4.2)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
ruby
|
||||||
@@ -156,11 +184,11 @@ PLATFORMS
|
|||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
calligraphy!
|
calligraphy!
|
||||||
pry-nav
|
pry-nav
|
||||||
puma (~> 3.11.0, >= 3.11.0)
|
puma (~> 4.1.0)
|
||||||
rake (~> 12.3.0, >= 12.3.0)
|
rake (~> 12.3.3)
|
||||||
rspec-rails (~> 3.7.2, >= 3.7.2)
|
rspec-rails (~> 3.7.2)
|
||||||
rubocop (~> 0.52.1)
|
rubocop (~> 0.74.0)
|
||||||
sqlite3 (~> 1.3.13, >= 1.3.13)
|
sqlite3 (~> 1.4.1)
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.16.1
|
2.0.2
|
||||||
|
|||||||
@@ -8,21 +8,21 @@ require 'calligraphy/version'
|
|||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'calligraphy'
|
s.name = 'calligraphy'
|
||||||
s.version = Calligraphy::VERSION
|
s.version = Calligraphy::VERSION
|
||||||
s.summary = 'WebDAV framework and extension for Rails 5'
|
s.summary = 'WebDAV framework and extension for Rails'
|
||||||
s.author = 'Brandon Robins'
|
s.author = 'Brandon Robins'
|
||||||
s.email = 'brandon@onebnottwo.com'
|
s.email = 'brandon@onebnottwo.com'
|
||||||
s.homepage = 'http://www.github.com/eanlain/calligraphy'
|
s.homepage = 'http://www.github.com/eanlain/calligraphy'
|
||||||
s.license = 'MIT'
|
s.license = 'MIT'
|
||||||
|
|
||||||
s.required_ruby_version = '>= 2.3.0'
|
s.required_ruby_version = '>= 2.5.0'
|
||||||
|
|
||||||
s.files = Dir['lib/**/*', 'LICENSE', 'README.md']
|
s.files = Dir['lib/**/*', 'LICENSE', 'README.md']
|
||||||
|
|
||||||
s.add_dependency 'rails', '~> 5.0', '>= 5.0'
|
s.add_dependency 'rails', '>= 5.1.6.2'
|
||||||
|
|
||||||
s.add_development_dependency 'puma', '~> 3.11.0', '>= 3.11.0'
|
s.add_development_dependency 'puma', '~> 4.1.0'
|
||||||
s.add_development_dependency 'rake', '~> 12.3.0', '>= 12.3.0'
|
s.add_development_dependency 'rake', '~> 12.3.3'
|
||||||
s.add_development_dependency 'rspec-rails', '~> 3.7.2', '>= 3.7.2'
|
s.add_development_dependency 'rspec-rails', '~> 3.7.2'
|
||||||
s.add_development_dependency 'rubocop', '~> 0.52.1'
|
s.add_development_dependency 'rubocop', '~> 0.74.0'
|
||||||
s.add_development_dependency 'sqlite3', '~> 1.3.13', '>= 1.3.13'
|
s.add_development_dependency 'sqlite3', '~> 1.4.1'
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
|
|
||||||
//= link_tree ../images
|
|
||||||
//= link_directory ../javascripts .js
|
|
||||||
//= link_directory ../stylesheets .css
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
|
||||||
// listed below.
|
|
||||||
//
|
|
||||||
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
|
||||||
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
|
|
||||||
//
|
|
||||||
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
|
||||||
// compiled file. JavaScript code in this file should be added after the last require_* statement.
|
|
||||||
//
|
|
||||||
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
|
|
||||||
// about supported directives.
|
|
||||||
//
|
|
||||||
//= require_tree .
|
|
||||||
@@ -1,15 +0,0 @@
|
|||||||
/*
|
|
||||||
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
|
||||||
* listed below.
|
|
||||||
*
|
|
||||||
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
|
||||||
* or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
|
|
||||||
*
|
|
||||||
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
|
|
||||||
* compiled file so the styles you add here take precedence over styles defined in any other CSS/SCSS
|
|
||||||
* files in this directory. Styles in this file should be added after the last require_* statement.
|
|
||||||
* It is generally better to create a new file per style scope.
|
|
||||||
*
|
|
||||||
*= require_tree .
|
|
||||||
*= require_self
|
|
||||||
*/
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
class ApplicationRecord < ActiveRecord::Base
|
|
||||||
self.abstract_class = true
|
|
||||||
end
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Dummy</title>
|
|
||||||
<%= csrf_meta_tags %>
|
|
||||||
|
|
||||||
<%= stylesheet_link_tag 'application', media: 'all' %>
|
|
||||||
<%= javascript_include_tag 'application' %>
|
|
||||||
</head>
|
|
||||||
|
|
||||||
<body>
|
|
||||||
<%= yield %>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
|
||||||
load Gem.bin_path('bundler', 'bundle')
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
require_relative '../config/boot'
|
|
||||||
require 'rake'
|
|
||||||
Rake.application.run
|
|
||||||
@@ -1,38 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
require 'pathname'
|
|
||||||
require 'fileutils'
|
|
||||||
include FileUtils
|
|
||||||
|
|
||||||
# path to your application root.
|
|
||||||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
|
||||||
|
|
||||||
def system!(*args)
|
|
||||||
system(*args) || abort("\n== Command #{args} failed ==")
|
|
||||||
end
|
|
||||||
|
|
||||||
chdir APP_ROOT do
|
|
||||||
# This script is a starting point to setup your application.
|
|
||||||
# Add necessary setup steps to this file.
|
|
||||||
|
|
||||||
puts '== Installing dependencies =='
|
|
||||||
system! 'gem install bundler --conservative'
|
|
||||||
system('bundle check') || system!('bundle install')
|
|
||||||
|
|
||||||
# Install JavaScript dependencies if using Yarn
|
|
||||||
# system('bin/yarn')
|
|
||||||
|
|
||||||
|
|
||||||
# puts "\n== Copying sample files =="
|
|
||||||
# unless File.exist?('config/database.yml')
|
|
||||||
# cp 'config/database.yml.sample', 'config/database.yml'
|
|
||||||
# end
|
|
||||||
|
|
||||||
puts "\n== Preparing database =="
|
|
||||||
system! 'bin/rails db:setup'
|
|
||||||
|
|
||||||
puts "\n== Removing old logs and tempfiles =="
|
|
||||||
system! 'bin/rails log:clear tmp:clear'
|
|
||||||
|
|
||||||
puts "\n== Restarting application server =="
|
|
||||||
system! 'bin/rails restart'
|
|
||||||
end
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
#!/usr/bin/env ruby
|
|
||||||
require 'pathname'
|
|
||||||
require 'fileutils'
|
|
||||||
include FileUtils
|
|
||||||
|
|
||||||
# path to your application root.
|
|
||||||
APP_ROOT = Pathname.new File.expand_path('../../', __FILE__)
|
|
||||||
|
|
||||||
def system!(*args)
|
|
||||||
system(*args) || abort("\n== Command #{args} failed ==")
|
|
||||||
end
|
|
||||||
|
|
||||||
chdir APP_ROOT do
|
|
||||||
# This script is a way to update your development environment automatically.
|
|
||||||
# Add necessary update steps to this file.
|
|
||||||
|
|
||||||
puts '== Installing dependencies =='
|
|
||||||
system! 'gem install bundler --conservative'
|
|
||||||
system('bundle check') || system!('bundle install')
|
|
||||||
|
|
||||||
puts "\n== Updating database =="
|
|
||||||
system! 'bin/rails db:migrate'
|
|
||||||
|
|
||||||
puts "\n== Removing old logs and tempfiles =="
|
|
||||||
system! 'bin/rails log:clear tmp:clear'
|
|
||||||
|
|
||||||
puts "\n== Restarting application server =="
|
|
||||||
system! 'bin/rails restart'
|
|
||||||
end
|
|
||||||
@@ -19,7 +19,3 @@ development:
|
|||||||
test:
|
test:
|
||||||
<<: *default
|
<<: *default
|
||||||
database: db/test.sqlite3
|
database: db/test.sqlite3
|
||||||
|
|
||||||
production:
|
|
||||||
<<: *default
|
|
||||||
database: db/production.sqlite3
|
|
||||||
|
|||||||
@@ -1,91 +0,0 @@
|
|||||||
Rails.application.configure do
|
|
||||||
# Settings specified here will take precedence over those in config/application.rb.
|
|
||||||
|
|
||||||
# Code is not reloaded between requests.
|
|
||||||
config.cache_classes = true
|
|
||||||
|
|
||||||
# Eager load code on boot. This eager loads most of Rails and
|
|
||||||
# your application in memory, allowing both threaded web servers
|
|
||||||
# and those relying on copy on write to perform better.
|
|
||||||
# Rake tasks automatically ignore this option for performance.
|
|
||||||
config.eager_load = true
|
|
||||||
|
|
||||||
# Full error reports are disabled and caching is turned on.
|
|
||||||
config.consider_all_requests_local = false
|
|
||||||
config.action_controller.perform_caching = true
|
|
||||||
|
|
||||||
# Attempt to read encrypted secrets from `config/secrets.yml.enc`.
|
|
||||||
# Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or
|
|
||||||
# `config/secrets.yml.key`.
|
|
||||||
config.read_encrypted_secrets = true
|
|
||||||
|
|
||||||
# Disable serving static files from the `/public` folder by default since
|
|
||||||
# Apache or NGINX already handles this.
|
|
||||||
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
|
||||||
|
|
||||||
# Compress JavaScripts and CSS.
|
|
||||||
config.assets.js_compressor = :uglifier
|
|
||||||
# config.assets.css_compressor = :sass
|
|
||||||
|
|
||||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
|
||||||
config.assets.compile = false
|
|
||||||
|
|
||||||
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
|
||||||
|
|
||||||
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
|
||||||
# config.action_controller.asset_host = 'http://assets.example.com'
|
|
||||||
|
|
||||||
# Specifies the header that your server uses for sending files.
|
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
|
|
||||||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
|
|
||||||
|
|
||||||
# Mount Action Cable outside main process or domain
|
|
||||||
# config.action_cable.mount_path = nil
|
|
||||||
# config.action_cable.url = 'wss://example.com/cable'
|
|
||||||
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
|
|
||||||
|
|
||||||
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
|
||||||
# config.force_ssl = true
|
|
||||||
|
|
||||||
# Use the lowest log level to ensure availability of diagnostic information
|
|
||||||
# when problems arise.
|
|
||||||
config.log_level = :debug
|
|
||||||
|
|
||||||
# Prepend all log lines with the following tags.
|
|
||||||
config.log_tags = [ :request_id ]
|
|
||||||
|
|
||||||
# Use a different cache store in production.
|
|
||||||
# config.cache_store = :mem_cache_store
|
|
||||||
|
|
||||||
# Use a real queuing backend for Active Job (and separate queues per environment)
|
|
||||||
# config.active_job.queue_adapter = :resque
|
|
||||||
# config.active_job.queue_name_prefix = "dummy_#{Rails.env}"
|
|
||||||
config.action_mailer.perform_caching = false
|
|
||||||
|
|
||||||
# Ignore bad email addresses and do not raise email delivery errors.
|
|
||||||
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
|
||||||
# config.action_mailer.raise_delivery_errors = false
|
|
||||||
|
|
||||||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
|
||||||
# the I18n.default_locale when a translation cannot be found).
|
|
||||||
config.i18n.fallbacks = true
|
|
||||||
|
|
||||||
# Send deprecation notices to registered listeners.
|
|
||||||
config.active_support.deprecation = :notify
|
|
||||||
|
|
||||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
|
||||||
config.log_formatter = ::Logger::Formatter.new
|
|
||||||
|
|
||||||
# Use a different logger for distributed setups.
|
|
||||||
# require 'syslog/logger'
|
|
||||||
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
|
||||||
|
|
||||||
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
|
||||||
logger = ActiveSupport::Logger.new(STDOUT)
|
|
||||||
logger.formatter = config.log_formatter
|
|
||||||
config.logger = ActiveSupport::TaggedLogging.new(logger)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Do not dump schema after migrations.
|
|
||||||
config.active_record.dump_schema_after_migration = false
|
|
||||||
end
|
|
||||||
@@ -40,3 +40,4 @@ Rails.application.configure do
|
|||||||
# Raises error for missing translations
|
# Raises error for missing translations
|
||||||
# config.action_view.raise_on_missing_translations = true
|
# config.action_view.raise_on_missing_translations = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +0,0 @@
|
|||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# Version of your assets, change this if you want to expire all your assets.
|
|
||||||
Rails.application.config.assets.version = '1.0'
|
|
||||||
|
|
||||||
# Add additional assets to the asset load path.
|
|
||||||
# Rails.application.config.assets.paths << Emoji.images_path
|
|
||||||
# Add Yarn node_modules folder to the asset load path.
|
|
||||||
# Rails.application.config.assets.paths << Rails.root.join('node_modules')
|
|
||||||
|
|
||||||
# Precompile additional assets.
|
|
||||||
# application.js, application.css, and all non-JS/CSS in the app/assets
|
|
||||||
# folder are already added.
|
|
||||||
# Rails.application.config.assets.precompile += %w( admin.js admin.css )
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# Specify a serializer for the signed and encrypted cookie jars.
|
|
||||||
# Valid options are :json, :marshal, and :hybrid.
|
|
||||||
Rails.application.config.action_dispatch.cookies_serializer = :json
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# Configure sensitive parameters which will be filtered from the log file.
|
|
||||||
Rails.application.config.filter_parameters += [:password]
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
# Be sure to restart your server when you modify this file.
|
|
||||||
|
|
||||||
# This file contains settings for ActionController::ParamsWrapper which
|
|
||||||
# is enabled by default.
|
|
||||||
|
|
||||||
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
|
||||||
ActiveSupport.on_load(:action_controller) do
|
|
||||||
wrap_parameters format: [:json]
|
|
||||||
end
|
|
||||||
|
|
||||||
# To enable root element in JSON for ActiveRecord objects.
|
|
||||||
# ActiveSupport.on_load(:active_record) do
|
|
||||||
# self.include_root_in_json = true
|
|
||||||
# end
|
|
||||||
@@ -22,11 +22,3 @@ development:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
secret_key_base: 276136c8ffad50817d3e1dcc7a84dd129105108f1c8e920f46b9b98b74943298637e5261fa66868baa50c1a170fcfb99dfb56f5bd33ec1b4bfd8eb34edcedb16
|
secret_key_base: 276136c8ffad50817d3e1dcc7a84dd129105108f1c8e920f46b9b98b74943298637e5261fa66868baa50c1a170fcfb99dfb56f5bd33ec1b4bfd8eb34edcedb16
|
||||||
|
|
||||||
# Do not keep production secrets in the unencrypted secrets file.
|
|
||||||
# Instead, either read values from the environment.
|
|
||||||
# Or, use `bin/rails secrets:setup` to configure encrypted secrets
|
|
||||||
# and move the `production:` environment over there.
|
|
||||||
|
|
||||||
production:
|
|
||||||
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
|
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
%w(
|
|
||||||
.ruby-version
|
|
||||||
.rbenv-vars
|
|
||||||
tmp/restart.txt
|
|
||||||
tmp/caching-dev.txt
|
|
||||||
).each { |path| Spring.watch(path) }
|
|
||||||
Reference in New Issue
Block a user