embulk-filter-query_string_ruby 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eee2562738fdd2b055730f0d52aa27615f793e1b
4
- data.tar.gz: f71da22947098595d3a2205969ea445d799d86ad
3
+ metadata.gz: 4f0eabb508174708087538ec131c6aeb6a01ce19
4
+ data.tar.gz: 75e65aabdcf0ce8ba8d99c2faf5f0a62dc52edf4
5
5
  SHA512:
6
- metadata.gz: 5fc30a1cda9076f1fc8d898fe886a472863cce64170a757f21b1e0e434fc827d99e904808f7921f7deffd0393823360f5f9e3faf004b5ee8a30272e5bbf6c39b
7
- data.tar.gz: 355a4b6d38f97f41dc5d8ec79f00313c231d32ffb025d03b2f103dd46fbb3ac2206c02d775b1426a6ee1e26529896265a04715d3ef60c893e0d9a22ee0d9de04
6
+ metadata.gz: d09eb39cf3aad0429cf1a49cae7ad9e0b73dc80e86f6b12672045c78cb051e46b189d8b1bed29dd06da366db2d87b415702cf1d00b81b9d352bfe1790fbb13c7
7
+ data.tar.gz: ec9c58b1f094cf29e091afd6900670b0b066e76a92791e0db06717e8c298550592461a55639e63d6d6ec042e9dacebece9fae086516251e20dc85760dfed372f
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-filter-query_string_ruby"
4
- spec.version = "0.1.9"
4
+ spec.version = "0.1.10"
5
5
  spec.authors = ["Yuma Murata"]
6
6
  spec.summary = "Query String Ruby filter plugin for Embulk"
7
7
  spec.description = "Query String Ruby"
@@ -42,10 +42,11 @@ module Embulk
42
42
  begin
43
43
  u = Addressable::URI.parse(query_string)
44
44
  uri = u.query ? u : Addressable::URI.parse("?#{query_string}")
45
- return uri.query_values(Hash)
45
+ uri.query_values(Hash)
46
46
  rescue => e
47
47
  Embulk.logger.warn("Parse failed '#{query_string}'")
48
48
  end
49
+ uri.nil? ? {} || uri.query_values(Hash)
49
50
  end
50
51
 
51
52
  def make_record(schema, query)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-filter-query_string_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuma Murata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-10 00:00:00.000000000 Z
11
+ date: 2017-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable