embulk-parser-query_string 0.2.1 → 0.3.0

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: 2c11fbc6c48a1093680df5f8c9c434fb8fe7a8b7
4
- data.tar.gz: 081c955d594d76be409b6c070c1a7182b17a8ab0
3
+ metadata.gz: 5a2f6dd8e7b04e7bcb973b5b8ef66d475a2301e5
4
+ data.tar.gz: 7177bc35ee74ee4e4753f835b115d9fefc464ee5
5
5
  SHA512:
6
- metadata.gz: e7ac576ae7d86f430ae3f466c11a62cb2dfc65aa2f7a6b260517a600c5edf0e04f3b53c7a1cab0cb03e608ccd5e7d5f39ee800fd5bb3db2cbb1797a273850788
7
- data.tar.gz: 2361a39588b0eda9fa965e2f68738088ec7f50f6e0969af6697296faf7b0dadd35c4be473b226a144551bb7fe43fdef8d5046dcf186cc5b9ea2cc5672da7ca77
6
+ metadata.gz: 7939b0f651563a556eb28c086298c02edaeab5db3642156e360bc350b4bfbc2403683de9ab5d01ad9fae4255b08377da5697b55d04707fcdfaa0ef84f6baa193
7
+ data.tar.gz: 03607bea2d57d0480070877bc0e7cb2b54c2ebc2b2878d56d6ff324903940d31b3372e9ce76070640126ceb8bcfc9b4d0238aab761dfb07b1d7d61a84173f629
@@ -0,0 +1 @@
1
+ jruby-9.0.1.0
@@ -1,6 +1,11 @@
1
1
  language: ruby
2
2
  rvm:
3
- - jruby-19mode
3
+ - jruby-9000
4
+
5
+ before_install:
6
+ - rvm get head
7
+ - rvm use jruby-9.0.1.0 --install
8
+
4
9
  addons:
5
10
  code_climate:
6
11
  repo_token:
@@ -12,19 +17,12 @@ jdk:
12
17
  - oraclejdk8
13
18
 
14
19
  gemfile:
15
- - gemfiles/embulk-0.6.17
16
- - gemfiles/embulk-0.6.18
17
- - gemfiles/embulk-0.6.19
18
- - gemfiles/embulk-0.6.20
19
- - gemfiles/embulk-0.6.21
20
- - gemfiles/embulk-0.6.22
21
- - gemfiles/embulk-0.6.23
22
- - gemfiles/embulk-0.6.24
23
- - gemfiles/embulk-0.6.25
24
- - gemfiles/embulk-0.6-latest
20
+ - gemfiles/embulk-0.7-latest
21
+ - gemfiles/embulk-0.7.2
22
+ - gemfiles/embulk-0.7.3
23
+ - gemfiles/embulk-0.7.4
25
24
  - gemfiles/embulk-latest
26
25
 
27
26
  matrix:
28
27
  allow_failures:
29
28
  - gemfile: gemfiles/embulk-0.6.22
