card-mod-rules 0.11.6 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/file/mod_rules_script_local_machine_output/file.js +2 -0
- metadata +10 -11
- data/lib/javascript/script_rules.js.coffee +0 -23
- data/set/self/script_rules.rb +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aa26c96d0fbc7966e795721bd26f712fe1f383aa03ad579dc6b9f37fe0ca55c
|
4
|
+
data.tar.gz: 3c08cd02da65230d64beb8547397756df45fb589046df7c8412abab559acb3b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e09624c9aebf1bc536226333a157959c7c0afe6d213700ea936c7f030f9f308c93fceb1b11d10aa45429fe8ab720a5c7ccbe68e9deb8320ecf3f8cdee211940
|
7
|
+
data.tar.gz: b67a96fb3d3ca7dc46b17fc0eac5f21ec015131f8abb7a2a2befa030e126722f17f2952802d2b7f8119b203bf00651aa31245af37d0007ce12048961678db911
|
@@ -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);
|
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.
|
4
|
+
version: 0.13.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: 2021-
|
13
|
+
date: 2021-08-06 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.
|
21
|
+
version: 1.103.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.
|
28
|
+
version: 1.103.1
|
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.
|
35
|
+
version: 0.13.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.
|
42
|
+
version: 0.13.1
|
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.
|
49
|
+
version: 0.13.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.
|
56
|
+
version: 0.13.1
|
57
57
|
description: ''
|
58
58
|
email:
|
59
59
|
- info@decko.org
|
@@ -61,7 +61,7 @@ executables: []
|
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
64
|
-
-
|
64
|
+
- file/mod_rules_script_local_machine_output/file.js
|
65
65
|
- set/all/related_sets.rb
|
66
66
|
- set/right/self.rb
|
67
67
|
- set/right/type_plus_right.rb
|
@@ -82,7 +82,6 @@ files:
|
|
82
82
|
- set/rule/rules.rb
|
83
83
|
- set/self/cardtype.rb
|
84
84
|
- set/self/recent_settings.rb
|
85
|
-
- set/self/script_rules.rb
|
86
85
|
- set/type/cardtype.rb
|
87
86
|
- set/type/set.rb
|
88
87
|
- set/type/set/html_views.rb
|
@@ -117,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
116
|
- !ruby/object:Gem::Version
|
118
117
|
version: '0'
|
119
118
|
requirements: []
|
120
|
-
rubygems_version: 3.1.
|
119
|
+
rubygems_version: 3.1.6
|
121
120
|
signing_key:
|
122
121
|
specification_version: 4
|
123
122
|
summary: rules
|
@@ -1,23 +0,0 @@
|
|
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/set/self/script_rules.rb
DELETED