yuuki 0.1.11 → 0.1.12
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/lib/yuuki/caller.rb +1 -1
- data/lib/yuuki/periodic.rb +2 -2
- data/lib/yuuki/runner.rb +5 -5
- data/lib/yuuki/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7409615113f6585101139dd2df95c8f737d0f291016351b152bc3e01390ab8d0
|
4
|
+
data.tar.gz: 3941d1d916033d8cbf5944f55cad051f74213d8d0d809476d155800b60204b5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a7dc76ec6ac0d04fbc8a734a5e79994a3f58fbb1f8d8c888c586e66442ce1eb5398ce9e1a413c9edb0145a3bfeb479843bbc2c721dd317305fdeb242bac8e3c
|
7
|
+
data.tar.gz: b22db32336dcceced700ffb15b65221c8020db7243df8b9cf79adc7a9d6a51426cfade7826a38045e74eb5da4d2ce5b2df0d76c2a90a5924591fe65c76fe9373
|
data/lib/yuuki/caller.rb
CHANGED
data/lib/yuuki/periodic.rb
CHANGED
@@ -8,7 +8,7 @@ require 'yoshinon'
|
|
8
8
|
module Yuuki
|
9
9
|
module Runner
|
10
10
|
# sets interval to the method
|
11
|
-
# @param [Symbol] methods method names
|
11
|
+
# @param [Array<Symbol>] methods method names
|
12
12
|
# @param [Integer] interval
|
13
13
|
def periodic(*methods, interval)
|
14
14
|
@yuuki_methods ||= {}
|
@@ -19,7 +19,7 @@ module Yuuki
|
|
19
19
|
end
|
20
20
|
|
21
21
|
# sets whether the method run at the first time
|
22
|
-
# @param [Symbol] methods method names
|
22
|
+
# @param [Array<Symbol>] methods method names
|
23
23
|
# @param [Boolean] enabled
|
24
24
|
def first_run(*methods, enabled: true)
|
25
25
|
@yuuki_methods ||= {}
|
data/lib/yuuki/runner.rb
CHANGED
@@ -9,7 +9,7 @@ module Yuuki
|
|
9
9
|
end
|
10
10
|
|
11
11
|
# adds methods to yuuki
|
12
|
-
# @param [Symbol] methods method names
|
12
|
+
# @param [Array<Symbol>] methods method names
|
13
13
|
def add(*methods)
|
14
14
|
@yuuki_methods ||= {}
|
15
15
|
methods.each do |method|
|
@@ -19,7 +19,7 @@ module Yuuki
|
|
19
19
|
end
|
20
20
|
|
21
21
|
# deletes methods from yuuki
|
22
|
-
# @param [Symbol] methods method names
|
22
|
+
# @param [Array<Symbol>] methods method names
|
23
23
|
def delete(*methods)
|
24
24
|
@yuuki_methods ||= {}
|
25
25
|
methods.each do |method|
|
@@ -30,7 +30,7 @@ module Yuuki
|
|
30
30
|
|
31
31
|
# adds tags to the method
|
32
32
|
# @param [Symbol] method method name
|
33
|
-
# @param [Symbol] tags tag names
|
33
|
+
# @param [Array<Symbol>] tags tag names
|
34
34
|
def tag(method, *tags)
|
35
35
|
@yuuki_methods ||= {}
|
36
36
|
@yuuki_methods[method] ||= {}
|
@@ -39,7 +39,7 @@ module Yuuki
|
|
39
39
|
end
|
40
40
|
|
41
41
|
# enables threading for the methods
|
42
|
-
# @param [Symbol] methods method names
|
42
|
+
# @param [Array<Symbol>] methods method names
|
43
43
|
# @param [Boolean] enabled
|
44
44
|
def thread(*methods, enabled: true)
|
45
45
|
@yuuki_methods ||= {}
|
@@ -50,7 +50,7 @@ module Yuuki
|
|
50
50
|
end
|
51
51
|
|
52
52
|
# sets priority to the method
|
53
|
-
# @param [Symbol] methods method names
|
53
|
+
# @param [Array<Symbol>] methods method names
|
54
54
|
# @param [Numeric] value
|
55
55
|
def priority(*methods, value)
|
56
56
|
@yuuki_methods ||= {}
|
data/lib/yuuki/version.rb
CHANGED