einhorn 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 0.4.1 2012-09-27
2
+
3
+ * Handle a nil argument to Einhorn::Worker.socket
4
+
1
5
  === 0.4.0 2012-09-26
2
6
 
3
7
  * Switch the command-socket protocol from line-oriented JSON to
@@ -1,3 +1,3 @@
1
1
  module Einhorn
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
@@ -78,12 +78,15 @@ module Einhorn
78
78
  true
79
79
  end
80
80
 
81
- def self.socket(number=0)
81
+ def self.socket(number=nil)
82
+ number ||= 0
82
83
  fds = einhorn_fds
83
84
  fds ? fds[number] : nil
84
85
  end
85
86
 
86
- def self.socket!(number=0)
87
+ def self.socket!(number=nil)
88
+ number ||= 0
89
+
87
90
  unless fds = einhorn_fds
88
91
  raise "No EINHORN_FDS provided in environment. Are you running under Einhorn?"
89
92
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: einhorn
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Greg Brockman