decko 0.18.1 → 0.19.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 +4 -4
- data/config/initializers/secret_token.rb +6 -6
- data/lib/card_controller/mark.rb +4 -6
- data/lib/card_controller/rest.rb +1 -3
- data/lib/decko/commands/application.rb +1 -1
- data/lib/decko/commands/cucumber_command/parser.rb +2 -0
- data/lib/decko/commands/cucumber_command.rb +3 -1
- data/lib/decko/commands.rb +1 -0
- data/lib/decko/engine.rb +2 -0
- data/lib/decko.rb +1 -0
- data/lib/rake_tasks/cucumber.rake +5 -4
- data/lib/rake_tasks/decko/docs.rake +2 -1
- metadata +10 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 495ff18be09fd0a855ba73e7f838c9cbc1d507b829b141f34f85dc857329abc6
|
4
|
+
data.tar.gz: 251b5ebedf62755d618cbc86dba4b22679c73a2196e5a833e240459b9c89b136
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93147d66836e565aa102f0dd21d647e879d4df23977cb7e60339543519528a199a6436b5e540169d24848aab1a9e629584ef780e6367c376138f605e045ff9d8
|
7
|
+
data.tar.gz: dad7ee2230dda1e05f2cc707872753212ce5ac787bf56233207155f62d475f03eb518cab32cc48a1cba342db8f3403ad5ff48ee8cc08771e467f5ed2a9559d4a
|
@@ -7,9 +7,9 @@
|
|
7
7
|
# Make sure the secret is at least 30 characters and all random,
|
8
8
|
# no regular words or you'll be exposed to dictionary attacks.
|
9
9
|
|
10
|
-
Decko.config.secret_token = "65632e048d6c80d1e63c911e1a40a51072413543f3182e0261"\
|
11
|
-
|
12
|
-
|
13
|
-
Decko.config.secret_key_base = "65632e048d6c80d1e63c911e1a40a51072413543f3182e0"\
|
14
|
-
|
15
|
-
|
10
|
+
Decko.config.secret_token = "65632e048d6c80d1e63c911e1a40a51072413543f3182e0261" \
|
11
|
+
"b52e3812b2c9f0ee81828fa5688a34c13a78e438a4b56f4971" \
|
12
|
+
"35dc079a4e4460733d555968a2f8"
|
13
|
+
Decko.config.secret_key_base = "65632e048d6c80d1e63c911e1a40a51072413543f3182e0" \
|
14
|
+
"261b52e3812b2c9f0ee81828fa5688a34c13a78e438a4b5" \
|
15
|
+
"6f497135dc079a4e4460733d555968a2f8"
|
data/lib/card_controller/mark.rb
CHANGED
@@ -27,7 +27,8 @@ class CardController
|
|
27
27
|
|
28
28
|
def implicit_mark
|
29
29
|
case
|
30
|
-
when initial_setup
|
30
|
+
when initial_setup?
|
31
|
+
prepare_setup_card! # alters params
|
31
32
|
""
|
32
33
|
when (name = mark_from_card_hash)
|
33
34
|
name
|
@@ -52,11 +53,8 @@ class CardController
|
|
52
53
|
params.dig :card, :name
|
53
54
|
end
|
54
55
|
|
55
|
-
|
56
|
-
|
57
|
-
return unless Card::Auth.needs_setup? && Card::Env.html?
|
58
|
-
|
59
|
-
prepare_setup_card!
|
56
|
+
def initial_setup?
|
57
|
+
Card::Auth.needs_setup? && Card::Env.html?
|
60
58
|
end
|
61
59
|
|
62
60
|
def prepare_setup_card!
|
data/lib/card_controller/rest.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require "rails/generators"
|
2
|
-
require File.expand_path("
|
2
|
+
require File.expand_path("../../generators/deck/deck_generator", __dir__)
|
3
3
|
require "cardio/command"
|
4
4
|
|
5
5
|
Cardio::Command.run_non_deck_command ARGV.first, "decko/commands"
|
@@ -5,7 +5,9 @@ require "optparse"
|
|
5
5
|
module Decko
|
6
6
|
class Commands
|
7
7
|
class CucumberCommand
|
8
|
+
# parses options to `decko cucumber` command
|
8
9
|
class Parser < OptionParser
|
10
|
+
# supports CucumberCommand::Parser class in parsing flags
|
9
11
|
class Flagger
|
10
12
|
def initialize parser, opts
|
11
13
|
@parser = parser
|
@@ -5,17 +5,19 @@ require "cardio/mod/dirs"
|
|
5
5
|
|
6
6
|
module Decko
|
7
7
|
class Commands
|
8
|
+
# handling of `decko cucumber` command
|
8
9
|
class CucumberCommand < Cardio::Command::CommandBase
|
9
10
|
require "decko/commands/cucumber_command/parser"
|
10
11
|
|
11
12
|
def initialize args
|
13
|
+
super()
|
12
14
|
@decko_args, @cucumber_args = split_args args
|
13
15
|
@opts = {}
|
14
16
|
Parser.new(@opts).parse!(@decko_args)
|
15
17
|
end
|
16
18
|
|
17
19
|
def command
|
18
|
-
@
|
20
|
+
@command ||=
|
19
21
|
"#{env_args} #{@opts[:executer] || 'bundle exec'} " \
|
20
22
|
"cucumber #{require_args} #{feature_args} #{@cucumber_args.shelljoin}"
|
21
23
|
end
|
data/lib/decko/commands.rb
CHANGED
data/lib/decko/engine.rb
CHANGED
data/lib/decko.rb
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
unless ARGV.any? { |a| a =~ /^gems/ } # Don't load anything when running the gems:* tasks
|
8
8
|
vendor_bin = Dir["#{Rails.root}/vendor/{gems,plugins}/cucumber*/bin/cucumber"].first
|
9
|
-
$LOAD_PATH.unshift(File.dirname(vendor_bin)
|
9
|
+
$LOAD_PATH.unshift("#{File.dirname(vendor_bin)}/../lib") unless vendor_bin.nil?
|
10
10
|
|
11
11
|
begin
|
12
12
|
require "cucumber/rake/task"
|
@@ -40,8 +40,8 @@ unless ARGV.any? { |a| a =~ /^gems/ } # Don't load anything when running the gem
|
|
40
40
|
|
41
41
|
task :statsetup do
|
42
42
|
require "rails/code_statistics"
|
43
|
-
::STATS_DIRECTORIES <<
|
44
|
-
::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist?
|
43
|
+
::STATS_DIRECTORIES << ["Cucumber features", "features"] if File.exist? "features"
|
44
|
+
::CodeStatistics::TEST_TYPES << "Cucumber features" if File.exist? "features"
|
45
45
|
end
|
46
46
|
|
47
47
|
task :annotations_setup do
|
@@ -61,12 +61,13 @@ unless ARGV.any? { |a| a =~ /^gems/ } # Don't load anything when running the gem
|
|
61
61
|
task default: :cucumber
|
62
62
|
|
63
63
|
task features: :cucumber do
|
64
|
-
|
64
|
+
warn "*** The 'features' task is deprecated. See rake -T cucumber ***"
|
65
65
|
end
|
66
66
|
|
67
67
|
# In case we don't have the generic Rails test:prepare hook,
|
68
68
|
# append a no-op task that we can depend upon.
|
69
69
|
task "test:prepare" do
|
70
|
+
# noop
|
70
71
|
end
|
71
72
|
|
72
73
|
task stats: "cucumber:statsetup"
|
@@ -24,8 +24,9 @@ namespace :decko do
|
|
24
24
|
# If you run this while using decko as a built gem, you could get some funky docs in
|
25
25
|
# your gems directory...
|
26
26
|
task :yardoc do
|
27
|
+
output_dir = ENV["DECKO_DOCS_DIR"] || "./doc"
|
27
28
|
doc_dir = File.expand_path "..", Decko.gem_root
|
28
|
-
system %(cd #{doc_dir}; yardoc)
|
29
|
+
system %(cd #{doc_dir}; yardoc --output-dir #{output_dir} )
|
29
30
|
end
|
30
31
|
|
31
32
|
# just load environment and trigger Card load (used to generate tmpsets)
|
metadata
CHANGED
@@ -1,16 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decko
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
8
8
|
- Philipp Kühl
|
9
9
|
- Gerry Gleason
|
10
|
-
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date:
|
12
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: actionpack
|
@@ -18,42 +17,42 @@ dependencies:
|
|
18
17
|
requirements:
|
19
18
|
- - "~>"
|
20
19
|
- !ruby/object:Gem::Version
|
21
|
-
version: '7.
|
20
|
+
version: '7.2'
|
22
21
|
type: :runtime
|
23
22
|
prerelease: false
|
24
23
|
version_requirements: !ruby/object:Gem::Requirement
|
25
24
|
requirements:
|
26
25
|
- - "~>"
|
27
26
|
- !ruby/object:Gem::Version
|
28
|
-
version: '7.
|
27
|
+
version: '7.2'
|
29
28
|
- !ruby/object:Gem::Dependency
|
30
29
|
name: card
|
31
30
|
requirement: !ruby/object:Gem::Requirement
|
32
31
|
requirements:
|
33
32
|
- - '='
|
34
33
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.
|
34
|
+
version: 1.109.0
|
36
35
|
type: :runtime
|
37
36
|
prerelease: false
|
38
37
|
version_requirements: !ruby/object:Gem::Requirement
|
39
38
|
requirements:
|
40
39
|
- - '='
|
41
40
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.
|
41
|
+
version: 1.109.0
|
43
42
|
- !ruby/object:Gem::Dependency
|
44
43
|
name: card-mod-defaults
|
45
44
|
requirement: !ruby/object:Gem::Requirement
|
46
45
|
requirements:
|
47
46
|
- - '='
|
48
47
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
48
|
+
version: 0.19.0
|
50
49
|
type: :runtime
|
51
50
|
prerelease: false
|
52
51
|
version_requirements: !ruby/object:Gem::Requirement
|
53
52
|
requirements:
|
54
53
|
- - '='
|
55
54
|
- !ruby/object:Gem::Version
|
56
|
-
version: 0.
|
55
|
+
version: 0.19.0
|
57
56
|
description: a wiki approach to structured data, dynamic interaction, and web design
|
58
57
|
email:
|
59
58
|
- info@decko.org
|
@@ -124,7 +123,6 @@ metadata:
|
|
124
123
|
bug_tracker_uri: https://github.com/decko-commons/decko/issues
|
125
124
|
wiki_uri: https://decko.org
|
126
125
|
documentation_url: http://docs.decko.org/
|
127
|
-
post_install_message:
|
128
126
|
rdoc_options: []
|
129
127
|
require_paths:
|
130
128
|
- lib
|
@@ -132,15 +130,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
130
|
requirements:
|
133
131
|
- - ">="
|
134
132
|
- !ruby/object:Gem::Version
|
135
|
-
version: '3.
|
133
|
+
version: '3.2'
|
136
134
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
137
135
|
requirements:
|
138
136
|
- - ">="
|
139
137
|
- !ruby/object:Gem::Version
|
140
138
|
version: '0'
|
141
139
|
requirements: []
|
142
|
-
rubygems_version: 3.
|
143
|
-
signing_key:
|
140
|
+
rubygems_version: 3.6.8
|
144
141
|
specification_version: 4
|
145
142
|
summary: structured wiki web platform
|
146
143
|
test_files: []
|