card-mod-rules 0.19.0 → 0.19.1
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db14caa545bb925f6c2ab96b2c23a03721f7bca12ae2f37773fbca676c8b503f
|
4
|
+
data.tar.gz: 2367599e2ece988cd84f2a3bf093276a33d670f498391ffbb975b15737c1443e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6603ca00481b5ff003368ec7d726315393695caa78cfb69bddbbb00829ed4690facaa0b0108a9c963222e002062a76203910d20f1a228736bd8d1379874454c
|
7
|
+
data.tar.gz: 649a34b558d21cca550033f7235d8626f5f872f7fa9880fcc9b796b2cc54321fb5c97337582920ab1bb3bf89f21f4b4ab78bf4cccb0903db7e030a42db423f32
|
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.19.
|
4
|
+
version: 0.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -17,42 +17,42 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 1.109.
|
20
|
+
version: 1.109.1
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 1.109.
|
27
|
+
version: 1.109.1
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: card-mod-format
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - '='
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: 0.19.
|
34
|
+
version: 0.19.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - '='
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: 0.19.
|
41
|
+
version: 0.19.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: card-mod-search
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: 0.19.
|
48
|
+
version: 0.19.1
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.19.
|
55
|
+
version: 0.19.1
|
56
56
|
description: ''
|
57
57
|
email:
|
58
58
|
- info@decko.org
|
@@ -66,8 +66,6 @@ files:
|
|
66
66
|
- assets/style/rules.scss
|
67
67
|
- config/locales/de.yml
|
68
68
|
- config/locales/en.yml
|
69
|
-
- data/files/mod_rules/script/asset_output/file.js
|
70
|
-
- data/files/mod_rules/script/local_machine_output/file.js
|
71
69
|
- data/real.yml
|
72
70
|
- set/abstract/virtual_set.rb
|
73
71
|
- set/all/cardtype_groups.rb
|
@@ -1,2 +0,0 @@
|
|
1
|
-
// rules.js.coffee
|
2
|
-
(function(){decko.slot.ready(function(t){return t.find("._setting-filter").each(function(){return decko.filterRulesByCategory($(this).closest(".card-slot"),$(this).find("input._setting-category:checked").attr("id"))})}),$.extend(decko,{filterRulesByCategory:function(t,i){return $(t).find("._setting-list ._setting-group").each(function(){var t,n,e;return e=(t=$(this)).find("._rule-item"),n=0,e.each(function(){var t,e;return e=(t=$(this)).parent().is("li")?t.parent():t,t.hasClass("_category-"+i)?e.show():(e.hide(),n+=1)}),n===e.length?t.hide():(t.show(),t.find("._count").html(e.length-n))})}}),$(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("warning"),$(this).notify("To what Set does this Rule apply?"),!1)}),$("body").on("click","input._setting-category",function(){var t;return t=$(this).attr("id"),decko.filterRulesByCategory($(this).closest(".card-slot"),t)})})}).call(this);
|
@@ -1,31 +0,0 @@
|
|
1
|
-
// script_rules.js.coffee
|
2
|
-
(function() {
|
3
|
-
$(window).ready(function() {
|
4
|
-
$('body').on('click', '.perm-vals input', function() {
|
5
|
-
return $(this).slot().find('#inherit').attr('checked', false);
|
6
|
-
});
|
7
|
-
$('body').on('click', '.perm-editor #inherit', function() {
|
8
|
-
var slot;
|
9
|
-
slot = $(this).slot();
|
10
|
-
slot.find('.perm-group input:checked').attr('checked', false);
|
11
|
-
return slot.find('.perm-indiv input').val('');
|
12
|
-
});
|
13
|
-
return $('body').on('click', '._rule-submit-button', function() {
|
14
|
-
var checked, f;
|
15
|
-
f = $(this).closest('form');
|
16
|
-
checked = f.find('.set-editor input:checked');
|
17
|
-
if (checked.val()) {
|
18
|
-
if (checked.attr('warning')) {
|
19
|
-
return confirm(checked.attr('warning'));
|
20
|
-
} else {
|
21
|
-
return true;
|
22
|
-
}
|
23
|
-
} else {
|
24
|
-
f.find('.set-editor').addClass('attention');
|
25
|
-
$(this).notify('To what Set does this Rule apply?');
|
26
|
-
return false;
|
27
|
-
}
|
28
|
-
});
|
29
|
-
});
|
30
|
-
|
31
|
-
}).call(this);
|