card-mod-edit 0.17.0 → 0.18.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/set/all/board/related_section.rb +4 -3
- data/set/all/board.rb +2 -2
- data/set/all/edit_content.rb +1 -1
- data/set/all/form_elements.rb +6 -6
- data/set/all/new.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a81a5f46f5247b2bedc13eced0c7d42e9eea83cb9b5afd787376e804467dda3
|
4
|
+
data.tar.gz: dda36df4052ab1964e1fc5ef18ac9349aad8ec962af13412b44ff42fc23abd4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a50548e6ca166df5cb708dcf390edef01189cfca86f872e68812ecbd9f5d4546ebff393107f1e07823aeeac37c0131d6b341ac9b204690e0398d894a67aa4084
|
7
|
+
data.tar.gz: 44b8754bb205c82950f7a5da9563c1b2158194f3e998784815b296b0f5a5673a4fabe6e200ca91747cdccc5806b758e0f84bcc20eb1d997bd726f5059737e180
|
@@ -1,9 +1,10 @@
|
|
1
1
|
format :html do
|
2
2
|
RELATED_ITEMS =
|
3
3
|
{
|
4
|
-
"by name" => [["children", :children],
|
5
|
-
|
6
|
-
#
|
4
|
+
"by name" => [["children", :children]],
|
5
|
+
# FIXME: too slow; optimize:
|
6
|
+
# ["mates", :mates],
|
7
|
+
|
7
8
|
"by content" => [["links out", :links_to],
|
8
9
|
["links in", :linked_to_by],
|
9
10
|
["nests", :nests],
|
data/set/all/board.rb
CHANGED
@@ -51,7 +51,7 @@ format :html do
|
|
51
51
|
opts[:remote] = true
|
52
52
|
add_class opts, "slotter"
|
53
53
|
opts.bury :path, :layout, :overlay
|
54
|
-
opts.bury :path, :slot, :items, :view, :
|
54
|
+
opts.bury :path, :slot, :items, :view, :closed
|
55
55
|
opts[:path][:view] ||= :content
|
56
56
|
opts
|
57
57
|
end
|
@@ -73,7 +73,7 @@ format :html do
|
|
73
73
|
def board_menu
|
74
74
|
wrap_with_modal_menu do
|
75
75
|
[
|
76
|
-
|
76
|
+
render_close_modal_link,
|
77
77
|
switch_to_edit_link
|
78
78
|
]
|
79
79
|
end
|
data/set/all/edit_content.rb
CHANGED
data/set/all/form_elements.rb
CHANGED
@@ -6,25 +6,25 @@ format :html do
|
|
6
6
|
end
|
7
7
|
|
8
8
|
# convert hash into a collection of hidden tags
|
9
|
-
def hidden_tags hash, base=nil
|
9
|
+
def hidden_tags hash, base=nil, options={}
|
10
10
|
hash ||= {}
|
11
11
|
hash.inject("") do |result, (key, val)|
|
12
12
|
new_base = base ? "#{base}[#{key}]" : key
|
13
|
-
result + process_hidden_value(val, new_base)
|
13
|
+
result + process_hidden_value(val, new_base, options)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
|
17
|
-
def process_hidden_value val, base
|
17
|
+
def process_hidden_value val, base, options={}
|
18
18
|
case val
|
19
19
|
when Hash
|
20
|
-
hidden_tags val, base
|
20
|
+
hidden_tags val, base, options
|
21
21
|
when Array
|
22
22
|
base += "[]"
|
23
23
|
val.map do |v|
|
24
|
-
hidden_field_tag base, v
|
24
|
+
hidden_field_tag base, v, options
|
25
25
|
end.join
|
26
26
|
else
|
27
|
-
hidden_field_tag base, val
|
27
|
+
hidden_field_tag base, val, options
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
data/set/all/new.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-edit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2024-
|
13
|
+
date: 2024-11-22 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,42 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.
|
21
|
+
version: 1.108.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.
|
28
|
+
version: 1.108.1
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: card-mod-rules
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 0.
|
35
|
+
version: 0.18.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: 0.
|
42
|
+
version: 0.18.1
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: card-mod-list
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 0.
|
49
|
+
version: 0.18.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.
|
56
|
+
version: 0.18.1
|
57
57
|
description: ''
|
58
58
|
email:
|
59
59
|
- info@decko.org
|
@@ -108,7 +108,7 @@ files:
|
|
108
108
|
- set/type/pointer.rb
|
109
109
|
homepage: https://decko.org
|
110
110
|
licenses:
|
111
|
-
- GPL-3.0
|
111
|
+
- GPL-3.0-or-later
|
112
112
|
metadata:
|
113
113
|
source_code_uri: https://github.com/decko-commons/decko
|
114
114
|
homepage_uri: https://decko.org
|