http_server_manager 0.4.12 → 0.4.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MTczZTdlMGZjN2Y2OTA0ZDEwNmRiNWMyYjc4MDI3N2IxZjRhMTI5Nw==
5
- data.tar.gz: !binary |-
6
- ZmEwNDQ2NzBmNjY5OTZkY2Q1MDQ3NWJlNjhmMGNjZWRlZjE5ZDBhMQ==
2
+ SHA1:
3
+ metadata.gz: b95e32aec5d797781634ce2bc41d2b37b5b6cc86
4
+ data.tar.gz: 12869cff8f60f39dfa07ebc4e95b708e479a1709
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZTc4ZjQ4ODUzMWUyNDViODY1OGM5NGJkZGFjMDRlMGQ0ZDljNGNkY2U3NDhk
10
- OTk5ZTgyODkxZWI5MDgzZTYyZmUzZTBmYmNiMmM1MWFkODQ0ODczODBkOTA0
11
- NTE4M2NmMWJiZGQ0ZDUwZWMwNWFkOTMyMTgzMmJiMWYxYjc2ODM=
12
- data.tar.gz: !binary |-
13
- MDQ5M2JhMzM3N2NjZWYxM2VmMmQyYTYzZDY0NWExZWM3YzhjMDkyMmYxNWVl
14
- ODk2OGZlMTAwNTM1NWQyNjcxNmQ2MGE5YmJiMDdlMDZiMmVkNDAwNTQ0ZmRh
15
- ZWM0OWQ4OGY4ZWI3MjA1NDFmOTRlZTg0NmUyOGEzODVkNWE3YmU=
6
+ metadata.gz: ee2292511b60e1e09a6a4ade3413a725f28ce247e1fa6fdd960f97c66c94edbaec0b42f23beb8ae652eb8793c4b2dca901fdc702e1cf2a7bce34c247abd37d95
7
+ data.tar.gz: 4f98337599eaebd926bf8ce6d5d055986ae02d4dda84b7c7808584e9c629ac32d02ca9feb78532d3a44f567d21819e44ebc90ba27a92aa23daa4609c3be70a88
@@ -19,7 +19,7 @@ module HttpServerManager
19
19
  ensure_directories_exist
20
20
  pid = Process.spawn(start_command, { [:out, :err] => [log_file_path, "w"] })
21
21
  create_pid_file(pid)
22
- Wait.until_true!("#{@name} is running", timeout_in_seconds: @timeout_in_seconds) { running? }
22
+ Wait.until_true!(description: "#{@name} is running", timeout_in_seconds: @timeout_in_seconds) { running? }
23
23
  logger.info "#{@name} started on #{@host}:#{@port}"
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module HttpServerManager
2
- VERSION = "0.4.12"
2
+ VERSION = "0.4.13"
3
3
  end
@@ -24,13 +24,13 @@ describe HttpServerManager::Server, "managing a real server" do
24
24
  it "should create a pid file for the server in the configured pid directory" do
25
25
  server.start!
26
26
 
27
- ::Wait.until_true!("server pid created") { pid_file_exists? }
27
+ ::Wait.until_true!(description: "server pid created") { pid_file_exists? }
28
28
  end
29
29
 
30
30
  it "should create a log file capturing the stdout and stderr of the server in the configured log directory" do
31
31
  server.start!
32
32
 
33
- ::Wait.until_true!("log file is created") do
33
+ ::Wait.until_true!(description: "log file is created") do
34
34
  File.exists?("#{log_dir}/#{name}_console.log")
35
35
  end
36
36
  end
@@ -77,7 +77,7 @@ describe HttpServerManager::Server, "managing a real server" do
77
77
  it "should delete the servers pid file" do
78
78
  server.stop!
79
79
 
80
- ::Wait.until_false!("server pid is deleted") do
80
+ ::Wait.until_false!(description: "server pid is deleted") do
81
81
  File.exists?("#{pid_dir}/#{name}.pid")
82
82
  end
83
83
  end
@@ -37,7 +37,7 @@ describe HttpServerManager::Server do
37
37
  let(:server_options) { { name: "Test Server", host: "localhost", port: 8888, timeout_in_seconds: 3 } }
38
38
 
39
39
  it "should wait for the specified amount of time in seconds for the server to start" do
40
- expect(Wait).to receive(:until_true!).with(anything, timeout_in_seconds: 3)
40
+ expect(Wait).to receive(:until_true!).with(hash_including(timeout_in_seconds: 3))
41
41
 
42
42
  server.start!
43
43
  end
@@ -49,7 +49,7 @@ describe HttpServerManager::Server do
49
49
  let(:env_timeout) { "8" }
50
50
 
51
51
  it "should wait for the specified amount of time in seconds for the server to start" do
52
- expect(Wait).to receive(:until_true!).with(anything, timeout_in_seconds: 8)
52
+ expect(Wait).to receive(:until_true!).with(hash_including(timeout_in_seconds: 8))
53
53
 
54
54
  server.start!
55
55
  end
@@ -59,7 +59,7 @@ describe HttpServerManager::Server do
59
59
  context "when no timeout is provided" do
60
60
 
61
61
  it "should wait 20 seconds for the server to start" do
62
- expect(Wait).to receive(:until_true!).with(anything, timeout_in_seconds: 20)
62
+ expect(Wait).to receive(:until_true!).with(hash_including(timeout_in_seconds: 20))
63
63
 
64
64
  server.start!
65
65
  end
@@ -24,7 +24,7 @@ module HttpServerManager
24
24
 
25
25
  def force_pid_file_deletion!
26
26
  FileUtils.rm_f(pid_file_path)
27
- ::Wait.until_false!("#{pid_file_path} is deleted") { pid_file_exists? }
27
+ ::Wait.until_false!(description: "#{pid_file_path} is deleted") { pid_file_exists? }
28
28
  end
29
29
 
30
30
  def restore_pid_file!
@@ -33,14 +33,14 @@ module HttpServerManager
33
33
  end
34
34
 
35
35
  def wait_until_started!
36
- ::Wait.until_true!("#{server.name} starts") do
36
+ ::Wait.until_true!(description: "#{server.name} starts") do
37
37
  !!Net::HTTP.get_response(server.host, "/", server.port) && pid_file_exists?
38
38
  end
39
39
  FileUtils.cp(pid_file_path, pid_file_backup_path)
40
40
  end
41
41
 
42
42
  def wait_until_stopped!
43
- ::Wait.until_true!("#{server.name} stops") do
43
+ ::Wait.until_true!(description: "#{server.name} stops") do
44
44
  begin
45
45
  Net::HTTP.get_response(server.host, "/", server.port)
46
46
  false
@@ -51,7 +51,7 @@ module HttpServerManager
51
51
  end
52
52
 
53
53
  def wait_until_file_exists!(file)
54
- ::Wait.until_true!("#{file} exists") { File.exists?(file) }
54
+ ::Wait.until_true!(description: "#{file} exists") { File.exists?(file) }
55
55
  end
56
56
 
57
57
  def ensure_pid_file_backup_directory_exists!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_server_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.12
4
+ version: 0.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ueckerman
@@ -9,104 +9,104 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-04-13 00:00:00.000000000 Z
12
+ date: 2016-04-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '11.1'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '11.1'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: sys-proctree
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: wait_until
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0.1'
48
+ version: '0.3'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0.1'
55
+ version: '0.3'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: travis-lint
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
62
  version: '2.0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - "~>"
68
68
  - !ruby/object:Gem::Version
69
69
  version: '2.0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - "~>"
75
75
  - !ruby/object:Gem::Version
76
76
  version: '3.4'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - "~>"
82
82
  - !ruby/object:Gem::Version
83
83
  version: '3.4'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: simplecov
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - ~>
88
+ - - "~>"
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0.11'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - ~>
95
+ - - "~>"
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0.11'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rack
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - ~>
102
+ - - "~>"
103
103
  - !ruby/object:Gem::Version
104
104
  version: '1.6'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ~>
109
+ - - "~>"
110
110
  - !ruby/object:Gem::Version
111
111
  version: '1.6'
112
112
  description: Manages the lifecycle of HTTP server processes
@@ -115,24 +115,24 @@ executables: []
115
115
  extensions: []
116
116
  extra_rdoc_files: []
117
117
  files:
