invoker 1.5.5 → 1.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b041781f5abb31802fa52316895c2c1ad4142c78
|
4
|
+
data.tar.gz: 63d084268289f696b8b689f564b007b833f323b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7356d438f44f82bc34d4dfa262bfda0a07b9048024ac905b56b72139a5dac08c7b007cc87e03f58c14c1862ebaf99878f2738316483183768f428aa6c20326b0
|
7
|
+
data.tar.gz: cb55d77bee7313ff21eff64247c89452f7488fdbb6198f7944ba42e27aea638d6ca2c40867af1878e17e647ecc95cb0bf5c499ca912d0a101ee33b518580a3bb
|
data/lib/invoker.rb
CHANGED
data/lib/invoker/cli.rb
CHANGED
@@ -134,11 +134,13 @@ module Invoker
|
|
134
134
|
tasks.keys + ["help"]
|
135
135
|
end
|
136
136
|
|
137
|
+
# TODO(kgrz): the default TLD option is duplicated in both this file and
|
138
|
+
# lib/invoker.rb May be assign this to a constant?
|
137
139
|
def get_tld(options)
|
138
140
|
if options[:tld] && !options[:tld].empty?
|
139
141
|
options[:tld]
|
140
142
|
else
|
141
|
-
'
|
143
|
+
'test'
|
142
144
|
end
|
143
145
|
end
|
144
146
|
|
data/lib/invoker/version.rb
CHANGED
@@ -59,7 +59,7 @@ describe Invoker::Power::PfMigrate do
|
|
59
59
|
mock_config = mock()
|
60
60
|
mock_config.stubs(:http_port).returns(80)
|
61
61
|
mock_config.stubs(:https_port).returns(443)
|
62
|
-
mock_config.stubs(:tld).returns('
|
62
|
+
mock_config.stubs(:tld).returns('test')
|
63
63
|
Invoker.config = mock_config
|
64
64
|
end
|
65
65
|
|
@@ -24,8 +24,8 @@ describe Invoker::Power::LinuxSetup, fakefs: true do
|
|
24
24
|
FileUtils.mkdir_p(Invoker::Power::Distro::Base::RESOLVER_DIR)
|
25
25
|
end
|
26
26
|
|
27
|
-
let(:invoker_setup) { Invoker::Power::LinuxSetup.new('
|
28
|
-
let(:distro_installer) { Invoker::Power::Distro::Ubuntu.new('
|
27
|
+
let(:invoker_setup) { Invoker::Power::LinuxSetup.new('test') }
|
28
|
+
let(:distro_installer) { Invoker::Power::Distro::Ubuntu.new('test') }
|
29
29
|
|
30
30
|
describe "should only proceed after user confirmation" do
|
31
31
|
before { invoker_setup.distro_installer = distro_installer }
|
@@ -78,7 +78,7 @@ describe Invoker::Power::LinuxSetup, fakefs: true do
|
|
78
78
|
|
79
79
|
dnsmasq_content = File.read(distro_installer.resolver_file)
|
80
80
|
expect(dnsmasq_content.strip).to_not be_empty
|
81
|
-
expect(dnsmasq_content).to match(/
|
81
|
+
expect(dnsmasq_content).to match(/test/)
|
82
82
|
|
83
83
|
socat_content = File.read(Invoker::Power::Distro::Base::SOCAT_SHELLSCRIPT)
|
84
84
|
expect(socat_content.strip).to_not be_empty
|
@@ -8,39 +8,39 @@ describe Invoker::Power::UrlRewriter do
|
|
8
8
|
@original_invoker_config = Invoker.config
|
9
9
|
|
10
10
|
Invoker.config = mock
|
11
|
-
Invoker.config.stubs(:tld).returns("
|
11
|
+
Invoker.config.stubs(:tld).returns("test")
|
12
12
|
end
|
13
13
|
|
14
14
|
after(:all) do
|
15
15
|
Invoker.config = @original_invoker_config
|
16
16
|
end
|
17
17
|
|
18
|
-
it "should match foo.
|
19
|
-
match = rewriter.extract_host_from_domain("foo.
|
18
|
+
it "should match foo.test" do
|
19
|
+
match = rewriter.extract_host_from_domain("foo.test")
|
20
20
|
expect(match).to_not be_empty
|
21
21
|
|
22
22
|
matching_string = match[0]
|
23
23
|
expect(matching_string).to eq("foo")
|
24
24
|
end
|
25
25
|
|
26
|
-
it "should match foo.
|
27
|
-
match = rewriter.extract_host_from_domain("foo.
|
26
|
+
it "should match foo.test:1080" do
|
27
|
+
match = rewriter.extract_host_from_domain("foo.test:1080")
|
28
28
|
expect(match).to_not be_empty
|
29
29
|
|
30
30
|
matching_string = match[0]
|
31
31
|
expect(matching_string).to eq("foo")
|
32
32
|
end
|
33
33
|
|
34
|
-
it "should match emacs.bar.
|
35
|
-
match = rewriter.extract_host_from_domain("emacs.bar.
|
34
|
+
it "should match emacs.bar.test" do
|
35
|
+
match = rewriter.extract_host_from_domain("emacs.bar.test")
|
36
36
|
expect(match).to_not be_empty
|
37
37
|
|
38
38
|
expect(match[0]).to eq("emacs.bar")
|
39
39
|
expect(match[1]).to eq("bar")
|
40
40
|
end
|
41
41
|
|
42
|
-
it "should match hello-world.
|
43
|
-
match = rewriter.extract_host_from_domain("hello-world.
|
42
|
+
it "should match hello-world.test" do
|
43
|
+
match = rewriter.extract_host_from_domain("hello-world.test")
|
44
44
|
expect(match).to_not be_nil
|
45
45
|
|
46
46
|
expect(match[0]).to eq("hello-world")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invoker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hemant Kumar
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|
@@ -356,8 +356,36 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
356
356
|
version: '0'
|
357
357
|
requirements: []
|
358
358
|
rubyforge_project:
|
359
|
-
rubygems_version: 2.6.
|
359
|
+
rubygems_version: 2.6.13
|
360
360
|
signing_key:
|
361
361
|
specification_version: 4
|
362
362
|
summary: Something small for Process management
|
363
|
-
test_files:
|
363
|
+
test_files:
|
364
|
+
- spec/invoker/cli/pinger_spec.rb
|
365
|
+
- spec/invoker/cli/tail_watcher_spec.rb
|
366
|
+
- spec/invoker/cli_spec.rb
|
367
|
+
- spec/invoker/command_worker_spec.rb
|
368
|
+
- spec/invoker/commander_spec.rb
|
369
|
+
- spec/invoker/config_spec.rb
|
370
|
+
- spec/invoker/daemon_spec.rb
|
371
|
+
- spec/invoker/event/manager_spec.rb
|
372
|
+
- spec/invoker/invoker_spec.rb
|
373
|
+
- spec/invoker/ipc/client_handler_spec.rb
|
374
|
+
- spec/invoker/ipc/dns_check_command_spec.rb
|
375
|
+
- spec/invoker/ipc/message/list_response_spec.rb
|
376
|
+
- spec/invoker/ipc/message_spec.rb
|
377
|
+
- spec/invoker/ipc/unix_client_spec.rb
|
378
|
+
- spec/invoker/power/balancer_spec.rb
|
379
|
+
- spec/invoker/power/config_spec.rb
|
380
|
+
- spec/invoker/power/http_parser_spec.rb
|
381
|
+
- spec/invoker/power/http_response_spec.rb
|
382
|
+
- spec/invoker/power/pf_migrate_spec.rb
|
383
|
+
- spec/invoker/power/port_finder_spec.rb
|
384
|
+
- spec/invoker/power/setup/linux_setup_spec.rb
|
385
|
+
- spec/invoker/power/setup/osx_setup_spec.rb
|
386
|
+
- spec/invoker/power/setup_spec.rb
|
387
|
+
- spec/invoker/power/url_rewriter_spec.rb
|
388
|
+
- spec/invoker/power/web_sockets_spec.rb
|
389
|
+
- spec/invoker/process_manager_spec.rb
|
390
|
+
- spec/invoker/reactor_spec.rb
|
391
|
+
- spec/spec_helper.rb
|