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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10300fa1fe83ee2465f808c0b513ce9968d4b8ee
4
- data.tar.gz: 1ce0b378bf0033748b418e35d79687c51f6ad3a9
3
+ metadata.gz: d6ece310c2eb3d247219b9480107d1aaf37272d8
4
+ data.tar.gz: a4665a4e59b9163f2fee6379c538b00d5d2073d3
5
5
  SHA512:
6
- metadata.gz: c85e50bef4a17bf67c07ab3b6d8527cd8cf9a534b17089b22b7bf26a664e5a09d68a47812a0442f33f468e02768335c06d085cd9897d3e9367327493bc5ca6c7
7
- data.tar.gz: 0c78a350a40e7660fb71c77ea76543a34965f2f310f41e963557874fc3cc9365a47b0de4ad3837efbf50a13ed35e98474f9588e367eaaa6d902aa6c0e6610454
6
+ metadata.gz: 3ce3c555155a3d5d5cbb5a2f93ca56fdaa174ebcc341873fbc975f8f9e2d5424b864f429f14aab9459b7b83d4713ab8f7c6355ebb6205d9638fe2ad054ae5f0e
7
+ data.tar.gz: c8d0690319855441cff13701eb853aeebb4dfea636214777bea23355db9236869395e5eeb999b3cc8b0c5c663d73b2a142a954d139805c2935cffe855d650391
@@ -1 +1,2 @@
1
- �����k_�����,��3W��$mJ��>�^||��H ��$��j��f^eH�"P.��9wݩe.����<�)�t�tV����XC���
1
+ 9�׿�d4Om��G�j
2
+ ��C�
data.tar.gz.sig CHANGED
Binary file
@@ -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, &blk)
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, &blk)
63
- XThreads.new.create_loop('every', interval: interval, &blk).start
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.8
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
- MIIDRDCCAiygAwIBAgIBADANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
13
+ MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTEzMDIwNjIxMDQ1OVoXDTE0MDIwNjIxMDQ1OVowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE0MDcwNjEwNTczMloXDTE1MDcwNjEwNTczMlowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBANjJQe8j2Z+tbka0AVKTiqJ1HY7P/o79v23gs8RLxekYXTYj8pTNHSAmNeKy
19
- DTN71f3BsC/9/BaSupqHZFcZSWU/Z41ebO4JhABsDWvr6KitNdzYwQgPFy7tN6r/
20
- /VQqs9b/RrMOwz3x/5qSbbfRpjh10EqMJuliWYQYM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HRMEAjAAMAsGA1Ud
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: 2013-07-27 00:00:00.000000000 Z
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: '0'
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: '0'
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.0.0.rc.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