taps2 0.5.3 → 0.5.4
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 +4 -4
- data/README.rdoc +11 -0
- data/VERSION.yml +1 -1
- data/lib/taps/data_stream.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dce1227f756b552e4cde86a7f19416ec8690c61b
|
4
|
+
data.tar.gz: 9765d247e72acd77174bb190aa6b4e740e2908e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a79deee12261997841c4321381f07301b4a7032e350f3fee55469683f676726a2e82fbdcb21a8a6c678fe8d6e537aaaf77aec1018a080bd1ac8851b34ae4ec88
|
7
|
+
data.tar.gz: 0c0be8926a1172f27fa461b679adb02e5ce7c16e5e38be98496f54a70ad0376659c61683098e1f791d1dd3796a5b8c0f4a30d2e474e4ae946622f3ff7764676a
|
data/README.rdoc
CHANGED
@@ -63,12 +63,23 @@ or when you want to transfer tables that start with a word
|
|
63
63
|
|
64
64
|
$ taps push postgres://dbuser:dbpassword@localhost/dbname http://httpuser:httppassword@example.com:5000 --filter '^log_'
|
65
65
|
|
66
|
+
== Troubleshooting
|
67
|
+
|
68
|
+
* "Error: invalid byte sequence for encoding" can be resolved by adding `encoding` to database URI (https://github.com/ricardochimal/taps/issues/110)
|
69
|
+
* *Example:* `taps server mysql://root@localhost/example_database?encoding=UTF8 httpuser httppassword`
|
70
|
+
|
66
71
|
== Known Issues
|
67
72
|
|
68
73
|
* Foreign key constraints get lost in the schema transfer
|
74
|
+
* Indexes may drop the "order" (https://github.com/ricardochimal/taps/issues/111)
|
75
|
+
* String fields with only numbers may get parsed as a number and lose leading zeros or add decimals (https://github.com/ricardochimal/taps/issues/106)
|
69
76
|
* Tables without primary keys will be incredibly slow to transfer. This is due to it being inefficient having large offset values in queries.
|
70
77
|
* Multiple schemas are currently not supported
|
71
78
|
|
79
|
+
== Feature Requests
|
80
|
+
|
81
|
+
* Allow a single Taps server to serve data from different databases (https://github.com/ricardochimal/taps/issues/103)
|
82
|
+
|
72
83
|
== Meta
|
73
84
|
|
74
85
|
Maintained by {Joel Van Horn}(http://github.com/joelvh)
|
data/VERSION.yml
CHANGED
data/lib/taps/data_stream.rb
CHANGED
@@ -174,7 +174,7 @@ class DataStream
|
|
174
174
|
params = Taps::Multipart.parse(res)
|
175
175
|
params[:json] = self.class.parse_json(params[:json]) if params.has_key?(:json)
|
176
176
|
return params
|
177
|
-
rescue ::OkJson::
|
177
|
+
rescue ::OkJson::ParserError
|
178
178
|
raise Taps::CorruptedData.new("Invalid OkJson Received")
|
179
179
|
end
|
180
180
|
end
|