embulk-filter-column 0.6.0 → 0.7.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: 9ce6ab66b7e8d2cbccac522531d8fc271b8be874
4
- data.tar.gz: 6b5d29acd7231d2f2d7ee2375a5096796323c8b5
3
+ metadata.gz: 61fa7dfcda11e9f632f50c741bf581ee784d5551
4
+ data.tar.gz: cb86bfb359565c42513abd5af4830d9894846a18
5
5
  SHA512:
6
- metadata.gz: 0a00986235b253418cb0da460d7c2b38c86e3aae6ac98793a5a2aec84466dfdde7361a31dad2ca2b67442a35b731f206e04ca1ff80e33a6e8fb5e523582fabe5
7
- data.tar.gz: 253cf3387f7032f3db29490103872693ce8583722107ca8502cf4b221968ea25f786174e080867fbc49b323e9ad8e52498da4f6110f1d533fbefc9b5dcecacfe
6
+ metadata.gz: ece076922941fd87c2030b4df3bb14f88cdd689f0f6fdca2923e657395053d4def57e0f9f1151f8b88a43ebb45a49f5461255f3178f5df6671f15af41ab2c67e
7
+ data.tar.gz: c5bb54d7aeae2e7fe790ac0be822d0f301994f0f412b501987004d7302a38ca5038e50fa9594af847f280e9d7f756da778dd197449c149ed89918e37e1dee361
@@ -1,3 +1,10 @@
1
+ # 0.7.0 (2017-08-24)
2
+
3
+ Changes:
4
+
5
+ * Follow new TimestampParser API of embulk >= 0.8.29.
6
+ * Note that this plugin now requires embulk >= 0.8.29.
7
+
1
8
  # 0.6.0 (2016-11-05)
2
9
 
3
10
  Enhancements:
data/README.md CHANGED
@@ -129,13 +129,16 @@ EXAMPLE:
129
129
  * [example/add_columns.yml](example/add_columns.yml)
130
130
  * [example/drop_columns.yml](example/drop_columns.yml)
131
131
 
132
- NOTE:
132
+ Following operators of JSONPath are not supported:
133
133
 
134
- 1) JSONPath syntax is not fully supported
134
+ * Multiple properties such as `['name','name']`
135
+ * Multiple array indexes such as `[1,2]`
136
+ * Array slice such as `[1:2]`
137
+ * Filter expression such as `[?(<expression>)]`
135
138
 
136
- 2) `type: timesatmp` for `add_columns` or `columns` is not available because Embulk's `type: json` cannot have timestamp column inside
139
+ Note that `type: timesatmp` for `add_columns` or `columns` is not available because Embulk's `type: json` cannot have timestamp column inside.
137
140
 
138
- 3) Rename or copy of json paths by `src` option is only partially supported yet. The parent json path must be same like:
141
+ Also note that renameing or copying of json paths by `src` option is only partially supported yet. The parent json path must be same like:
139
142
 
140
143
  ```
141
144
  - {name: $.payload.foo.dest, src: $.payload.foo.src}
@@ -15,13 +15,13 @@ configurations {
15
15
  provided
16
16
  }
17
17
 
18
- version = "0.6.0"
18
+ version = "0.7.0"
19
19
  sourceCompatibility = 1.7
20
20
  targetCompatibility = 1.7
21
21
 
22
22
  dependencies {
23
- compile "org.embulk:embulk-core:0.8.+"
24
- provided "org.embulk:embulk-core:0.8.+"
23
+ compile "org.embulk:embulk-core:0.8.29+"
24
+ provided "org.embulk:embulk-core:0.8.29+"
25
25
  compile "io.github.medjed:JsonPathCompiler:0.0.12"
26
26
 
27
27
  testCompile "junit:junit:4.+"
@@ -151,7 +151,7 @@ public class ColumnVisitorImpl implements ColumnVisitor
151
151
  String time = (String) columnConfig.getDefault().get();
152
152
  String format = columnConfig.getFormat().or(task.getDefaultTimestampFormat());
153
153
  DateTimeZone timezone = columnConfig.getTimeZone().or(task.getDefaultTimeZone());
154
- TimestampParser parser = new TimestampParser(task.getJRuby(), format, timezone);
154
+ TimestampParser parser = new TimestampParser(format, timezone);
155
155
  try {
156
156
  Timestamp defaultValue = parser.parse(time);
157
157
  return defaultValue;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-filter-column
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-05 00:00:00.000000000 Z
11
+ date: 2017-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -81,8 +81,7 @@ files:
81
81
  - src/test/java/org/embulk/filter/column/TestJsonVisitor.java
82
82
  - classpath/accessors-smart-1.1.jar
83
83
  - classpath/asm-5.0.3.jar
84
- - classpath/commons-lang3-3.4.jar
85
- - classpath/embulk-filter-column-0.6.0.jar
84
+ - classpath/embulk-filter-column-0.7.0.jar
86
85
  - classpath/json-smart-2.2.1.jar
87
86
  - classpath/JsonPathCompiler-0.0.12.jar
88
87
  - classpath/slf4j-api-1.7.21.jar