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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9257ce158006409f702d21898b3352d8269aa1dd4459096e76b89521125e45be
4
- data.tar.gz: 45c341a28a30a5ac78d68b426b9afae60bb604172c9dd2bd7b2b0333774d4a97
3
+ metadata.gz: 2c121ad1d7de6889a3cc1e79d39ab7844099a88a3da79654c1bfba1ddaba87f6
4
+ data.tar.gz: fac74e80043e1e2418f11541db774650f483a866e52fdfbe7282d4eb3f63a47a
5
5
  SHA512:
6
- metadata.gz: 0d7a546a51d161e10bc35e7059cc80b1df2061653763daac67f8a3189ebb7b4d63fb68eff14150f13cedbcfb150142f1d3cc8401aaa1d97cf70aed9d7167fdbf
7
- data.tar.gz: 12ab879416b51181480181e6ca41e538e332b2c88c94d40e968d68eff69069b1d98b7442b284aa429d016c07e9dcb1a6a0c2253d93982c5afda9d7f0e56a42a4
6
+ metadata.gz: 4091d6a83bd692f59661236077028ee8c082b9fbe46d8adc7bb38afe736a6f26b3fcb404e4eeb9e2f0597cad75438cfbdeea5dabe9ad70f34f1582f202b7f54e
7
+ data.tar.gz: 3faea33ccd48dc605cd0f70e8f8fd9c68ed9a0d77ae057af193051a004124a91a9d2b65f3265878368e0aa9d035631ce6af4eb4142b2bd6bcc0070b4a9060152
@@ -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] = klass.parse(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
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.3.26".freeze
3
+ VERSION = "0.3.27".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tapsoob
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.26
4
+ version: 0.3.27
5
5
  platform: java
6
6
  authors:
7
7
  - Félix Bellanger