embulk-output-groonga 0.1.1 → 0.1.2

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: 3a982df5a40609112ffe3d24a191986a450ba722
4
- data.tar.gz: ed668bb7ed6768fe11e322d9eb6385139fcdef65
3
+ metadata.gz: c1639dc9b53cf6ea5b4f05a2dfef44cae45a2d58
4
+ data.tar.gz: 734970278be068aea1a9306bffd5cadabefef24e
5
5
  SHA512:
6
- metadata.gz: 3b32c1340d87ff3bd5988e192887b812e7280e2c5c8b8fc390a1d6df1113c9cbda13ee562394f6754bdf2c7a4771a6bab9cf3678f54745ee796e1edd36215946
7
- data.tar.gz: 97c5ea885c1986ca37a75fc4fbaa47957519d24d332f5dbc25a52ab155f5d0d50a005297de225deb019ae3a3d39fd43d309d6d16ebec6499c0a41c402076cfc5
6
+ metadata.gz: 1556267f7a720ff5ad7156b13b83b5391b37c694959cfeb3d894b04dabafb6a0c5e8751b8327dedff147c10a4f8a77d7e8da78aec72b87300b2b866bc33b962f
7
+ data.tar.gz: fe098c6e1f90c5149cd955fd578109dc4a44f27440382c60546e34c280fea42cca6c6927e4bf5fb86c9312ed3b3a1f53fa92f22e8a3789a033f68c328b51a983
data/CHANGES.md CHANGED
@@ -1,3 +1,7 @@
1
+ 0.1.2 (2017-10-29)
2
+ ------------------
3
+ * NEW Add authentication
4
+
1
5
  0.1.1 (2015-08-10)
2
6
  ------------------
3
7
  * First release
data/README.md CHANGED
@@ -16,6 +16,8 @@ Embulk output plugin to load insert data into groonga (full text search engine)
16
16
  - **host**: groonga server name (string, rerquired)
17
17
  - **port**: groonga port (integer, default: 10041)
18
18
  - **protocol**: connection protocol gqtp or http, (string, default: http )
19
+ - **user**: groonga login username(http only) (string, default: nil)
20
+ - **password**: groonga login password(http only) (string, default: nil)
19
21
 
20
22
 
21
23
  ## Installation
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |spec|
3
3
  spec.name = "embulk-output-groonga"
4
- spec.version = "0.1.1"
4
+ spec.version = "0.1.2"
5
5
  spec.authors = ["Hiroyuki Sato"]
6
6
  spec.summary = "Groonga output plugin for Embulk"
7
7
  spec.description = "Dumps records to Groonga."
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.require_paths = ["lib"]
15
15
 
16
16
  spec.add_dependency 'groonga-command-parser', ['>= 0.1.4']
17
- spec.add_dependency 'groonga-client', ['>= 0.1.8']
17
+ spec.add_dependency 'groonga-client', ['>= 0.5.2']
18
18
  spec.add_development_dependency 'bundler', ['~> 1.0']
19
19
  spec.add_development_dependency 'rake', ['>= 10.0']
20
20
  end
@@ -13,6 +13,8 @@ module Embulk
13
13
  "host" => config.param("host", :string),
14
14
  "port" => config.param("port", :integer, default: 10041),
15
15
  "protocol" => config.param("protocol", :string, default: 'http'),
16
+ "user" => config.param("user", :string, default: nil),
17
+ "password" => config.param("password", :string, default: nil),
16
18
  "key_column" => config.param("key_column",:string),
17
19
  "table" => config.param("table",:string),
18
20
  # "create_table" => config.param("create_table",:string)
@@ -38,12 +40,17 @@ module Embulk
38
40
 
39
41
  def init
40
42
  # initialization code:
41
- host = task["host"]
42
- port = task["port"]
43
- protocol = task["protocol"].to_sym
44
- @client = Groonga::Client.open({:host => host,
45
- :port => port,
46
- :protocol => protocol})
43
+ param = {}
44
+ param[:host] = task["host"]
45
+ param[:port] = task["port"]
46
+ param[:protocol] = task["protocol"].to_sym
47
+ if user = task["user"]
48
+ param[:user] = user
49
+ end
50
+ if password = task["password"]
51
+ param[:password] = password
52
+ end
53
+ @client = Groonga::Client.open(param)
47
54
  @key_column = task["key_column"]
48
55
  @out_table = task["table"]
49
56
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-groonga
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hiroyuki Sato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-06 00:00:00.000000000 Z
11
+ date: 2017-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: groonga-command-parser
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.1.8
33
+ version: 0.5.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.1.8
40
+ version: 0.5.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -101,9 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  version: '0'
102
102
  requirements: []
103
103
  rubyforge_project:
104
- rubygems_version: 2.4.5.1
104
+ rubygems_version: 2.6.13
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Groonga output plugin for Embulk
108
108
  test_files: []
109
- has_rdoc: