bricolage 5.29.1 → 5.29.2

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: c497071f68c8f5ec64dd2eb67444bd31d17bea1682eed3b85e6fcd95900e8ef7
4
- data.tar.gz: 657c7e05aef3cf7782f29f3225775cb6ee09cd3fcce07a15cef7e2ee576f7765
3
+ metadata.gz: 4379a27ecfd37961cd70273944eb3a5a85eede39e4f9f45943fb61d6731e5a3c
4
+ data.tar.gz: d666c93b9bcb1cc1e41f26337b1de5b3e200f213ca987e92911b287a457f13d4
5
5
  SHA512:
6
- metadata.gz: 275e672599af2bad01f3979b6aa482795a5b15835e4e2024aaefe9d2ef270b1533faffbcdd4a7a3203349f09d2a81883d08d987bd8a241de1f15c7c892facaeb
7
- data.tar.gz: 5ae6632d97dd7637775570a1e8f973d45a2a2229d2adc93f5382bc2a42437a895d112a63ec5ac27c3eee9a7726d914717a696e404a1be64e077a0de8d13a59c3
6
+ metadata.gz: 3512422000c99775e53b0911fe5dbd9e604bcb49f6a9f1915051249b4005edc4ac888eb8efb469cc3a35da98048de2f4a4f3109149a74078469c40ddf93237dd
7
+ data.tar.gz: 346f571330a7aecd653f68216f9907f50b09d8f9da71237a356180bf6ba4e539a1772e9e367bff49cf453ea4557af55a5512aaa9cff69aa73dbb33d35e915c4d
data/RELEASE.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Bricolage Release Note
2
2
 
3
+ ## version 5.29.2
4
+
5
+ - [new] load: Allows to set jsonpath by direct S3 URL, instead of relative S3 key.
6
+
3
7
  ## version 5.29.1
4
8
 
5
9
  - [fix] PSQLDataSource: slice_last_stderr may fail when $stderr is not a regular file.
@@ -348,12 +348,23 @@ module Bricolage
348
348
  when 'csv'
349
349
  %q(delimiter ',')
350
350
  when 'json'
351
- jsonpath ? "json \'#{src_ds.url(jsonpath)}\'" : %q(json 'auto')
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
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.29.1'
3
+ VERSION = '5.29.2'
4
4
  end
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.1
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-07-30 00:00:00.000000000 Z
11
+ date: 2018-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg