run_every 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +2 -1
- data.tar.gz.sig +0 -0
- data/lib/run_every.rb +7 -5
- metadata +34 -25
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6ece310c2eb3d247219b9480107d1aaf37272d8
|
4
|
+
data.tar.gz: a4665a4e59b9163f2fee6379c538b00d5d2073d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ce3c555155a3d5d5cbb5a2f93ca56fdaa174ebcc341873fbc975f8f9e2d5424b864f429f14aab9459b7b83d4713ab8f7c6355ebb6205d9638fe2ad054ae5f0e
|
7
|
+
data.tar.gz: c8d0690319855441cff13701eb853aeebb4dfea636214777bea23355db9236869395e5eeb999b3cc8b0c5c663d73b2a142a954d139805c2935cffe855d650391
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
9��d4O�m��G�j
|
2
|
+
��C�
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/run_every.rb
CHANGED
@@ -12,7 +12,7 @@ class RunEvery
|
|
12
12
|
elsif opt[:seconds] then
|
13
13
|
interval = opt[:seconds]
|
14
14
|
end
|
15
|
-
start_timer(interval, &blk)
|
15
|
+
start_timer(interval, opt, &blk)
|
16
16
|
end
|
17
17
|
|
18
18
|
class TimeUnit
|
@@ -33,7 +33,7 @@ class RunEvery
|
|
33
33
|
|
34
34
|
private
|
35
35
|
|
36
|
-
def start_timer(interval,
|
36
|
+
def start_timer(interval, opt={},&blk)
|
37
37
|
XThreads.new.create_loop('every', interval: interval, &blk).start
|
38
38
|
end
|
39
39
|
end
|
@@ -59,8 +59,10 @@ class RunEvery
|
|
59
59
|
|
60
60
|
private
|
61
61
|
|
62
|
-
def start_timer(interval,
|
63
|
-
|
62
|
+
def start_timer(interval, opt={},&blk)
|
63
|
+
|
64
|
+
thread_name = opt[:thread_name] || 'every'
|
65
|
+
XThreads.new.create_loop(thread_name, interval: interval, &blk).start
|
64
66
|
end
|
65
67
|
|
66
|
-
end
|
68
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_every
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,41 +10,49 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE0MDcwNjEwNTczMloXDTE1MDcwNjEwNTczMlowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
18
|
+
ggEBAKtOBUSpPZULXlt1yZDlzscyGH3M0xJxe8j8c9orr9cnwnn4n2RqCmTXw3rX
|
19
|
+
0jWkGOxpR2JYv/cdIST2dRg9NvBKv4TTjGmXcFi6fGCx2V1E/UffV68XatBbbJze
|
20
|
+
kCa3JOEzfI3XS+r6AZ84ECHzcR3pDc1q2a1z8LtHoAmWOaNJBjYrXCEKodGZ6kmM
|
21
|
+
zqK9o3Kv6msB6ClZG8I/mQRWZDHirqrDNpxn18/rGbDRSzQSl8P3QY7o7N0f6MhL
|
22
|
+
9tWrQeNo2DnpYbiLcXUPqWDMWityN3EYx60f3Jc5fxxJdeCPVkatqZH3khTAP0tQ
|
23
|
+
FrmeLGwJTOCiFWFeGicw7cPkhfcCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUdIEGPDrvwH2S41Wp/CjemRUrdZ8wJgYDVR0RBB8w
|
25
|
+
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAGgKCexlt
|
27
|
+
Xm/XJqcqjJBbQ6FHmmKTJtILSvzBkYnBmMzC3lwX5BiD1U9CJwS+EiEcDyaBiSBr
|
28
|
+
K+WTvJzVf86suSTfrv9i3KMi/IltBpDJ+gLJPTKr6MJAhySdriFGagFmfDwW5WlS
|
29
|
+
5+y1uAkHFBpvn27Hzd9sro6Mxua3Kkct+C/o0KQg2OktZmBCzhJH8fsM4AxhnVM2
|
30
|
+
JxzHyQEeqgeCEQ6bDRW84J9dXLWgIMHDautCEABZ60Sz9QfoKK7bVwvBgo1AGO9I
|
31
|
+
6H9zZgByTuS1gZ54xDfffkJRTAx9yQDTsYFI5k4zf3+nD0ERRNvF+GjQoaBwTMhi
|
32
|
+
q7/QEwB1+CNw6w==
|
31
33
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
34
|
+
date: 2014-07-06 00:00:00.000000000 Z
|
33
35
|
dependencies:
|
34
36
|
- !ruby/object:Gem::Dependency
|
35
37
|
name: xthreads
|
36
38
|
requirement: !ruby/object:Gem::Requirement
|
37
39
|
requirements:
|
38
|
-
- -
|
40
|
+
- - "~>"
|
39
41
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
42
|
+
version: '0.1'
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 0.1.6
|
41
46
|
type: :runtime
|
42
47
|
prerelease: false
|
43
48
|
version_requirements: !ruby/object:Gem::Requirement
|
44
49
|
requirements:
|
45
|
-
- -
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0.1'
|
53
|
+
- - ">="
|
46
54
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
55
|
+
version: 0.1.6
|
48
56
|
description:
|
49
57
|
email: james@r0bertson.co.uk
|
50
58
|
executables: []
|
@@ -62,18 +70,19 @@ require_paths:
|
|
62
70
|
- lib
|
63
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
64
72
|
requirements:
|
65
|
-
- -
|
73
|
+
- - ">="
|
66
74
|
- !ruby/object:Gem::Version
|
67
|
-
version:
|
75
|
+
version: 2.1.2
|
68
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
77
|
requirements:
|
70
|
-
- -
|
78
|
+
- - ">="
|
71
79
|
- !ruby/object:Gem::Version
|
72
80
|
version: '0'
|
73
81
|
requirements: []
|
74
82
|
rubyforge_project:
|
75
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.2.2
|
76
84
|
signing_key:
|
77
85
|
specification_version: 4
|
78
86
|
summary: run_every
|
79
87
|
test_files: []
|
88
|
+
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|