realweb 0.2.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,10 @@ module RealWeb
30
30
 
31
31
  def process_as_child
32
32
  trap(:TERM) { exit!(0) }
33
+ unless @verbose
34
+ STDOUT.reopen '/dev/null', 'a'
35
+ STDERR.reopen '/dev/null', 'a'
36
+ end
33
37
  @server = rack_server
34
38
  @server.start
35
39
  end
@@ -21,9 +21,9 @@ module RealWeb
21
21
  @port_range = options.delete(:port_range) || DEFAULT_PORT_RANGE
22
22
  @logger = options.delete(:logger) || DEFAULT_LOGGER
23
23
  @host = options.delete(:host) || DEFAULT_HOST
24
+ @verbose = options.delete(:verbose) || false
24
25
 
25
26
  @pre_spawn_callback = options.delete(:pre_spawn_callback)
26
-
27
27
  @rack_options = options
28
28
 
29
29
  yield self if block_given?
@@ -87,12 +87,12 @@ module RealWeb
87
87
  def wait_for_server
88
88
  20.times do
89
89
  begin
90
+ sleep 0.1
90
91
  open(base_uri)
91
92
  return
92
93
  rescue OpenURI::HTTPError
93
94
  return
94
95
  rescue Errno::ECONNREFUSED => e
95
- sleep 2
96
96
  end
97
97
  end
98
98
  abort "Unable to reach RealWeb server: Problem booting #{@config_ru}"
metadata CHANGED
@@ -1,113 +1,124 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: realweb
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
4
5
  prerelease:
5
- version: 0.2.2
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Ben Burkert
9
9
  - Martin Emde
10
10
  - Sam Merritt
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
-
15
- date: 2011-10-07 00:00:00 -07:00
16
- default_executable:
17
- dependencies:
18
- - !ruby/object:Gem::Dependency
14
+ date: 2012-11-10 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
19
17
  name: rack
20
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: !ruby/object:Gem::Requirement
21
19
  none: false
22
- requirements:
23
- - - ">="
24
- - !ruby/object:Gem::Version
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
25
23
  version: 1.1.0
26
24
  type: :runtime
27
25
  prerelease: false
28
- version_requirements: *id001
29
- - !ruby/object:Gem::Dependency
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: 1.1.0
32
+ - !ruby/object:Gem::Dependency
30
33
  name: rake
31
- requirement: &id002 !ruby/object:Gem::Requirement
34
+ requirement: !ruby/object:Gem::Requirement
32
35
  none: false
33
- requirements:
34
- - - ">="
35
- - !ruby/object:Gem::Version
36
- version: "0"
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
37
40
  type: :development
38
41
  prerelease: false
39
- version_requirements: *id002
40
- - !ruby/object:Gem::Dependency
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ - !ruby/object:Gem::Dependency
41
49
  name: rspec
42
- requirement: &id003 !ruby/object:Gem::Requirement
50
+ requirement: !ruby/object:Gem::Requirement
43
51
  none: false
44
- requirements:
52
+ requirements:
45
53
  - - ~>
46
- - !ruby/object:Gem::Version
47
- version: "2.0"
54
+ - !ruby/object:Gem::Version
55
+ version: '2.0'
48
56
  type: :development
49
57
  prerelease: false
50
- version_requirements: *id003
51
- - !ruby/object:Gem::Dependency
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ~>
62
+ - !ruby/object:Gem::Version
63
+ version: '2.0'
64
+ - !ruby/object:Gem::Dependency
52
65
  name: thin
53
- requirement: &id004 !ruby/object:Gem::Requirement
66
+ requirement: !ruby/object:Gem::Requirement
54
67
  none: false
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: "0"
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
59
72
  type: :development
60
73
  prerelease: false
61
- version_requirements: *id004
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
62
80
  description: Easily runs a rack app for tests that hit web APIs
63
81
  email: cloud-engineering@engineyard.com
64
82
  executables: []
65
-
66
83
  extensions: []
67
-
68
- extra_rdoc_files:
84
+ extra_rdoc_files:
69
85
  - README.rdoc
70
86
  - LICENSE
71
- files:
87
+ files:
72
88
  - lib/realweb/forking_server.rb
73
89
  - lib/realweb/server.rb
74
90
  - lib/realweb/thread_server.rb
75
91
  - lib/realweb.rb
76
92
  - README.rdoc
77
93
  - LICENSE
78
- has_rdoc: true
79
94
  homepage: http://github.com/engineyard/realweb
80
95
  licenses: []
81
-
82
96
  post_install_message:
83
97
  rdoc_options: []
84
-
85
- require_paths:
98
+ require_paths:
86
99
  - lib
87
- required_ruby_version: !ruby/object:Gem::Requirement
100
+ required_ruby_version: !ruby/object:Gem::Requirement
88
101
  none: false
89
- requirements:
90
- - - ">="
91
- - !ruby/object:Gem::Version
92
- hash: -2528341162125870647
93
- segments:
102
+ requirements:
103
+ - - ! '>='
104
+ - !ruby/object:Gem::Version
105
+ version: '0'
106
+ segments:
94
107
  - 0
95
- version: "0"
96
- required_rubygems_version: !ruby/object:Gem::Requirement
108
+ hash: -1675846270648618555
109
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
110
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- hash: -2528341162125870647
102
- segments:
111
+ requirements:
112
+ - - ! '>='
113
+ - !ruby/object:Gem::Version
114
+ version: '0'
115
+ segments:
103
116
  - 0
104
- version: "0"
117
+ hash: -1675846270648618555
105
118
  requirements: []
106
-
107
119
  rubyforge_project:
108
- rubygems_version: 1.6.2
120
+ rubygems_version: 1.8.24
109
121
  signing_key:
110
122
  specification_version: 3
111
123
  summary: Easily runs a rack app for tests that hit web APIs
112
124
  test_files: []
113
-