pio 0.27.1 → 0.27.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/Rakefile +1 -1
  4. data/bin/{terminal-notifier → code_metrics} +2 -2
  5. data/bin/code_metrics-profile +16 -0
  6. data/features/icmpv6.pcap +0 -0
  7. data/features/open_flow10/aggregate_stats_reply.feature +1 -1
  8. data/features/open_flow10/aggregate_stats_request.feature +2 -2
  9. data/features/open_flow10/bad_request.feature +2 -2
  10. data/features/open_flow10/barrier_reply.feature +3 -18
  11. data/features/open_flow10/barrier_request.feature +3 -18
  12. data/features/open_flow10/description_stats_reply.feature +1 -1
  13. data/features/open_flow10/description_stats_request.feature +3 -3
  14. data/features/open_flow10/echo_reply.feature +4 -47
  15. data/features/open_flow10/echo_request.feature +4 -36
  16. data/features/open_flow10/exact_match.feature +20 -2
  17. data/features/open_flow10/features_reply.feature +65 -72
  18. data/features/open_flow10/features_request.feature +3 -22
  19. data/features/open_flow10/flow_mod.feature +5 -5
  20. data/features/open_flow10/flow_stats_reply.feature +2 -2
  21. data/features/open_flow10/flow_stats_request.feature +3 -4
  22. data/features/open_flow10/hello.feature +4 -20
  23. data/features/open_flow10/hello_failed.feature +4 -4
  24. data/features/open_flow10/packet_in.feature +2 -2
  25. data/features/open_flow10/packet_in_arp_reply.raw +0 -0
  26. data/features/open_flow10/packet_out.feature +1 -1
  27. data/features/open_flow10/port_status.feature +1 -1
  28. data/features/open_flow13/bad_request.feature +2 -2
  29. data/features/open_flow13/echo_reply.feature +5 -37
  30. data/features/open_flow13/echo_request.feature +5 -37
  31. data/features/open_flow13/features_reply.feature +3 -7
  32. data/features/open_flow13/features_request.feature +3 -18
  33. data/features/open_flow13/flow_mod.feature +5 -5
  34. data/features/open_flow13/hello.feature +4 -19
  35. data/features/open_flow13/hello_failed.feature +4 -4
  36. data/features/open_flow13/match.feature +4 -4
  37. data/features/open_flow13/packet_in.feature +3 -3
  38. data/features/open_flow13/packet_out.feature +3 -3
  39. data/features/parser.feature +10 -0
  40. data/lib/pio/arp/format.rb +20 -0
  41. data/lib/pio/ipv4_header.rb +20 -0
  42. data/lib/pio/open_flow.rb +0 -1
  43. data/lib/pio/open_flow/message.rb +51 -57
  44. data/lib/pio/open_flow/open_flow_header.rb +6 -10
  45. data/lib/pio/open_flow10.rb +20 -15
  46. data/lib/pio/open_flow10/aggregate_stats/reply.rb +20 -0
  47. data/lib/pio/open_flow10/aggregate_stats/request.rb +25 -0
  48. data/lib/pio/open_flow10/barrier/reply.rb +14 -0
  49. data/lib/pio/open_flow10/barrier/request.rb +14 -0
  50. data/lib/pio/open_flow10/description_stats/reply.rb +21 -0
  51. data/lib/pio/open_flow10/description_stats/request.rb +19 -0
  52. data/lib/pio/open_flow10/echo/reply.rb +16 -0
  53. data/lib/pio/open_flow10/echo/request.rb +16 -0
  54. data/lib/pio/open_flow10/error/bad_request.rb +27 -49
  55. data/lib/pio/open_flow10/error/hello_failed.rb +6 -28
  56. data/lib/pio/open_flow10/exact_match.rb +4 -39
  57. data/lib/pio/open_flow10/features/reply.rb +48 -72
  58. data/lib/pio/open_flow10/features/request.rb +4 -11
  59. data/lib/pio/open_flow10/flow_mod.rb +21 -51
  60. data/lib/pio/open_flow10/{flow_stats_reply.rb → flow_stats/reply.rb} +7 -23
  61. data/lib/pio/open_flow10/flow_stats/request.rb +25 -0
  62. data/lib/pio/open_flow10/hello.rb +3 -13
  63. data/lib/pio/open_flow10/match.rb +0 -18
  64. data/lib/pio/open_flow10/match10.rb +22 -0
  65. data/lib/pio/open_flow10/packet_in.rb +18 -42
  66. data/lib/pio/open_flow10/packet_out.rb +8 -31
  67. data/lib/pio/open_flow10/port_status.rb +11 -39
  68. data/lib/pio/open_flow10/stats_reply.rb +11 -8
  69. data/lib/pio/open_flow10/stats_request.rb +8 -8
  70. data/lib/pio/open_flow13.rb +13 -6
  71. data/lib/pio/open_flow13/echo/reply.rb +15 -0
  72. data/lib/pio/open_flow13/echo/request.rb +15 -0
  73. data/lib/pio/open_flow13/error/bad_request.rb +32 -49
  74. data/lib/pio/open_flow13/error/hello_failed.rb +7 -30
  75. data/lib/pio/open_flow13/features/reply.rb +27 -51
  76. data/lib/pio/open_flow13/features/request.rb +3 -10
  77. data/lib/pio/open_flow13/flow_mod.rb +29 -52
  78. data/lib/pio/open_flow13/hello.rb +18 -22
  79. data/lib/pio/open_flow13/packet_in.rb +26 -44
  80. data/lib/pio/open_flow13/packet_out.rb +16 -35
  81. data/lib/pio/open_flow13/stats_request.rb +5 -21
  82. data/lib/pio/parser.rb +5 -4
  83. data/lib/pio/version.rb +1 -1
  84. data/pio.gemspec +6 -6
  85. data/spec/pio/open_flow10/{echo_reply_spec.rb → echo/reply_spec.rb} +1 -1
  86. data/spec/pio/open_flow10/{echo_request_spec.rb → echo/request_spec.rb} +1 -1
  87. data/spec/pio/open_flow10/error/hello_failed_spec.rb +2 -2
  88. data/spec/pio/open_flow10/features/request_spec.rb +0 -5
  89. data/spec/pio/open_flow10/flow_mod_spec.rb +2 -4
  90. data/spec/pio/open_flow10/flow_stats_reply_spec.rb +1 -1
  91. data/spec/pio/open_flow10/flow_stats_request_spec.rb +2 -2
  92. data/spec/pio/open_flow10/packet_out_spec.rb +15 -18
  93. data/spec/pio/open_flow13/echo_reply_spec.rb +1 -1
  94. data/spec/pio/open_flow13/echo_request_spec.rb +1 -1
  95. data/spec/pio/open_flow13/error/hello_failed_spec.rb +2 -2
  96. data/spec/pio/open_flow13/features/request_spec.rb +5 -3
  97. data/spec/pio/open_flow13/hello_spec.rb +3 -3
  98. data/spec/support/shared_examples_for_openflow_messages.rb +5 -12
  99. metadata +92 -85
  100. data/lib/pio/open_flow/echo.rb +0 -44
  101. data/lib/pio/open_flow/format.rb +0 -46
  102. data/lib/pio/open_flow10/aggregate_stats_reply.rb +0 -38
  103. data/lib/pio/open_flow10/aggregate_stats_request.rb +0 -42
  104. data/lib/pio/open_flow10/barrier_reply.rb +0 -21
  105. data/lib/pio/open_flow10/barrier_request.rb +0 -22
  106. data/lib/pio/open_flow10/description_stats_reply.rb +0 -35
  107. data/lib/pio/open_flow10/description_stats_request.rb +0 -36
  108. data/lib/pio/open_flow10/echo.rb +0 -20
  109. data/lib/pio/open_flow10/flow_stats_request.rb +0 -64
  110. data/lib/pio/open_flow13/echo.rb +0 -20
  111. data/lib/pio/open_flow13/features.rb +0 -2
