zk-server 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1 @@
1
+ zk-server
@@ -0,0 +1 @@
1
+ ruby-1.9.3-p429
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source :rubygems
1
+ source "https://rubygems.org"
2
2
 
3
3
  # gem 'zk', :path => '~/zk'
4
4
 
data/lib/zk-server.rb CHANGED
@@ -94,7 +94,13 @@ module ZK
94
94
  end
95
95
 
96
96
  def self.get_jar_paths_from_gem(gem_name)
97
- glob = "#{get_spec_for(gem_name).lib_dirs_glob}/**/*.jar"
97
+ spec = get_spec_for(gem_name)
98
+
99
+ if spec.respond_to?(:lib_dirs_glob)
100
+ glob = "#{spec.lib_dirs_glob}/**/*.jar"
101
+ else
102
+ glob = "#{spec.load_paths.first}/**/*.jar"
103
+ end
98
104
 
99
105
  Dir[glob].tap do |ary|
100
106
  raise "gem #{gem_name} did not contain any jars (using glob: #{glob.inspect})" if ary.empty?
@@ -23,8 +23,7 @@ module ZK
23
23
  def self.dynamically_create_consts
24
24
  hash = {
25
25
  :Quorum => org.apache.zookeeper.server.quorum,
26
- :Server => org.apache.zookeeper.server,
27
- :FileTxnSnapLog => org.apache.zookeeper.server.persistence.FileTxnSnapLog
26
+ :Server => org.apache.zookeeper.server
28
27
  }
29
28
 
30
29
  hash.each do |k,v|
@@ -1,5 +1,5 @@
1
1
  module ZK
2
2
  module Server
3
- VERSION = "1.1.5" unless defined?(::ZK::Server::VERSION)
3
+ VERSION = "1.1.6" unless defined?(::ZK::Server::VERSION)
4
4
  end
5
5
  end
data/zk-server.gemspec CHANGED
@@ -8,10 +8,10 @@ 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'
11
+ s.add_runtime_dependency 'bundler', '>= 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
- s.add_runtime_dependency 'slop', '~> 3.2.0'
14
+ s.add_runtime_dependency 'slop', '>= 3.2.0'
15
15
 
16
16
  s.files = `git ls-files`.split($\)
17
17
  s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,95 +1,91 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: zk-server
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.1.6
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 1
9
- - 5
10
- version: 1.1.5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jonathan D. Simms
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-11-14 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2013-09-09 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: bundler
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ~>
27
- - !ruby/object:Gem::Version
28
- hash: 1
29
- segments:
30
- - 1
31
- version: "1"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '1'
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: slyphon-log4j
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '1'
30
+ - !ruby/object:Gem::Dependency
31
+ name: slyphon-log4j
32
+ requirement: !ruby/object:Gem::Requirement
38
33
  none: false
39
- requirements:
40
- - - "="
41
- - !ruby/object:Gem::Version
42
- hash: 1
43
- segments:
44
- - 1
45
- - 2
46
- - 15
34
+ requirements:
35
+ - - '='
36
+ - !ruby/object:Gem::Version
47
37
  version: 1.2.15
48
38
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: slyphon-zookeeper_jar
52
39
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - '='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.2.15
46
+ - !ruby/object:Gem::Dependency
47
+ name: slyphon-zookeeper_jar
48
+ requirement: !ruby/object:Gem::Requirement
54
49
  none: false
55
- requirements:
50
+ requirements:
56
51
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 1
59
- segments:
60
- - 3
61
- - 3
62
- - 5
52
+ - !ruby/object:Gem::Version
63
53
  version: 3.3.5
64
54
  type: :runtime
65
- version_requirements: *id003
66
- - !ruby/object:Gem::Dependency
67
- name: slop
68
55
  prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
56
+ version_requirements: !ruby/object:Gem::Requirement
70
57
  none: false
71
- requirements:
58
+ requirements:
72
59
  - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 15
75
- segments:
76
- - 3
77
- - 2
78
- - 0
60
+ - !ruby/object:Gem::Version
61
+ version: 3.3.5
62
+ - !ruby/object:Gem::Dependency
63
+ name: slop
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
79
69
  version: 3.2.0
80
70
  type: :runtime
81
- version_requirements: *id004
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 3.2.0
82
78
  description: runs a standalone zookeeper server
83
- email:
79
+ email:
84
80
  - slyphon@gmail.com
85
- executables:
81
+ executables:
86
82
  - zk-server
87
83
  extensions: []
88
-
89
84
  extra_rdoc_files: []
90
-
91
- files:
85
+ files:
92
86
  - .dotfiles/rspec-logging
87
+ - .dotfiles/ruby-gemset
88
+ - .dotfiles/ruby-version
93
89
  - .dotfiles/rvmrc
94
90
  - .gitignore
95
91
  - .yardopts
@@ -116,38 +112,29 @@ files:
116
112
  - zk-server.gemspec
117
113
  homepage: http://github.com/slyphon/zk-server
118
114
  licenses: []
119
-
120
115
  post_install_message:
121
116
  rdoc_options: []
122
-
123
- require_paths:
117
+ require_paths:
124
118
  - lib
125
- required_ruby_version: !ruby/object:Gem::Requirement
119
+ required_ruby_version: !ruby/object:Gem::Requirement
126
120
  none: false
127
- requirements:
128
- - - ">="
129
- - !ruby/object:Gem::Version
130
- hash: 3
131
- segments:
132
- - 0
133
- version: "0"
134
- required_rubygems_version: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
126
  none: false
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- hash: 3
140
- segments:
141
- - 0
142
- version: "0"
127
+ requirements:
128
+ - - ! '>='
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
143
131
  requirements: []
144
-
145
132
  rubyforge_project:
146
- rubygems_version: 1.8.24
133
+ rubygems_version: 1.8.25
147
134
  signing_key:
148
135
  specification_version: 3
149
136
  summary: runs a standalone zookeeper server
150
- test_files:
137
+ test_files:
151
138
  - spec/spec_helper.rb
152
139
  - spec/support/wait_watchers.rb
153
140
  - spec/zk-server/cluster_spec.rb