decko 0.13.0 → 0.13.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/config/application_routes.rb +3 -0
- data/config/engine_routes.rb +53 -0
- data/config/environments/cucumber.rb +43 -0
- data/config/environments/cypress.rb +1 -0
- data/config/environments/development.rb +5 -0
- data/config/initializers/cypress.rb +12 -0
- data/config/initializers/secret_token.rb +15 -0
- data/config/initializers/sedate_parser.rb +8 -0
- data/config/initializers/session_store.rb +2 -0
- metadata +14 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8df78fb22e3357c499c3710236720260e5aba276321a046e1c6a99d166258abc
|
|
4
|
+
data.tar.gz: d5cbf64a237d86ea8694211423c2f4432bfad79995388fed507127abd3c90f6b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f157196de583874b449572b460821b200550b42a2acb0f5b868b9ca1335bc7819fd4ff4cae3eacfbc4c2e30f5ba84a9450d40611e5d2e67435906ea68767c69e
|
|
7
|
+
data.tar.gz: 369220b0ea762abe606e99fdef886eb01b0e338495781ee8a36a48b73d53f1bbde862762a5c6729d09064acf764c553dcbbd73beb197ce394cfe9772a90299e0
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
|
2
|
+
|
|
3
|
+
Decko::Engine.routes.draw do
|
|
4
|
+
files = Decko::Engine.config.files_web_path
|
|
5
|
+
file_matchers = { mark: /[^-]+/, explicit_file: true, rev_id: /[^-]+/ }
|
|
6
|
+
|
|
7
|
+
root "card#read"
|
|
8
|
+
|
|
9
|
+
# explicit file request
|
|
10
|
+
get({ "#{files}/:mark/:rev_id(-:size).:format" => "card#read" }.merge(file_matchers))
|
|
11
|
+
|
|
12
|
+
# DEPRECATED (old file and asset requests)
|
|
13
|
+
get({ "#{files}/:mark(-:size)-:rev_id.:format" => "card#read" }.merge(file_matchers))
|
|
14
|
+
%w[assets javascripts jasmine].each do |prefix|
|
|
15
|
+
get "#{prefix}/*mark" => "card#asset"
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Standard GET requests
|
|
19
|
+
get "(/decko)/:mark(.:format)" => "card#read" # /decko is deprecated
|
|
20
|
+
|
|
21
|
+
# Alternate GET requests
|
|
22
|
+
get "new/:type" => "card#read", view: "new" # common case for card without mark
|
|
23
|
+
get "type/:type" => "card#read"
|
|
24
|
+
get ":mark/view/:view(.:format)" => "card#read" # simplifies API documentation
|
|
25
|
+
get "card/:view(/:mark(.:format))" => "card#read", view: /new|edit/ # legacy
|
|
26
|
+
|
|
27
|
+
# RESTful (without mark)
|
|
28
|
+
post "/" => "card#create"
|
|
29
|
+
put "/" => "card#update"
|
|
30
|
+
patch "/" => "card#update"
|
|
31
|
+
delete "/" => "card#delete"
|
|
32
|
+
|
|
33
|
+
# RESTful (with mark)
|
|
34
|
+
match ":mark(.:format)" => "card#create", via: :post
|
|
35
|
+
match ":mark(.:format)" => "card#update", via: %i[put patch]
|
|
36
|
+
match ":mark(.:format)" => "card#delete", via: :delete
|
|
37
|
+
|
|
38
|
+
# explicit GET alternatives for transactions
|
|
39
|
+
%w[create read update delete asset].each do |action|
|
|
40
|
+
get "(card)/#{action}(/:mark(.:format))" => "card", action: action
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# for super-explicit over-achievers
|
|
44
|
+
match "(card)/create(/:mark(.:format))" => "card#create", via: %i[post patch]
|
|
45
|
+
match "(card)/update(/:mark(.:format))" => "card#update", via: %i[post put patch]
|
|
46
|
+
match "(card)/delete(/:mark(.:format))" => "card#delete", via: :delete
|
|
47
|
+
|
|
48
|
+
# for super-lazy under-achievers
|
|
49
|
+
get ":mark/:view(.:format)" => "card#read"
|
|
50
|
+
|
|
51
|
+
# Wildcard for bad addresses
|
|
52
|
+
get "*mark" => "card#read", view: "bad_address"
|
|
53
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
|
2
|
+
|
|
3
|
+
Decko.application.class.configure do
|
|
4
|
+
# Edit at your own peril - it's recommended to regenerate this file
|
|
5
|
+
# in the future when you upgrade to a newer version of Cucumber.
|
|
6
|
+
|
|
7
|
+
config.eager_load = false
|
|
8
|
+
|
|
9
|
+
config.machine_refresh = :never
|
|
10
|
+
|
|
11
|
+
# IMPORTANT: Setting config.cache_classes to false is known to
|
|
12
|
+
# break Cucumber's use_transactional_fixtures method.
|
|
13
|
+
# For more information see https://rspec.lighthouseapp.com/projects/16211/tickets/165
|
|
14
|
+
config.cache_classes = true
|
|
15
|
+
|
|
16
|
+
config.prepopulate_cache = true
|
|
17
|
+
|
|
18
|
+
# Log error messages when you accidentally call methods on nil.
|
|
19
|
+
config.whiny_nils = true
|
|
20
|
+
|
|
21
|
+
# Show full error reports and disable caching
|
|
22
|
+
config.consider_all_requests_local = true
|
|
23
|
+
config.action_controller.perform_caching = true
|
|
24
|
+
|
|
25
|
+
# Disable request forgery protection in test environment
|
|
26
|
+
config.action_controller.allow_forgery_protection = false
|
|
27
|
+
|
|
28
|
+
config.active_support.deprecation = :log
|
|
29
|
+
|
|
30
|
+
config.log_level = :debug
|
|
31
|
+
|
|
32
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
|
33
|
+
# The :test delivery method accumulates sent emails in the
|
|
34
|
+
# ActionMailer::Base.deliveries array.
|
|
35
|
+
config.action_mailer.delivery_method = :test
|
|
36
|
+
|
|
37
|
+
config.use_transactional_fixtures = false
|
|
38
|
+
|
|
39
|
+
config.rescue_all_in_controller = false
|
|
40
|
+
config.raise_all_rendering_errors = true
|
|
41
|
+
|
|
42
|
+
config.paging_limit = 10
|
|
43
|
+
end
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require File.join(Cardio.gem_root, "config", "environments", "test")
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
if defined?(CypressOnRails)
|
|
2
|
+
require "simplecov"
|
|
3
|
+
|
|
4
|
+
CypressOnRails.configure do |c|
|
|
5
|
+
c.cypress_folder = File.join Decko.gem_root, "spec", "cypress"
|
|
6
|
+
# WARNING!! CypressOnRails can execute arbitrary ruby code
|
|
7
|
+
# please use with extra caution if enabling on hosted servers or starting your
|
|
8
|
+
# local server on 0.0.0.0
|
|
9
|
+
c.use_middleware = Rails.env.cypress?
|
|
10
|
+
c.logger = Rails.logger
|
|
11
|
+
end
|
|
12
|
+
end
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
|
2
|
+
|
|
3
|
+
# Be sure to restart your server when you modify this file.
|
|
4
|
+
|
|
5
|
+
# Your secret key for verifying the integrity of signed cookies.
|
|
6
|
+
# If you change this key, all old signed cookies will become invalid!
|
|
7
|
+
# Make sure the secret is at least 30 characters and all random,
|
|
8
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
|
9
|
+
|
|
10
|
+
Decko.config.secret_token = "65632e048d6c80d1e63c911e1a40a51072413543f3182e0261"\
|
|
11
|
+
"b52e3812b2c9f0ee81828fa5688a34c13a78e438a4b56f4971"\
|
|
12
|
+
"35dc079a4e4460733d555968a2f8"
|
|
13
|
+
Decko.config.secret_key_base = "65632e048d6c80d1e63c911e1a40a51072413543f3182e0"\
|
|
14
|
+
"261b52e3812b2c9f0ee81828fa5688a34c13a78e438a4b5"\
|
|
15
|
+
"6f497135dc079a4e4460733d555968a2f8"
|
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.13.
|
|
4
|
+
version: 0.13.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ethan McCutchen
|
|
@@ -32,28 +32,28 @@ dependencies:
|
|
|
32
32
|
requirements:
|
|
33
33
|
- - '='
|
|
34
34
|
- !ruby/object:Gem::Version
|
|
35
|
-
version: 1.103.
|
|
35
|
+
version: 1.103.1
|
|
36
36
|
type: :runtime
|
|
37
37
|
prerelease: false
|
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
40
|
- - '='
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: 1.103.
|
|
42
|
+
version: 1.103.1
|
|
43
43
|
- !ruby/object:Gem::Dependency
|
|
44
44
|
name: card-mod-defaults
|
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
47
|
- - '='
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
|
-
version: 0.13.
|
|
49
|
+
version: 0.13.1
|
|
50
50
|
type: :runtime
|
|
51
51
|
prerelease: false
|
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
53
53
|
requirements:
|
|
54
54
|
- - '='
|
|
55
55
|
- !ruby/object:Gem::Version
|
|
56
|
-
version: 0.13.
|
|
56
|
+
version: 0.13.1
|
|
57
57
|
description: a wiki approach to structured data, dynamic interaction, and web design
|
|
58
58
|
email:
|
|
59
59
|
- info@decko.org
|
|
@@ -80,6 +80,15 @@ files:
|
|
|
80
80
|
- app/assets/images/smoothness/ui-icons_888888_256x240.png
|
|
81
81
|
- app/assets/images/smoothness/ui-icons_cd0a0a_256x240.png
|
|
82
82
|
- bin/decko
|
|
83
|
+
- config/application_routes.rb
|
|
84
|
+
- config/engine_routes.rb
|
|
85
|
+
- config/environments/cucumber.rb
|
|
86
|
+
- config/environments/cypress.rb
|
|
87
|
+
- config/environments/development.rb
|
|
88
|
+
- config/initializers/cypress.rb
|
|
89
|
+
- config/initializers/secret_token.rb
|
|
90
|
+
- config/initializers/sedate_parser.rb
|
|
91
|
+
- config/initializers/session_store.rb
|
|
83
92
|
- lib/card_controller.rb
|
|
84
93
|
- lib/card_controller/errors.rb
|
|
85
94
|
- lib/card_controller/mark.rb
|