embulk-input-gcs 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: fd6526b9295d3611d773366eee2d2f904f0d6433
4
- data.tar.gz: 0b7f78e4ae8be89815559c355973218d1ae3ecac
3
+ metadata.gz: e98c28e3608e003f393140a900b4bee8483900d0
4
+ data.tar.gz: ae79e9cabb0eb8d5af7581133fa1f710c775192d
5
5
  SHA512:
6
- metadata.gz: 2dd9dc2413ca0ddce051ae5bad7c44d4444ce6bd17cd7ff65cdb36270fa9c1934b1a25e2f79997aeee71ceb55c18873d3e60350dfc0f07820a8b2f5b8fe2af30
7
- data.tar.gz: 9b537d2c61d7f580fc448a06504731cf90efb9257763435b1101c19452405b2fc7916b19d38e38f6fc018d93cef4c19468634bf82f29ee89d0fe993c192bab4f
6
+ metadata.gz: 293969daec13f2f01dee3cf3e7ba9b89e252c709d38ec174aec1cac55c6b9ac9269e3bf98b29becb14f6e7a1d84c190df66ef2eb33f210a12fb12d7408c757b1
7
+ data.tar.gz: c01d5d46c5b15c4e3478aa2676e826b858ff79c4d69619079725afb3951338faab22b623429a692207c28e0318df2bc3f2c1baacafed832b42a1bb732d3cad6d
@@ -12,11 +12,11 @@ configurations {
12
12
  provided
13
13
  }
14
14
 
15
- version = "0.1.1"
15
+ version = "0.1.2"
16
16
 
17
17
  dependencies {
18
- compile "org.embulk:embulk-core:0.4.10"
19
- provided "org.embulk:embulk-core:0.4.10"
18
+ compile "org.embulk:embulk-core:0.5.1"
19
+ provided "org.embulk:embulk-core:0.5.1"
20
20
 
21
21
  compile "com.google.http-client:google-http-client-jackson2:1.19.0"
22
22
  compile ("com.google.apis:google-api-services-storage:v1-rev27-1.19.1") {exclude module: "guava-jdk5"}
@@ -60,8 +60,7 @@ public class GcsFileInputPlugin
60
60
  public String getServiceAccountEmail();
61
61
 
62
62
  @Config("application_name")
63
- // @todo I want to set default applicaiton name like "embulk-input-gcs". But string format cause JsonParseException.
64
- @ConfigDefault("1000000000")
63
+ @ConfigDefault("\"Embulk GCS input plugin\"")
65
64
  public String getApplicationName();
66
65
 
67
66
  @Config("p12_keyfile_fullpath")
@@ -142,7 +141,7 @@ public class GcsFileInputPlugin
142
141
  .build();
143
142
  return cred;
144
143
  } catch (IOException e) {
145
- log.warn("Could not load client secrets file " + task.getP12KeyfileFullpath());
144
+ log.warn(String.format("Could not load client secrets file %s", task.getP12KeyfileFullpath()));
146
145
  } catch (GeneralSecurityException e) {
147
146
  log.warn ("Google Authentication was failed");
148
147
  }
@@ -205,7 +204,7 @@ public class GcsFileInputPlugin
205
204
  Objects objects = listObjects.execute();
206
205
  List<StorageObject> items = objects.getItems();
207
206
  if (items == null) {
208
- log.info("No file was found in bucket:" + bucket + " prefix:" + prefix);
207
+ log.info(String.format("No file was found in bucket:%s prefix:%s", bucket, prefix));
209
208
  break;
210
209
  }
211
210
  for (StorageObject o : items) {
@@ -221,7 +220,7 @@ public class GcsFileInputPlugin
221
220
  listObjects.setPageToken(lastKey);
222
221
  } while (lastKey != null);
223
222
  } catch (Exception e) {
224
- log.warn("Could not get file list from bucket:" + bucket);
223
+ log.warn(String.format("Could not get file list from bucket:%s", bucket));
225
224
  log.warn(e.getMessage());
226
225
  }
227
226
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-input-gcs
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
  - Satoshi Akama
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-01 00:00:00.000000000 Z
11
+ date: 2015-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ files:
58
58
  - src/test/java/org/embulk/input/gcs/TestGcsFileInputPlugin.java
59
59
  - classpath/commons-codec-1.3.jar
60
60
  - classpath/commons-logging-1.1.1.jar
61
- - classpath/embulk-input-gcs-0.1.1.jar
61
+ - classpath/embulk-input-gcs-0.1.2.jar
62
62
  - classpath/google-api-client-1.19.1.jar
63
63
  - classpath/google-api-services-storage-v1-rev27-1.19.1.jar
64
64
  - classpath/google-http-client-1.19.0.jar