embulk 0.7.8 → 0.7.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -2
- data/build.gradle +1 -1
- data/embulk-core/build.gradle +5 -2
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestampFormatterParser.java +4 -4
- data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestampFormatterParserDeprecated.java +4 -4
- data/embulk-docs/src/release.rst +1 -0
- data/embulk-docs/src/release/release-0.7.9.rst +14 -0
- data/lib/embulk/command/embulk_run.rb +10 -0
- data/lib/embulk/runner.rb +1 -1
- data/lib/embulk/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a344520dc3aded72b2bf53a735a4a46f6d8668a
|
4
|
+
data.tar.gz: 6211c301cce4f7d7a4beb9e7a011d6b7971965e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12dca07d9d57ae0f6d36466c0675a66e2755f09cc25d252eb5bcb14a86cfa6fd27110782f9ce1af0b0b31620da45a3666aae90c5e14d3d16f91ddab5227f805b
|
7
|
+
data.tar.gz: 022627716d3db31dee527a5848f0d66766593e9c4a65dadd7c093cbc50bbbfdc81a34aa5aef6b3ca7a829db1f0a4c817c71b8d0beb26f028f0e7efdd65318fcc
|
data/Gemfile.lock
CHANGED
data/build.gradle
CHANGED
data/embulk-core/build.gradle
CHANGED
@@ -50,9 +50,12 @@ task unpackGems(type: JRubyPrepare) {
|
|
50
50
|
dependencies configurations.gems
|
51
51
|
doLast {
|
52
52
|
// move to build/gem/*/lib/* to build/gemlib/
|
53
|
-
file("${buildDir}/gemlib").mkdirs()
|
54
53
|
file("${buildDir}/gem/gems").eachDir { gemDir ->
|
55
|
-
|
54
|
+
copy {
|
55
|
+
from "${gemDir}/lib"
|
56
|
+
into "${buildDir}/gemlib/"
|
57
|
+
include "**"
|
58
|
+
}
|
56
59
|
}
|
57
60
|
fileTree(dir: "${buildDir}/gemlib", include: "**/.jrubydir").each { f -> f.delete() }
|
58
61
|
}
|
@@ -28,22 +28,22 @@ public class TestTimestampFormatterParser
|
|
28
28
|
public void testSimpleFormat() throws Exception
|
29
29
|
{
|
30
30
|
ConfigSource config = Exec.newConfigSource()
|
31
|
-
.set("default_timestamp_format", "%Y-%m-%d %H:%M:%S.%9N %
|
31
|
+
.set("default_timestamp_format", "%Y-%m-%d %H:%M:%S.%9N %z"); // %Z is OS-dependent
|
32
32
|
FormatterTestTask task = config.loadConfig(FormatterTestTask.class);
|
33
33
|
|
34
34
|
TimestampFormatter formatter = new TimestampFormatter(task, Optional.<TimestampFormatter.TimestampColumnOption>absent());
|
35
|
-
assertEquals("2014-11-19 02:46:29.123456000
|
35
|
+
assertEquals("2014-11-19 02:46:29.123456000 +0000", formatter.format(Timestamp.ofEpochSecond(1416365189, 123456*1000)));
|
36
36
|
}
|
37
37
|
|
38
38
|
@Test
|
39
39
|
public void testSimpleParse() throws Exception
|
40
40
|
{
|
41
41
|
ConfigSource config = Exec.newConfigSource()
|
42
|
-
.set("default_timestamp_format", "%Y-%m-%d %H:%M:%S %
|
42
|
+
.set("default_timestamp_format", "%Y-%m-%d %H:%M:%S %z"); // %Z is OS-dependent
|
43
43
|
ParserTestTask task = config.loadConfig(ParserTestTask.class);
|
44
44
|
|
45
45
|
TimestampParser parser = new TimestampParser(task);
|
46
|
-
assertEquals(Timestamp.ofEpochSecond(1416365189, 0), parser.parse("2014-11-19 02:46:29
|
46
|
+
assertEquals(Timestamp.ofEpochSecond(1416365189, 0), parser.parse("2014-11-19 02:46:29 +0000"));
|
47
47
|
}
|
48
48
|
|
49
49
|
@Test
|
data/embulk-core/src/test/java/org/embulk/spi/time/TestTimestampFormatterParserDeprecated.java
CHANGED
@@ -32,22 +32,22 @@ public class TestTimestampFormatterParserDeprecated
|
|
32
32
|
public void testSimpleFormat() throws Exception
|
33
33
|
{
|
34
34
|
ConfigSource config = Exec.newConfigSource()
|
35
|
-
.set("time_format", "%Y-%m-%d %H:%M:%S.%6N %
|
35
|
+
.set("time_format", "%Y-%m-%d %H:%M:%S.%6N %z");
|
36
36
|
FormatterTestTask task = config.loadConfig(FormatterTestTask.class);
|
37
37
|
|
38
38
|
TimestampFormatter formatter = task.getTimeFormat().newFormatter(task);
|
39
|
-
assertEquals("2014-11-19 02:46:29.123456
|
39
|
+
assertEquals("2014-11-19 02:46:29.123456 +0000", formatter.format(Timestamp.ofEpochSecond(1416365189, 123456*1000)));
|
40
40
|
}
|
41
41
|
|
42
42
|
@Test
|
43
43
|
public void testSimpleParse() throws Exception
|
44
44
|
{
|
45
45
|
ConfigSource config = Exec.newConfigSource()
|
46
|
-
.set("time_format", "%Y-%m-%d %H:%M:%S.%N %
|
46
|
+
.set("time_format", "%Y-%m-%d %H:%M:%S.%N %z");
|
47
47
|
ParserTestTask task = config.loadConfig(ParserTestTask.class);
|
48
48
|
|
49
49
|
TimestampParser parser = task.getTimeFormat().newParser(task);
|
50
|
-
assertEquals(Timestamp.ofEpochSecond(1416365189, 123456*1000), parser.parse("2014-11-19 02:46:29.123456
|
50
|
+
assertEquals(Timestamp.ofEpochSecond(1416365189, 123456*1000), parser.parse("2014-11-19 02:46:29.123456 +00:00"));
|
51
51
|
}
|
52
52
|
|
53
53
|
@Test
|
data/embulk-docs/src/release.rst
CHANGED
@@ -0,0 +1,14 @@
|
|
1
|
+
Release 0.7.9
|
2
|
+
==================================
|
3
|
+
|
4
|
+
General Changes
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Liquid template engine uses strict validation. When a liquid template file includes an error (e.g. included file does not exist), embulk command fails rather than including an error message in the config file (@notpeter++).
|
8
|
+
* Fixed liquid template engine processing.
|
9
|
+
* Fixed ``embulk bundle --help`` and ``embulk bundle help <command>`` to work.
|
10
|
+
|
11
|
+
|
12
|
+
Release Date
|
13
|
+
------------------
|
14
|
+
2015-11-11
|
@@ -410,6 +410,16 @@ examples:
|
|
410
410
|
def self.run_bundler(argv)
|
411
411
|
require 'bundler' # bundler is included in embulk-core.jar
|
412
412
|
|
413
|
+
# this hack is necessary to make --help working
|
414
|
+
Bundler.define_singleton_method(:which_orig, Bundler.method(:which))
|
415
|
+
Bundler.define_singleton_method(:which) do |executable|
|
416
|
+
if executable == "man"
|
417
|
+
false
|
418
|
+
else
|
419
|
+
which_orig(executable)
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
413
423
|
require 'bundler/friendly_errors'
|
414
424
|
require 'bundler/cli'
|
415
425
|
Bundler.with_friendly_errors do
|
data/lib/embulk/runner.rb
CHANGED
@@ -132,7 +132,7 @@ module Embulk
|
|
132
132
|
|
133
133
|
def run_liquid(source, params, template_include_path)
|
134
134
|
require 'liquid'
|
135
|
-
template = Liquid::Template.parse(source)
|
135
|
+
template = Liquid::Template.parse(source, :error_mode => :strict)
|
136
136
|
template.registers[:file_system] = Liquid::LocalFileSystem.new(template_include_path, "_%s.yml.liquid") if template_include_path
|
137
137
|
|
138
138
|
data = {
|
data/lib/embulk/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: embulk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jruby-jars
|
@@ -107,8 +107,8 @@ files:
|
|
107
107
|
- classpath/bval-jsr303-0.5.jar
|
108
108
|
- classpath/commons-beanutils-core-1.8.3.jar
|
109
109
|
- classpath/commons-lang3-3.1.jar
|
110
|
-
- classpath/embulk-core-0.7.
|
111
|
-
- classpath/embulk-standards-0.7.
|
110
|
+
- classpath/embulk-core-0.7.9.jar
|
111
|
+
- classpath/embulk-standards-0.7.9.jar
|
112
112
|
- classpath/guava-18.0.jar
|
113
113
|
- classpath/guice-4.0.jar
|
114
114
|
- classpath/guice-multibindings-4.0.jar
|
@@ -416,6 +416,7 @@ files:
|
|
416
416
|
- embulk-docs/src/release/release-0.7.6.rst
|
417
417
|
- embulk-docs/src/release/release-0.7.7.rst
|
418
418
|
- embulk-docs/src/release/release-0.7.8.rst
|
419
|
+
- embulk-docs/src/release/release-0.7.9.rst
|
419
420
|
- embulk-standards/build.gradle
|
420
421
|
- embulk-standards/src/main/java/org/embulk/standards/CsvFormatterPlugin.java
|
421
422
|
- embulk-standards/src/main/java/org/embulk/standards/CsvParserPlugin.java
|