dispatch-rider 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YTM3M2NlMjllNjM5ZTRmYzA1ODU4ODc5OGJkMzljZGVjMzg4MGQ2OA==
5
- data.tar.gz: !binary |-
6
- ODMwYzJhOTkyYTRjMDg5YzVkMjc4NGY0NzI1MjUyM2VhMjJhYWM2Nw==
2
+ SHA1:
3
+ metadata.gz: cdb611a6ab63be55b0d04fde9ebea3916ca56f9e
4
+ data.tar.gz: 8173124a63bbc2e54596901ba952101681b3dd7c
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OTAyMzJmY2EyOWE3YjJhMjI0NTY3OGEzYzM2MmQ0Nzg2ZjIyOTEzNzRkM2Q2
10
- Zjk2MmI4YTRlODdmNjllOTc2ZDgyNzFlMDJkYWViMTdhYTQ0MTg1NGU2MGYy
11
- N2EzMzk0ZjcyZTY2MDBmZjYwN2RiMTg5ZDE1MmIxMTRmZjYzYzk=
12
- data.tar.gz: !binary |-
13
- NDM3MjNmZDA5YTc5NjQxOGFmMjYzMjgzYjFjNGYzMGY5YTE5MTU4MTVhZDNj
14
- MmRkMjBkYjcwMWYzYzRmOGNhMTY3NDJmMGFkMTVhZmY2OGQ3NjYyZTg3NzI3
15
- ZTk3NzZlYzYwNTI5ZDVjOTdlNTZkMDg5ODljOGJmNWQwNDEyYWY=
6
+ metadata.gz: 6848853a000871de5dd4186aab9aa04f0cf213595d3a9e591a2af525717ea090e1b4b87207e40ffbacd5c7811d15204b17be6242ef8d359c76c6f6e0048405ab
7
+ data.tar.gz: e2828945bc2f00a0723e009979025414eb4bed20ff82a35cb53ae553e4a02e55628200790f375ae4aa2f1817b3ebd4005533083b24b9361a2d13f9d3d136ac27
@@ -30,11 +30,16 @@ module DispatchRider
30
30
  end
31
31
 
32
32
  def process
33
- interuption_count = 0
33
+ Signal.trap("QUIT") { demultiplexer.stop } # signal number: 3
34
+ Signal.trap("TERM") { demultiplexer.stop } # signal number: 15
35
+
36
+ # user interuption
37
+ already_interupted = false
34
38
  Signal.trap("INT") do
35
- interuption_count += 1
36
- interuption_count < 2 ? demultiplexer.stop : exit(0)
39
+ already_interupted ? exit(0) : demultiplexer.stop
40
+ already_interupted = true
37
41
  end
42
+
38
43
  demultiplexer.start
39
44
  end
40
45
  end
@@ -1,4 +1,4 @@
1
1
  # This file specifies the current version of the gem.
2
2
  module DispatchRider
3
- VERSION = "0.2.4"
3
+ VERSION = "0.2.5"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dispatch-rider
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suman Mukherjee
@@ -11,62 +11,62 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-12-03 00:00:00.000000000 Z
14
+ date: 2013-12-04 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport
18
18
  requirement: !ruby/object:Gem::Requirement
19
19
  requirements:
20
- - - ! '>='
20
+ - - '>='
21
21
  - !ruby/object:Gem::Version
22
22
  version: '0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ! '>='
27
+ - - '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '0'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: activemodel
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - ! '>='
34
+ - - '>='
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
- - - ! '>='
41
+ - - '>='
42
42
  - !ruby/object:Gem::Version
43
43
  version: '0'
44
44
  - !ruby/object:Gem::Dependency
45
45
  name: daemons
46
46
  requirement: !ruby/object:Gem::Requirement
47
47
  requirements:
48
- - - ! '>='
48
+ - - '>='
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  type: :runtime
52
52
  prerelease: false
53
53
  version_requirements: !ruby/object:Gem::Requirement
54
54
  requirements:
55
- - - ! '>='
55
+ - - '>='
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: bundler
60
60
  requirement: !ruby/object:Gem::Requirement
