bricolage 5.29.1 → 5.29.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/RELEASE.md +4 -0
- data/lib/bricolage/psqldatasource.rb +12 -1
- data/lib/bricolage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4379a27ecfd37961cd70273944eb3a5a85eede39e4f9f45943fb61d6731e5a3c
|
4
|
+
data.tar.gz: d666c93b9bcb1cc1e41f26337b1de5b3e200f213ca987e92911b287a457f13d4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3512422000c99775e53b0911fe5dbd9e604bcb49f6a9f1915051249b4005edc4ac888eb8efb469cc3a35da98048de2f4a4f3109149a74078469c40ddf93237dd
|
7
|
+
data.tar.gz: 346f571330a7aecd653f68216f9907f50b09d8f9da71237a356180bf6ba4e539a1772e9e367bff49cf453ea4557af55a5512aaa9cff69aa73dbb33d35e915c4d
|
data/RELEASE.md
CHANGED
@@ -348,12 +348,23 @@ module Bricolage
|
|
348
348
|
when 'csv'
|
349
349
|
%q(delimiter ',')
|
350
350
|
when 'json'
|
351
|
-
|
351
|
+
"json '#{json_param(jsonpath)}'"
|
352
352
|
else
|
353
353
|
raise ParameterError, "unsupported format: #{fmt}"
|
354
354
|
end
|
355
355
|
end
|
356
356
|
|
357
|
+
def json_param(jsonpath)
|
358
|
+
case jsonpath
|
359
|
+
when nil
|
360
|
+
'auto'
|
361
|
+
when %r{\As3://}
|
362
|
+
jsonpath
|
363
|
+
else
|
364
|
+
src_ds.url(jsonpath)
|
365
|
+
end
|
366
|
+
end
|
367
|
+
|
357
368
|
def unload(stmt, dest_ds, dest_path, format, opts)
|
358
369
|
exec unload_statement(stmt, dest_ds, dest_path, format, opts)
|
359
370
|
end
|
data/lib/bricolage/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bricolage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.29.
|
4
|
+
version: 5.29.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Minero Aoki
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|