118
- - ./lib/http_server_manager.rb
119
- - ./lib/http_server_manager/rake/server_tasks.rb
120
- - ./lib/http_server_manager/rake/task_generators.rb
121
- - ./lib/http_server_manager/server.rb
122
- - ./lib/http_server_manager/stdout_logger.rb
123
- - ./lib/http_server_manager/version.rb
124
- - ./spec/lib/http_server_manager/rake/server_tasks_spec.rb
125
- - ./spec/lib/http_server_manager/server_integration_spec.rb
126
- - ./spec/lib/http_server_manager/server_spec.rb
127
- - ./spec/lib/http_server_manager/stdout_logger_spec.rb
128
- - ./spec/lib/http_server_manager/test/server_integration_examples_spec.rb
129
- - ./spec/lib/http_server_manager_spec.rb
130
- - ./spec/spec_helper.rb
131
- - ./spec/support/http_server_manager/test/server_integration_examples.rb
132
- - ./spec/support/http_server_manager/test/server_integration_utilities.rb
133
- - ./spec/support/http_server_manager/test/server_integration_utilities_spec_context.rb
134
- - ./spec/support/http_server_manager/test/silent_logger.rb
135
- - ./spec/support/http_server_manager/test_support.rb
118
+ - "./lib/http_server_manager.rb"
119
+ - "./lib/http_server_manager/rake/server_tasks.rb"
120
+ - "./lib/http_server_manager/rake/task_generators.rb"
121
+ - "./lib/http_server_manager/server.rb"
122
+ - "./lib/http_server_manager/stdout_logger.rb"
123
+ - "./lib/http_server_manager/version.rb"
124
+ - "./spec/lib/http_server_manager/rake/server_tasks_spec.rb"
125
+ - "./spec/lib/http_server_manager/server_integration_spec.rb"
126
+ - "./spec/lib/http_server_manager/server_spec.rb"
127
+ - "./spec/lib/http_server_manager/stdout_logger_spec.rb"
128
+ - "./spec/lib/http_server_manager/test/server_integration_examples_spec.rb"
129
+ - "./spec/lib/http_server_manager_spec.rb"
130
+ - "./spec/spec_helper.rb"
131
+ - "./spec/support/http_server_manager/test/server_integration_examples.rb"
132
+ - "./spec/support/http_server_manager/test/server_integration_utilities.rb"
133
+ - "./spec/support/http_server_manager/test/server_integration_utilities_spec_context.rb"
134
+ - "./spec/support/http_server_manager/test/silent_logger.rb"
135
+ - "./spec/support/http_server_manager/test_support.rb"
136
136
  homepage: http://github.com/MYOB-Technology/http_server_manager
137
137
  licenses:
138
138
  - MIT
@@ -144,30 +144,30 @@ require_paths:
144
144
  - spec/support
145
145
  required_ruby_version: !ruby/object:Gem::Requirement
146
146
  requirements:
147
- - - ! '>='
147
+ - - ">="
148
148
  - !ruby/object:Gem::Version
149
149
  version: 1.9.3
150
150
  required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  requirements:
152
- - - ! '>='
152
+ - - ">="
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project: http_server_manager
157
- rubygems_version: 2.4.8
157
+ rubygems_version: 2.4.6
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Manages the lifecycle of HTTP server processes
161
161
  test_files:
162
- - ./spec/lib/http_server_manager/rake/server_tasks_spec.rb
163
- - ./spec/lib/http_server_manager/server_integration_spec.rb
164
- - ./spec/lib/http_server_manager/server_spec.rb
165
- - ./spec/lib/http_server_manager/stdout_logger_spec.rb
166
- - ./spec/lib/http_server_manager/test/server_integration_examples_spec.rb
167
- - ./spec/lib/http_server_manager_spec.rb
168
- - ./spec/spec_helper.rb
169
- - ./spec/support/http_server_manager/test/server_integration_examples.rb
170
- - ./spec/support/http_server_manager/test/server_integration_utilities.rb
171
- - ./spec/support/http_server_manager/test/server_integration_utilities_spec_context.rb
172
- - ./spec/support/http_server_manager/test/silent_logger.rb
173
- - ./spec/support/http_server_manager/test_support.rb
162
+ - "./spec/lib/http_server_manager/rake/server_tasks_spec.rb"
163
+ - "./spec/lib/http_server_manager/server_integration_spec.rb"
164
+ - "./spec/lib/http_server_manager/server_spec.rb"
165
+ - "./spec/lib/http_server_manager/stdout_logger_spec.rb"
166
+ - "./spec/lib/http_server_manager/test/server_integration_examples_spec.rb"
167
+ - "./spec/lib/http_server_manager_spec.rb"
168
+ - "./spec/spec_helper.rb"
169
+ - "./spec/support/http_server_manager/test/server_integration_examples.rb"
170
+ - "./spec/support/http_server_manager/test/server_integration_utilities.rb"
171
+ - "./spec/support/http_server_manager/test/server_integration_utilities_spec_context.rb"
172
+ - "./spec/support/http_server_manager/test/silent_logger.rb"
173
+ - "./spec/support/http_server_manager/test_support.rb"