beetle 0.2.9.10 → 0.2.9.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/beetle.gemspec +4 -5
  2. data/lib/beetle.rb +6 -1
  3. metadata +7 -8
  4. data/ext/mkrf_conf.rb +0 -19
data/beetle.gemspec CHANGED
@@ -1,7 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "beetle"
3
- s.version = "0.2.9.10"
4
-
3
+ s.version = "0.2.9.11"
5
4
  s.required_rubygems_version = ">= 1.3.1"
6
5
  s.authors = ["Stefan Kaes", "Pascal Friederich", "Ali Jelveh", "Sebastian Roebke"]
7
6
  s.date = Time.now.strftime('%Y-%m-%d')
@@ -11,8 +10,7 @@ Gem::Specification.new do |s|
11
10
  s.email = "developers@xing.com"
12
11
  s.executables = ["beetle"]
13
12
  s.extra_rdoc_files = Dir['**/*.rdoc'] + %w(MIT-LICENSE)
14
- s.files = Dir['{examples,ext,lib}/**/*.rb'] + Dir['{features,script}/**/*'] + %w(beetle.gemspec Rakefile)
15
- s.extensions = 'ext/mkrf_conf.rb'
13
+ s.files = Dir['{examples,lib}/**/*.rb'] + Dir['{features,script}/**/*'] + %w(beetle.gemspec Rakefile)
16
14
  s.homepage = "http://xing.github.com/beetle/"
17
15
  s.rdoc_options = ["--charset=UTF-8"]
18
16
  s.require_paths = ["lib"]
@@ -22,7 +20,8 @@ Gem::Specification.new do |s|
22
20
  s.post_install_message = <<-INFO
23
21
  *********************************************************************************************
24
22
 
25
- If you're running a ruby version < 1.9 we silently installed the SystemTimer gem for you.
23
+ Please install the SystemTimer gem if you're running a ruby version < 1.9:
24
+ `gem install SystemTimer -v '=1.2.1'`
26
25
  See: http://ph7spot.com/musings/system-timer
27
26
 
28
27
  *********************************************************************************************
data/lib/beetle.rb CHANGED
@@ -55,5 +55,10 @@ module Beetle
55
55
  end
56
56
  end
57
57
 
58
- Timer = RUBY_VERSION < "1.9" ? SystemTimer : Timeout
58
+ Timer = begin
59
+ RUBY_VERSION < "1.9" ? SystemTimer : Timeout
60
+ rescue NameError
61
+ warn "WARNING: It's highly recommended to install the SystemTimer gem: `gem install SystemTimer -v '=1.2.1'` See: http://ph7spot.com/musings/system-timer" if RUBY_VERSION < "1.9"
62
+ Timeout
63
+ end
59
64
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beetle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 111
4
+ hash: 109
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
9
  - 9
10
- - 10
11
- version: 0.2.9.10
10
+ - 11
11
+ version: 0.2.9.11
12
12
  platform: ruby
13
13
  authors:
14
14
  - Stefan Kaes
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2010-12-30 00:00:00 +01:00
22
+ date: 2011-01-27 00:00:00 +01:00
23
23
  default_executable: beetle
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
@@ -196,8 +196,8 @@ description: A highly available, reliable messaging infrastructure
196
196
  email: developers@xing.com
197
197
  executables:
198
198
  - beetle
199
- extensions:
200
- - ext/mkrf_conf.rb
199
+ extensions: []
200
+
201
201
  extra_rdoc_files:
202
202
  - examples/README.rdoc
203
203
  - features/README.rdoc
@@ -214,7 +214,6 @@ files:
214
214
  - examples/redundant.rb
215
215
  - examples/rpc.rb
216
216
  - examples/simple.rb
217
- - ext/mkrf_conf.rb
218
217
  - lib/beetle/base.rb
219
218
  - lib/beetle/client.rb
220
219
  - lib/beetle/commands/configuration_client.rb
@@ -273,7 +272,7 @@ has_rdoc: true
273
272
  homepage: http://xing.github.com/beetle/
274
273
  licenses: []
275
274
 
276
- post_install_message: " *********************************************************************************************\n\n If you're running a ruby version < 1.9 we silently installed the SystemTimer gem for you.\n See: http://ph7spot.com/musings/system-timer\n\n *********************************************************************************************\n"
275
+ post_install_message: " *********************************************************************************************\n\n Please install the SystemTimer gem if you're running a ruby version < 1.9:\n `gem install SystemTimer -v '=1.2.1'`\n See: http://ph7spot.com/musings/system-timer\n\n *********************************************************************************************\n"
277
276
  rdoc_options:
278
277
  - --charset=UTF-8
279
278
  require_paths:
data/ext/mkrf_conf.rb DELETED
@@ -1,19 +0,0 @@
1
- require 'rubygems'
2
- require 'rubygems/command.rb'
3
- require 'rubygems/dependency_installer.rb'
4
- begin
5
- Gem::Command.build_args = ARGV
6
- rescue NoMethodError
7
- end
8
- inst = Gem::DependencyInstaller.new
9
- begin
10
- if RUBY_VERSION < "1.9"
11
- inst.install "SystemTimer", ">= 1.2"
12
- end
13
- rescue
14
- exit(1)
15
- end
16
-
17
- f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") # create dummy rakefile to indicate success
18
- f.write("task :default\n")
19
- f.close