gd_bam 0.1.7 → 0.1.8

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.7'
2
+ VERSION = '0.1.8'
3
3
  end
@@ -149,6 +149,25 @@ function integer transform() {
149
149
  $out.0.CreatedDate = left($in.0.CreatedDate, 10);
150
150
  }
151
151
 
152
+ if ($in.0.CreatedDate != null && $in.0.CreatedDate != "" && left($in.0.CreatedDate, 4) < "1950") {
153
+ $out.0.CreatedDate = '1950-01-01';
154
+ }
155
+
156
+ if ($in.0.CreatedDate != null && $in.0.CreatedDate != "" && left($in.0.CreatedDate, 4) > "2049") {
157
+ $out.0.CreatedDate = '2049-01-01';
158
+ }
159
+
160
+
161
+ if ($in.0.CloseDate != null && $in.0.CloseDate != "" && left($in.0.CloseDate, 4) < "1950") {
162
+ $out.0.CloseDate = '1950-01-01';
163
+ }
164
+
165
+ if ($in.0.CloseDate != null && $in.0.CloseDate != "" && left($in.0.CloseDate, 4) > "2049") {
166
+ $out.0.CloseDate = '2049-01-01';
167
+ }
168
+
169
+
170
+
152
171
  return ALL;
153
172
  }
154
173
 
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.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: