phut 0.6.6 → 0.6.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Guardfile +2 -2
- data/bin/vhost +4 -4
- data/lib/phut/version.rb +1 -1
- data/lib/phut/virtual_link.rb +3 -3
- data/phut.gemspec +6 -6
- metadata +14 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f6fd2943970124abbc403d8474f48b5ac0d34e9
|
4
|
+
data.tar.gz: 5980c66443b73006fc3f41ca71daead99a1b3b0b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 004d0486848ad33a0627dbfc8947dcbc9710f6e3809af4de810f650a494954b42ce62a85c0ae76462d016f578ca0b40f994cc91d950e0987c9ff11ac734022f6
|
7
|
+
data.tar.gz: 825116e5c75eef59edae383219c92449f5179651f235e2da04bebc064556e5b7759db2879bfc5e246282b134ca1d73a39d56212b47301aa81d8cbca2fc0d41d7
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@
|
|
3
3
|
## develop (unreleased)
|
4
4
|
|
5
5
|
|
6
|
+
## 0.6.7 (9/9/2015)
|
7
|
+
### Bugs fixed
|
8
|
+
* [#27](https://github.com/trema/phut/issues/27): Change the option ordering of sysctl to work with CentOS 6.
|
9
|
+
|
10
|
+
|
6
11
|
## 0.6.6 (8/2/2015)
|
7
12
|
### Changes
|
8
13
|
* [#26](https://github.com/trema/phut/pull/26): Update pio and other gems.
|
data/Guardfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
guard :rspec, cmd: 'bundle exec rspec' do
|
2
2
|
watch(%r{^spec/phut/.+_spec\.rb$})
|
3
|
-
watch(%r{^lib/phut/(.+)\.rb$})
|
4
|
-
watch('spec/spec_helper.rb')
|
3
|
+
watch(%r{^lib/phut/(.+)\.rb$}) { |m| "spec/phut/#{m[1]}_spec.rb" }
|
4
|
+
watch('spec/spec_helper.rb') { 'spec' }
|
5
5
|
end
|
6
6
|
|
7
7
|
guard :bundler do
|
data/bin/vhost
CHANGED
@@ -15,9 +15,9 @@ module Phut
|
|
15
15
|
desc 'Runs a vhost process'
|
16
16
|
command :run do |c|
|
17
17
|
desc 'Host name'
|
18
|
-
c.flag [:n,
|
18
|
+
c.flag [:n, :name]
|
19
19
|
desc 'Network interface'
|
20
|
-
c.flag [:I,
|
20
|
+
c.flag [:I, :interface]
|
21
21
|
desc 'IP address'
|
22
22
|
c.flag [:i, :ip_address]
|
23
23
|
desc 'MAC address'
|
@@ -52,7 +52,7 @@ module Phut
|
|
52
52
|
desc 'Terminates a vhost process'
|
53
53
|
command :stop do |c|
|
54
54
|
desc 'Host name'
|
55
|
-
c.flag [:n,
|
55
|
+
c.flag [:n, :name]
|
56
56
|
|
57
57
|
c.desc 'Location to put socket files'
|
58
58
|
c.flag [:S, :socket_dir], default_value: Phut.socket_dir
|
@@ -62,7 +62,7 @@ module Phut
|
|
62
62
|
begin
|
63
63
|
VhostDaemon.process(options[:name], options[:socket_dir]).stop
|
64
64
|
rescue DRb::DRbConnError
|
65
|
-
true
|
65
|
+
true # OK
|
66
66
|
end
|
67
67
|
end
|
68
68
|
end
|
data/lib/phut/version.rb
CHANGED
data/lib/phut/virtual_link.rb
CHANGED
@@ -14,7 +14,7 @@ module Phut
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def to_s
|
17
|
-
@name.
|
17
|
+
@name.tr('.', '_') + port_number_string
|
18
18
|
end
|
19
19
|
|
20
20
|
def inspect
|
@@ -79,8 +79,8 @@ module Phut
|
|
79
79
|
|
80
80
|
def add
|
81
81
|
sh "sudo ip link add name #{@device_a} type veth peer name #{@device_b}"
|
82
|
-
sh "sudo /sbin/sysctl -w net.ipv6.conf.#{@device_a}.disable_ipv6=1
|
83
|
-
sh "sudo /sbin/sysctl -w net.ipv6.conf.#{@device_b}.disable_ipv6=1
|
82
|
+
sh "sudo /sbin/sysctl -q -w net.ipv6.conf.#{@device_a}.disable_ipv6=1"
|
83
|
+
sh "sudo /sbin/sysctl -q -w net.ipv6.conf.#{@device_b}.disable_ipv6=1"
|
84
84
|
end
|
85
85
|
|
86
86
|
def up
|
data/phut.gemspec
CHANGED
@@ -23,8 +23,8 @@ Gem::Specification.new do |gem|
|
|
23
23
|
|
24
24
|
gem.required_ruby_version = '>= 2.0.0'
|
25
25
|
|
26
|
-
gem.add_dependency 'gli', '~> 2.13.
|
27
|
-
gem.add_dependency 'pio', '~> 0.
|
26
|
+
gem.add_dependency 'gli', '~> 2.13.2'
|
27
|
+
gem.add_dependency 'pio', '~> 0.26.0'
|
28
28
|
gem.add_dependency 'pry', '~> 0.10.1'
|
29
29
|
|
30
30
|
# Docs
|
@@ -32,11 +32,11 @@ Gem::Specification.new do |gem|
|
|
32
32
|
gem.add_development_dependency 'yard', '~> 0.8.7.6'
|
33
33
|
|
34
34
|
# Development
|
35
|
-
gem.add_development_dependency 'byebug', '~>
|
35
|
+
gem.add_development_dependency 'byebug', '~> 6.0.2'
|
36
36
|
gem.add_development_dependency 'guard', '~> 2.13.0'
|
37
37
|
gem.add_development_dependency 'guard-bundler', '~> 2.1.0'
|
38
38
|
gem.add_development_dependency 'guard-cucumber', '~> 1.6.0'
|
39
|
-
gem.add_development_dependency 'guard-rspec', '~> 4.6.
|
39
|
+
gem.add_development_dependency 'guard-rspec', '~> 4.6.4'
|
40
40
|
gem.add_development_dependency 'guard-rubocop', '~> 1.2.0'
|
41
41
|
|
42
42
|
# Test
|
@@ -47,8 +47,8 @@ Gem::Specification.new do |gem|
|
|
47
47
|
gem.add_development_dependency 'flay', '~> 2.6.1'
|
48
48
|
gem.add_development_dependency 'flog', '~> 4.3.2'
|
49
49
|
gem.add_development_dependency 'rake'
|
50
|
-
gem.add_development_dependency 'reek', '~> 3.1'
|
50
|
+
gem.add_development_dependency 'reek', '~> 3.3.1'
|
51
51
|
gem.add_development_dependency 'rspec', '~> 3.3.0'
|
52
52
|
gem.add_development_dependency 'rspec-given', '~> 3.7.1'
|
53
|
-
gem.add_development_dependency 'rubocop', '~> 0.
|
53
|
+
gem.add_development_dependency 'rubocop', '~> 0.34.0'
|
54
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: phut
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yasuhito Takamiya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gli
|
@@ -16,28 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.13.
|
19
|
+
version: 2.13.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.13.
|
26
|
+
version: 2.13.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pio
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.
|
33
|
+
version: 0.26.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.
|
40
|
+
version: 0.26.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 6.0.2
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - ~>
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 6.0.2
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: guard
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +142,14 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - ~>
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: 4.6.
|
145
|
+
version: 4.6.4
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - ~>
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: 4.6.
|
152
|
+
version: 4.6.4
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
154
|
name: guard-rubocop
|
155
155
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,14 +268,14 @@ dependencies:
|
|
268
268
|
requirements:
|
269
269
|
- - ~>
|
270
270
|
- !ruby/object:Gem::Version
|
271
|
-
version:
|
271
|
+
version: 3.3.1
|
272
272
|
type: :development
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
275
275
|
requirements:
|
276
276
|
- - ~>
|
277
277
|
- !ruby/object:Gem::Version
|
278
|
-
version:
|
278
|
+
version: 3.3.1
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
280
|
name: rspec
|
281
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -310,14 +310,14 @@ dependencies:
|
|
310
310
|
requirements:
|
311
311
|
- - ~>
|
312
312
|
- !ruby/object:Gem::Version
|
313
|
-
version: 0.
|
313
|
+
version: 0.34.0
|
314
314
|
type: :development
|
315
315
|
prerelease: false
|
316
316
|
version_requirements: !ruby/object:Gem::Requirement
|
317
317
|
requirements:
|
318
318
|
- - ~>
|
319
319
|
- !ruby/object:Gem::Version
|
320
|
-
version: 0.
|
320
|
+
version: 0.34.0
|
321
321
|
description: A simple network emulator with capabilities similar to mininet.
|
322
322
|
email:
|
323
323
|
- yasuhito@gmail.com
|