card-mod-rules 0.11.4 → 0.11.5

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: 87f1fa14f7bc2deb4eeee23382a39fed6d4781dd0b81cf626b6ef09b5fcfbd33
4
- data.tar.gz: a22ad4780f33d63a8169b7d1098220ef5e5fab8606e4a51c418281878d877fff
3
+ metadata.gz: e585ee4dc7bd8de674cfa1ce77424ecaa7ea9842a6ea45db22afe75f5e151061
4
+ data.tar.gz: 00d7183b3c9aa2be652fc6d0489df76a6d7ea6de56e9f95d5c688944fac00597
5
5
  SHA512:
6
- metadata.gz: be6ca1c5d1d3c89ffd67e1dc33b6ca681d31618af027d8ec0eb764e3719001f1c1c8ef19dd6429c69cfcd50ea361854936d22119836abf81b7a8cde4ef42f714
7
- data.tar.gz: 6f385ff4c896445eb42b785da8fa61f85273892dfebb7d19c849f3b86eb594b1bb6d52332d74c7096bf7da9b3f15fed4c0a3a4035a4a937ffd151f3b2b4ddc8b
6
+ metadata.gz: 8041f1e5f78909b9294b0f6878618b8a73371bd3abf0fb193a49cba2ff0a844788e01c804ba75cf9dffb4957eaac5dc3704493c063292d799f7eb415f06dbca0
7
+ data.tar.gz: d2bdd009927d13d2b8b2a9e549db5a4046b411ac5f01b233382f276f7186619c8fa1fede13fa12ce15f19df21b88aecf676b84e3dc3b50579880e63526aa7ffd
data/set/rule/editor.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  def left_type_for_nest_editor_set_selection
2
2
  return super unless is_template?
3
3
 
4
- case Card.fetch_id rule_set_pattern_name
4
+ case rule_set_pattern_name.card_id
5
5
  when TypeID
6
6
  rule_set.anchor_name
7
7
  when SelfID
@@ -32,10 +32,10 @@ format :html do
32
32
  set_context && Card.fetch(set_context).prototype.related_sets
33
33
  end
34
34
 
35
- def option_list title
35
+ def option_list title, &block
36
36
  formgroup title, input: "set", class: "col-xs-6", help: false do
37
37
  wrap_with :ul do
38
- wrap_each_with(:li, class: "radio") { yield }
38
+ wrap_each_with(:li, class: "radio", &block)
39
39
  end
40
40
  end
41
41
  end
@@ -1,6 +1,7 @@
1
1
  #! no set module
2
2
  class RuleSetRadio
3
3
  attr_reader :format
4
+
4
5
  delegate :link_to_card, :radio_button, :wrap_with, :icon_tag,
5
6
  to: :format
6
7
 
data/set/type/set.rb CHANGED
@@ -17,7 +17,7 @@ def pattern
17
17
  end
18
18
 
19
19
  def inheritable?
20
- junction_only? || (anchor_name&.junction? && self_set?)
20
+ junction_only? || (anchor_name&.compound? && self_set?)
21
21
  end
22
22
 
23
23
  def self_set?
data/set/type/setting.rb CHANGED
@@ -1,13 +1,11 @@
1
1
  # require "json"
2
2
 
3
3
  def self.member_names
4
- @@member_names ||= begin
5
- Card.search(
6
- { type_id: SettingID, return: "key" },
7
- "all setting cards"
8
- ).each_with_object({}) do |card_key, hash|
9
- hash[card_key] = true
10
- end
4
+ @@member_names ||= Card.search(
5
+ { type_id: SettingID, return: "key" },
6
+ "all setting cards"
7
+ ).each_with_object({}) do |card_key, hash|
8
+ hash[card_key] = true
11
9
  end
12
10
  end
13
11
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: card-mod-rules
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 0.11.5
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: 2021-05-05 00:00:00.000000000 Z
13
+ date: 2021-05-10 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.101.4
21
+ version: 1.101.5
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.101.4
28
+ version: 1.101.5
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: card-mod-format
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
33
  - - '='
34
34
  - !ruby/object:Gem::Version
35
- version: 0.11.4
35
+ version: 0.11.5
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.11.4
42
+ version: 0.11.5
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: card-mod-search
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - '='
48
48
  - !ruby/object:Gem::Version
49
- version: 0.11.4
49
+ version: 0.11.5
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.11.4
56
+ version: 0.11.5
57
57
  description: ''
58
58
  email:
59
59
  - info@decko.org