tapsoob 0.3.26-java → 0.3.27-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tapsoob/data_stream.rb +1 -14
- data/lib/tapsoob/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c121ad1d7de6889a3cc1e79d39ab7844099a88a3da79654c1bfba1ddaba87f6
|
4
|
+
data.tar.gz: fac74e80043e1e2418f11541db774650f483a866e52fdfbe7282d4eb3f63a47a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4091d6a83bd692f59661236077028ee8c082b9fbe46d8adc7bb38afe736a6f26b3fcb404e4eeb9e2f0597cad75438cfbdeea5dabe9ad70f34f1582f202b7f54e
|
7
|
+
data.tar.gz: 3faea33ccd48dc605cd0f70e8f8fd9c68ed9a0d77ae057af193051a004124a91a9d2b65f3265878368e0aa9d035631ce6af4eb4142b2bd6bcc0070b4a9060152
|
data/lib/tapsoob/data_stream.rb
CHANGED
@@ -1,7 +1,4 @@
|
|
1
1
|
# -*- encoding : utf-8 -*-
|
2
|
-
require 'date'
|
3
|
-
require 'time'
|
4
|
-
|
5
2
|
require 'tapsoob/log'
|
6
3
|
require 'tapsoob/utils'
|
7
4
|
|
@@ -239,20 +236,10 @@ module Tapsoob
|
|
239
236
|
if rows.has_key?(:types)
|
240
237
|
%w(date datetime time).each do |type|
|
241
238
|
if rows[:types].include?(type)
|
242
|
-
klass = case type
|
243
|
-
when "date"
|
244
|
-
Date
|
245
|
-
when "datetime"
|
246
|
-
DateTime
|
247
|
-
when "time"
|
248
|
-
Time
|
249
|
-
end
|
250
|
-
|
251
|
-
|
252
239
|
type_indices = rows[:types].each_index.select { |idx| rows[:types][idx] == type }
|
253
240
|
rows[:data].each_index do |idx|
|
254
241
|
type_indices.each do |ti|
|
255
|
-
rows[:data][idx][ti] =
|
242
|
+
rows[:data][idx][ti] = Sequel.send("string_to_#{type}".to_sym, rows[:data][idx][ti])
|
256
243
|
end
|
257
244
|
end
|
258
245
|
end
|
data/lib/tapsoob/version.rb
CHANGED