embulk 0.7.8-java → 0.7.9-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bbf761efe988b3d306299a56b251209e2d30d473
4
- data.tar.gz: 2ffff3b608e07887cfa5988513b30e65bc4efb4c
3
+ metadata.gz: ccf9468e1acf89766906c83b17b8590fda8daa6d
4
+ data.tar.gz: dcaf8a5f2d78d9e411a91a0897fae959b85b59af
5
5
  SHA512:
6
- metadata.gz: d9d4ca224cdff843099f630f430995737b45b6c53b618e6b05d7f677648fe61ac1b849774884cc42afbf064c62d50838870e37e6c78b5e7ab4793da10d245606
7
- data.tar.gz: 3f02b050a1d3552663563b1460898c2b2e969cbc5d905f771d95ffd9d77eec740c1f64b8a36eefc284aa491076fdb0595d8c3def0ba96a3e1bbe14c575467f3f
6
+ metadata.gz: a286f427f59edaca492afaee075885bdbe3843a048929525de6cebc2becd5c8c0f73a3d6d360c4fb1130c87cffcd01f821b6971ae260e4a4d90f3c2ae21182a9
7
+ data.tar.gz: 34219d8af862a6fbb6b46357e4c2bfb3e480d28bb7195fa8ea7bba618316fdafe3f8a673187942c6e20115b31d371ee69aa81c523ac7283eb79291d61cf8704c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- embulk (0.7.7)
4
+ embulk (0.7.9)
5
5
  jruby-jars (= 9.0.0.0)
6
6
 
7
7
  GEM
@@ -20,7 +20,6 @@ PLATFORMS
20
20
  ruby
21
21
 
22
22
  DEPENDENCIES
23
- bundler (>= 1.0)
24
23
  embulk!
25
24
  kramdown (~> 1.5.0)
26
25
  rake (>= 0.10.0)
data/build.gradle CHANGED
@@ -16,7 +16,7 @@ def release_projects = [project(":embulk-core"), project(":embulk-standards")]
16
16
 
17
17
  allprojects {
18
18
  group = 'org.embulk'
19
- version = '0.7.8'
19
+ version = '0.7.9'
20
20
 
21
21
  ext {
22
22
  jrubyVersion = '9.0.0.0'
@@ -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
- file("${gemDir}/lib").renameTo("${buildDir}/gemlib/")
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 %Z");
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 UTC", formatter.format(Timestamp.ofEpochSecond(1416365189, 123456*1000)));
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 %Z");
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 UTC"));
46
+ assertEquals(Timestamp.ofEpochSecond(1416365189, 0), parser.parse("2014-11-19 02:46:29 +0000"));
47
47
  }
48
48
 
49
49
  @Test
@@ -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 %Z");
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 UTC", formatter.format(Timestamp.ofEpochSecond(1416365189, 123456*1000)));
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 %Z");
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 UTC"));
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
@@ -4,6 +4,7 @@ Release Notes
4
4
  .. toctree::
5
5
  :maxdepth: 1
6
6
 
7
+ release/release-0.7.9
7
8
  release/release-0.7.8
8
9
  release/release-0.7.7
9
10
  release/release-0.7.6
@@ -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 = {
@@ -1,3 +1,3 @@
1
1
  module Embulk
2
- VERSION = '0.7.8'
2
+ VERSION = '0.7.9'
3
3
  end
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.8
4
+ version: 0.7.9
5
5
  platform: java
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-09 00:00:00.000000000 Z
11
+ date: 2015-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -133,8 +133,8 @@ files:
133
133
  - classpath/bval-jsr303-0.5.jar
134
134
  - classpath/commons-beanutils-core-1.8.3.jar
135
135
  - classpath/commons-lang3-3.1.jar
136
- - classpath/embulk-core-0.7.8.jar
137
- - classpath/embulk-standards-0.7.8.jar
136
+ - classpath/embulk-core-0.7.9.jar
137
+ - classpath/embulk-standards-0.7.9.jar
138
138
  - classpath/guava-18.0.jar
139
139
  - classpath/guice-4.0.jar
140
140
  - classpath/guice-multibindings-4.0.jar
@@ -442,6 +442,7 @@ files:
442
442
  - embulk-docs/src/release/release-0.7.6.rst
443
443
  - embulk-docs/src/release/release-0.7.7.rst
444
444
  - embulk-docs/src/release/release-0.7.8.rst
445
+ - embulk-docs/src/release/release-0.7.9.rst
445
446
  - embulk-standards/build.gradle
446
447
  - embulk-standards/src/main/java/org/embulk/standards/CsvFormatterPlugin.java
447
448
  - embulk-standards/src/main/java/org/embulk/standards/CsvParserPlugin.java