embulk-input-riak_cs 0.2.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 141361e0f9a5d881ce70f739fc8a0b3459490766
4
+ data.tar.gz: ab4a8b2b8fb7423a66d07d47e5f8600bfc401606
5
+ SHA512:
6
+ metadata.gz: f4fca4bc00ba25f8d774f2dc2f5b8efe0a60800b1d4f02f990d02ff5bb88e1f5207da7330e1ab9f3ffad79d4784cf1059c3c930851f0ab30245e228c9ae5bbc2
7
+ data.tar.gz: a1c9ca9410e232e1b2f71bd59cceb3f3b232929595ce2590af0bdb4c5fe2e07307ddff9a3c712d936633c0aad7bc22eb5affea56abf4d977ed2463ab1cb4b58f
data/build.gradle ADDED
@@ -0,0 +1,28 @@
1
+ dependencies {
2
+ compile project(':embulk-input-s3')
3
+
4
+ testCompile project(':embulk-input-s3').sourceSets.test.output
5
+ }
6
+
7
+ task gemspec << { file("build/gemspec").write($/
8
+ Gem::Specification.new do |spec|
9
+ spec.name = "${project.name}"
10
+ spec.version = "${project.version}"
11
+ spec.summary = "Riak CS file input plugin for Embulk"
12
+ spec.description = "Reads files stored on Riak CS"
13
+ spec.authors = ["Sadayuki Furuhashi"]
14
+ spec.email = ["frsyuki@gmail.com"]
15
+ spec.licenses = ["Apache 2.0"]
16
+ spec.homepage = "https://github.com/embulk/embulk-input-s3"
17
+
18
+ spec.files = `git ls-files`.split("\n") + Dir["classpath/*.jar"]
19
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
20
+ spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
21
+ spec.require_paths = ["lib"]
22
+ spec.has_rdoc = false
23
+
24
+ spec.add_development_dependency "bundler", [">= 1.0"]
25
+ spec.add_development_dependency "rake", [">= 0.10.0"]
26
+ end
27
+ /$)
28
+ }
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ Embulk::JavaPlugin.register_input(
2
+ :riak_cs, "org.embulk.input.riak_cs.RiakCsFileInputPlugin",
3
+ File.expand_path('../../../../classpath', __FILE__))
@@ -0,0 +1,47 @@
1
+ package org.embulk.input.riak_cs;
2
+
3
+ import com.amazonaws.ClientConfiguration;
4
+ import com.amazonaws.services.s3.AmazonS3Client;
5
+ import org.embulk.config.Config;
6
+ import org.embulk.config.ConfigInject;
7
+ import org.embulk.input.s3.AbstractS3FileInputPlugin;
8
+
9
+ public class RiakCsFileInputPlugin
10
+ extends AbstractS3FileInputPlugin
11
+ {
12
+ public interface RiakCsPluginTask
13
+ extends PluginTask
14
+ {
15
+ @Config("endpoint")
16
+ public String getEndpoint();
17
+ }
18
+
19
+ @Override
20
+ protected Class<? extends PluginTask> getTaskClass()
21
+ {
22
+ return RiakCsPluginTask.class;
23
+ }
24
+
25
+ @Override
26
+ protected AmazonS3Client newS3Client(PluginTask task)
27
+ {
28
+ RiakCsPluginTask t = (RiakCsPluginTask) task;
29
+
30
+ AmazonS3Client client = super.newS3Client(t);
31
+
32
+ client.setEndpoint(t.getEndpoint());
33
+
34
+ return client;
35
+ }
36
+
37
+ @Override
38
+ protected ClientConfiguration getClientConfiguration(PluginTask task)
39
+ {
40
+ RiakCsPluginTask t = (RiakCsPluginTask) task;
41
+
42
+ ClientConfiguration config = super.getClientConfiguration(t);
43
+ config.setSignerOverride("S3SignerType");
44
+
45
+ return config;
46
+ }
47
+ }
metadata ADDED
@@ -0,0 +1,85 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: embulk-input-riak_cs
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0
5
+ platform: ruby
6
+ authors:
7
+ - Sadayuki Furuhashi
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ requirement: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - '>='
23
+ - !ruby/object:Gem::Version
24
+ version: '1.0'
25
+ prerelease: false
26
+ type: :development
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: 0.10.0
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - '>='
37
+ - !ruby/object:Gem::Version
38
+ version: 0.10.0
39
+ prerelease: false
40
+ type: :development
41
+ description: Reads files stored on Riak CS
42
+ email:
43
+ - frsyuki@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - build.gradle
49
+ - lib/embulk/input/riak_cs.rb
50
+ - src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
51
+ - classpath/aws-java-sdk-core-1.9.22.jar
52
+ - classpath/aws-java-sdk-kms-1.9.22.jar
53
+ - classpath/aws-java-sdk-s3-1.9.22.jar
54
+ - classpath/commons-codec-1.6.jar
55
+ - classpath/commons-logging-1.1.3.jar
56
+ - classpath/embulk-input-riak_cs-0.2.0.jar
57
+ - classpath/embulk-input-s3-0.2.0.jar
58
+ - classpath/httpclient-4.3.4.jar
59
+ - classpath/httpcore-4.3.2.jar
60
+ - classpath/joda-time-2.8.1.jar
61
+ homepage: https://github.com/embulk/embulk-input-s3
62
+ licenses:
63
+ - Apache 2.0
64
+ metadata: {}
65
+ post_install_message:
66
+ rdoc_options: []
67
+ require_paths:
68
+ - lib
69
+ required_ruby_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ requirements: []
80
+ rubyforge_project:
81
+ rubygems_version: 2.1.9
82
+ signing_key:
83
+ specification_version: 4
84
+ summary: Riak CS file input plugin for Embulk
85
+ test_files: []