phut 0.6.5 → 0.6.6

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
2
  SHA1:
3
- metadata.gz: 9587515648d4e65339222fa10a78e30ef81a16a5
4
- data.tar.gz: cffdace032fcfc3917f583ef8d4d4aad55ece21d
3
+ metadata.gz: 93c4f48db653fc79b4c05fb2fefb693ba7da9376
4
+ data.tar.gz: 0c9bf84cea1791a45abda96344ea7850edeb7b46
5
5
  SHA512:
6
- metadata.gz: 2baffca17ddc7e0c3a1fe3f93eb9258ff163390408f5168240a90d9e2ff51c54a7d8419ed51cc630662cf7029d8b41c21e437e5d01c43fdedad33fb64fb561d9
7
- data.tar.gz: ad07badcd1c36897307557a6cecbb8aacde0eaf8c225de15ece9402e2665dcaa129f8b6d3a859227d90ccb8264a69281c7744487e5eb25004ba0033abacca5ba
6
+ metadata.gz: 40ef132b4975f3550e5e7c929b77a951f881a68c735f9f84564c5f5e57d3d5ab3e73547243c941b00590b8b0de2262b5746d3e258dc0d7dc168ff378d6c8642f
7
+ data.tar.gz: 5bfc674069f766cebed9ed28efe800806ad0498817ef661b191c3e84b963a06c8837ed4fe32ad3e2141c40412532b8ea0b59287768d8c04b2e02366311e90e17
@@ -3,6 +3,11 @@
3
3
  ## develop (unreleased)
4
4
 
5
5
 