@@ -1,4 +1,4 @@
1
- require 'pio/open_flow13/echo'
1
+ require 'pio/open_flow13/echo/reply'
2
2
 
3
3
  describe Pio::OpenFlow13::Echo::Reply do
4
4
  describe '.new' do
@@ -1,4 +1,4 @@
1
- require 'pio/open_flow13/echo'
1
+ require 'pio/open_flow13/echo/request'
2
2
 
3
3
  describe Pio::OpenFlow13::Echo::Request do
4
4
  describe '.new' do
@@ -10,7 +10,7 @@ describe Pio::OpenFlow13::Error::HelloFailed do
10
10
  context 'with {}' do
11
11
  Given(:options) { {} }
12
12
 
13
- Then { hello_failed.length == 12 }
13
+ Then { hello_failed.message_length == 12 }
14
14
  Then { hello_failed.error_type == :hello_failed }
15
15
  Then { hello_failed.error_code == :incompatible }
16
16
  Then { hello_failed.description == '' }
@@ -19,7 +19,7 @@ describe Pio::OpenFlow13::Error::HelloFailed do
19
19
  context "with description: 'error description'" do
20
20
  Given(:options) { { description: 'error description' } }
21
21
 
22
- Then { hello_failed.length == 29 }
22
+ Then { hello_failed.message_length == 29 }
23
23
  Then { hello_failed.description == 'error description' }
