struct-fx 0.1.0 → 0.1.1

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/struct-fx.rb +6 -8
  3. data/struct-fx.gemspec +3 -3
  4. metadata +4 -4
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -168,13 +168,7 @@ class StructFx
168
168
 
169
169
  end
170
170
 
171
- @compiled.enabled.freeze
172
- @compiled.processors.freeze
173
- @compiled.packing.freeze
174
- @compiled.unpacking.freeze
175
- @compiled.lengths.freeze
176
-
177
- return @compiled.freeze
171
+ return @compiled
178
172
  end
179
173
 
180
174
  ##
@@ -267,13 +261,17 @@ class StructFx
267
261
 
268
262
  ##
269
263
  # Returns total length of the struct in bytes.
264
+ #
270
265
  # @return [Integer] total length of the declaration
266
+ # @since 0.1.1
271
267
  #
272
268
 
273
- def length
269
+ def bytesize
274
270
  self.compiled.length
275
271
  end
276
272
 
273
+ alias :length :bytesize
274
+
277
275
  ##
278
276
  # Converts to string.
279
277
  # @return [String] resultant string according to current data state
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{struct-fx}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Martin Kozák"]
12
- s.date = %q{2011-03-02}
12
+ s.date = %q{2011-03-10}
13
13
  s.email = %q{martinkozak@martinkozak.net}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE.txt",
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
31
31
  s.homepage = %q{http://github.com/martinkozak/struct-fx}
32
32
  s.licenses = ["MIT"]
33
33
  s.require_paths = ["lib"]
34
- s.rubygems_version = %q{1.6.0}
34
+ s.rubygems_version = %q{1.6.2}
35
35
  s.summary = %q{Declarative pure Ruby equivalent of C/C++ structs.}
36
36
 
37
37
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: struct-fx
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - "Martin Koz\xC3\xA1k"
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-02 00:00:00 +01:00
13
+ date: 2011-03-10 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
- hash: 2568357356524022812
106
+ hash: 4591904129432642342
107
107
  segments:
108
108
  - 0
109
109
  version: "0"
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements: []
117
117
 
118
118
  rubyforge_project:
119
- rubygems_version: 1.6.0
119
+ rubygems_version: 1.6.2
120
120
  signing_key:
121
121
  specification_version: 3
122
122
  summary: Declarative pure Ruby equivalent of C/C++ structs.