card-mod-rules 0.12.0 → 0.13.3

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: 387c51433be17159462a4b5b8f5cc72e10f4601d1f856a2a7ebe345b8339e5fb
4
- data.tar.gz: a6efeb0c649072d4de487514a23a5a863f59849f06f2cc5c9f522775ffb7d996
3
+ metadata.gz: 7a5a437286a033088c0fe8af7e07472cf402cc9460011473a7a8c1ef5532729f
4
+ data.tar.gz: 60c6a059cf1e672fa1d85685a77394a8c74b9496dfdbd00d5aa2f1c19a2f0977
5
5
  SHA512:
6
- metadata.gz: 91a2f8cb1a81453049f2f15d2a1b0efc732c05f822b2ba012bf855b4ba323f1a2bb892f9da026cb1f7c84d052682a8462fb6b0dea89755325d68ab12d3cf5139
7
- data.tar.gz: 97f9c9aa8a06953edeb1148678aa6184bb07c05b586629d6517302f2d0d9dd3513b6f39e8df6c9140ea24f431ecea2615a78fa8e09c322cfbc85c3b315f47c3f
6
+ metadata.gz: efa16e419585e4d8564af0564226a0e39766daf4abf03126b4df83b2a28f39fa75b047a700ffa81bb6d59e74dd5636fb0585b4a749100ef2c5bc219d7f20c2a2
7
+ data.tar.gz: 350bb8e337a4c52e69db4e287479976550699f422d73a2d182533a542678216388d5dd4cc5a03b6d4025bab31e0404ef61680c5308d5e2d7acfbaba24294c968
@@ -0,0 +1,2 @@
1
+ // script_rules.js.coffee
2
+ (function(){$(window).ready(function(){return $("body").on("click",".perm-vals input",function(){return $(this).slot().find("#inherit").attr("checked",!1)}),$("body").on("click",".perm-editor #inherit",function(){var t;return(t=$(this).slot()).find(".perm-group input:checked").attr("checked",!1),t.find(".perm-indiv input").val("")}),$("body").on("click","._rule-submit-button",function(){var t,i;return(t=(i=$(this).closest("form")).find(".set-editor input:checked")).val()?!t.attr("warning")||confirm(t.attr("warning")):(i.find(".set-editor").addClass("attention"),$(this).notify("To what Set does this Rule apply?"),!1)})})}).call(this);
data/locales/en.yml ADDED
@@ -0,0 +1,9 @@
1
+ en:
2
+ rules_config: Config
3
+ rules_event: Events
4
+ rules_other: Other
5
+ rules_permission: Permissions
6
+ rules_pointer: Pointer
7
+ rules_templating: Templating
8
+ rules_webpage: Webpage
9
+ rules_editing: Editing
data/set/type/set.rb CHANGED
@@ -26,7 +26,7 @@ end
26
26
 
27
27
  def subclass_for_set
28
28
  current_set_pattern_code = pattern.codename
29
- Card.set_patterns.find { |set| set.pattern_code == current_set_pattern_code }
29
+ Pattern.concrete.find { |set| set.pattern_code == current_set_pattern_code }
30
30
  end
31
31
 
32
32
  def junction_only?
data/set/type/setting.rb CHANGED
@@ -23,7 +23,7 @@ def count
23
23
  end
24
24
 
25
25
  def set_classes_with_rules
26
- Card.set_patterns.reverse.map do |set_class|
26
+ Pattern.concrete.reverse.map do |set_class|
27
27
  rules = rules_for_set_class set_class
28
28
  [set_class, rules] unless rules.empty?
29
29
  end.compact
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.12.0
4
+ version: 0.13.3
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-07-05 00:00:00.000000000 Z
13
+ date: 2021-09-24 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.102.0
21
+ version: 1.103.3
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.102.0
28
+ version: 1.103.3
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.12.0
35
+ version: 0.13.3
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.12.0
42
+ version: 0.13.3
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.12.0
49
+ version: 0.13.3
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.12.0
56
+ version: 0.13.3
57
57
  description: ''
58
58
  email:
59
59
  - info@decko.org
@@ -61,7 +61,9 @@ executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - lib/javascript/script_rules.js.coffee
64
+ - assets/script/script_rules.js.coffee
65
+ - file/mod_rules_script_local_machine_output/file.js
66
+ - locales/en.yml
65
67
  - set/all/related_sets.rb
66
68
  - set/right/self.rb
67
69
  - set/right/type_plus_right.rb
@@ -82,7 +84,6 @@ files:
82
84
  - set/rule/rules.rb
83
85
  - set/self/cardtype.rb
84
86
  - set/self/recent_settings.rb
85
- - set/self/script_rules.rb
86
87
  - set/type/cardtype.rb
87
88
  - set/type/set.rb
88
89
  - set/type/set/html_views.rb
@@ -117,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
118
  - !ruby/object:Gem::Version
118
119
  version: '0'
119
120
  requirements: []
120
- rubygems_version: 3.2.15
121
+ rubygems_version: 3.1.6
121
122
  signing_key:
122
123
  specification_version: 4
123
124
  summary: rules
@@ -1,3 +0,0 @@
1
- include_set Abstract::CodeFile
2
-
3
- Self::ScriptMods.add_item :script_rules