24
24
  end
25
25
  end
@@ -5,9 +5,11 @@ describe Pio::OpenFlow13::Features::Request do
5
5
  it_should_behave_like('an OpenFlow message',
6
6
  Pio::OpenFlow13::Features::Request)
7
7
 
8
- context "with body: 'abcde'" do
9
- When(:message) { Pio::OpenFlow13::Features::Request.new(body: 'abcde') }
10
- Then { message == Failure(RuntimeError, 'Unknown option: body') }
8
+ context "with unknown_opt: 'abcde'" do
9
+ When(:message) do
10
+ Pio::OpenFlow13::Features::Request.new(unknown_opt: 'abcde')
11
+ end
12
+ Then { message == Failure(RuntimeError, 'Unknown option: unknown_opt') }
11
13
  end
12
14
  end
13
15
  end
@@ -11,7 +11,7 @@ describe Pio::OpenFlow13::Hello do
11
11
  Then { result.class == Pio::OpenFlow13::Hello }
12
12
  Then { result.ofp_version == 4 }
13
13
  Then { result.message_type == 0 }
14
- Then { result.length == 8 }
14
+ Then { result.message_length == 8 }
15
15
  Then { result.transaction_id == 0 }
16
16
  Then { result.xid == 0 }
17
17
  Then { result.supported_versions.empty? }
@@ -25,7 +25,7 @@ describe Pio::OpenFlow13::Hello do
25
25
  Then { result.class == Pio::OpenFlow13::Hello }
26
26
  Then { result.ofp_version == 4 }
27
27
  Then { result.message_type == 0 }
28
- Then { result.length == 16 }
28
+ Then { result.message_length == 16 }
29
29
  Then { result.transaction_id == 0 }
30
30
  Then { result.xid == 0 }
31
31
  Then { result.supported_versions == [:open_flow10, :open_flow13] }
@@ -48,7 +48,7 @@ describe Pio::OpenFlow13::Hello do
48
48
 
49
49
  Then { result.ofp_version == 4 }
50
50
  Then { result.message_type == 0 }
51
- Then { result.length == 16 }
51
+ Then { result.message_length == 16 }
52
52
  Then { result.transaction_id == 0 }
53
53
  Then { result.xid == 0 }
54
54
  Then { result.supported_versions == [:open_flow13] }
@@ -9,21 +9,14 @@ shared_examples 'an OpenFlow message' do |klass|
9
9
  Then { message.xid == 123 }
10
10
  end
11
11
 
12
- context 'with xid: 123' do
13
- When(:options) { { xid: 123 } }
14
-
15
- Then { message.transaction_id == 123 }
16
- Then { message.xid == 123 }
17
- end
18
-
19
- context 'with xid: -1' do
20
- When(:options) { { xid: -1 } }
12
+ context 'with transaction_id: -1' do
13
+ When(:options) { { transaction_id: -1 } }
21
14
 
22
15
  Then { message == Failure(ArgumentError, 'Transaction ID should be an unsigned 32-bit integer.') }
23
16
  end
24
17
 
