embulk-input-riak_cs 0.2.11 → 0.2.12

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
  SHA1:
3
- metadata.gz: db981b3d8a71870b25ae8a150f37ccf61858bc9a
4
- data.tar.gz: 7d23f83cb25fd478c7a3dcc4b89b26a152f26e7c
3
+ metadata.gz: 1cf479c44f7b7dac211e41b1514713217ff8c71c
4
+ data.tar.gz: b2946ad26dacd01fbb61e379b4b2d062f8e0b0e1
5
5
  SHA512:
6
- metadata.gz: e46f663b2753a76efa2ff467945c8c40d2506baa18f60c712875270004c149a3fd8b56c32ee9b8b400ea6e3f2701031ab567dd37623a8f4c3eda93bc1ba90cab
7
- data.tar.gz: cbd846efaa92f7757fd1477d4522709c62abe9e3dd08e0544240cc12acb2e8c961551b4c08c580c5a675b202c0223fa9d80043b6fe26b0720736895022c276b3
6
+ metadata.gz: 51dd4fa486a9c4f60789496fe92b46ef734ed715d6e59de2a7fc14d927e7d78d18c7a9e337c955483d2aeee29554be81c4f8096e07fdec8b5601025033d6c422
7
+ data.tar.gz: f02f3d7a186a5554009dbab8319c6bc4eed8b63d0c0d6543d500594ff2cbb0c644d1169cbea398dd2d41ee3ca4ef5b4f0ad94c9c5b09fb66e6fbfcf9ca6cf6da
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,11 +1,15 @@
1
1
  package org.embulk.input.riak_cs;
2
2
 
3
3
  import com.amazonaws.ClientConfiguration;
4
- import com.amazonaws.services.s3.AmazonS3Client;
4
+ import com.amazonaws.services.s3.AmazonS3;
5
5
  import org.embulk.config.Config;
6
- import org.embulk.config.ConfigInject;
7
6
  import org.embulk.input.s3.AbstractS3FileInputPlugin;
8
7
 
8
+ import static com.amazonaws.client.builder.AwsClientBuilder.EndpointConfiguration;
9
+ import static com.amazonaws.services.s3.AmazonS3Client.S3_SERVICE_NAME;
10
+ import static com.amazonaws.util.AwsHostNameUtils.parseRegion;
11
+ import static com.amazonaws.util.RuntimeHttpUtils.toUri;
12
+
9
13
  public class RiakCsFileInputPlugin
10
14
  extends AbstractS3FileInputPlugin
11
15
  {
@@ -23,15 +27,21 @@ public class RiakCsFileInputPlugin
23
27
  }
24
28
 
25
29
  @Override
26
- protected AmazonS3Client newS3Client(PluginTask task)
30
+ protected AmazonS3 newS3Client(PluginTask task)
27
31
  {
28
32
  RiakCsPluginTask t = (RiakCsPluginTask) task;
29
33
 
30
- AmazonS3Client client = super.newS3Client(t);
31
-
32
- client.setEndpoint(t.getEndpoint());
33
-
34
- return client;
34
+ return super
35
+ .defaultS3ClientBuilder(task)
36
+ .withEndpointConfiguration(new EndpointConfiguration(
37
+ t.getEndpoint(),
38
+ // Although client will treat endpoint's region as the signer region
39
+ // if we left this as null, but such that behaviour is undocumented,
40
+ // so it is explicitly calculated here for future-proofing.
41
+ parseRegion(
42
+ toUri(t.getEndpoint(), getClientConfiguration(task)).getHost(),
43
+ S3_SERVICE_NAME)))
44
+ .build();
35
45
  }
36
46
 
37
47
  @Override
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-riak_cs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-27 00:00:00.000000000 Z
11
+ date: 2018-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -49,16 +49,22 @@ files:
49
49
  - lib/embulk/input/riak_cs.rb
50
50
  - src/main/java/org/embulk/input/riak_cs/RiakCsFileInputPlugin.java
51
51
  - src/test/java/org/embulk/input/riak_cs/TestRiakCsFileInputPlugin.java
52
- - classpath/aws-java-sdk-core-1.10.33.jar
53
- - classpath/aws-java-sdk-kms-1.10.33.jar
54
- - classpath/aws-java-sdk-s3-1.10.33.jar
55
- - classpath/commons-codec-1.6.jar
56
- - classpath/embulk-input-riak_cs-0.2.11.jar
57
- - classpath/embulk-input-s3-0.2.11.jar
58
- - classpath/embulk-util-aws-credentials-0.2.11.jar
59
- - classpath/httpclient-4.3.6.jar
60
- - classpath/httpcore-4.3.3.jar
52
+ - classpath/aws-java-sdk-core-1.11.253.jar
53
+ - classpath/aws-java-sdk-kms-1.11.253.jar
54
+ - classpath/aws-java-sdk-s3-1.11.253.jar
55
+ - classpath/commons-codec-1.9.jar
56
+ - classpath/embulk-input-riak_cs-0.2.12.jar
57
+ - classpath/embulk-input-s3-0.2.12.jar
58
+ - classpath/embulk-util-aws-credentials-0.2.12.jar
59
+ - classpath/httpclient-4.5.2.jar
60
+ - classpath/httpcore-4.4.4.jar
61
+ - classpath/ion-java-1.0.2.jar
62
+ - classpath/jackson-annotations-2.6.0.jar
63
+ - classpath/jackson-core-2.6.7.jar
64
+ - classpath/jackson-databind-2.6.7.1.jar
65
+ - classpath/jackson-dataformat-cbor-2.6.7.jar
61
66
  - classpath/jcl-over-slf4j-1.7.12.jar
67
+ - classpath/jmespath-java-1.11.253.jar
62
68
  homepage: https://github.com/embulk/embulk-input-s3
63
69
  licenses:
64
70
  - Apache 2.0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file