embulk-formatter-single_value 0.1.2 → 0.2.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: 946f31b542cda7cbe5da84ae606e22d51b668131
4
- data.tar.gz: 66b657a89c4b6be9b796206e01c9387476701dac
3
+ metadata.gz: 541b2d9cb0b4e216d8e34f499dfbddea2a4f6757
4
+ data.tar.gz: 3fdbb979a054c104a4d91f474b73e2e195ee7448
5
5
  SHA512:
6
- metadata.gz: 37c4b4cdf4e6910466f6a8d410bf4af842f374fe5e9669e38d90e8b1933a148767e1c25f649d286d3969f890961584540b311055a0aeb30456ce9a3907a54454
7
- data.tar.gz: 5cf3fb032bb20d4ccb6efef271166d4da043adbb22665ff609430ddd5e9c67cbe1d6355c5c59c80f47cc8e05f5c347887a628a3f793933013d3b28ecc08fbfdc
6
+ metadata.gz: ceb2462967443de65d9a25d40ff2e62f0469d8b04a19627a490c6028806b647e1a4ed5244792e55c3b2b42da3bd928f8763b64072fffb5484acfae31e3bd6040
7
+ data.tar.gz: 1b6297f1046e071e3b43bac6d268ffe7f642af42fda4436064b7690236fc60144aa91016b10185c4ff59858144097fe609e547c0eb418ad2ffce7d7dd8632598
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.2.0 (2016-02-22)
2
+
3
+ Changes:
4
+
5
+ * Rename message\_key option to column\_name option
6
+
1
7
  # 0.1.2 (2016-02-20)
2
8
 
3
9
  Fixes:
data/README.md CHANGED
@@ -8,7 +8,7 @@ Embulk formatter plugin to output values of a single column. This is a kind of r
8
8
 
9
9
  ## Configuration
10
10
 
11
- * **message_key**: A column name which this plugin outputs (string, default: null which extracts the first column)
11
+ * **column_name**: A column name which this plugin outputs (string, default: null which extracts the first column)
12
12
  * **null_string**: A string value to express NULL value (string, default: "")
13
13
  * **timestamp_format**: Timestamp format for timestamp column (string, default: "%Y-%m-%d %H:%M:%S.%6N %z")
14
14
  * **timezone**: Timezone for timesatmp column (string, default: UTC)
@@ -20,7 +20,7 @@ out:
20
20
  type: an output plugin supporting a formatter plugin such as `file`
21
21
  formatter:
22
22
  type: single_value
23
- message_key: message
23
+ column_name: column1
24
24
  null_string: ""
25
25
  ```
26
26
 
data/build.gradle CHANGED
@@ -13,7 +13,7 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.2"
16
+ version = "0.2.0"
17
17
 
18
18
  sourceCompatibility = 1.7
19
19
  targetCompatibility = 1.7
@@ -73,7 +73,7 @@ task gemspec {
73
73
  Gem::Specification.new do |spec|
74
74
  spec.name = "${project.name}"
75
75
  spec.version = "${project.version}"
76
- spec.authors = ["sonots"]
76
+ spec.authors = ["Naotoshi Seo"]
77
77
  spec.summary = %[Embulk formatter plugin to output values of a single column]
78
78
  spec.description = %[Embulk formatter plugin to output values of a single column.]
79
79
  spec.email = ["sonots@gmail.com"]
@@ -24,4 +24,4 @@ out:
24
24
  file_ext: txt
25
25
  formatter:
26
26
  type: single_value
27
- message_key: comment
27
+ column_name: comment
data/example/example.yml CHANGED
@@ -3,7 +3,6 @@ in:
3
3
  path_prefix: example/example.txt
4
4
  parser:
5
5
  type: none
6
- message_key: message
7
6
  out:
8
7
  type: file
9
8
  path_prefix: /tmp/single_value_
@@ -31,9 +31,9 @@ public class SingleValueFormatterPlugin
31
31
  public interface PluginTask
32
32
  extends Task, LineEncoder.EncoderTask, TimestampFormatter.Task
33
33
  {
34
- @Config("message_key")
34
+ @Config("column_name")
35
35
  @ConfigDefault("null")
36
- public Optional<String> getMessageKey();
36
+ public Optional<String> getColumnName();
37
37
 
38
38
  @Config("null_string")
39
39
  @ConfigDefault("\"\"")
@@ -81,7 +81,7 @@ public class SingleValueFormatterPlugin
81
81
  final LineEncoder encoder = new LineEncoder(output, task);
82
82
  final String nullString = task.getNullString();
83
83
 
84
- final int inputColumnIndex = getInputColumnIndex(task.getMessageKey(), inputSchema);
84
+ final int inputColumnIndex = getInputColumnIndex(task.getColumnName(), inputSchema);
85
85
  final Schema outputSchema = getOutputSchema(inputColumnIndex, inputSchema);
86
86
  final DateTimeZone timezone = DateTimeZone.forID(task.getTimezone());
87
87
  final TimestampFormatter timestampFormatter =
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-formatter-single_value
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
- - sonots
7
+ - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,11 +52,11 @@ files:
52
52
  - build.gradle
53
53
  - config/checkstyle/checkstyle.xml
54
54
  - config/checkstyle/default.xml
55
+ - example/column_name.yml
55
56
  - example/example.csv
56
57
  - example/example.txt
57
58
  - example/example.yml
58
59
  - example/first_column.yml
59
- - example/message_key.yml
60
60
  - example/timestamp.txt
61
61
  - example/timestamp.yml
62
62
  - gradle/wrapper/gradle-wrapper.jar
@@ -66,7 +66,7 @@ files:
66
66
  - lib/embulk/formatter/single_value.rb
67
67
  - src/main/java/org/embulk/formatter/single_value/SingleValueFormatterPlugin.java
68
68
  - src/test/java/org/embulk/formatter/single_value/TestSingleValueFormatterPlugin.java
69
- - classpath/embulk-formatter-single_value-0.1.2.jar
69
+ - classpath/embulk-formatter-single_value-0.2.0.jar
70
70
  homepage: https://github.com/sonots/embulk-formatter-single_value
71
71
  licenses:
72
72
  - MIT