tapsoob 0.5.17-java → 0.5.19-java

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e08807035ac52e24f58ed1fd41f5a8307daf0c884457d965e27eece63431ee31
4
- data.tar.gz: 42ee008367b72f9b463be276f338ee8c937493b05338c98ad73bc4c20c231ad0
3
+ metadata.gz: 94ce22f5995d48ad5008a522728c40b3b6bfe35511b6a696c7428ed68e800d37
4
+ data.tar.gz: 172533ab25a53c5a5cfd2b9efd8d29d258609894d1080b05d82581b6386f1c40
5
5
  SHA512:
6
- metadata.gz: 0a4194f65d920ed2dd56bdea6419d1be02f77a25fc4a31aa927a03d2e1e7630be3b0afad8e7f0f6ba248865a20be6e61cb8e65bec5abf1fa81e90d2385d895d4
7
- data.tar.gz: 9a46d9763354e97c9ac039fa55df53e4519980e079590557ad6da8edc558b6990c4946704ead192d0305996b5d797ec970b1ebd6045b07efb58099dc2cf25e20
6
+ metadata.gz: c0fc26dce8628d470ed098858371139cc1ef3197614e8c147e3b1f4d993aa2392e940facede2ee4d354607a6dd6ebf102dfbf1e77f36c2c671a253a1af47c878
7
+ data.tar.gz: b9f16e984d5ddbee64aa5bc6ca1245071487bec8e86a0e283314034afe2cb8f3eb64fd83778beeeb43ea70d6c5805de6dfeb5488f7675386bfc758545ad9e090
@@ -54,6 +54,7 @@ module Tapsoob
54
54
  stream.import_rows(table)
55
55
  rescue Exception => e
56
56
  stream.log.debug e.message
57
+ STDERR.puts "Error loading data in #{table[:table_name]} : #{e.message}"
57
58
  end
58
59
  end
59
60
  end
data/lib/tapsoob/utils.rb CHANGED
@@ -77,14 +77,14 @@ Data : #{data}
77
77
  # Add types if schema isn't empty
78
78
  db.extension :schema_dumper # Add schema dumper extension in case it hasn't been added until now
79
79
  res[:types] = schema.map do |c|
80
- case db.column_schema_to_ruby_type(c.last)[:type]
81
- when BigDecimal
80
+ case db.column_schema_to_ruby_type(c.last)[:type].to_s
81
+ when "BigDecimal"
82
82
  "float"
83
- when :Bignum
83
+ when "Bignum"
84
84
  "integer"
85
- when File
85
+ when "File"
86
86
  "blob"
87
- when TrueClass
87
+ when "TrueClass"
88
88
  "boolean"
89
89
  else
90
90
  db.column_schema_to_ruby_type(c.last)[:type].to_s.downcase
@@ -1,4 +1,4 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
  module Tapsoob
3
- VERSION = "0.5.17".freeze
3
+ VERSION = "0.5.19".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.5.17
4
+ version: 0.5.19
5
5
  platform: java
6
6
  authors:
7
7
  - Félix Bellanger