decko 0.7.0.pre → 0.7.0

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: a79047a348903dd9793edf85cb5d9bbdd6f63308
4
- data.tar.gz: cac43ee279c0c466df819d890afa02671253de16
3
+ metadata.gz: 966d3568b2b431aea47eb192ee3e945246a6f1b0
4
+ data.tar.gz: a1e614eb82648621fe41e40aa7f4c9bdcaf1ef13
5
5
  SHA512:
6
- metadata.gz: 65102a60f9db30535b9229e73c57bc47a9ba442453251fda1ea4b6e2c81e961aa884f08a0ec3747653208e4a546df2a73f0361f7afe7ba81ff28b8001893f1d7
7
- data.tar.gz: 45a4f71dbc6cd4cfac8ff1b9329c65a28124e3d8eb5a55cc89a4ef8beee46cc821c77918daee03d207c5a16495012375562bd18ae0e150ef7c8fc7ec0faf46c7
6
+ metadata.gz: c552fb24c9c776b010feb149bb5bbe872d5f91c3d25e23f79ed2b9230c341e0ef8470645ddca56ef0795cc5d042827101c342f8757b53036a86bfc139d625b00
7
+ data.tar.gz: bdb77c9c8d1782df48214e04ef222f0c91a5665deabad4ac8cadd473c64af82ef3d332abf560016da409f68d9833a79cd7f49c2c080e08be7c114cb7c8c52978
@@ -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(development test))
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 = true
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 = false
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
@@ -65,6 +65,7 @@ Decko.application.class.configure do
65
65
  # true in your test
66
66
  Delayed::Worker.delay_jobs = false
67
67
 
68
+ config.rescue_all_in_controller = false
68
69
  # Use Pry instead of IRB
69
70
  silence_warnings do
70
71
  begin
@@ -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"
@@ -24,6 +24,7 @@ test: &test
24
24
  password: ''
25
25
 
26
26
  cucumber: *test
27
+ cypress: *test
27
28
 
28
29
  production:
29
30
  adapter: frontbase
@@ -69,6 +69,7 @@ test: &test
69
69
  #parameterized: false
70
70
 
71
71
  cucumber: *test
72
+ cypress: *test
72
73
 
73
74
  production:
74
75
  adapter: ibm_db
@@ -55,6 +55,7 @@ test: &test
55
55
  url: jdbc:db://localhost/<%= app_name %>_test
56
56
 
57
57
  cucumber: *test
58
+ cypress: *test
58
59
 
59
60
  production:
60
61
  adapter: jdbc
@@ -26,6 +26,7 @@ test: &test
26
26
  host: localhost
27
27
 
28
28
  cucumber: *test
29
+ cypress: *test
29
30
 
30
31
  production:
31
32
  adapter: mysql
@@ -36,6 +36,7 @@ test: &test
36
36
  password:
37
37
 
38
38
  cucumber: *test
39
+ cypress: *test
39
40
 
40
41
  production:
41
42
  adapter: postgresql
@@ -16,6 +16,7 @@ test: &test
16
16
  database: db/test.sqlite3
17
17
 
18
18
  cucumber: *test
19
+ cypress: *test
19
20
 
20
21
  production:
21
22
  adapter: sqlite3
@@ -28,6 +28,7 @@ test: &test
28
28
  database: <%= app_name %>_test
29
29
 
30
30
  cucumber: *test
31
+ cypress: *test
31
32
 
32
33
  profile: *development
33
34
 
@@ -33,6 +33,7 @@ test: &test
33
33
  password:
34
34
 
35
35
  cucumber: *test
36
+ cypress: *test
36
37
 
37
38
  production:
38
39
  adapter: oracle
@@ -32,6 +32,7 @@ test: &test
32
32
  database: <%= app_name %>_test
33
33
 
34
34
  cucumber: *test
35
+ cypress: *test
35
36
 
36
37
  production:
37
38
  database: <%= app_name %>_production
@@ -15,6 +15,7 @@ test: &test
15
15
  database: db/test.sqlite3
16
16
 
17
17
  cucumber: *test
18
+ cypress: *test
18
19
 
19
20
  production:
20
21
  database: db/production.sqlite3
@@ -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 = Rails.env.test? || ENV["CYPRESS_DEV"]
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.pre
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-03-15 00:00:00.000000000 Z
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: 1.3.1
156
+ version: '0'
155
157
  requirements: []
156
158
  rubyforge_project:
157
159
  rubygems_version: 2.6.13