einhorn 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 1efce2d994e722247d125519beafc697d83d60ef
4
+ data.tar.gz: 8bd8a2e88d946f97362f5dc6e99195e1eb20d0b8
5
+ SHA512:
6
+ metadata.gz: 821150f05033f26d74d21e514bf376edfd5a13d217a7b484236d6aea53fe7047534d2ea937bf71af47af80a1b986e65c90ebcef3b22555d20f98273dec694f67
7
+ data.tar.gz: eb4de99469258fcab4170ceadb87481d1844bd71702bbfe87ca9534ec1a8a11fa06ad3ae63b9f509f60742ab8fcdc096c72153dcf7eb03481686380a3b976544
data/bin/einhornsh CHANGED
@@ -21,22 +21,14 @@ module Einhorn
21
21
  end
22
22
 
23
23
  def send_command(hash)
24
- begin
25
- @client.send_command(hash)
26
- while response = @client.receive_message
27
- if response.kind_of?(Hash)
28
- yield response['message']
29
- return unless response['wait']
30
- else
31
- puts "Invalid response type #{response.class}: #{response.inspect}"
32
- end
24
+ @client.send_command(hash)
25
+ while response = @client.receive_message
26
+ if response.kind_of?(Hash)
27
+ yield response['message']
28
+ return unless response['wait']
29
+ else
30
+ puts "Invalid response type #{response.class}: #{response.inspect}"
33
31
  end
34
- rescue Errno::EPIPE => e
35
- emit("einhornsh: Error communicating with Einhorn: #{e} (#{e.class})")
36
- emit("einhornsh: Attempting to reconnect...")
37
- reconnect
38
-
39
- retry
40
32
  end
41
33
  end
42
34
 
@@ -305,7 +305,7 @@ EOF
305
305
  end
306
306
 
307
307
  command 'state', "Get a dump of Einhorn's current state" do
308
- YAML.dump(Einhorn::Command.dumpable_state)
308
+ YAML.dump({:state => Einhorn::State.dumpable_state})
309
309
  end
310
310
 
311
311
  command 'reload', 'Reload Einhorn' do |conn, request|
@@ -1,3 +1,3 @@
1
1
  module Einhorn
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,110 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: einhorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
5
- prerelease:
4
+ version: 0.7.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Greg Brockman
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-08-20 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: pry
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: minitest
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - <
45
+ - - "<"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '5.0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - <
52
+ - - "<"
60
53
  - !ruby/object:Gem::Version
61
54
  version: '5.0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: mocha
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0.13'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0.13'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: chalk-rake
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - ">="
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - ">="
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: subprocess
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - ">="
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - ">="
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  description: Einhorn makes it easy to run multiple instances of an application server,
@@ -119,8 +106,8 @@ executables:
119
106
  extensions: []
120
107
  extra_rdoc_files: []
121
108
  files:
122
- - .gitignore
123
- - .travis.yml
109
+ - ".gitignore"
110
+ - ".travis.yml"
124
111
  - CONTRIBUTORS
125
112
  - Gemfile
126
113
  - History.txt
@@ -170,28 +157,27 @@ files:
170
157
  homepage: https://github.com/stripe/einhorn
171
158
  licenses:
172
159
  - MIT
160
+ metadata: {}
173
161
  post_install_message:
174
162
  rdoc_options: []
175
163
  require_paths:
176
164
  - lib
177
165
  required_ruby_version: !ruby/object:Gem::Requirement
178
- none: false
179
166
  requirements:
180
- - - ! '>='
167
+ - - ">="
181
168
  - !ruby/object:Gem::Version
182
169
  version: '0'
183
170
  required_rubygems_version: !ruby/object:Gem::Requirement
184
- none: false
185
171
  requirements:
186
- - - ! '>='
172
+ - - ">="
187
173
  - !ruby/object:Gem::Version
188
174
  version: '0'
189
175
  requirements: []
190
176
  rubyforge_project:
191
- rubygems_version: 1.8.23.2
177
+ rubygems_version: 2.2.2
192
178
  signing_key:
193
- specification_version: 3
194
- summary: ! 'Einhorn: the language-independent shared socket manager'
179
+ specification_version: 4
180
+ summary: 'Einhorn: the language-independent shared socket manager'
195
181
  test_files:
196
182
  - test/_lib.rb
197
183
  - test/integration/_lib.rb