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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e88b6209cac77acda87eaa4cfd917577c9f47d0c9438a50e36c16dbe9400060a
4
- data.tar.gz: 48dbe2d433745509e5bc220e666497b3187e28788e376af7a2a8f4c02302c5ae
3
+ metadata.gz: 7a81a5f46f5247b2bedc13eced0c7d42e9eea83cb9b5afd787376e804467dda3
4
+ data.tar.gz: dda36df4052ab1964e1fc5ef18ac9349aad8ec962af13412b44ff42fc23abd4a
5
5
  SHA512:
6
- metadata.gz: b54151cdfdfe9f1b98b3d8834ea6ca16b0bc301bc38d1159f86d69ddf3c45a3e7aec3eb497f22d9371ec286bb822f7379d083de45c81f6f1277931f8e3a92276
7
- data.tar.gz: 42f1d1adcb63f688cbd2ab61b8fcb9a25d475e5338fa0b733bf0e5f1a71f746e094febcee63707edd545fc953ac35bf4bed625f54c85fef9ba47c6bcceea70af
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
- ["mates", :mates]],
6
- # FIXME: optimize,
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, :accordion_bar
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
- close_modal_window,
76
+ render_close_modal_link,
77
77
  switch_to_edit_link
78
78
  ]
79
79
  end
@@ -44,7 +44,7 @@ format :html do
44
44
 
45
45
  def edit_modal_menu
46
46
  wrap_with_modal_menu do
47
- [close_modal_window, board_link(confirm: true)]
47
+ [render_close_modal_link, board_link(confirm: true)]
48
48
  end
49
49
  end
50
50
 
@@ -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
@@ -54,7 +54,7 @@ format :html do
54
54
 
55
55
  def new_modal_menu
56
56
  wrap_with_modal_menu do
57
- [close_modal_window, render_board_link]
57
+ [render_close_modal_link, render_board_link]
58
58
  end
59
59
  end
60
60
 
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.17.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-06-12 00:00:00.000000000 Z
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.107.0
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.107.0
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.17.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.17.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.17.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.17.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