gd_bam 0.1.32 → 0.1.33

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.
data/lib/bam/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Bam
2
- VERSION = '0.1.32'
2
+ VERSION = '0.1.33'
3
3
  end
@@ -29,27 +29,7 @@
29
29
  // Transforms input record into output record.
30
30
  function integer transform() {
31
31
 
32
- integer number_of_fields = length($in.0);
33
- integer i = 0;
34
- string input_name = "";
35
- integer output_index = 0;
36
- string type = "";
37
- string value = "";
38
- for (i; i< number_of_fields; ++i) {
39
- type = getFieldType($in.0, i);
40
- input_name = getFieldName($in.0, i);
41
- output_index = getFieldIndex($out.0, input_name);
42
- if (output_index != -1) {
43
- switch(type) {
44
- case "string": setStringValue($out.0, output_index, getStringValue($in.0, input_name): ""); break;
45
- case "number": setNumValue($out.0, output_index, getNumValue($in.0, input_name) : 0); break;
46
- case "date": setDateValue($out.0, output_index, getDateValue($in.0, input_name) : str2date("1950-01-01", "yyyy-MM-dd")); break;
47
-
48
- }
49
-
50
- }
51
- };
52
-
32
+ $out.0.* = $in.0.*;
53
33
  $out.0.isTask = "false";
54
34
 
55
35
  return OK;
@@ -160,26 +140,7 @@ function integer transform() {
160
140
 
161
141
  // Transforms input record into output record.
162
142
  function integer transform() {
163
- integer number_of_fields = length($in.0);
164
- integer i = 0;
165
- string input_name = "";
166
- integer output_index = 0;
167
- string type = "";
168
- string value = "";
169
- for (i; i< number_of_fields; ++i) {
170
- type = getFieldType($in.0, i);
171
- input_name = getFieldName($in.0, i);
172
- output_index = getFieldIndex($out.0, input_name);
173
- if (output_index != -1) {
174
- switch(type) {
175
- case "string": setStringValue($out.0, output_index, getStringValue($in.0, input_name) : ""); break;
176
- case "number": setNumValue($out.0, output_index, getNumValue($in.0, input_name) : 0); break;
177
- case "date": setDateValue($out.0, output_index, getDateValue($in.0, input_name) : str2date("1950-01-01", "yyyy-MM-dd")); break;
178
- }
179
-
180
- }
181
- };
182
-
143
+ $out.0.* = $in.0.*;
183
144
  $out.0.isTask = "true";
184
145
 
185
146
  if (($in.0.ActivityDate != null && $in.0.ActivityDate != "") && left($in.0.ActivityDate, 4) < "1950") {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gd_bam
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.32
4
+ version: 0.1.33
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-09-17 00:00:00.000000000 Z
12
+ date: 2013-09-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake