bit-struct 0.15.0 → 0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -1
- data/LICENSE +56 -0
- data/README.md +2 -2
- data/Rakefile +2 -2
- data/examples/field-ripper.rb +1 -1
- data/examples/ip.rb +6 -6
- data/examples/longlong.rb +2 -2
- data/examples/md.rb +1 -1
- data/examples/modular-def.rb +2 -2
- data/examples/native.rb +3 -3
- data/examples/ping.rb +1 -1
- data/examples/raw.rb +1 -1
- data/examples/switch-endian.rb +2 -2
- data/examples/vector.rb +2 -2
- data/lib/bit-struct.rb +0 -11
- data/lib/bit-struct/bit-struct.rb +54 -144
- data/lib/bit-struct/char-field.rb +3 -3
- data/lib/bit-struct/field.rb +94 -0
- data/lib/bit-struct/fields.rb +13 -13
- data/lib/bit-struct/float-field.rb +4 -4
- data/lib/bit-struct/hex-octet-field.rb +3 -3
- data/lib/bit-struct/nested-field.rb +8 -8
- data/lib/bit-struct/octet-field.rb +4 -4
- data/lib/bit-struct/signed-field.rb +23 -28
- data/lib/bit-struct/text-field.rb +2 -2
- data/lib/bit-struct/unsigned-field.rb +24 -27
- data/lib/bit-struct/vector-field.rb +7 -7
- data/lib/bit-struct/vector.rb +21 -21
- data/lib/bit-struct/yaml.rb +2 -2
- data/test/test-endian.rb +3 -3
- data/test/test-vector.rb +4 -4
- data/test/test.rb +49 -43
- metadata +47 -45
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bit-struct
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.16'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel VanderWerf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-05-14 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Library for packed binary data stored in ruby Strings. Useful for accessing
|
14
14
|
fields in network packets and binary files.
|
@@ -18,82 +18,84 @@ extensions: []
|
|
18
18
|
extra_rdoc_files:
|
19
19
|
- History.txt
|
20
20
|
- README.md
|
21
|
+
- LICENSE
|
21
22
|
files:
|
22
23
|
- History.txt
|
24
|
+
- LICENSE
|
23
25
|
- README.md
|
24
26
|
- Rakefile
|
25
|
-
-
|
26
|
-
-
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
- lib/bit-struct/octet-field.rb
|
31
|
-
- lib/bit-struct/text-field.rb
|
32
|
-
- lib/bit-struct/nested-field.rb
|
33
|
-
- lib/bit-struct/fields.rb
|
34
|
-
- lib/bit-struct/signed-field.rb
|
35
|
-
- lib/bit-struct/unsigned-field.rb
|
36
|
-
- lib/bit-struct/float-field.rb
|
37
|
-
- lib/bit-struct/bit-struct.rb
|
38
|
-
- lib/bit-struct/pad-field.rb
|
39
|
-
- lib/bit-struct.rb
|
40
|
-
- examples/switch-endian.rb
|
41
|
-
- examples/ping-recv.rb
|
42
|
-
- examples/vector.rb
|
43
|
-
- examples/rest.rb
|
27
|
+
- examples/ara-player-data.rb
|
28
|
+
- examples/bignum.rb
|
29
|
+
- examples/bits.rb
|
30
|
+
- examples/byte-bdy.rb
|
31
|
+
- examples/field-ripper.rb
|
44
32
|
- examples/fixed-point.rb
|
45
|
-
- examples/
|
46
|
-
- examples/
|
33
|
+
- examples/ip.rb
|
34
|
+
- examples/longlong.rb
|
47
35
|
- examples/md.rb
|
36
|
+
- examples/modular-def.rb
|
48
37
|
- examples/native.rb
|
49
|
-
- examples/raw.rb
|
50
|
-
- examples/ip.rb
|
51
|
-
- examples/pad.rb
|
52
|
-
- examples/field-ripper.rb
|
53
|
-
- examples/bits.rb
|
54
|
-
- examples/bignum.rb
|
55
38
|
- examples/nested-block.rb
|
56
|
-
- examples/
|
57
|
-
- examples/
|
58
|
-
- examples/
|
59
|
-
- examples/ara-player-data.rb
|
39
|
+
- examples/nested.rb
|
40
|
+
- examples/pad.rb
|
41
|
+
- examples/ping-recv.rb
|
60
42
|
- examples/ping.rb
|
61
|
-
-
|
62
|
-
-
|
43
|
+
- examples/player-data.rb
|
44
|
+
- examples/raw.rb
|
45
|
+
- examples/rest.rb
|
46
|
+
- examples/switch-endian.rb
|
47
|
+
- examples/vector.rb
|
48
|
+
- lib/bit-struct.rb
|
49
|
+
- lib/bit-struct/bit-struct.rb
|
50
|
+
- lib/bit-struct/char-field.rb
|
51
|
+
- lib/bit-struct/field.rb
|
52
|
+
- lib/bit-struct/fields.rb
|
53
|
+
- lib/bit-struct/float-field.rb
|
54
|
+
- lib/bit-struct/hex-octet-field.rb
|
55
|
+
- lib/bit-struct/nested-field.rb
|
56
|
+
- lib/bit-struct/octet-field.rb
|
57
|
+
- lib/bit-struct/pad-field.rb
|
58
|
+
- lib/bit-struct/signed-field.rb
|
59
|
+
- lib/bit-struct/text-field.rb
|
60
|
+
- lib/bit-struct/unsigned-field.rb
|
61
|
+
- lib/bit-struct/vector-field.rb
|
62
|
+
- lib/bit-struct/vector.rb
|
63
|
+
- lib/bit-struct/yaml.rb
|
63
64
|
- test/test-endian.rb
|
65
|
+
- test/test-vector.rb
|
66
|
+
- test/test.rb
|
64
67
|
homepage: https://github.com/vjoel/bit-struct
|
65
68
|
licenses:
|
66
69
|
- Ruby
|
67
70
|
metadata: {}
|
68
71
|
post_install_message:
|
69
72
|
rdoc_options:
|
70
|
-
- --quiet
|
71
|
-
- --line-numbers
|
72
|
-
- --inline-source
|
73
|
-
- --title
|
73
|
+
- "--quiet"
|
74
|
+
- "--line-numbers"
|
75
|
+
- "--inline-source"
|
76
|
+
- "--title"
|
74
77
|
- BitStruct
|
75
|
-
- --main
|
78
|
+
- "--main"
|
76
79
|
- README.md
|
77
80
|
require_paths:
|
78
81
|
- lib
|
79
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
80
83
|
requirements:
|
81
|
-
- -
|
84
|
+
- - ">="
|
82
85
|
- !ruby/object:Gem::Version
|
83
86
|
version: '0'
|
84
87
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
88
|
requirements:
|
86
|
-
- -
|
89
|
+
- - ">="
|
87
90
|
- !ruby/object:Gem::Version
|
88
91
|
version: '0'
|
89
92
|
requirements: []
|
90
93
|
rubyforge_project: bit-struct
|
91
|
-
rubygems_version: 2.
|
94
|
+
rubygems_version: 2.6.11
|
92
95
|
signing_key:
|
93
96
|
specification_version: 4
|
94
97
|
summary: Library for packed binary data stored in ruby Strings
|
95
98
|
test_files:
|
96
|
-
- test/test.rb
|
97
99
|
- test/test-vector.rb
|
98
100
|
- test/test-endian.rb
|
99
|
-
|
101
|
+
- test/test.rb
|