zk-server 1.1.3 → 1.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,12 +24,12 @@ module ZK
24
24
  def run
25
25
  opts = Slop.parse(:help => true, :strict => true) do
26
26
  banner "zk-server [opts] runs a ZooKeeper server in the foreground"
27
- on :d, :base_dir=, "defaults to #{ZK::Server::Config.default_base_dir}"
28
- on :force_sync, 'force fsync on every snapshot'
29
- on :skip_acl, 'skip acl checks'
30
- on :p, :port=, 'port to listen on', :as => :integer
31
- on :jvm_flags=, 'additional JVM flags to pass'
32
- on :snap_count=, 'how often to take a snapshot, default 100_000', :as => :integer
27
+ on :d, :base_dir=, "defaults to #{ZK::Server::Config.default_base_dir}"
28
+ on :no_force_sync, "don't force fsync on every snapshot"
29
+ on :skip_acl, 'skip acl checks'
30
+ on :p, :port=, 'port to listen on', :as => :integer
31
+ on :jvm_flags=, 'additional JVM flags to pass'
32
+ on :snap_count=, 'how often to take a snapshot, default 100_000', :as => :integer
33
33
  end
34
34
 
35
35
  return if opts.help?
@@ -37,6 +37,12 @@ module ZK
37
37
  hash = opts.to_hash
38
38
 
39
39
  hash.delete(:help)
40
+ hash[:force_sync] = !hash.delete(:no_force_sync)
41
+
42
+ if flags = hash.delete(:jvm_flags)
43
+ hash[:jvm_flags] = flags.split(' ')
44
+ end
45
+
40
46
  hash.reject! { |k,v| v.nil? }
41
47
 
42
48
  config = ZK::Server::Config.new(hash)
@@ -1,5 +1,5 @@
1
1
  module ZK
2
2
  module Server
3
- VERSION = "1.1.3" unless defined?(::ZK::Server::VERSION)
3
+ VERSION = "1.1.4" unless defined?(::ZK::Server::VERSION)
4
4
  end
5
5
  end
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
8
8
  s.summary = s.description + "\n"
9
9
  s.homepage = "http://github.com/slyphon/zk-server"
10
10
 
11
- s.add_runtime_dependency 'bundler', '~> 1.1.3'
11
+ s.add_runtime_dependency 'bundler', '~> 1.1'
12
12
  s.add_runtime_dependency 'slyphon-log4j', '= 1.2.15'
13
13
  s.add_runtime_dependency 'slyphon-zookeeper_jar', '~> 3.3.5'
14
14
  s.add_runtime_dependency 'slop', '~> 3.2.0'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zk-server
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 3
10
- version: 1.1.3
9
+ - 4
10
+ version: 1.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jonathan D. Simms
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-16 00:00:00 Z
18
+ date: 2012-09-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: bundler
@@ -25,12 +25,11 @@ dependencies:
25
25
  requirements:
26
26
  - - ~>
27
27
  - !ruby/object:Gem::Version
28
- hash: 21
28
+ hash: 13
29
29
  segments:
30
30
  - 1
31
31
  - 1
32
- - 3
33
- version: 1.1.3
32
+ version: "1.1"
34
33
  type: :runtime
35
34
  version_requirements: *id001
36
35
  - !ruby/object:Gem::Dependency
@@ -145,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
144
  requirements: []
146
145
 
147
146
  rubyforge_project:
148
- rubygems_version: 1.8.24
147
+ rubygems_version: 1.8.17
149
148
  signing_key:
150
149
  specification_version: 3
151
150
  summary: runs a standalone zookeeper server