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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c71d1394fa786ad48102eba16fc3cf00e4af4805
4
- data.tar.gz: 237eb51a62df9488537b75227c4e829346b875dd
3
+ metadata.gz: 2a344520dc3aded72b2bf53a735a4a46f6d8668a
4
+ data.tar.gz: 6211c301cce4f7d7a4beb9e7a011d6b7971965e2
5
5
  SHA512:
6
- metadata.gz: 5ebd2453ae46fd1350e05d3a365a13d8b7690c71f108d1dd56bf13f2addbe6ceb0507ce2c758af1bcf8025fa3cca8a7dcf58d687eb5fe35d02adfe2c63d71938
7
- data.tar.gz: 8e77d377c56378dae7d8c2f7e35f3481ab23e6cc88259073189d8ce510e9c0196eab2d98cfb9bdc92b93bdce387b6d6dda41040bf99c9a49b4197f5168672bd5
6
+ metadata.gz: 12dca07d9d57ae0f6d36466c0675a66e2755f09cc25d252eb5bcb14a86cfa6fd27110782f9ce1af0b0b31620da45a3666aae90c5e14d3d16f91ddab5227f805b
7
+ data.tar.gz: 022627716d3db31dee527a5848f0d66766593e9c4a65dadd7c093cbc50bbbfdc81a34aa5aef6b3ca7a829db1f0a4c817c71b8d0beb26f028f0e7efdd65318fcc
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: ruby
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: 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.8.jar
111
- - classpath/embulk-standards-0.7.8.jar
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