30
- - gemfile: gemfiles/embulk-latest
@@ -1,3 +1,9 @@
1
+ ## 0.3.0 - 2015-10-06
2
+
3
+ **This version supports Embulk 0.7 or later, and drops Embulk 0.6 or earlier, so if you want to use this plugin with Embulk 0.6 or earlier, please use 0.2.1.**
4
+
5
+ * [enhancement] Support Embulk 0.7 or later and drop Embulk 0.6 or earlier [#32](https://github.com/treasure-data/embulk-parser-query_string/pull/32) [#33](https://github.com/treasure-data/embulk-parser-query_string/pull/33)
6
+
1
7
  ## 0.2.1 - 2015-09-30
2
8
 
3
9
  * [maintenance] Suppress logger in test [#31](https://github.com/treasure-data/embulk-parser-query_string/pull/31)
@@ -9,7 +15,7 @@
9
15
 
10
16
  ## 0.2.0 - 2015-07-29
11
17
 
12
- This version breaks backword compatibility. With this version, if you use config created by embulk-parser-query_string 0.1.3 or earlier, you should replace `schema:` key name with `columns:` in your config file (e.g. `config.yml`) .
18
+ **This version breaks backword compatibility.** With this version, if you use config created by embulk-parser-query_string 0.1.3 or earlier, you should replace `schema:` key name with `columns:` in your config file (e.g. `config.yml`) .
13
19
 
14
20
  * [fixed] Use "column" as key for schema in config file [#22](https://github.com/treasure-data/embulk-parser-query_string/pull/22) [[reported by @muga](https://github.com/treasure-data/embulk-parser-query_string/issues/21). Thanks!!]
15
21
  * [enhancement] Display cast error log to human [#19](https://github.com/treasure-data/embulk-parser-query_string/pull/19)
data/README.md CHANGED
@@ -13,7 +13,9 @@ Currently, this plugin supports minimum case, some edge cases are unsupported as
13
13
 
14
14
  ## Overview
15
15
 
16
- Required Embulk version >= 0.6.17.
16
+ Required Embulk version >= 0.7.2.
17
+
18
+ **NOTE: If you use Embulk < 0.7, you should use embulk-parser-query_string <= 0.1.3.**
17
19
 
18
20
  * **Plugin type**: parser
19
21
  * **Guess supported**: yes
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-parser-query_string"
4
- spec.version = "0.2.1"
4
+ spec.version = "0.3.0"
5
5
  spec.authors = ["yoshihara", "uu59"]
6
6
  spec.summary = "Query String parser plugin for Embulk"
7
7
  spec.description = "Parses Query String files read by other file input plugins."
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.test_files = spec.files.grep(%r{^(test|spec)/})
14
14
  spec.require_paths = ["lib"]
15
15
 
16
- spec.add_development_dependency 'embulk', [">= 0.6.10", "!= 0.6.22", "< 0.7"]
16
+ spec.add_development_dependency 'embulk', [">= 0.7.2", "< 1.0"]
17
17
  spec.add_development_dependency 'bundler', ['~> 1.0']
18
18
  spec.add_development_dependency 'everyleaf-embulk_helper'
19
19
  spec.add_development_dependency 'rake', ['>= 10.0']
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org/'
2
2
  gemspec :path => '../'
3
3
 
4
- gem "embulk", "0.6.20"
4
+ gem "embulk", "~> 0.7"
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org/'
2
2
  gemspec :path => '../'
3
3
 
4
- gem "embulk", "0.6.17"
4
+ gem "embulk", "0.7.2"
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org/'
2
2
  gemspec :path => '../'
3
3
 
4
- gem "embulk", "0.6.18"
4
+ gem "embulk", "0.7.3"
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org/'
2
2
  gemspec :path => '../'
3
3
 
4
- gem "embulk", "0.6.19"
4
+ gem "embulk", "0.7.4"
@@ -1,4 +1,4 @@
1
1
  source 'https://rubygems.org/'
2
2
  gemspec :path => '../'
3
3
 
4
- gem "embulk", "> 0.6.17"
4
+ gem "embulk", "> 0.7.2"
@@ -98,7 +98,7 @@ module Embulk
98
98
  def sample_lines_with_invalid
99
99
  [
100
100
  %Q(foo=1&bar=vv&baz=3),
101
- %Q(this=line=is=invalid),
101
+ %Q(あいうえお=is=invalid),
102
102
  %Q(foo=2&bar=ss&baz=a),
103
103
  ]
104
104
  end
@@ -70,7 +70,7 @@ module Embulk
70
70
  end
71
71
 
72
72
  def invalid_line
73
- "invalid=www=form"
73
+ "あいうえお=invalid=form"
74
74
  end
75
75
  end
76
76
 
@@ -1,16 +1,5 @@
1
- require "embulk/command/embulk_run"
2
-
3
- classpath_dir = Embulk.home("classpath")
4
- jars = Dir.entries(classpath_dir).select{|f| f =~ /\.jar$/ }.sort
5
- jars.each do |jar|
6
- require File.join(classpath_dir, jar)
7
- end
8
-
9
- props = java.util.Properties.new
10
- props.setProperty("embulk.use_global_ruby_runtime", "true")
1
+ require "embulk"
11
2
 
12
- bootstrap_model_manager = org.embulk.config.ModelManager.new(nil, com.fasterxml.jackson.databind.ObjectMapper.new)
13
- system_config = org.embulk.config.ConfigLoader.new(bootstrap_model_manager).fromPropertiesYamlLiteral(props, "embulk.")
14
- org.embulk.EmbulkService.new(system_config).injector.getInstance(java.lang.Class.forName('org.jruby.embed.ScriptingContainer'))
3
+ Embulk.setup
15
4
 
16
- require "embulk"
5
+ require "embulk/command/embulk_run"
@@ -65,6 +65,9 @@ module Embulk
65
65
  f.write seed_content
66
66
  end
67
67
  dest_path = "#{@dir}/guessed.yml"
68
+
69
+ stub(STDERR).puts { guessed_content } # Embulk outputs guessed config to STDERR
70
+
68
71
  embulk_guess(seed_path, dest_path)
69
72
  guessed = IO.read(dest_path)
70
73
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-parser-query_string
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshihara
@@ -9,38 +9,32 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-30 00:00:00.000000000 Z
12
+ date: 2015-10-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.10
20
- - - '!='
19
+ version: 0.7.2
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: 0.6.22
23
- - - <
24
- - !ruby/object:Gem::Version
25
- version: '0.7'
22
+ version: '1.0'
26
23
  name: embulk
27
24
  prerelease: false
28
25
  type: :development
29
26
  version_requirements: !ruby/object:Gem::Requirement
30
27
  requirements:
31
- - - '>='
28
+ - - ">="
32
29
  - !ruby/object:Gem::Version
33
- version: 0.6.10
34
- - - '!='
30
+ version: 0.7.2
31
+ - - "<"
35
32
  - !ruby/object:Gem::Version
36
- version: 0.6.22
37
- - - <
38
- - !ruby/object:Gem::Version
39
- version: '0.7'
33
+ version: '1.0'
40
34
  - !ruby/object:Gem::Dependency
41
35
  requirement: !ruby/object:Gem::Requirement
42
36
  requirements:
43
- - - ~>
37
+ - - "~>"
44
38
  - !ruby/object:Gem::Version
45
39
  version: '1.0'
46
40
  name: bundler
@@ -48,13 +42,13 @@ dependencies:
48
42
  type: :development
49
43
  version_requirements: !ruby/object:Gem::Requirement
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: '1.0'
54
48
  - !ruby/object:Gem::Dependency
55
49
  requirement: !ruby/object:Gem::Requirement
56
50
  requirements:
57
- - - '>='
51
+ - - ">="
58
52
  - !ruby/object:Gem::Version
59
53
  version: '0'
60
54
  name: everyleaf-embulk_helper
@@ -62,13 +56,13 @@ dependencies:
62
56
  type: :development
63
57
  version_requirements: !ruby/object:Gem::Requirement
64
58
  requirements:
65
- - - '>='
59
+ - - ">="
66
60
  - !ruby/object:Gem::Version
67
61
  version: '0'
68
62
  - !ruby/object:Gem::Dependency
69
63
  requirement: !ruby/object:Gem::Requirement
70
64
  requirements:
71
- - - '>='
65
+ - - ">="
72
66
  - !ruby/object:Gem::Version
73
67
  version: '10.0'
74
68
  name: rake
@@ -76,13 +70,13 @@ dependencies:
76
70
  type: :development
77
71
  version_requirements: !ruby/object:Gem::Requirement
78
72
  requirements:
79
- - - '>='
73
+ - - ">="
80
74
  - !ruby/object:Gem::Version
81
75
  version: '10.0'
82
76
  - !ruby/object:Gem::Dependency
83
77
  requirement: !ruby/object:Gem::Requirement
84
78
  requirements:
85
- - - '>='
79
+ - - ">="
86
80
  - !ruby/object:Gem::Version
87
81
  version: '0'
88
82
  name: pry
@@ -90,13 +84,13 @@ dependencies:
90
84
  type: :development
91
85
  version_requirements: !ruby/object:Gem::Requirement
92
86
  requirements:
93
- - - '>='
87
+ - - ">="
94
88
  - !ruby/object:Gem::Version
95
89
  version: '0'
96
90
  - !ruby/object:Gem::Dependency
97
91
  requirement: !ruby/object:Gem::Requirement
98
92
  requirements:
99
- - - '>='
93
+ - - ">="
100
94
  - !ruby/object:Gem::Version
101
95
  version: '0'
102
96
  name: test-unit
@@ -104,13 +98,13 @@ dependencies:
104
98
  type: :development
105
99
  version_requirements: !ruby/object:Gem::Requirement
106
100
  requirements:
107
- - - '>='
101
+ - - ">="
108
102
  - !ruby/object:Gem::Version
109
103
  version: '0'
110
104
  - !ruby/object:Gem::Dependency
111
105
  requirement: !ruby/object:Gem::Requirement
112
106
  requirements:
113
- - - '>='
107
+ - - ">="
114
108
  - !ruby/object:Gem::Version
115
109
  version: '0'
116
110
  name: test-unit-rr
@@ -118,13 +112,13 @@ dependencies:
118
112
  type: :development
119
113
  version_requirements: !ruby/object:Gem::Requirement
120
114
  requirements:
121
- - - '>='
115
+ - - ">="
122
116
  - !ruby/object:Gem::Version
123
117
  version: '0'
124
118
  - !ruby/object:Gem::Dependency
125
119
  requirement: !ruby/object:Gem::Requirement
126
120
  requirements:
127
- - - '>='
121
+ - - ">="
128
122
  - !ruby/object:Gem::Version
129
123
  version: '0'
130
124
  name: codeclimate-test-reporter
@@ -132,7 +126,7 @@ dependencies:
132
126
  type: :development
133
127
  version_requirements: !ruby/object:Gem::Requirement
134
128
  requirements:
135
- - - '>='
129
+ - - ">="
136
130
  - !ruby/object:Gem::Version
137
131
  version: '0'
138
132
  description: Parses Query String files read by other file input plugins.
@@ -143,9 +137,10 @@ executables: []
143
137
  extensions: []
144
138
  extra_rdoc_files: []
145
139
  files:
146
- - .gitignore
147
- - .travis.yml
148
- - .travis.yml.erb
140
+ - ".gitignore"
141
+ - ".ruby-version"
142
+ - ".travis.yml"
143
+ - ".travis.yml.erb"
149
144
  - CHANGELOG.md
150
145
  - Gemfile
151
146
  - LICENSE
@@ -153,17 +148,10 @@ files:
153
148
  - README.md
154
149
  - Rakefile
155
150
  - embulk-parser-query_string.gemspec
156
- - gemfiles/embulk-0.6-latest
157
- - gemfiles/embulk-0.6.17
158
- - gemfiles/embulk-0.6.18
159
- - gemfiles/embulk-0.6.19
160
- - gemfiles/embulk-0.6.20
161
- - gemfiles/embulk-0.6.21
162
- - gemfiles/embulk-0.6.22
163
- - gemfiles/embulk-0.6.23
164
- - gemfiles/embulk-0.6.24
165
- - gemfiles/embulk-0.6.25
166
- - gemfiles/embulk-0.6.26
151
+ - gemfiles/embulk-0.7-latest
152
+ - gemfiles/embulk-0.7.2
153
+ - gemfiles/embulk-0.7.3
154
+ - gemfiles/embulk-0.7.4
167
155
  - gemfiles/embulk-latest
168
156
  - gemfiles/template.erb
169
157
  - lib/embulk/guess/query_string.rb
@@ -186,17 +174,17 @@ require_paths:
186
174
  - lib
187
175
  required_ruby_version: !ruby/object:Gem::Requirement
188
176
  requirements:
189
- - - '>='
177
+ - - ">="
190
178
  - !ruby/object:Gem::Version
191
179
  version: '0'
192
180
  required_rubygems_version: !ruby/object:Gem::Requirement
193
181
  requirements:
194
- - - '>='
182
+ - - ">="
195
183
  - !ruby/object:Gem::Version
196
184
  version: '0'
197
185
  requirements: []
198
186
  rubyforge_project:
199
- rubygems_version: 2.4.6
187
+ rubygems_version: 2.4.8
200
188
  signing_key:
201
189
  specification_version: 4
202
190
  summary: Query String parser plugin for Embulk
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org/'
2
- gemspec :path => '../'
3
-
4
- gem "embulk", "~> 0.6.0"
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org/'
2
- gemspec :path => '../'
3
-
4
- gem "embulk", "0.6.21"
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org/'
2
- gemspec :path => '../'
3
-
4
- gem "embulk", "0.6.22"
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org/'
2
- gemspec :path => '../'
3
-
4
- gem "embulk", "0.6.23"
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org/'
2
- gemspec :path => '../'
3
-
4
- gem "embulk", "0.6.24"
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org/'
2
- gemspec :path => '../'
3
-
4
- gem "embulk", "0.6.25"
@@ -1,4 +0,0 @@
1
- source 'https://rubygems.org/'
2
- gemspec :path => '../'
3
-
4
- gem "embulk", "0.6.26"