flydata 0.5.14 → 0.5.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/flydata.gemspec +0 -0
- data/lib/flydata/command/sync.rb +8 -0
- data/lib/flydata/parser/mysql/dump_parser.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4f662e6fc6c4a180d38770b2b84b87292b8d44f
|
4
|
+
data.tar.gz: 97f92499dca46d6d9368c9e81756f502be4951dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf2588a3cce18df232abc2eecd2b066eab5224bb3e0b30d6a80484663f586f5de8c2b821cf22341f5cae7b731bd4d99aed55f6fa9b5ceab5bb06612fa2d5bcb0
|
7
|
+
data.tar.gz: c9b5c2b979ef0360e7d8ce8fd73c8df645559cb56888b5d7a40746700b6e48537fdc5b8c4f453a872a44c2cccd25f440552b86d7a447a633e491faf3cd4a5abc
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.15
|
data/flydata.gemspec
CHANGED
Binary file
|
data/lib/flydata/command/sync.rb
CHANGED
@@ -775,6 +775,14 @@ EOM
|
|
775
775
|
else
|
776
776
|
option[:binlog_pos] = binlog_pos
|
777
777
|
end
|
778
|
+
if option[:mysql_table] && option[:mysql_table].value_converters.nil?
|
779
|
+
# Old marshal dumped mysql_table object may not have value_converters
|
780
|
+
option[:mysql_table].set_value_converters(FlydataCore::TableDef::MysqlTableDef::VALUE_CONVERTERS)
|
781
|
+
end
|
782
|
+
if option[:mysql_table] && option[:mysql_table].column_names.nil?
|
783
|
+
# Old marshal dumped mysql_table object may not have column_names
|
784
|
+
option[:mysql_table].set_column_names
|
785
|
+
end
|
778
786
|
log_info_stdout("Sending data to FlyData Server...")
|
779
787
|
|
780
788
|
bench_start_time = Time.now
|
@@ -48,6 +48,7 @@ module Flydata
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def set_value_converters(converter_hash)
|
51
|
+
@value_converters ||= {} # for backward compatibility with an old marshal dump object
|
51
52
|
@columns.each_with_index do |(k, v), i|
|
52
53
|
type = v[:format_type]
|
53
54
|
if converter_hash.has_key?(type)
|
@@ -55,6 +56,10 @@ module Flydata
|
|
55
56
|
end
|
56
57
|
end
|
57
58
|
end
|
59
|
+
|
60
|
+
def set_column_names
|
61
|
+
@column_names = columns.collect{|k,v| v[:column_name]}
|
62
|
+
end
|
58
63
|
end
|
59
64
|
|
60
65
|
class MysqlDumpGenerator
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: flydata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koichi Fujikawa
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2015-10-
|
15
|
+
date: 2015-10-29 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rest-client
|