6
+ ## 0.6.6 (8/2/2015)
7
+ ### Changes
8
+ * [#26](https://github.com/trema/phut/pull/26): Update pio and other gems.
9
+
10
+
6
11
  ## 0.6.5 (6/29/2015)
7
12
  ### Changes
8
13
  * [#25](https://github.com/trema/phut/pull/25): Update pio and other gems.
@@ -2,8 +2,10 @@ require 'phut'
2
2
 
3
3
  When(/^I do phut run "(.*?)"$/) do |file_name|
4
4
  @config_file = file_name
5
- run_opts = "-p #{@pid_dir} -l #{@log_dir} -s #{@socket_dir}"
6
- step %(I run `phut -v run #{run_opts} #{@config_file}`)
5
+ cd('.') do
6
+ run_opts = "-p #{@pid_dir} -l #{@log_dir} -s #{@socket_dir}"
7
+ step %(I run `phut -v run #{run_opts} #{@config_file}`)
8
+ end
7
9
  end
8
10
 
9
11
  When(/^I do phut kill "(.*?)"$/) do |name|
@@ -27,14 +29,11 @@ Then(/^a vswitch named "(.*?)" should not be running$/) do |name|
27
29
  end
28
30
 
29
31
  Then(/^a vhost named "(.*?)" launches$/) do |name|
30
- in_current_dir do
31
- pid_file = File.join(File.expand_path(@pid_dir), "vhost.#{name}.pid")
32
- step %(a file named "#{pid_file}" should exist)
33
- end
32
+ step %(a file named "vhost.#{name}.pid" should exist)
34
33
  end
35
34
 
36
35
  Then(/^a link is created between "(.*?)" and "(.*?)"$/) do |name_a, name_b|
37
- in_current_dir do
36
+ cd('.') do
38
37
  link = Phut::Parser.new.parse(@config_file).fetch([name_a, name_b].sort)
39
38
  expect(link).to be_up
40
39
  end
@@ -12,7 +12,7 @@ Before('@sudo') do
12
12
  end
13
13
 
14
14
  After('@sudo') do
15
- in_current_dir do
15
+ cd('.') do
16
16
  Phut.pid_dir = @pid_dir
17
17
  Phut.log_dir = @log_dir
18
18
  Phut.socket_dir = @socket_dir
@@ -1,3 +1,4 @@
1
+ require 'pio'
1
2
  require 'phut/null_logger'
2
3
  require 'phut/setting'
3
4
  require 'phut/shell_runner'
@@ -37,7 +38,7 @@ module Phut
37
38
  sh "sudo ovs-vsctl add-port #{bridge_name} #{each}"
38
39
  end
39
40
  sh "sudo ovs-vsctl set bridge #{bridge_name}" \
40
- " protocols=#{open_flow_protocol}" \
41
+ " protocols=#{Pio::OpenFlow.version}" \
41
42
  " other-config:datapath-id=#{dpid_zero_filled}"
42
43
  sh "sudo ovs-vsctl set-controller #{bridge_name} "\
43
44
  "tcp:127.0.0.1:#{@port_number} "\
@@ -88,10 +89,6 @@ module Phut
88
89
  'br' + name
89
90
  end
90
91
 
91
- def open_flow_protocol
92
- 'OpenFlow' + { 1 => '10', 4 => '13' }.fetch(Pio::OpenFlow::VERSION)
93
- end
94
-
95
92
  def restart
96
93
  stop
97
94
  start
@@ -1,4 +1,4 @@
1
1
  # Base module.
2
2
  module Phut
3
- VERSION = '0.6.5'
3
+ VERSION = '0.6.6'
4
4
  end
@@ -24,7 +24,7 @@ Gem::Specification.new do |gem|
24
24
  gem.required_ruby_version = '>= 2.0.0'
25
25
 
26
26
  gem.add_dependency 'gli', '~> 2.13.1'
27
- gem.add_dependency 'pio', '~> 0.23.0'
27
+ gem.add_dependency 'pio', '~> 0.24.0'
28
28
  gem.add_dependency 'pry', '~> 0.10.1'
29
29
 
30
30
  # Docs
@@ -33,22 +33,22 @@ Gem::Specification.new do |gem|
33
33
 
34
34
  # Development
35
35
  gem.add_development_dependency 'byebug', '~> 5.0.0'
36
- gem.add_development_dependency 'guard', '~> 2.12.7'
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.0'
39
+ gem.add_development_dependency 'guard-rspec', '~> 4.6.3'
40
40
  gem.add_development_dependency 'guard-rubocop', '~> 1.2.0'
41
41
 
42
42
  # Test
43
- gem.add_development_dependency 'aruba', '~> 0.6.2'
43
+ gem.add_development_dependency 'aruba', '~> 0.8.1'
44
44
  gem.add_development_dependency 'codeclimate-test-reporter'
45
45
  gem.add_development_dependency 'coveralls', '~> 0.8.2'
46
- gem.add_development_dependency 'cucumber', '~> 2.0.0'
46
+ gem.add_development_dependency 'cucumber', '~> 2.0.2'
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', '~> 2.2.1'
50
+ gem.add_development_dependency 'reek', '~> 3.1'
51
51
  gem.add_development_dependency 'rspec', '~> 3.3.0'
52
- gem.add_development_dependency 'rspec-given', '~> 3.7.0'
52
+ gem.add_development_dependency 'rspec-given', '~> 3.7.1'
53
53
  gem.add_development_dependency 'rubocop', '~> 0.32.1'
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.5
4
+ version: 0.6.6
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-06-29 00:00:00.000000000 Z
11
+ date: 2015-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.23.0
33
+ version: 0.24.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.23.0
40
+ version: 0.24.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: 2.12.7
103
+ version: 2.13.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ~>
109
109
  - !ruby/object:Gem::Version
110
- version: 2.12.7
110
+ version: 2.13.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: guard-bundler
113
113
  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.0
145
+ version: 4.6.3
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.0
152
+ version: 4.6.3
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: guard-rubocop
155
155
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - ~>
172
172
  - !ruby/object:Gem::Version
173
- version: 0.6.2
173
+ version: 0.8.1
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - ~>
179
179
  - !ruby/object:Gem::Version
180
- version: 0.6.2
180
+ version: 0.8.1
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: codeclimate-test-reporter
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -212,14 +212,14 @@ dependencies:
212
212
  requirements:
213
213
  - - ~>
214
214
  - !ruby/object:Gem::Version
215
- version: 2.0.0
215
+ version: 2.0.2
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
220
  - - ~>
221
221
  - !ruby/object:Gem::Version
222
- version: 2.0.0
222
+ version: 2.0.2
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: flay
225
225
  requirement: !ruby/object:Gem::Requirement
@@ -268,14 +268,14 @@ dependencies:
268
268
  requirements:
269
269
  - - ~>
270
270
  - !ruby/object:Gem::Version
271
- version: 2.2.1
271
+ version: '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: 2.2.1
278
+ version: '3.1'
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: rspec
281
281
  requirement: !ruby/object:Gem::Requirement
@@ -296,14 +296,14 @@ dependencies:
296
296
  requirements:
297
297
  - - ~>
298
298
  - !ruby/object:Gem::Version
299
- version: 3.7.0
299
+ version: 3.7.1
300
300
  type: :development
301
301
  prerelease: false
302
302
  version_requirements: !ruby/object:Gem::Requirement
303
303
  requirements:
304
304
  - - ~>
305
305
  - !ruby/object:Gem::Version
306
- version: 3.7.0
306
+ version: 3.7.1
307
307
  - !ruby/object:Gem::Dependency
308
308
  name: rubocop
309
309
  requirement: !ruby/object:Gem::Requirement