card-mod-machines 0.12.0 → 0.13.3
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 +4 -4
- data/file/all_style_machine_output/file.css +3 -3
- data/file/script_html5shiv_printshiv_machine_output/file.js +1 -1
- data/lib/card/machine.rb +43 -6
- data/set/abstract/machine/output_update.rb +17 -16
- data/set/abstract/machine.rb +32 -13
- metadata +13 -15
- data/file/all_script_machine_output/file.js +0 -136
- data/set/all/reset_machines.rb +0 -22
data/set/all/reset_machines.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
module ClassMethods
|
2
|
-
def reset_script_machine
|
3
|
-
Auth.as_bot do
|
4
|
-
card = Card[:all, :script, :machine_output]
|
5
|
-
if card
|
6
|
-
card.update_columns trash: true
|
7
|
-
card.expire
|
8
|
-
Card::Virtual.where(right_id: MachineCacheID).delete_all
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
13
|
-
def reset_all_machines
|
14
|
-
Auth.as_bot do
|
15
|
-
Card.search(right: { codename: "machine_output" }).each do |card|
|
16
|
-
card.update_columns trash: true
|
17
|
-
card.expire
|
18
|
-
end
|
19
|
-
Card::Virtual.where(right_id: MachineCacheID).delete_all
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|