25
- context 'with xid: 2**32' do
26
- When(:options) { { xid: 2**32 } }
18
+ context 'with transaction_id: 2**32' do
19
+ When(:options) { { transaction_id: 2**32 } }
27
20
 
28
21
  Then { message == Failure(ArgumentError, 'Transaction ID should be an unsigned 32-bit integer.') }
29
22
  end
@@ -52,7 +45,7 @@ shared_examples 'an OpenFlow message with no body' do |klass|
52
45
  context "with body: 'DEADBEEF'" do
53
46
  When(:options) { { body: 'DEADBEEF' } }
54
47
 
55
- Then { message == Failure(RuntimeError, 'Unknown option: body') }
48
+ Then { message.body == '' }
56
49
  end
57
50
  end
58
51
  end
metadata CHANGED
@@ -1,365 +1,365 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.27.1
4
+ version: 0.27.2
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-09-28 00:00:00.000000000 Z
11
+ date: 2015-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bindata
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.1.0
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
26
  version: 2.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.10.6
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.10.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.10.1
61
+ version: 0.10.3
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.10.1
68
+ version: 0.10.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.13.0
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: 2.13.0
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: guard-bundler
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: 2.1.0
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
96
  version: 2.1.0
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: guard-cucumber
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: 1.6.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
110
  version: 1.6.0
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: guard-rspec
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 4.6.4
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 4.6.4
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: guard-rubocop
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: 1.2.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 1.2.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rb-fchange
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: 0.0.6
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
152
  version: 0.0.6
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: rb-fsevent
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ~>
157
+ - - "~>"
158
158
  - !ruby/object:Gem::Version
159
159
  version: 0.9.6
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - ~>
164
+ - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: 0.9.6
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: rb-inotify
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - ~>
171
+ - - "~>"
172
172
  - !ruby/object:Gem::Version
173
173
  version: 0.9.5
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
180
  version: 0.9.5
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: terminal-notifier-guard
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ~>
185
+ - - "~>"
186
186
  - !ruby/object:Gem::Version
187
187
  version: 1.6.4
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ~>
192
+ - - "~>"
193
193
  - !ruby/object:Gem::Version
194
194
  version: 1.6.4
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: inch
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - ~>
199
+ - - "~>"
200
200
  - !ruby/object:Gem::Version
201
- version: 0.6.4
201
+ version: 0.7.0
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - ~>
206
+ - - "~>"
207
207
  - !ruby/object:Gem::Version
208
- version: 0.6.4
208
+ version: 0.7.0
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: relish
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - ~>
213
+ - - "~>"
214
214
  - !ruby/object:Gem::Version
215
215
  version: 0.7.1
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
222
  version: 0.7.1
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: yard
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - ~>
227
+ - - "~>"
228
228
  - !ruby/object:Gem::Version
229
229
  version: 0.8.7.6
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - ~>
234
+ - - "~>"
235
235
  - !ruby/object:Gem::Version
236
236
  version: 0.8.7.6
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: codeclimate-test-reporter
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - ~>
241
+ - - "~>"
242
242
  - !ruby/object:Gem::Version
243
243
  version: 0.4.8
244
244
  type: :development
245
245
  prerelease: false
246
246
  version_requirements: !ruby/object:Gem::Requirement
247
247
  requirements:
248
- - - ~>
248
+ - - "~>"
249
249
  - !ruby/object:Gem::Version
250
250
  version: 0.4.8
251
251
  - !ruby/object:Gem::Dependency
252
252
  name: coveralls
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
- - - ~>
255
+ - - "~>"
256
256
  - !ruby/object:Gem::Version
257
- version: 0.8.2
257
+ version: 0.8.3
258
258
  type: :development
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - ~>
262
+ - - "~>"
263
263
  - !ruby/object:Gem::Version
264
- version: 0.8.2
264
+ version: 0.8.3
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: cucumber
267
267
  requirement: !ruby/object:Gem::Requirement
268
268
  requirements:
269
- - - ~>
269
+ - - "~>"
270
270
  - !ruby/object:Gem::Version
271
- version: 2.0.2
271
+ version: 2.1.0
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.0.2
278
+ version: 2.1.0
279
279
  - !ruby/object:Gem::Dependency
