aws_memfix 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws_memfix/version.rb +1 -1
- data/lib/seahorse/stringio.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bead92b6646f9d6269197332199f92444e3e679
|
4
|
+
data.tar.gz: fec5c26e9c19fcdad24abef4e5b35c5997511b25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d6296dadfd348d7520b96aa102628daa79f5aa8060b9211c0cd79a723412156f553e9318073ff0508cba6d9ca23df8ed200278067af51a086f36678b6e9ac89
|
7
|
+
data.tar.gz: 27222955c75d8aa15376e13cc184b72fbd46055cacd18014b49d157cef3931bc459e0e9610e592167c3f3752714529dad211c524519bffce8f024714d1f12be0
|
data/lib/aws_memfix/version.rb
CHANGED
data/lib/seahorse/stringio.rb
CHANGED
@@ -7,6 +7,7 @@ module Seahorse
|
|
7
7
|
|
8
8
|
def write(data)
|
9
9
|
@data << data
|
10
|
+
@offset += data.bytesize
|
10
11
|
data.bytesize
|
11
12
|
end
|
12
13
|
|
@@ -28,6 +29,10 @@ module Seahorse
|
|
28
29
|
bytes
|
29
30
|
end
|
30
31
|
|
32
|
+
def size
|
33
|
+
@data.bytesize
|
34
|
+
end
|
35
|
+
|
31
36
|
private
|
32
37
|
|
33
38
|
def partial_read(bytes)
|
@@ -41,9 +46,9 @@ module Seahorse
|
|
41
46
|
end
|
42
47
|
|
43
48
|
def full_read
|
44
|
-
data = @offset == 0 ? @data : @data[@offset
|
49
|
+
data = @offset == 0 ? @data : @data[@offset..-1]
|
45
50
|
@offset = @data.bytesize
|
46
|
-
data
|
51
|
+
data || ''
|
47
52
|
end
|
48
53
|
|
49
54
|
def bump_offset(bytes)
|