61
61
  requirements:
62
- - - ! '>='
62
+ - - '>='
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ! '>='
69
+ - - '>='
70
70
  - !ruby/object:Gem::Version
71
71
  version: '0'
72
72
  - !ruby/object:Gem::Dependency
@@ -75,70 +75,68 @@ dependencies:
75
75
  requirements:
76
76
  - - ~>
77
77
  - !ruby/object:Gem::Version
78
- version: !binary |-
79
- MS44LjQ=
78
+ version: 1.8.4
80
79
  type: :development
81
80
  prerelease: false
82
81
  version_requirements: !ruby/object:Gem::Requirement
83
82
  requirements:
84
83
  - - ~>
85
84
  - !ruby/object:Gem::Version
86
- version: !binary |-
87
- MS44LjQ=
85
+ version: 1.8.4
88
86
  - !ruby/object:Gem::Dependency
89
87
  name: rake
90
88
  requirement: !ruby/object:Gem::Requirement
91
89
  requirements:
92
- - - ! '>='
90
+ - - '>='
93
91
  - !ruby/object:Gem::Version
94
92
  version: '0'
95
93
  type: :development
96
94
  prerelease: false
97
95
  version_requirements: !ruby/object:Gem::Requirement
98
96
  requirements:
99
- - - ! '>='
97
+ - - '>='
100
98
  - !ruby/object:Gem::Version
101
99
  version: '0'
102
100
  - !ruby/object:Gem::Dependency
103
101
  name: travis-lint
104
102
  requirement: !ruby/object:Gem::Requirement
105
103
  requirements:
106
- - - ! '>='
104
+ - - '>='
107
105
  - !ruby/object:Gem::Version
108
106
  version: '0'
109
107
  type: :development
110
108
  prerelease: false
111
109
  version_requirements: !ruby/object:Gem::Requirement
112
110
  requirements:
113
- - - ! '>='
111
+ - - '>='
114
112
  - !ruby/object:Gem::Version
115
113
  version: '0'
116
114
  - !ruby/object:Gem::Dependency
117
115
  name: rspec
118
116
  requirement: !ruby/object:Gem::Requirement
119
117
  requirements:
120
- - - ! '>='
118
+ - - '>='
121
119
  - !ruby/object:Gem::Version
122
120
  version: '0'
123
121
  type: :development
124
122
  prerelease: false
125
123
  version_requirements: !ruby/object:Gem::Requirement
126
124
  requirements:
127
- - - ! '>='
125
+ - - '>='
128
126
  - !ruby/object:Gem::Version
129
127
  version: '0'
130
128
  - !ruby/object:Gem::Dependency
131
129
  name: debugger
132
130
  requirement: !ruby/object:Gem::Requirement
133
131
  requirements:
134
- - - ! '>='
132
+ - - '>='
135
133
  - !ruby/object:Gem::Version
136
134
  version: '0'
137
135
  type: :development
138
136
  prerelease: false
139
137
  version_requirements: !ruby/object:Gem::Requirement
140
138
  requirements:
141
- - - ! '>='
139
+ - - '>='
142
140
  - !ruby/object:Gem::Version
143
141
  version: '0'
144
142
  description: Messaging system that is customizable based on which queueing system
@@ -215,17 +213,17 @@ require_paths:
215
213
  - lib
216
214
  required_ruby_version: !ruby/object:Gem::Requirement
217
215
  requirements:
218
- - - ! '>='
216
+ - - '>='
219
217
  - !ruby/object:Gem::Version
220
218
  version: '0'
221
219
  required_rubygems_version: !ruby/object:Gem::Requirement
222
220
  requirements:
223
- - - ! '>='
221
+ - - '>='
224
222
  - !ruby/object:Gem::Version
225
223
  version: '0'
226
224
  requirements: []
227
225
  rubyforge_project:
228
- rubygems_version: 2.1.10
226
+ rubygems_version: 2.0.3
229
227
  signing_key:
230
228
  specification_version: 4
231
229
  summary: Messaging system based on the reactor patter. You can publish messages to