id_service 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/id_server +9 -1
  2. data/lib/id_service/version.rb +1 -1
  3. metadata +19 -3
@@ -2,6 +2,7 @@
2
2
  require 'optparse'
3
3
  require 'rubygems'
4
4
  require 'id_service/server'
5
+ require 'daemons'
5
6
 
6
7
  opts = OptionParser.new do |opts|
7
8
  opts.banner = "IDServer: a Thrift-based ID generation service"
@@ -49,4 +50,11 @@ options = {
49
50
  }.delete_if {|key, value| value.nil? }
50
51
 
51
52
  server = IdService::Server.new(options)
52
- server.serve
53
+
54
+ daemon_options = {
55
+ multiple: false
56
+ }
57
+
58
+ Daemons.run_proc('id_server', daemon_options) do
59
+ server.serve
60
+ end
@@ -1,4 +1,4 @@
1
1
  module IdService
2
2
  # The version of IdService you are using
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: id_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-17 00:00:00.000000000 Z
12
+ date: 2013-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thrift
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: daemons
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: rake
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -160,7 +176,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
176
  version: '0'
161
177
  segments:
162
178
  - 0
163
- hash: 3226435786193218603
179
+ hash: -3878171887470984649
164
180
  required_rubygems_version: !ruby/object:Gem::Requirement
165
181
  none: false
166
182
  requirements: