http_server_manager 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 974266fa991dd57590789d1eb1483a547205f78f
4
- data.tar.gz: 136048206eed989d2b137ac240d1ea151173715f
2
+ SHA256:
3
+ metadata.gz: '04809ce9330ef896732daa6d135cc29e6bee184755ec261109a7fccda3265b3e'
4
+ data.tar.gz: 49cc76e6de53b18387018ebc899c24c562a1e8e4fc5d775f9e0e59bbe0b6d8cd
5
5
  SHA512:
6
- metadata.gz: ed6a746de7595d9a113c9deb7ca70a1fb8657486ea3deca4383b9eabeda944186d47b2e5ed81714033c4463cc6f070b6b6ee4c51c1004b9fa6cc5c9e172a1119
7
- data.tar.gz: aed4499162511bf7f7fea4a711a6c03eafa575c6220c220c3e461e341cc3d06566ff26a60af82d6d30694fe606628e48f44a76813dfd916b9a9589513d44f0a6
6
+ metadata.gz: 428564b96589c253134997a4f091b143e1bac501d42615a05cf80c92bc6466d407e2a5f72cd7c6d421c9413fad334182b2a8ec9df26f594de86b5e47333d6f72
7
+ data.tar.gz: 15deb2a635625209c32d0d268bd8de262a4a959d6412cef04670fc6cbcc2687a1a8ff310db416acb5d7a6936c1e327ef987544340a198592c337c33bafbf10a0
@@ -8,7 +8,8 @@ module HttpServerManager
8
8
 
9
9
  class << self
10
10
 
11
- attr_accessor :logger, :pid_dir, :log_dir
11
+ attr_accessor :pid_dir, :log_dir
12
+ attr_writer :logger
12
13
 
13
14
  def logger
14
15
  @logger || HttpServerManager::StdOutLogger.new
@@ -18,7 +18,7 @@ module HttpServerManager
18
18
  logger.info "#{@name} already running on #{@host}:#{@port}"
19
19
  else
20
20
  ensure_directories_exist
21
- pid = Process.spawn(start_command, [:out, :err] => [ log_file_path, "w" ])
21
+ pid = Process.spawn(start_command, %i{ out err } => [ log_file_path, "w" ])
22
22
  create_pid_file(pid)
23
23
  Wait.until_true!(description: "#{@name} is running", timeout_in_seconds: @timeout_in_seconds) { running? }
24
24
  logger.info "#{@name} started on #{@host}:#{@port}"
@@ -59,7 +59,7 @@ module HttpServerManager
59
59
  http.open_timeout = http.read_timeout = @timeout_in_seconds
60
60
  http.request_get(@ping_uri)
61
61
  end)
62
- rescue
62
+ rescue StandardError
63
63
  false
64
64
  end
65
65
 
@@ -1,3 +1,3 @@
1
1
  module HttpServerManager
2
- VERSION = "0.5.0".freeze
2
+ VERSION = "0.5.1".freeze
3
3
  end
@@ -2,6 +2,10 @@ describe HttpServerManager do
2
2
 
3
3
  describe "::logger" do
4
4
 
5
+ before(:example) { @initial_logger = HttpServerManager.logger }
6
+
7
+ after(:example) { HttpServerManager.logger = @initial_logger }
8
+
5
9
  context "when no logger has been explicitly configured" do
6
10
 
7
11
  before(:example) { HttpServerManager.logger = nil }
@@ -18,8 +22,6 @@ describe HttpServerManager do
18
22
 
19
23
  before(:example) { HttpServerManager.logger = logger }
20
24
 
21
- after(:example) { HttpServerManager.logger = nil }
22
-
23
25
  it "returns the configured logger" do
24
26
  expect(HttpServerManager.logger).to eql(logger)
25
27
  end
metadata CHANGED
@@ -1,126 +1,126 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_server_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
- - Matthew Ueckerman
8
- - Kunal Parikh
7
+ - dueckes
8
+ - techthumb
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-19 00:00:00.000000000 Z
12
+ date: 2019-06-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sys-proctree
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '0.0'
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: '0.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: wait_until
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0.3'
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.3'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - '>='
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '10.4'
48
+ version: '12.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: '10.4'
55
+ version: '12.3'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rubocop
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: '0.44'
62
+ version: '0.71'
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
- version: '0.44'
69
+ version: '0.71'
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
- version: '3.5'
76
+ version: '3.8'
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
- version: '3.5'
83
+ version: '3.8'
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
- version: '0.12'
90
+ version: '0.16'
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
- version: '0.12'
97
+ version: '0.16'
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
- version: '1.6'
104
+ version: '2.0'
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
- version: '1.6'
111
+ version: '2.0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: travis-lint
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ~>
116
+ - - "~>"
117
117
  - !ruby/object:Gem::Version
118
118
  version: '2.0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - ~>
123
+ - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: '2.0'
126
126
  description: Manages the lifecycle of HTTP server processes
@@ -129,24 +129,24 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
- - ./lib/http_server_manager.rb
133
- - ./lib/http_server_manager/rake/server_tasks.rb
134
- - ./lib/http_server_manager/rake/task_generators.rb
135
- - ./lib/http_server_manager/server.rb
136
- - ./lib/http_server_manager/stdout_logger.rb
137
- - ./lib/http_server_manager/version.rb
138
- - ./spec/lib/http_server_manager/rake/server_tasks_spec.rb
139
- - ./spec/lib/http_server_manager/server_integration_spec.rb
140
- - ./spec/lib/http_server_manager/server_spec.rb
141
- - ./spec/lib/http_server_manager/stdout_logger_spec.rb
142
- - ./spec/lib/http_server_manager/test/server_integration_examples_spec.rb
143
- - ./spec/lib/http_server_manager_spec.rb
144
- - ./spec/spec_helper.rb
145
- - ./spec/support/http_server_manager/test/server_integration_examples.rb
146
- - ./spec/support/http_server_manager/test/server_integration_utilities.rb
147
- - ./spec/support/http_server_manager/test/server_integration_utilities_spec_context.rb
148
- - ./spec/support/http_server_manager/test/silent_logger.rb
149
- - ./spec/support/http_server_manager/test_support.rb
132
+ - "./lib/http_server_manager.rb"
133
+ - "./lib/http_server_manager/rake/server_tasks.rb"
134
+ - "./lib/http_server_manager/rake/task_generators.rb"
135
+ - "./lib/http_server_manager/server.rb"
136
+ - "./lib/http_server_manager/stdout_logger.rb"
137
+ - "./lib/http_server_manager/version.rb"
138
+ - "./spec/lib/http_server_manager/rake/server_tasks_spec.rb"
139
+ - "./spec/lib/http_server_manager/server_integration_spec.rb"
140
+ - "./spec/lib/http_server_manager/server_spec.rb"
141
+ - "./spec/lib/http_server_manager/stdout_logger_spec.rb"
142
+ - "./spec/lib/http_server_manager/test/server_integration_examples_spec.rb"
143
+ - "./spec/lib/http_server_manager_spec.rb"
144
+ - "./spec/spec_helper.rb"
145
+ - "./spec/support/http_server_manager/test/server_integration_examples.rb"
146
+ - "./spec/support/http_server_manager/test/server_integration_utilities.rb"
147
+ - "./spec/support/http_server_manager/test/server_integration_utilities_spec_context.rb"
148
+ - "./spec/support/http_server_manager/test/silent_logger.rb"
149
+ - "./spec/support/http_server_manager/test_support.rb"
150
150
  homepage: http://github.com/MYOB-Technology/http_server_manager
151
151
  licenses:
152
152
  - MIT
@@ -158,30 +158,29 @@ require_paths:
158
158
  - spec/support
159
159
  required_ruby_version: !ruby/object:Gem::Requirement
160
160
  requirements:
161
- - - '>='
161
+ - - ">="
162
162
  - !ruby/object:Gem::Version
163
- version: '2.0'
163
+ version: '2.3'
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  requirements:
166
- - - '>='
166
+ - - ">="
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubyforge_project: http_server_manager
171
- rubygems_version: 2.4.8
170
+ rubygems_version: 3.0.4
172
171
  signing_key:
173
172
  specification_version: 4
174
173
  summary: Manages the lifecycle of HTTP server processes
175
174
  test_files:
176
- - ./spec/lib/http_server_manager/rake/server_tasks_spec.rb
177
- - ./spec/lib/http_server_manager/server_integration_spec.rb
178
- - ./spec/lib/http_server_manager/server_spec.rb
179
- - ./spec/lib/http_server_manager/stdout_logger_spec.rb
180
- - ./spec/lib/http_server_manager/test/server_integration_examples_spec.rb
181
- - ./spec/lib/http_server_manager_spec.rb
182
- - ./spec/spec_helper.rb
183
- - ./spec/support/http_server_manager/test/server_integration_examples.rb
184
- - ./spec/support/http_server_manager/test/server_integration_utilities.rb
185
- - ./spec/support/http_server_manager/test/server_integration_utilities_spec_context.rb
186
- - ./spec/support/http_server_manager/test/silent_logger.rb
187
- - ./spec/support/http_server_manager/test_support.rb
175
+ - "./spec/spec_helper.rb"
176
+ - "./spec/support/http_server_manager/test/server_integration_utilities.rb"
177
+ - "./spec/support/http_server_manager/test/server_integration_examples.rb"
178
+ - "./spec/support/http_server_manager/test/server_integration_utilities_spec_context.rb"
179
+ - "./spec/support/http_server_manager/test/silent_logger.rb"
180
+ - "./spec/support/http_server_manager/test_support.rb"
181
+ - "./spec/lib/http_server_manager/server_integration_spec.rb"
182
+ - "./spec/lib/http_server_manager/server_spec.rb"
183
+ - "./spec/lib/http_server_manager/test/server_integration_examples_spec.rb"
184
+ - "./spec/lib/http_server_manager/rake/server_tasks_spec.rb"
185
+ - "./spec/lib/http_server_manager/stdout_logger_spec.rb"
186
+ - "./spec/lib/http_server_manager_spec.rb"