zeus 0.13.1 → 0.13.2

Sign up to get free protection for your applications and to get access to all the features.
Binary file
Binary file
Binary file
@@ -125,6 +125,7 @@ module Zeus
125
125
  end
126
126
 
127
127
  def console
128
+ require 'irb'
128
129
  if defined?(Pry) && IRB == Pry
129
130
  require "pry"
130
131
  Pry.start
@@ -202,13 +203,11 @@ module Zeus
202
203
 
203
204
  private
204
205
 
206
+ SPEC_DIR_REGEXP = /^spec/
205
207
  SPEC_FILE_REGEXP = /.+_spec\.rb$/
206
208
  def spec_file? argv
207
- SPEC_FILE_REGEXP.match(first_ruby_file argv) != nil
208
- end
209
-
210
- def first_ruby_file argv
211
- argv.find { |e| /.+\.rb$/ =~ e }
209
+ last_arg = argv[-1]
210
+ last_arg.match (Regexp.union(SPEC_DIR_REGEXP, SPEC_FILE_REGEXP))
212
211
  end
213
212
 
214
213
  def restart_girl_friday
@@ -235,7 +234,7 @@ module Zeus
235
234
  def reconnect_redis
236
235
  return unless defined?(Redis::Client)
237
236
  ObjectSpace.each_object(Redis::Client) do |client|
238
- client.connect
237
+ client.connect rescue nil
239
238
  end
240
239
  end
241
240
 
@@ -1,3 +1,3 @@
1
1
  module Zeus
2
- VERSION = "0.13.1"
2
+ VERSION = "0.13.2"
3
3
  end
metadata CHANGED
@@ -1,48 +1,48 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.1
5
4
  prerelease:
5
+ version: 0.13.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Burke Libbey
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-07 00:00:00.000000000 Z
12
+ date: 2012-12-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: rspec
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
15
+ version_requirements: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: 2.12.0
20
+ none: false
21
+ name: rspec
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
24
+ requirement: !ruby/object:Gem::Requirement
26
25
  requirements:
27
26
  - - ~>
28
27
  - !ruby/object:Gem::Version
29
28
  version: 2.12.0
30
- - !ruby/object:Gem::Dependency
31
- name: method_source
32
- requirement: !ruby/object:Gem::Requirement
33
29
  none: false
30
+ - !ruby/object:Gem::Dependency
31
+ version_requirements: !ruby/object:Gem::Requirement
34
32
  requirements:
35
33
  - - ! '>='
36
34
  - !ruby/object:Gem::Version
37
35
  version: 0.6.7
36
+ none: false
37
+ name: method_source
38
38
  type: :runtime
39
39
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
40
+ requirement: !ruby/object:Gem::Requirement
42
41
  requirements:
43
42
  - - ! '>='
44
43
  - !ruby/object:Gem::Version
45
44
  version: 0.6.7
45
+ none: false
46
46
  description: Boot any rails app in under a second
47
47
  email:
48
48
  - burke@libbey.me
@@ -92,17 +92,17 @@ rdoc_options: []
92
92
  require_paths:
93
93
  - lib
94
94
  required_ruby_version: !ruby/object:Gem::Requirement
95
- none: false
96
95
  requirements:
97
96
  - - ! '>='
98
97
  - !ruby/object:Gem::Version
99
98
  version: '0'
100
- required_rubygems_version: !ruby/object:Gem::Requirement
101
99
  none: false
100
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
101
  requirements:
103
102
  - - ! '>='
104
103
  - !ruby/object:Gem::Version
105
104
  version: '0'
105
+ none: false
106
106
  requirements: []
107
107
  rubyforge_project:
108
108
  rubygems_version: 1.8.23