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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 44e817865aad2bca02664137c576aca24d2b43ee
4
- data.tar.gz: b4fc48376fa6f9e7a95a7b8ec9c898765b60a84a
3
+ metadata.gz: 8bead92b6646f9d6269197332199f92444e3e679
4
+ data.tar.gz: fec5c26e9c19fcdad24abef4e5b35c5997511b25
5
5
  SHA512:
6
- metadata.gz: bc658e37e425cde61feaed92631d6ecb53bfa1e1ecc6c9afb47575b9ad5adb8e26944f0d5c033feed27d09400dbdacf954129836f670484577003c4fcdfd94b5
7
- data.tar.gz: 28082bacddd48db943b42cef8785b624148440a1bfefd7cf20d78b246e828ac397502c306b775252e7260cd2c4b8ebd8f0fccb616acc444d1633d8a42bb0b7de
6
+ metadata.gz: 9d6296dadfd348d7520b96aa102628daa79f5aa8060b9211c0cd79a723412156f553e9318073ff0508cba6d9ca23df8ed200278067af51a086f36678b6e9ac89
7
+ data.tar.gz: 27222955c75d8aa15376e13cc184b72fbd46055cacd18014b49d157cef3931bc459e0e9610e592167c3f3752714529dad211c524519bffce8f024714d1f12be0
@@ -1,3 +1,3 @@
1
1
  module AwsMemfix
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -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,-1]
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_memfix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Milovan Zogovic