packed_struct 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -153,7 +153,7 @@ module PackedStruct
153
153
  4
154
154
  end
155
155
  when :null
156
- size
156
+ size || 1
157
157
  when :string
158
158
  size
159
159
  else
@@ -102,8 +102,6 @@ module PackedStruct
102
102
  parts[directive.name] = value
103
103
  end
104
104
 
105
- p read
106
-
107
105
  directives.each { |x| x.value = nil }
108
106
 
109
107
  parts.delete(:null) {}
@@ -1,5 +1,5 @@
1
1
  module PackedStruct
2
2
 
3
3
  # The current version of PackedStruct.
4
- VERSION = "0.2.0".freeze
4
+ VERSION = "0.2.1".freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: packed_struct
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: