card-mod-rules 0.13.0 → 0.13.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/script/script_rules.js.coffee +23 -0
- data/locales/en.yml +9 -0
- data/set/type/set.rb +1 -1
- data/set/type/setting.rb +1 -1
- metadata +10 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca17208e69ce9c949ff93245c1f4f55197abcb7dd1555759bb9a70575bd42ec3
|
4
|
+
data.tar.gz: c2f822d5ef3bdd690c0afcbec1791412672514b4a1a6dec62d6a1c6dcf83b156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d9318b982666c7155ffbd693d33fcf202fa671921037fc11c84cdd619ad1846b3a11b24fcf8c9f7c47ab1ffcbd1cd58c9146f938fb3d110a25f1c71a42d237d
|
7
|
+
data.tar.gz: cce0fe7e5a04e094c330e8515c21593b66cb4521bbd418fda6417ba4894fd452a6a8dfd4cd5e67ea42f2f14a459cca5e44b3eb93d5aee0771a051afd7b992c61
|
@@ -0,0 +1,23 @@
|
|
1
|
+
$(window).ready ->
|
2
|
+
# permissions mod
|
3
|
+
$('body').on 'click', '.perm-vals input', ->
|
4
|
+
$(this).slot().find('#inherit').attr('checked',false)
|
5
|
+
|
6
|
+
$('body').on 'click', '.perm-editor #inherit', ->
|
7
|
+
slot = $(this).slot()
|
8
|
+
slot.find('.perm-group input:checked').attr('checked', false)
|
9
|
+
slot.find('.perm-indiv input').val('')
|
10
|
+
|
11
|
+
# rstar mod
|
12
|
+
$('body').on 'click', '._rule-submit-button', ->
|
13
|
+
f = $(this).closest('form')
|
14
|
+
checked = f.find('.set-editor input:checked')
|
15
|
+
if checked.val()
|
16
|
+
if checked.attr('warning')
|
17
|
+
confirm checked.attr('warning')
|
18
|
+
else
|
19
|
+
true
|
20
|
+
else
|
21
|
+
f.find('.set-editor').addClass('attention')
|
22
|
+
$(this).notify 'To what Set does this Rule apply?'
|
23
|
+
false
|
data/locales/en.yml
ADDED
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
|
-
|
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
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.13.
|
4
|
+
version: 0.13.4
|
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-
|
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.103.
|
21
|
+
version: 1.103.4
|
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.103.
|
28
|
+
version: 1.103.4
|
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.13.
|
35
|
+
version: 0.13.4
|
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.13.
|
42
|
+
version: 0.13.4
|
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.13.
|
49
|
+
version: 0.13.4
|
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.13.
|
56
|
+
version: 0.13.4
|
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
|
+
- assets/script/script_rules.js.coffee
|
64
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
|