embulk-filter-timestamp_format 0.1.2 → 0.1.3

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: 97c05b1d28b7448d6e1735ba6e28adc7833291e5
4
- data.tar.gz: 95cb59a5052db01d2bfce5409c346bff9212974e
3
+ metadata.gz: be780d125aec2895adeb29b5ad8c72b162754af0
4
+ data.tar.gz: 90f80ea70803e93ced774fff8782e1af682a9ad9
5
5
  SHA512:
6
- metadata.gz: de2219fa5b303126039e480b5dcbe53cb577c63ddcef169b25cadd8410d4e3de83c65f66324831dc3064536e9cb40a88585bff84f998b3bb085d370ad66d1403
7
- data.tar.gz: 8fba27c468a78cc16924aa8b02fe59c68900ef8903db43ebffdb62691783fbf66b3686df6047e8f4771efd9722571913905e87a4fae257a805ba50d570a11ae3
6
+ metadata.gz: dc5533f44205927a35fa49662e47c3f8a1b8e6c5a8454cf1addced763403e54e1423c908b39b1372d330d849a8d1c89b85936798d353beae3f239228d632657a
7
+ data.tar.gz: d3f76d6fff16fc7d6051bc5005ee0aa7f68b6523ad277442631662f48b8b6cd5ff0256739ef3c39602ba64a3670b278e8713dbdde829b2859982d93e7a3de612
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ # 0.1.3 (2016-04-26)
2
+
3
+ Fixes:
4
+
5
+ * Fix to see all from_format
6
+
1
7
  # 0.1.2 (2016-04-26)
2
8
 
3
9
  Changes:
data/README.md CHANGED
@@ -16,6 +16,7 @@ A filter plugin for Embulk to change timesatmp format
16
16
  - **default_from_timezone**: default timezone for the input timestamp columns (string, default is `UTC`)
17
17
  - **default_to_format**: default timestamp format for the output timestamp columns (string, default is `%Y-%m-%d %H:%M:%S.%N %z`)
18
18
  - **default_to_timezone**: default timezone for the output timestamp olumns (string, default is `UTC`)
19
+ * **stop_on_invalid_record**: stop bulk load transaction if a invalid record is found (boolean, default is `false)
19
20
 
20
21
  ## Example
21
22
 
data/build.gradle CHANGED
@@ -13,13 +13,13 @@ configurations {
13
13
  provided
14
14
  }
15
15
 
16
- version = "0.1.2"
16
+ version = "0.1.3"
17
17
  sourceCompatibility = 1.7
18
18
  targetCompatibility = 1.7
19
19
 
20
20
  dependencies {
21
- compile "org.embulk:embulk-core:0.8.2"
22
- provided "org.embulk:embulk-core:0.8.2"
21
+ compile "org.embulk:embulk-core:0.8.+"
22
+ provided "org.embulk:embulk-core:0.8.+"
23
23
  // compile "YOUR_JAR_DEPENDENCY_GROUP:YOUR_JAR_DEPENDENCY_MODULE:YOUR_JAR_DEPENDENCY_VERSION"
24
24
  testCompile "junit:junit:4.+"
25
25
  }
@@ -1,3 +1,3 @@
1
1
  Embulk::JavaPlugin.register_filter(
2
- "timestamp_format", "org.embulk.filter.TimestampFormatFilterPlugin",
2
+ "timestamp_format", "org.embulk.filter.timestamp_format.TimestampFormatFilterPlugin",
3
3
  File.expand_path('../../../../classpath', __FILE__))
@@ -1,4 +1,4 @@
1
- package org.embulk.filter;
1
+ package org.embulk.filter.timestamp_format;
2
2
 
3
3
  import com.google.common.base.Throwables;
4
4
 
@@ -10,9 +10,6 @@ import org.embulk.config.ConfigSource;
10
10
  import org.embulk.config.Task;
11
11
  import org.embulk.config.TaskSource;
12
12
 
13
- import org.embulk.filter.timestamp_format.TimestampFormatter;
14
- import org.embulk.filter.timestamp_format.TimestampParser;
15
-
16
13
  import org.embulk.spi.Column;
17
14
  import org.embulk.spi.ColumnVisitor;
18
15
  import org.embulk.spi.Exec;
@@ -5,7 +5,7 @@ import com.google.common.base.Optional;
5
5
  import org.embulk.config.Config;
6
6
  import org.embulk.config.ConfigDefault;
7
7
 
8
- import org.embulk.filter.TimestampFormatFilterPlugin.PluginTask;
8
+ import org.embulk.filter.timestamp_format.TimestampFormatFilterPlugin.PluginTask;
9
9
 
10
10
  import org.embulk.spi.time.Timestamp;
11
11
  import org.embulk.spi.util.LineEncoder;
@@ -5,7 +5,7 @@ import com.google.common.base.Optional;
5
5
  import org.embulk.config.Config;
6
6
  import org.embulk.config.ConfigDefault;
7
7
 
8
- import org.embulk.filter.TimestampFormatFilterPlugin.PluginTask;
8
+ import org.embulk.filter.timestamp_format.TimestampFormatFilterPlugin.PluginTask;
9
9
 
10
10
  import org.embulk.spi.time.JRubyTimeParserHelper;
11
11
  import org.embulk.spi.time.JRubyTimeParserHelperFactory;
@@ -86,6 +86,7 @@ public class TimestampParser
86
86
  helper = h;
87
87
  try {
88
88
  localUsec = helper.strptimeUsec(text);
89
+ break;
89
90
  }
90
91
  catch (TimestampParseException ex) {
91
92
  exception = ex;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-filter-timestamp_format
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
@@ -73,11 +73,11 @@ files:
73
73
  - gradlew
74
74
  - gradlew.bat
75
75
  - lib/embulk/filter/timestamp_format.rb
76
- - src/main/java/org/embulk/filter/TimestampFormatFilterPlugin.java
76
+ - src/main/java/org/embulk/filter/timestamp_format/TimestampFormatFilterPlugin.java
77
77
  - src/main/java/org/embulk/filter/timestamp_format/TimestampFormatter.java
78
78
  - src/main/java/org/embulk/filter/timestamp_format/TimestampParser.java
79
79
  - src/test/java/org/embulk/filter/TestTimestampFormatFilterPlugin.java
80
- - classpath/embulk-filter-timestamp_format-0.1.2.jar
80
+ - classpath/embulk-filter-timestamp_format-0.1.3.jar
81
81
  homepage: https://github.com/sonots/embulk-filter-timestamp_format
82
82
  licenses:
83
83
  - MIT