binary_finery 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +5 -5
- data/README.md +5 -5
- metadata +4 -4
data/README
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Binary
|
1
|
+
Binary Finery
|
2
2
|
=============
|
3
3
|
|
4
4
|
Mixes in a _fluent interface_ to any IO entity for reading and
|
@@ -12,7 +12,7 @@ writing binary data. It handles (de)serialization of:
|
|
12
12
|
Requirements
|
13
13
|
------------
|
14
14
|
|
15
|
-
Binary
|
15
|
+
Binary Finery assumes that the stream where
|
16
16
|
is mixed in, provides the following methods:
|
17
17
|
|
18
18
|
- read or read_nonblock
|
@@ -26,8 +26,8 @@ Examples
|
|
26
26
|
--------
|
27
27
|
|
28
28
|
File.open(my_file.bin) do |f|
|
29
|
-
f.extend(
|
30
|
-
|
29
|
+
f.extend(BinaryFinery)
|
30
|
+
version = f.read_uint16_big
|
31
31
|
length = f.read_uint32_little
|
32
32
|
end
|
33
33
|
|
@@ -35,7 +35,7 @@ Examples
|
|
35
35
|
Install
|
36
36
|
-------
|
37
37
|
|
38
|
-
$ gem install
|
38
|
+
$ gem install binary_finery
|
39
39
|
|
40
40
|
|
41
41
|
Contributing
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Binary
|
1
|
+
Binary Finery
|
2
2
|
=============
|
3
3
|
|
4
4
|
Mixes in a _fluent interface_ to any IO entity for reading and
|
@@ -12,7 +12,7 @@ writing binary data. It handles (de)serialization of:
|
|
12
12
|
Requirements
|
13
13
|
------------
|
14
14
|
|
15
|
-
Binary
|
15
|
+
Binary Finery assumes that the stream where
|
16
16
|
is mixed in, provides the following methods:
|
17
17
|
|
18
18
|
- read or read_nonblock
|
@@ -26,8 +26,8 @@ Examples
|
|
26
26
|
--------
|
27
27
|
|
28
28
|
File.open(my_file.bin) do |f|
|
29
|
-
f.extend(
|
30
|
-
|
29
|
+
f.extend(BinaryFinery)
|
30
|
+
version = f.read_uint16_big
|
31
31
|
length = f.read_uint32_little
|
32
32
|
end
|
33
33
|
|
@@ -35,7 +35,7 @@ Examples
|
|
35
35
|
Install
|
36
36
|
-------
|
37
37
|
|
38
|
-
$ gem install
|
38
|
+
$ gem install binary_finery
|
39
39
|
|
40
40
|
|
41
41
|
Contributing
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: binary_finery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michelangelo Altamore
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-10-
|
18
|
+
date: 2011-10-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: minitest
|