280
280
  name: flay
281
281
  requirement: !ruby/object:Gem::Requirement
282
282
  requirements:
283
- - - ~>
283
+ - - "~>"
284
284
  - !ruby/object:Gem::Version
285
285
  version: 2.6.1
286
286
  type: :development
287
287
  prerelease: false
288
288
  version_requirements: !ruby/object:Gem::Requirement
289
289
  requirements:
290
- - - ~>
290
+ - - "~>"
291
291
  - !ruby/object:Gem::Version
292
292
  version: 2.6.1
293
293
  - !ruby/object:Gem::Dependency
294
294
  name: flog
295
295
  requirement: !ruby/object:Gem::Requirement
296
296
  requirements:
297
- - - ~>
297
+ - - "~>"
298
298
  - !ruby/object:Gem::Version
299
299
  version: 4.3.2
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
306
  version: 4.3.2
307
307
  - !ruby/object:Gem::Dependency
308
308
  name: reek
309
309
  requirement: !ruby/object:Gem::Requirement
310
310
  requirements:
311
- - - ~>
311
+ - - "~>"
312
312
  - !ruby/object:Gem::Version
313
- version: 3.3.1
313
+ version: 3.5.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: 3.3.1
320
+ version: 3.5.0
321
321
  - !ruby/object:Gem::Dependency
322
322
  name: rspec
323
323
  requirement: !ruby/object:Gem::Requirement
324
324
  requirements:
325
- - - ~>
325
+ - - "~>"
326
326
  - !ruby/object:Gem::Version
327
327
  version: 3.3.0
328
328
  type: :development
329
329
  prerelease: false
330
330
  version_requirements: !ruby/object:Gem::Requirement
331
331
  requirements:
332
- - - ~>
332
+ - - "~>"
333
333
  - !ruby/object:Gem::Version
334
334
  version: 3.3.0
335
335
  - !ruby/object:Gem::Dependency
336
336
  name: rspec-given
337
337
  requirement: !ruby/object:Gem::Requirement
338
338
  requirements:
339
- - - ~>
339
+ - - "~>"
340
340
  - !ruby/object:Gem::Version
341
341
  version: 3.7.1
342
342
  type: :development
343
343
  prerelease: false
344
344
  version_requirements: !ruby/object:Gem::Requirement
345
345
  requirements:
346
- - - ~>
346
+ - - "~>"
347
347
  - !ruby/object:Gem::Version
348
348
  version: 3.7.1
349
349
  - !ruby/object:Gem::Dependency
350
350
  name: rubocop
351
351
  requirement: !ruby/object:Gem::Requirement
352
352
  requirements:
353
- - - ~>
353
+ - - "~>"
354
354
  - !ruby/object:Gem::Version
355
- version: 0.34.0
355
+ version: 0.34.2
356
356
  type: :development
357
357
  prerelease: false
358
358
  version_requirements: !ruby/object:Gem::Requirement
359
359
  requirements:
360
- - - ~>
360
+ - - "~>"
361
361
  - !ruby/object:Gem::Version
362
- version: 0.34.0
362
+ version: 0.34.2
363
363
  description: Pure ruby packet parser and generator.
364
364
  email:
365
365
  - yasuhito@gmail.com
@@ -380,6 +380,8 @@ files:
380
380
  - bin/byebug
381
381
  - bin/cc-tddium-post-worker
382
382
  - bin/cdiff
383
+ - bin/code_metrics
384
+ - bin/code_metrics-profile
383
385
  - bin/coderay
384
386
  - bin/colortab
385
387
  - bin/coveralls
@@ -407,7 +409,6 @@ files:
407
409
  - bin/sparkr
408
410
  - bin/term_display
409
411
  - bin/term_mandel
410
- - bin/terminal-notifier
411
412
  - bin/thor
412
413
  - bin/unparser
413
414
  - bin/yard
@@ -420,6 +421,7 @@ files:
420
421
  - features/dhcp.pcap
421
422
  - features/icmp.feature
422
423
  - features/icmp.pcap
424
+ - features/icmpv6.pcap
423
425
  - features/lldp.detailed.pcap
424
426
  - features/lldp.feature
425
427
  - features/lldp.minimal.pcap
@@ -473,6 +475,7 @@ files:
473
475
  - features/open_flow10/nxast_learn.raw
474
476
  - features/open_flow10/packet_in.feature
475
477
  - features/open_flow10/packet_in.raw
478
+ - features/open_flow10/packet_in_arp_reply.raw
476
479
  - features/open_flow10/packet_in_arp_request.raw
477
480
  - features/open_flow10/packet_in_cbench.raw
478
481
  - features/open_flow10/packet_out.feature
@@ -604,6 +607,7 @@ files:
604
607
  - features/open_flow13/write_metadata.feature
605
608
  - features/open_flow_read.feature
606
609
  - features/open_flow_version.feature
610
+ - features/parser.feature
607
611
  - features/step_definitions/Gemfile
608
612
  - features/step_definitions/Guardfile
609
613
  - features/step_definitions/LICENSE
@@ -675,10 +679,8 @@ files:
675
679
  - lib/pio/monkey_patch/integer/ranges.rb
676
680
  - lib/pio/open_flow.rb
677
681
  - lib/pio/open_flow/datapath_id.rb
678
- - lib/pio/open_flow/echo.rb
679
682
  - lib/pio/open_flow/error.rb
680
683
  - lib/pio/open_flow/flags.rb
681
- - lib/pio/open_flow/format.rb
682
684
  - lib/pio/open_flow/hello_failed_code.rb
683
685
  - lib/pio/open_flow/message.rb
684
686
  - lib/pio/open_flow/open_flow_header.rb
@@ -686,13 +688,14 @@ files:
686
688
  - lib/pio/open_flow/transaction_id.rb
687
689
  - lib/pio/open_flow10.rb
688
690
  - lib/pio/open_flow10/actions.rb
689
- - lib/pio/open_flow10/aggregate_stats_reply.rb
690
- - lib/pio/open_flow10/aggregate_stats_request.rb
691
- - lib/pio/open_flow10/barrier_reply.rb
692
- - lib/pio/open_flow10/barrier_request.rb
693
- - lib/pio/open_flow10/description_stats_reply.rb
694
- - lib/pio/open_flow10/description_stats_request.rb
695
- - lib/pio/open_flow10/echo.rb
691
+ - lib/pio/open_flow10/aggregate_stats/reply.rb
692
+ - lib/pio/open_flow10/aggregate_stats/request.rb
693
+ - lib/pio/open_flow10/barrier/reply.rb
694
+ - lib/pio/open_flow10/barrier/request.rb
695
+ - lib/pio/open_flow10/description_stats/reply.rb
696
+ - lib/pio/open_flow10/description_stats/request.rb
697
+ - lib/pio/open_flow10/echo/reply.rb
698
+ - lib/pio/open_flow10/echo/request.rb
696
699
  - lib/pio/open_flow10/enqueue.rb
697
700
  - lib/pio/open_flow10/error.rb
698
701
  - lib/pio/open_flow10/error/bad_request.rb
@@ -703,10 +706,11 @@ files:
703
706
  - lib/pio/open_flow10/features/reply.rb
704
707
  - lib/pio/open_flow10/features/request.rb
705
708
  - lib/pio/open_flow10/flow_mod.rb
706
- - lib/pio/open_flow10/flow_stats_reply.rb
707
- - lib/pio/open_flow10/flow_stats_request.rb
709
+ - lib/pio/open_flow10/flow_stats/reply.rb
710
+ - lib/pio/open_flow10/flow_stats/request.rb
708
711
  - lib/pio/open_flow10/hello.rb
709
712
  - lib/pio/open_flow10/match.rb
713
+ - lib/pio/open_flow10/match10.rb
710
714
  - lib/pio/open_flow10/packet_in.rb
711
715
  - lib/pio/open_flow10/packet_out.rb
712
716
  - lib/pio/open_flow10/phy_port16.rb
@@ -729,12 +733,12 @@ files:
729
733
  - lib/pio/open_flow13/actions.rb
730
734
  - lib/pio/open_flow13/apply.rb
731
735
  - lib/pio/open_flow13/buffer_id.rb
