pio 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/pio/version.rb +1 -1
- data/pio.gemspec +30 -0
- data/spec/pio/dhcp_spec.rb +848 -144
- data/spec/pio/ipv4_address_spec.rb +258 -53
- data/spec/pio/mac_spec.rb +106 -29
- data/spec/spec_helper.rb +0 -1
- metadata +340 -32
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yasuhito Takamiya
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05
|
11
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.1.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: bundler
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +52,300 @@ dependencies:
|
|
38
52
|
- - ~>
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: 1.6.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.9.12.6
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.9.12.6
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.6.1
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.6.1
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard-bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.0.0
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.0.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard-cucumber
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ~>
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 1.4.1
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.4.1
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: guard-rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 4.2.9
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 4.2.9
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: guard-rubocop
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.1.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.1.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rb-fchange
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.0.6
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.0.6
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rb-fsevent
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.9.4
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.9.4
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rb-inotify
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.9.3
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ~>
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.9.3
|
181
|
+
- !ruby/object:Gem::Dependency
|
182
|
+
name: terminal-notifier-guard
|
183
|
+
requirement: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ~>
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: 1.5.3
|
188
|
+
type: :development
|
189
|
+
prerelease: false
|
190
|
+
version_requirements: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ~>
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: 1.5.3
|
195
|
+
- !ruby/object:Gem::Dependency
|
196
|
+
name: inch
|
197
|
+
requirement: !ruby/object:Gem::Requirement
|
198
|
+
requirements:
|
199
|
+
- - ~>
|
200
|
+
- !ruby/object:Gem::Version
|
201
|
+
version: 0.4.6
|
202
|
+
type: :development
|
203
|
+
prerelease: false
|
204
|
+
version_requirements: !ruby/object:Gem::Requirement
|
205
|
+
requirements:
|
206
|
+
- - ~>
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 0.4.6
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: yard
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ~>
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: 0.8.7.4
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ~>
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: 0.8.7.4
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: codeclimate-test-reporter
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - ~>
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: 0.3.0
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - ~>
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: 0.3.0
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: coveralls
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - ~>
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: 0.7.0
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - ~>
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: 0.7.0
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: cucumber
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ~>
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: 1.3.15
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ~>
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: 1.3.15
|
265
|
+
- !ruby/object:Gem::Dependency
|
266
|
+
name: flay
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ~>
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: 2.5.0
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ~>
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: 2.5.0
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: flog
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ~>
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: 4.2.1
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ~>
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 4.2.1
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: reek
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - ~>
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: 1.3.7
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - ~>
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: 1.3.7
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: rspec
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - ~>
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: 3.0.0
|
314
|
+
type: :development
|
315
|
+
prerelease: false
|
316
|
+
version_requirements: !ruby/object:Gem::Requirement
|
317
|
+
requirements:
|
318
|
+
- - ~>
|
319
|
+
- !ruby/object:Gem::Version
|
320
|
+
version: 3.0.0
|
321
|
+
- !ruby/object:Gem::Dependency
|
322
|
+
name: rspec-given
|
323
|
+
requirement: !ruby/object:Gem::Requirement
|
324
|
+
requirements:
|
325
|
+
- - ~>
|
326
|
+
- !ruby/object:Gem::Version
|
327
|
+
version: 3.5.4
|
328
|
+
type: :development
|
329
|
+
prerelease: false
|
330
|
+
version_requirements: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - ~>
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: 3.5.4
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: rubocop
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - ~>
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: 0.23.0
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - ~>
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: 0.23.0
|
41
349
|
description: Pure ruby packet parser and generator.
|
42
350
|
email:
|
43
351
|
- yasuhito@gmail.com
|
@@ -209,49 +517,49 @@ signing_key:
|
|
209
517
|
specification_version: 4
|
210
518
|
summary: Packet parser and generator.
|
211
519
|
test_files:
|
212
|
-
- spec/pio/
|
213
|
-
- spec/pio/
|
214
|
-
- spec/pio/
|
215
|
-
- spec/pio/
|
216
|
-
- spec/pio/
|
217
|
-
- spec/pio/dhcp/offer_spec.rb
|
520
|
+
- spec/pio/arp/reply/options_spec.rb
|
521
|
+
- spec/pio/arp/reply_spec.rb
|
522
|
+
- spec/pio/arp/request/options_spec.rb
|
523
|
+
- spec/pio/arp/request_spec.rb
|
524
|
+
- spec/pio/arp_spec.rb
|
218
525
|
- spec/pio/dhcp/ack_spec.rb
|
219
526
|
- spec/pio/dhcp/discover_spec.rb
|
220
|
-
- spec/pio/
|
527
|
+
- spec/pio/dhcp/offer_spec.rb
|
528
|
+
- spec/pio/dhcp/request_spec.rb
|
529
|
+
- spec/pio/dhcp_spec.rb
|
530
|
+
- spec/pio/echo/reply_spec.rb
|
531
|
+
- spec/pio/echo/request_spec.rb
|
221
532
|
- spec/pio/echo_spec.rb
|
222
|
-
- spec/pio/
|
223
|
-
- spec/pio/
|
224
|
-
- spec/pio/
|
225
|
-
- spec/pio/
|
226
|
-
- spec/pio/lldp/options_spec.rb
|
227
|
-
- spec/pio/mac_spec.rb
|
228
|
-
- spec/pio/icmp/request_spec.rb
|
533
|
+
- spec/pio/features/reply_spec.rb
|
534
|
+
- spec/pio/features/request_spec.rb
|
535
|
+
- spec/pio/features_spec.rb
|
536
|
+
- spec/pio/hello_spec.rb
|
229
537
|
- spec/pio/icmp/reply_spec.rb
|
538
|
+
- spec/pio/icmp/request_spec.rb
|
230
539
|
- spec/pio/icmp_spec.rb
|
231
|
-
- spec/pio/
|
540
|
+
- spec/pio/ipv4_address_spec.rb
|
541
|
+
- spec/pio/lldp/options_spec.rb
|
232
542
|
- spec/pio/lldp_spec.rb
|
233
|
-
- spec/pio/
|
234
|
-
- spec/pio/echo/request_spec.rb
|
235
|
-
- spec/pio/echo/reply_spec.rb
|
543
|
+
- spec/pio/mac_spec.rb
|
236
544
|
- spec/spec_helper.rb
|
545
|
+
- features/arp_read.feature
|
546
|
+
- features/dhcp_read.feature
|
547
|
+
- features/echo_read.feature
|
548
|
+
- features/features_read.feature
|
237
549
|
- features/hello_read.feature
|
238
|
-
- features/
|
550
|
+
- features/icmp_read.feature
|
551
|
+
- features/lldp_read.feature
|
552
|
+
- features/packet_data/arp-storm.pcap
|
553
|
+
- features/packet_data/arp.pcap
|
239
554
|
- features/packet_data/dhcp.pcap
|
555
|
+
- features/packet_data/echo.raw
|
240
556
|
- features/packet_data/features_reply.raw
|
241
|
-
- features/packet_data/arp.pcap
|
242
557
|
- features/packet_data/features_request.raw
|
243
|
-
- features/packet_data/echo.raw
|
244
|
-
- features/packet_data/lldp.minimal.pcap
|
245
558
|
- features/packet_data/hello.raw
|
246
559
|
- features/packet_data/icmp.pcap
|
247
|
-
- features/packet_data/arp-storm.pcap
|
248
560
|
- features/packet_data/lldp.detailed.pcap
|
249
|
-
- features/
|
250
|
-
- features/arp_read.feature
|
251
|
-
- features/step_definitions/pending_steps.rb
|
561
|
+
- features/packet_data/lldp.minimal.pcap
|
252
562
|
- features/step_definitions/packet_data_steps.rb
|
253
|
-
- features/
|
254
|
-
- features/
|
255
|
-
- features/features_read.feature
|
256
|
-
- features/echo_read.feature
|
563
|
+
- features/step_definitions/pending_steps.rb
|
564
|
+
- features/support/env.rb
|
257
565
|
has_rdoc:
|