decko 0.7.0.pre → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/decko/application.rb +1 -1
- data/lib/decko/config/environments/cucumber.rb +3 -2
- data/lib/decko/config/environments/cypress.rb +104 -0
- data/lib/decko/config/environments/development.rb +1 -0
- data/lib/decko/config/environments/test.rb +1 -0
- data/lib/decko/generators/decko/decko_generator.rb +3 -0
- data/lib/decko/generators/decko/templates/config/databases/frontbase.yml +1 -0
- data/lib/decko/generators/decko/templates/config/databases/ibm_db.yml +1 -0
- data/lib/decko/generators/decko/templates/config/databases/jdbc.yml +1 -0
- data/lib/decko/generators/decko/templates/config/databases/jdbcmysql.yml +1 -0
- data/lib/decko/generators/decko/templates/config/databases/jdbcpostgresql.yml +1 -0
- data/lib/decko/generators/decko/templates/config/databases/jdbcsqlite3.yml +1 -0
- data/lib/decko/generators/decko/templates/config/databases/mysql.yml +1 -0
- data/lib/decko/generators/decko/templates/config/databases/oracle.yml +1 -0
- data/lib/decko/generators/decko/templates/config/databases/postgresql.yml +1 -0
- data/lib/decko/generators/decko/templates/config/databases/sqlite3.yml +1 -0
- data/lib/decko/generators/decko/templates/config/initializers/cypress_dev.rb +1 -1
- data/lib/decko/generators/decko/templates/config/puma.rb +16 -0
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 966d3568b2b431aea47eb192ee3e945246a6f1b0
|
4
|
+
data.tar.gz: a1e614eb82648621fe41e40aa7f4c9bdcaf1ef13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c552fb24c9c776b010feb149bb5bbe872d5f91c3d25e23f79ed2b9230c341e0ef8470645ddca56ef0795cc5d042827101c342f8757b53036a86bfc139d625b00
|
7
|
+
data.tar.gz: bdb77c9c8d1782df48214e04ef222f0c91a5665deabad4ac8cadd473c64af82ef3d332abf560016da409f68d9833a79cd7f49c2c080e08be7c114cb7c8c52978
|
data/lib/decko/application.rb
CHANGED
@@ -5,7 +5,7 @@ require_relative "config/initializers/sedate_parser"
|
|
5
5
|
|
6
6
|
if defined?(Bundler)
|
7
7
|
# If you precompile assets before deploying to production, use this line
|
8
|
-
Bundler.require *Rails.groups(assets: %w
|
8
|
+
Bundler.require *Rails.groups(assets: %w[development test cypress])
|
9
9
|
# If you want your assets lazily compiled in production, use this line
|
10
10
|
# Bundler.require(:default, :assets, Rails.env)
|
11
11
|
end
|
@@ -19,10 +19,10 @@ Decko.application.class.configure do
|
|
19
19
|
|
20
20
|
# Show full error reports and disable caching
|
21
21
|
config.consider_all_requests_local = true
|
22
|
-
config.action_controller.perform_caching
|
22
|
+
config.action_controller.perform_caching = true
|
23
23
|
|
24
24
|
# Disable request forgery protection in test environment
|
25
|
-
config.action_controller.allow_forgery_protection
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
26
|
|
27
27
|
config.active_support.deprecation = :log
|
28
28
|
|
@@ -35,5 +35,6 @@ Decko.application.class.configure do
|
|
35
35
|
|
36
36
|
config.use_transactional_fixtures = false
|
37
37
|
|
38
|
+
config.rescue_all_in_controller = false
|
38
39
|
config.raise_all_rendering_errors = true
|
39
40
|
end
|
@@ -0,0 +1,104 @@
|
|
1
|
+
Decko::Engine.configure do
|
2
|
+
config.cache_classes = false
|
3
|
+
end
|
4
|
+
|
5
|
+
# -*- encoding : utf-8 -*-
|
6
|
+
|
7
|
+
Decko.application.class.configure do
|
8
|
+
# Settings specified here will take precedence over those in config/application.rb
|
9
|
+
|
10
|
+
config.view_cache = false
|
11
|
+
|
12
|
+
config.eager_load = false
|
13
|
+
|
14
|
+
config.machine_refresh = :eager
|
15
|
+
config.compress_javascript = false
|
16
|
+
|
17
|
+
# In the development environment your application's code is reloaded on
|
18
|
+
# every request. This slows down response time but is perfect for development
|
19
|
+
# since you don't have to restart the web server when you make code changes.
|
20
|
+
config.cache_classes = false
|
21
|
+
config.reload_classes_only_on_change = false
|
22
|
+
|
23
|
+
if defined?(RailsDevTweaks)
|
24
|
+
config.dev_tweaks.autoload_rules do
|
25
|
+
skip "/files"
|
26
|
+
skip "/favicon.ico"
|
27
|
+
skip /view\=status/
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
# Log error messages when you accidentally call methods on nil.
|
32
|
+
config.whiny_nils = true
|
33
|
+
|
34
|
+
# Show full error reports and disable caching
|
35
|
+
config.consider_all_requests_local = true
|
36
|
+
config.action_controller.perform_caching = false
|
37
|
+
|
38
|
+
# Don't care if the mailer can't send
|
39
|
+
config.action_mailer.raise_delivery_errors = false
|
40
|
+
|
41
|
+
# Print deprecation notices to the Rails logger
|
42
|
+
config.active_support.deprecation = :log
|
43
|
+
|
44
|
+
# See everything in the log (default is :info)
|
45
|
+
config.log_level = :debug
|
46
|
+
|
47
|
+
# if false, most rendering errors will be rescued and made visible only
|
48
|
+
# in the nest where the error occurred
|
49
|
+
config.raise_all_rendering_errors = true
|
50
|
+
|
51
|
+
# if false, application will raise errors that make it to controller.
|
52
|
+
config.rescue_all_in_controller = false
|
53
|
+
|
54
|
+
# config.performance_logger = {
|
55
|
+
# methods: [:event, :search, :fetch, :view], # choose methods to log
|
56
|
+
# min_time: 100, # show only method calls that are slower than 100ms
|
57
|
+
# max_depth: 3, # show nested method calls only up to depth 3
|
58
|
+
# details: true # show method arguments and sql
|
59
|
+
# log_level: :info
|
60
|
+
# }
|
61
|
+
|
62
|
+
# Only use best-standards-support built into browsers
|
63
|
+
config.action_dispatch.best_standards_support = :builtin
|
64
|
+
|
65
|
+
# Do not compress assets
|
66
|
+
# config.assets.compress = false
|
67
|
+
#
|
68
|
+
# # Expands the lines which load the assets
|
69
|
+
# config.assets.debug = false
|
70
|
+
#
|
71
|
+
# # This needs to be on for tinymce to work, because several important files (themes, etc) are only served statically
|
72
|
+
# config.serve_static_files = ENV['STATIC_ASSETS'] || true
|
73
|
+
#
|
74
|
+
# # Setting a bogus directory so rails won't find public/assets in dev mode.
|
75
|
+
# # Normally you could skip that by not serving static assets, but that breaks tinymce (see above)
|
76
|
+
# config.assets.prefix = "dynamic-assets"
|
77
|
+
|
78
|
+
# Log the query plan for queries taking more than this (works
|
79
|
+
# with SQLite, MySQL, and PostgreSQL)
|
80
|
+
# config.active_record.auto_explain_threshold_in_seconds = 0.5
|
81
|
+
|
82
|
+
# if File.exists?(File.join(Rails.root,'tmp', 'debug.txt'))
|
83
|
+
# require 'ruby-debug'
|
84
|
+
# Debugger.wait_connection = true
|
85
|
+
# Debugger.start_remote
|
86
|
+
# File.delete(File.join(Rails.root,'tmp', 'debug.txt'))
|
87
|
+
# end
|
88
|
+
|
89
|
+
config.action_mailer.perform_deliveries = false
|
90
|
+
|
91
|
+
# config.active_job.queue_adapter = :delayed_job
|
92
|
+
|
93
|
+
# Use Pry instead of IRB
|
94
|
+
silence_warnings do
|
95
|
+
begin
|
96
|
+
require "pry"
|
97
|
+
config.console = Pry
|
98
|
+
rescue LoadError
|
99
|
+
end
|
100
|
+
end
|
101
|
+
# config.session_store :cookie_store
|
102
|
+
end
|
103
|
+
|
104
|
+
# Paperclip.options[:command_path] = "/opt/local/bin"
|
@@ -14,6 +14,7 @@ Decko.application.class.configure do
|
|
14
14
|
config.eager_load = false
|
15
15
|
|
16
16
|
config.machine_refresh = :eager
|
17
|
+
config.compress_javascript = false
|
17
18
|
|
18
19
|
# In the development environment your application's code is reloaded on
|
19
20
|
# every request. This slows down response time but is perfect for development
|
@@ -188,6 +188,9 @@ class DeckoGenerator < Rails::Generators::AppBase
|
|
188
188
|
@cardio_gem_root = File.join @gem_path, "card"
|
189
189
|
@decko_gem_root = File.join @gem_path, "decko"
|
190
190
|
empty_directory "spec"
|
191
|
+
inside "config" do
|
192
|
+
template "puma.rb"
|
193
|
+
end
|
191
194
|
template "rspec", ".rspec"
|
192
195
|
template "simplecov", ".simplecov"
|
193
196
|
empty_directory "bin"
|
@@ -3,7 +3,7 @@ if defined?(CypressDev)
|
|
3
3
|
c.cypress_folder = File.join Decko.gem_root, "spec", "cypress"
|
4
4
|
# WARNING!! CypressDev can execute arbitrary ruby code
|
5
5
|
# please use with extra caution if enabling on hosted servers or starting your local server on 0.0.0.0
|
6
|
-
c.use_middleware =
|
6
|
+
c.use_middleware = ENV["CYPRESS_DEV"] || Rails.env.cypress?
|
7
7
|
c.logger = Rails.logger
|
8
8
|
end
|
9
9
|
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
workers Integer(ENV['WEB_CONCURRENCY'] || 1)
|
2
|
+
min_threads_count = Integer(ENV['RAILS_MIN_THREADS'] || 1)
|
3
|
+
max_threads_count = Integer(ENV['RAILS_MAX_THREADS'] || 1)
|
4
|
+
threads min_threads_count, max_threads_count
|
5
|
+
|
6
|
+
preload_app!
|
7
|
+
|
8
|
+
rackup DefaultRackup
|
9
|
+
port ENV['PORT'] || 3000
|
10
|
+
environment ENV['RACK_ENV'] || 'development'
|
11
|
+
|
12
|
+
on_worker_boot do
|
13
|
+
# Worker specific setup for Rails 4.1+
|
14
|
+
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
|
15
|
+
ActiveRecord::Base.establish_connection
|
16
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decko
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.0
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2019-
|
14
|
+
date: 2019-04-11 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: card
|
@@ -19,14 +19,14 @@ dependencies:
|
|
19
19
|
requirements:
|
20
20
|
- - '='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 1.97.0
|
22
|
+
version: 1.97.0.1
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
27
|
- - '='
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.97.0
|
29
|
+
version: 1.97.0.1
|
30
30
|
description: a wiki approach to stuctured data, dynamic interaction, and web design
|
31
31
|
email:
|
32
32
|
- info@decko.org
|
@@ -70,6 +70,7 @@ files:
|
|
70
70
|
- lib/decko/commands/rspec_command.rb
|
71
71
|
- lib/decko/commands/rspec_command/parser.rb
|
72
72
|
- lib/decko/config/environments/cucumber.rb
|
73
|
+
- lib/decko/config/environments/cypress.rb
|
73
74
|
- lib/decko/config/environments/development.rb
|
74
75
|
- lib/decko/config/environments/production.rb
|
75
76
|
- lib/decko/config/environments/profile.rb
|
@@ -102,6 +103,7 @@ files:
|
|
102
103
|
- lib/decko/generators/decko/templates/config/deck.yml
|
103
104
|
- lib/decko/generators/decko/templates/config/environment.rb
|
104
105
|
- lib/decko/generators/decko/templates/config/initializers/cypress_dev.rb
|
106
|
+
- lib/decko/generators/decko/templates/config/puma.rb
|
105
107
|
- lib/decko/generators/decko/templates/config/routes.erb
|
106
108
|
- lib/decko/generators/decko/templates/gitignore
|
107
109
|
- lib/decko/generators/decko/templates/public/files/htaccess
|
@@ -149,9 +151,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
149
151
|
version: 2.4.1
|
150
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
153
|
requirements:
|
152
|
-
- - "
|
154
|
+
- - ">="
|
153
155
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
156
|
+
version: '0'
|
155
157
|
requirements: []
|
156
158
|
rubyforge_project:
|
157
159
|
rubygems_version: 2.6.13
|