dataMetaByteSer 1.0.0 → 1.0.1

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: 4d5201ed98a82b4da2ca29379d7318cb3607e920
4
- data.tar.gz: edb71acaf79c4111d1a703c9a7044c9a78019fb8
3
+ metadata.gz: 373eeace05abe68f0e8bd50126e1eb391513ab6a
4
+ data.tar.gz: 6af6988456d4399d1f2bc40160c962fff22c3909
5
5
  SHA512:
6
- metadata.gz: 4d9edb7888e536f006becb9ce5612ef7573798afb5f136e0b36745021caaebc8c1cfad455815e6c1269a25763f45590a0133200ffc3121ababe839791e7cae7d
7
- data.tar.gz: a5358415079756f869e417d783f069ebdf60aafe46c8fb449dd9014af7ef269ff1f683723f9784f3759b83d79c848aa1ab0ff6303675c1b8fa55f647d2c99639
6
+ metadata.gz: 9e0c92373f7ecfdbfef7e78477ec0345c379fd585c2bf45309c82c27c225fcf88a2648737b68540c42963cef01cccb59c0ae80e3b9853f8ae980923e9215aa31
7
+ data.tar.gz: f39e769f603af6b087752e08ea9f6ade8ccffe9b29d1ccd028cb782bf8d307f76528372de17d8aed7f232dcd13a5178e856f6586461a760d348b43bd6aaabcdc
data/History.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # `dataMetaByteSer` Release history:
2
2
 
3
+ ## `1.0.1` - `2017-02-14 Tue` by [`mub`](https://github.com/mub)
4
+ * Updates:
5
+ * Leftover refactoring bugs fixed.
6
+
3
7
  ## `1.0.0` released `2012-12-17`
4
8
  * 1 major enhancement:
5
9
  * Initial release
@@ -10,6 +10,7 @@ DataMetaByteSer::helpDataMetaBytesSerGen(__FILE__, "Writables destination direct
10
10
  begin
11
11
  @parser.parse(@source)
12
12
  DataMetaByteSer::genWritables(@parser, @target)
13
+ puts "Byte Array serialization classes written to #{@target}. Done."
13
14
  rescue Exception => e
14
15
  $stderr.puts "ERROR #{e.message}; #{@parser.diagn}"
15
16
  $stderr.puts e.backtrace.inspect
@@ -1,7 +1,7 @@
1
1
  $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
2
2
 
3
3
  # Definition for generating Plain Old Java Objects (POJOs)
4
- %w(fileutils dataMetaDom dataMetaDom/pojo dataMetaDom/enum dataMetaDom/record dataMetaDom/help).each(&method(:require))
4
+ %w(fileutils dataMetaDom dataMetaDom/pojo dataMetaDom/enum dataMetaDom/record dataMetaDom/help dataMetaDom/util).each(&method(:require))
5
5
  require 'set'
6
6
  require 'dataMetaByteSer/util'
7
7
 
@@ -14,7 +14,7 @@ For command line details either check the new method's source or the README.rdoc
14
14
  =end
15
15
  module DataMetaByteSer
16
16
  # Current version
17
- VERSION = '1.0.0'
17
+ VERSION = '1.0.1'
18
18
  include DataMetaDom, DataMetaDom::PojoLexer
19
19
 
20
20
  =begin rdoc
@@ -126,7 +126,7 @@ HDFS Reader and Writer the Java Enums.
126
126
  ENUM_RW_METHODS = RwHolder.new(
127
127
  lambda{|ctx|
128
128
  aggrNotSupported(ctx.fld, 'Enums') if ctx.fld.aggr
129
- "#{condenseType(ctx.fType.type, ctx.pckg)}.forOrd(readVInt(in))"
129
+ "#{DataMetaDom.condenseType(ctx.fType.type, ctx.pckg)}.forOrd(readVInt(in))"
130
130
  },
131
131
  lambda { |ctx|
132
132
  aggrNotSupported(ctx.fld, 'Enums') if ctx.fld.aggr
@@ -140,7 +140,7 @@ HDFS Reader and Writer the BitSet.
140
140
  BITSET_RW_METHODS = RwHolder.new(
141
141
  lambda { |ctx|
142
142
  aggrNotSupported(ctx.fld, 'BitSets') if ctx.fld.aggr
143
- "new #{condenseType(ctx.fld.dataType, ctx.pckg)}(readLongArray(in))"
143
+ "new #{DataMetaDom.condenseType(ctx.fld.dataType, ctx.pckg)}(readLongArray(in))"
144
144
  },
145
145
  lambda { |ctx|
146
146
  aggrNotSupported(ctx.fld, 'BitSets') if ctx.fld.aggr
@@ -183,10 +183,10 @@ Read/write methods for the standard data types.
183
183
  mapsNotSupported(ctx.fld)
184
184
  else # list, set or deque
185
185
  "read#{aggrBaseName(aggrJavaFull(ctx.fld.aggr))}(in, #{
186
- inOutableClassName(condenseType(ctx.fType.type, ctx.pckg))}.getInstance())"
186
+ inOutableClassName(DataMetaDom.condenseType(ctx.fType.type, ctx.pckg))}.getInstance())"
187
187
  end
188
188
  else # scalar
189
- "#{inOutableClassName(condenseType(ctx.fType.type, ctx.pckg))}.getInstance().read(in)"
189
+ "#{inOutableClassName(DataMetaDom.condenseType(ctx.fType.type, ctx.pckg))}.getInstance().read(in)"
190
190
  end
191
191
  },
192
192
  lambda { |ctx|
@@ -194,10 +194,10 @@ Read/write methods for the standard data types.
194
194
  if ctx.fld.trgType # map
195
195
  mapsNotSupported(ctx.fld)
196
196
  else # list, set or deque
197
- "writeCollection(val.#{ctx.valGetter}, out, #{inOutableClassName(condenseType(ctx.fType.type, ctx.pckg))}.getInstance())"
197
+ "writeCollection(val.#{ctx.valGetter}, out, #{inOutableClassName(DataMetaDom.condenseType(ctx.fType.type, ctx.pckg))}.getInstance())"
198
198
  end
199
199
  else # scalar
200
- "#{inOutableClassName(condenseType(ctx.fType.type, ctx.pckg))}.getInstance().write(out, val.#{ctx.valGetter})"
200
+ "#{inOutableClassName(DataMetaDom.condenseType(ctx.fType.type, ctx.pckg))}.getInstance().write(out, val.#{ctx.valGetter})"
201
201
  end
202
202
  }
203
203
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dataMetaByteSer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bergens
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '1.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 1.0.0
22
+ version: 1.0.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '1.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 1.0.0
32
+ version: 1.0.1
33
33
  description: Generates serializers of DataMeta objects to/from byte arrays, which
34
34
  can be used with Hadoop, BigTable and beyond.
35
35
  email: michael.bergens@gmail.com