732
- - lib/pio/open_flow13/echo.rb
736
+ - lib/pio/open_flow13/echo/reply.rb
737
+ - lib/pio/open_flow13/echo/request.rb
733
738
  - lib/pio/open_flow13/error.rb
734
739
  - lib/pio/open_flow13/error/bad_request.rb
735
740
  - lib/pio/open_flow13/error/error_type13.rb
736
741
  - lib/pio/open_flow13/error/hello_failed.rb
737
- - lib/pio/open_flow13/features.rb
738
742
  - lib/pio/open_flow13/features/reply.rb
739
743
  - lib/pio/open_flow13/features/request.rb
740
744
  - lib/pio/open_flow13/flow_mod.rb
@@ -776,8 +780,8 @@ files:
776
780
  - spec/pio/ipv4_address_spec.rb
777
781
  - spec/pio/lldp/options_spec.rb
778
782
  - spec/pio/mac_spec.rb
779
- - spec/pio/open_flow10/echo_reply_spec.rb
780
- - spec/pio/open_flow10/echo_request_spec.rb
783
+ - spec/pio/open_flow10/echo/reply_spec.rb
784
+ - spec/pio/open_flow10/echo/request_spec.rb
781
785
  - spec/pio/open_flow10/enqueue_spec.rb
782
786
  - spec/pio/open_flow10/error/hello_failed_spec.rb
783
787
  - spec/pio/open_flow10/features/reply_spec.rb
@@ -828,17 +832,17 @@ require_paths:
828
832
  - lib
829
833
  required_ruby_version: !ruby/object:Gem::Requirement
830
834
  requirements:
831
- - - '>='
835
+ - - ">="
832
836
  - !ruby/object:Gem::Version
833
837
  version: 2.0.0
834
838
  required_rubygems_version: !ruby/object:Gem::Requirement
835
839
  requirements:
836
- - - '>='
840
+ - - ">="
837
841
  - !ruby/object:Gem::Version
838
842
  version: '0'
839
843
  requirements: []
840
844
  rubyforge_project:
841
- rubygems_version: 2.4.6
845
+ rubygems_version: 2.4.8
842
846
  signing_key:
843
847
  specification_version: 4
844
848
  summary: Packet parser and generator.
@@ -859,8 +863,8 @@ test_files:
859
863
  - spec/pio/ipv4_address_spec.rb
860
864
  - spec/pio/lldp/options_spec.rb
861
865
  - spec/pio/mac_spec.rb
862
- - spec/pio/open_flow10/echo_reply_spec.rb
863
- - spec/pio/open_flow10/echo_request_spec.rb
866
+ - spec/pio/open_flow10/echo/reply_spec.rb
867
+ - spec/pio/open_flow10/echo/request_spec.rb
864
868
  - spec/pio/open_flow10/enqueue_spec.rb
865
869
  - spec/pio/open_flow10/error/hello_failed_spec.rb
866
870
  - spec/pio/open_flow10/features/reply_spec.rb
@@ -908,6 +912,7 @@ test_files:
908
912
  - features/dhcp.pcap
909
913
  - features/icmp.feature
910
914
  - features/icmp.pcap
915
+ - features/icmpv6.pcap
911
916
  - features/lldp.detailed.pcap
912
917
  - features/lldp.feature
913
918
  - features/lldp.minimal.pcap
@@ -961,6 +966,7 @@ test_files:
961
966
  - features/open_flow10/nxast_learn.raw
962
967
  - features/open_flow10/packet_in.feature
963
968
  - features/open_flow10/packet_in.raw
969
+ - features/open_flow10/packet_in_arp_reply.raw
964
970
  - features/open_flow10/packet_in_arp_request.raw
965
971
  - features/open_flow10/packet_in_cbench.raw
966
972
  - features/open_flow10/packet_out.feature
@@ -1092,6 +1098,7 @@ test_files:
1092
1098
  - features/open_flow13/write_metadata.feature
1093
1099
  - features/open_flow_read.feature
1094
1100
  - features/open_flow_version.feature
1101
+ - features/parser.feature
1095
1102
  - features/step_definitions/dump_flows_steps.rb
1096
1103
  - features/step_definitions/Gemfile
1097
1104
  - features/step_definitions/Guardfile