iostruct 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/iostruct/version.rb +1 -1
- data/lib/iostruct.rb +4 -0
- data/spec/iostruct_spec.rb +5 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0376aab4653f3f1fb656d82f679346bd1d04c6d8f80e17540a4a7fbb3bc470d7
|
4
|
+
data.tar.gz: 211894d68015bc52658e8e818296a42c115bdeda8cfa2cb6525cadb1e9554e9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79edc6088c3258506085cf22aee37e75386bab8309c478786ec3022f3895f34a4b05490640bca22db56b78242b500d7030d3fc6b141a24aa0f9cfc1681baef7d
|
7
|
+
data.tar.gz: 36ddc86813c0c0fc92874025fbe37f755a8f1cef22533949b101428b50ca2a0369aae9beddfe99a4b00d71c0db5985ec4f89b5beddefcc262ea6c91dfd2787b7
|
data/CHANGELOG.md
CHANGED
data/lib/iostruct/version.rb
CHANGED
data/lib/iostruct.rb
CHANGED
data/spec/iostruct_spec.rb
CHANGED
@@ -36,10 +36,14 @@ describe IOStruct do
|
|
36
36
|
expect(x.c).to eq 2
|
37
37
|
end
|
38
38
|
|
39
|
-
it "has correct
|
39
|
+
it "has correct SIZE" do
|
40
40
|
expect(struct::SIZE).to eq 2
|
41
41
|
end
|
42
42
|
|
43
|
+
it "has correct size" do
|
44
|
+
expect(struct.size).to eq 2
|
45
|
+
end
|
46
|
+
|
43
47
|
it "reads correct number of bytes from IO" do
|
44
48
|
io = StringIO.new(data*2)
|
45
49
|
x = struct.read(io)
|