embulk 0.6.22 → 0.6.23

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/build.gradle +1 -1
  3. data/embulk-core/src/main/java/org/embulk/command/LiquidTemplate.java +1 -1
  4. data/embulk-core/src/main/java/org/embulk/config/CommitReport.java +8 -8
  5. data/embulk-core/src/main/java/org/embulk/config/ConfigDiff.java +8 -8
  6. data/embulk-core/src/main/java/org/embulk/config/ConfigSource.java +9 -9
  7. data/embulk-core/src/main/java/org/embulk/config/DataSource.java +15 -15
  8. data/embulk-core/src/main/java/org/embulk/config/Task.java +2 -2
  9. data/embulk-core/src/main/java/org/embulk/config/TaskSource.java +9 -9
  10. data/embulk-core/src/main/java/org/embulk/guice/LifeCycleManager.java +3 -3
  11. data/embulk-core/src/main/java/org/embulk/plugin/PluginClassLoaderFactory.java +1 -1
  12. data/embulk-core/src/main/java/org/embulk/plugin/PluginSource.java +1 -1
  13. data/embulk-core/src/main/java/org/embulk/spi/BufferAllocator.java +2 -2
  14. data/embulk-core/src/main/java/org/embulk/spi/ColumnVisitor.java +5 -5
  15. data/embulk-core/src/main/java/org/embulk/spi/DecoderPlugin.java +4 -4
  16. data/embulk-core/src/main/java/org/embulk/spi/EncoderPlugin.java +4 -4
  17. data/embulk-core/src/main/java/org/embulk/spi/ExecAction.java +1 -1
  18. data/embulk-core/src/main/java/org/embulk/spi/ExecutorPlugin.java +5 -5
  19. data/embulk-core/src/main/java/org/embulk/spi/Extension.java +1 -1
  20. data/embulk-core/src/main/java/org/embulk/spi/FileInput.java +3 -3
  21. data/embulk-core/src/main/java/org/embulk/spi/FileInputPlugin.java +6 -6
  22. data/embulk-core/src/main/java/org/embulk/spi/FileOutput.java +4 -4
  23. data/embulk-core/src/main/java/org/embulk/spi/FileOutputPlugin.java +6 -6
  24. data/embulk-core/src/main/java/org/embulk/spi/FilterPlugin.java +4 -4
  25. data/embulk-core/src/main/java/org/embulk/spi/FormatterPlugin.java +4 -4
  26. data/embulk-core/src/main/java/org/embulk/spi/GuessPlugin.java +1 -1
  27. data/embulk-core/src/main/java/org/embulk/spi/InputPlugin.java +7 -7
  28. data/embulk-core/src/main/java/org/embulk/spi/OutputPlugin.java +6 -6
  29. data/embulk-core/src/main/java/org/embulk/spi/PageOutput.java +3 -3
  30. data/embulk-core/src/main/java/org/embulk/spi/ParserPlugin.java +4 -4
  31. data/embulk-core/src/main/java/org/embulk/spi/ProcessState.java +3 -3
  32. data/embulk-core/src/main/java/org/embulk/spi/Transactional.java +2 -2
  33. data/embulk-core/src/main/java/org/embulk/spi/TransactionalFileInput.java +5 -5
  34. data/embulk-core/src/main/java/org/embulk/spi/TransactionalFileOutput.java +6 -6
  35. data/embulk-core/src/main/java/org/embulk/spi/TransactionalPageOutput.java +5 -5
  36. data/embulk-core/src/main/java/org/embulk/spi/time/JRubyTimeParserHelper.java +2 -2
  37. data/embulk-core/src/main/java/org/embulk/spi/time/JRubyTimeParserHelperFactory.java +1 -1
  38. data/embulk-core/src/main/java/org/embulk/spi/type/Type.java +3 -3
  39. data/embulk-core/src/main/java/org/embulk/spi/util/DynamicColumnSetter.java +6 -6
  40. data/embulk-core/src/main/java/org/embulk/spi/util/dynamic/DefaultValueSetter.java +5 -5
  41. data/embulk-docs/src/release.rst +1 -0
  42. data/embulk-docs/src/release/release-0.6.23.rst +17 -0
  43. data/lib/embulk/error.rb +1 -7
  44. data/lib/embulk/java/liquid_helper.rb +1 -2
  45. data/lib/embulk/version.rb +1 -1
  46. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9517ba89a58e4c0980976822f7508f0b1040ea6c
4
- data.tar.gz: dc378ef610b2e1cab1d4b66eb3ff46b64e0817bf
3
+ metadata.gz: 64abec3fb6b1bab0ae694de9ffd3addda18c3261
4
+ data.tar.gz: 7cc07c9baf206c4f85cb776710b18bc89ebde41b
5
5
  SHA512:
6
- metadata.gz: 07bd4d4bd1688835f9c830dab95206d7343c0c183427472842106f341d26feea84189f032499dbb1d5c955ae88a348fd806a09003b8fc0b46cd14e41fadf94de
7
- data.tar.gz: 976b17fa42e6ba9dd0c02506097af5a0ac32b50155024a70cd9fa831f905ab5909caa9b0fec62ce96f86fd347271d8d39587e99d2a39805287280b42d4480695
6
+ metadata.gz: 71fbfbc27bb0f5f6e9064fb1001b83e9125617b6b373641ab2528489f3d68c3a274830465a73663a01da40105cb5d6daa50cbc9aca48680f37fa0428255bb45b
7
+ data.tar.gz: cde8bcbad074d0f8a096cc2e869473bec03b4febf09992a64ed40fa264e07488aa3438d0e4c8aaa3991174d3b90bfa95f108498b65b94713a9c00634eab5d757
@@ -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.6.22'
19
+ version = '0.6.23'
20
20
 
21
21
  ext {
22
22
  jrubyVersion = '1.7.21'
@@ -4,5 +4,5 @@ import java.util.Map;
4
4
 
5
5
  public interface LiquidTemplate
6
6
  {
7
- public String render(String source, Map<String, String> params);
7
+ String render(String source, Map<String, String> params);
8
8
  }
@@ -4,26 +4,26 @@ public interface CommitReport
4
4
  extends DataSource
5
5
  {
6
6
  @Override
7
- public CommitReport getNested(String attrName);
7
+ CommitReport getNested(String attrName);
8
8
 
9
9
  @Override
10
- public CommitReport getNestedOrSetEmpty(String attrName);
10
+ CommitReport getNestedOrSetEmpty(String attrName);
11
11
 
12
12
  @Override
13
- public CommitReport set(String attrName, Object v);
13
+ CommitReport set(String attrName, Object v);
14
14
 
15
15
  @Override
16
- public CommitReport setNested(String attrName, DataSource v);
16
+ CommitReport setNested(String attrName, DataSource v);
17
17
 
18
18
  @Override
19
- public CommitReport setAll(DataSource other);
19
+ CommitReport setAll(DataSource other);
20
20
 
21
21
  @Override
22
- public CommitReport remove(String attrName);
22
+ CommitReport remove(String attrName);
23
23
 
24
24
  @Override
25
- public CommitReport deepCopy();
25
+ CommitReport deepCopy();
26
26
 
27
27
  @Override
28
- public CommitReport merge(DataSource other);
28
+ CommitReport merge(DataSource other);
29
29
  }
@@ -4,26 +4,26 @@ public interface ConfigDiff
4
4
  extends DataSource
5
5
  {
6
6
  @Override
7
- public ConfigDiff getNested(String attrName);
7
+ ConfigDiff getNested(String attrName);
8
8
 
9
9
  @Override
10
- public ConfigDiff getNestedOrSetEmpty(String attrName);
10
+ ConfigDiff getNestedOrSetEmpty(String attrName);
11
11
 
12
12
  @Override
13
- public ConfigDiff set(String attrName, Object v);
13
+ ConfigDiff set(String attrName, Object v);
14
14
 
15
15
  @Override
16
- public ConfigDiff setNested(String attrName, DataSource v);
16
+ ConfigDiff setNested(String attrName, DataSource v);
17
17
 
18
18
  @Override
19
- public ConfigDiff setAll(DataSource other);
19
+ ConfigDiff setAll(DataSource other);
20
20
 
21
21
  @Override
22
- public ConfigDiff remove(String attrName);
22
+ ConfigDiff remove(String attrName);
23
23
 
24
24
  @Override
25
- public ConfigDiff deepCopy();
25
+ ConfigDiff deepCopy();
26
26
 
27
27
  @Override
28
- public ConfigDiff merge(DataSource other);
28
+ ConfigDiff merge(DataSource other);
29
29
  }
@@ -3,29 +3,29 @@ package org.embulk.config;
3
3
  public interface ConfigSource
4
4
  extends DataSource
5
5
  {
6
- public <T> T loadConfig(Class<T> taskType);
6
+ <T> T loadConfig(Class<T> taskType);
7
7
 
8
8
  @Override
9
- public ConfigSource getNested(String attrName);
9
+ ConfigSource getNested(String attrName);
10
10
 
11
11
  @Override
12
- public ConfigSource getNestedOrSetEmpty(String attrName);
12
+ ConfigSource getNestedOrSetEmpty(String attrName);
13
13
 
14
14
  @Override
15
- public ConfigSource set(String attrName, Object v);
15
+ ConfigSource set(String attrName, Object v);
16
16
 
17
17
  @Override
18
- public ConfigSource setNested(String attrName, DataSource v);
18
+ ConfigSource setNested(String attrName, DataSource v);
19
19
 
20
20
  @Override
21
- public ConfigSource setAll(DataSource other);
21
+ ConfigSource setAll(DataSource other);
22
22
 
23
23
  @Override
24
- public ConfigSource remove(String attrName);
24
+ ConfigSource remove(String attrName);
25
25
 
26
26
  @Override
27
- public ConfigSource deepCopy();
27
+ ConfigSource deepCopy();
28
28
 
29
29
  @Override
30
- public ConfigSource merge(DataSource other);
30
+ ConfigSource merge(DataSource other);
31
31
  }
@@ -7,33 +7,33 @@ import com.fasterxml.jackson.databind.node.ObjectNode;
7
7
 
8
8
  public interface DataSource
9
9
  {
10
- public List<String> getAttributeNames();
10
+ List<String> getAttributeNames();
11
11
 
12
- public Iterable<Map.Entry<String, JsonNode>> getAttributes();
12
+ Iterable<Map.Entry<String, JsonNode>> getAttributes();
13
13
 
14
- public boolean isEmpty();
14
+ boolean isEmpty();
15
15
 
16
- public boolean has(String attrName);
16
+ boolean has(String attrName);
17
17
 
18
- public <E> E get(Class<E> type, String attrName);
18
+ <E> E get(Class<E> type, String attrName);
19
19
 
20
- public <E> E get(Class<E> type, String attrName, E defaultValue);
20
+ <E> E get(Class<E> type, String attrName, E defaultValue);
21
21
 
22
- public DataSource getNested(String attrName);
22
+ DataSource getNested(String attrName);
23
23
 
24
- public DataSource getNestedOrSetEmpty(String attrName);
24
+ DataSource getNestedOrSetEmpty(String attrName);
25
25
 
26
- public DataSource set(String attrName, Object v);
26
+ DataSource set(String attrName, Object v);
27
27
 
28
- public DataSource setNested(String attrName, DataSource v);
28
+ DataSource setNested(String attrName, DataSource v);
29
29
 
30
- public DataSource setAll(DataSource other);
30
+ DataSource setAll(DataSource other);
31
31
 
32
- public DataSource remove(String attrName);
32
+ DataSource remove(String attrName);
33
33
 
34
- public DataSource deepCopy();
34
+ DataSource deepCopy();
35
35
 
36
- public DataSource merge(DataSource other);
36
+ DataSource merge(DataSource other);
37
37
 
38
- public ObjectNode getObjectNode();
38
+ ObjectNode getObjectNode();
39
39
  }
@@ -2,9 +2,9 @@ package org.embulk.config;
2
2
 
3
3
  public interface Task
4
4
  {
5
- public void validate();
5
+ void validate();
6
6
  // TODO public void validateConfig();
7
7
  // ConfigSource.loadTask calls validateConfig and it validates only fields that have Config annotation
8
8
 
9
- public TaskSource dump();
9
+ TaskSource dump();
10
10
  }
@@ -3,29 +3,29 @@ package org.embulk.config;
3
3
  public interface TaskSource
4
4
  extends DataSource
5
5
  {
6
- public <T> T loadTask(Class<T> taskType);
6
+ <T> T loadTask(Class<T> taskType);
7
7
 
8
8
  @Override
9
- public TaskSource getNested(String attrName);
9
+ TaskSource getNested(String attrName);
10
10
 
11
11
  @Override
12
- public TaskSource getNestedOrSetEmpty(String attrName);
12
+ TaskSource getNestedOrSetEmpty(String attrName);
13
13
 
14
14
  @Override
15
- public TaskSource set(String attrName, Object v);
15
+ TaskSource set(String attrName, Object v);
16
16
 
17
17
  @Override
18
- public TaskSource setNested(String attrName, DataSource v);
18
+ TaskSource setNested(String attrName, DataSource v);
19
19
 
20
20
  @Override
21
- public TaskSource setAll(DataSource other);
21
+ TaskSource setAll(DataSource other);
22
22
 
23
23
  @Override
24
- public TaskSource remove(String attrName);
24
+ TaskSource remove(String attrName);
25
25
 
26
26
  @Override
27
- public TaskSource deepCopy();
27
+ TaskSource deepCopy();
28
28
 
29
29
  @Override
30
- public TaskSource merge(DataSource other);
30
+ TaskSource merge(DataSource other);
31
31
  }
@@ -74,8 +74,6 @@ public final class LifeCycleManager
74
74
 
75
75
  /**
76
76
  * Start the life cycle - all instances will have their {@link javax.annotation.PostConstruct} method(s) called
77
- *
78
- * @throws Exception errors
79
77
  */
80
78
  public void start()
81
79
  {
@@ -146,7 +144,9 @@ public final class LifeCycleManager
146
144
  }
147
145
 
148
146
  /**
149
- * Return true if state is {@link destroy} is called
147
+ * Return true if {@link destroy} is called
148
+ *
149
+ * @return true if already destroyed
150
150
  */
151
151
  public boolean isDestroyed()
152
152
  {
@@ -5,5 +5,5 @@ import java.net.URL;
5
5
 
6
6
  public interface PluginClassLoaderFactory
7
7
  {
8
- public PluginClassLoader create(Collection<URL> urls, ClassLoader parentClassLoader);
8
+ PluginClassLoader create(Collection<URL> urls, ClassLoader parentClassLoader);
9
9
  }
@@ -2,5 +2,5 @@ package org.embulk.plugin;
2
2
 
3
3
  public interface PluginSource
4
4
  {
5
- public <T> T newPlugin(Class<T> iface, PluginType type) throws PluginSourceNotMatchException;
5
+ <T> T newPlugin(Class<T> iface, PluginType type) throws PluginSourceNotMatchException;
6
6
  }
@@ -2,7 +2,7 @@ package org.embulk.spi;
2
2
 
3
3
  public interface BufferAllocator
4
4
  {
5
- public Buffer allocate();
5
+ Buffer allocate();
6
6
 
7
- public Buffer allocate(int minimumCapacity);
7
+ Buffer allocate(int minimumCapacity);
8
8
  }
@@ -2,13 +2,13 @@ package org.embulk.spi;
2
2
 
3
3
  public interface ColumnVisitor
4
4
  {
5
- public void booleanColumn(Column column);
5
+ void booleanColumn(Column column);
6
6
 
7
- public void longColumn(Column column);
7
+ void longColumn(Column column);
8
8
 
9
- public void doubleColumn(Column column);
9
+ void doubleColumn(Column column);
10
10
 
11
- public void stringColumn(Column column);
11
+ void stringColumn(Column column);
12
12
 
13
- public void timestampColumn(Column column);
13
+ void timestampColumn(Column column);
14
14
  }
@@ -5,12 +5,12 @@ import org.embulk.config.ConfigSource;
5
5
 
6
6
  public interface DecoderPlugin
7
7
  {
8
- public interface Control
8
+ interface Control
9
9
  {
10
- public void run(TaskSource taskSource);
10
+ void run(TaskSource taskSource);
11
11
  }
12
12
 
13
- public void transaction(ConfigSource config, DecoderPlugin.Control control);
13
+ void transaction(ConfigSource config, DecoderPlugin.Control control);
14
14
 
15
- public FileInput open(TaskSource taskSource, FileInput input);
15
+ FileInput open(TaskSource taskSource, FileInput input);
16
16
  }
@@ -5,12 +5,12 @@ import org.embulk.config.ConfigSource;
5
5
 
6
6
  public interface EncoderPlugin
7
7
  {
8
- public interface Control
8
+ interface Control
9
9
  {
10
- public void run(TaskSource taskSource);
10
+ void run(TaskSource taskSource);
11
11
  }
12
12
 
13
- public void transaction(ConfigSource config, EncoderPlugin.Control control);
13
+ void transaction(ConfigSource config, EncoderPlugin.Control control);
14
14
 
15
- public FileOutput open(TaskSource taskSource, FileOutput fileOutput);
15
+ FileOutput open(TaskSource taskSource, FileOutput fileOutput);
16
16
  }
@@ -2,5 +2,5 @@ package org.embulk.spi;
2
2
 
3
3
  public interface ExecAction <T>
4
4
  {
5
- public T run() throws Exception;
5
+ T run() throws Exception;
6
6
  }
@@ -4,16 +4,16 @@ import org.embulk.config.ConfigSource;
4
4
 
5
5
  public interface ExecutorPlugin
6
6
  {
7
- public interface Executor
7
+ interface Executor
8
8
  {
9
- public void execute(ProcessTask task, ProcessState state);
9
+ void execute(ProcessTask task, ProcessState state);
10
10
  }
11
11
 
12
- public interface Control
12
+ interface Control
13
13
  {
14
- public void transaction(Schema executorSchema, int outputTaskCount, Executor executor);
14
+ void transaction(Schema executorSchema, int outputTaskCount, Executor executor);
15
15
  }
16
16
 
17
- public void transaction(ConfigSource config, Schema outputSchema, int inputTaskCount,
17
+ void transaction(ConfigSource config, Schema outputSchema, int inputTaskCount,
18
18
  ExecutorPlugin.Control control);
19
19
  }
@@ -40,5 +40,5 @@ import org.embulk.config.ConfigSource;
40
40
  */
41
41
  public interface Extension
42
42
  {
43
- public List<Module> getModules(ConfigSource systemConfig);
43
+ List<Module> getModules(ConfigSource systemConfig);
44
44
  }
@@ -3,9 +3,9 @@ package org.embulk.spi;
3
3
  public interface FileInput
4
4
  extends AutoCloseable
5
5
  {
6
- public boolean nextFile();
6
+ boolean nextFile();
7
7
 
8
- public Buffer poll();
8
+ Buffer poll();
9
9
 
10
- public void close();
10
+ void close();
11
11
  }
@@ -8,23 +8,23 @@ import org.embulk.config.CommitReport;
8
8
 
9
9
  public interface FileInputPlugin
10
10
  {
11
- public interface Control
11
+ interface Control
12
12
  {
13
- public List<CommitReport> run(TaskSource taskSource,
13
+ List<CommitReport> run(TaskSource taskSource,
14
14
  int taskCount);
15
15
  }
16
16
 
17
- public ConfigDiff transaction(ConfigSource config,
17
+ ConfigDiff transaction(ConfigSource config,
18
18
  FileInputPlugin.Control control);
19
19
 
20
- public ConfigDiff resume(TaskSource taskSource,
20
+ ConfigDiff resume(TaskSource taskSource,
21
21
  int taskCount,
22
22
  FileInputPlugin.Control control);
23
23
 
24
- public void cleanup(TaskSource taskSource,
24
+ void cleanup(TaskSource taskSource,
25
25
  int taskCount,
26
26
  List<CommitReport> successCommitReports);
27
27
 
28
- public TransactionalFileInput open(TaskSource taskSource,
28
+ TransactionalFileInput open(TaskSource taskSource,
29
29
  int taskIndex);
30
30
  }
@@ -3,11 +3,11 @@ package org.embulk.spi;
3
3
  public interface FileOutput
4
4
  extends AutoCloseable
5
5
  {
6
- public void nextFile();
6
+ void nextFile();
7
7
 
8
- public void add(Buffer buffer);
8
+ void add(Buffer buffer);
9
9
 
10
- public void finish();
10
+ void finish();
11
11
 
12
- public void close();
12
+ void close();
13
13
  }
@@ -8,21 +8,21 @@ import org.embulk.config.CommitReport;
8
8
 
9
9
  public interface FileOutputPlugin
10
10
  {
11
- public interface Control
11
+ interface Control
12
12
  {
13
- public List<CommitReport> run(TaskSource taskSource);
13
+ List<CommitReport> run(TaskSource taskSource);
14
14
  }
15
15
 
16
- public ConfigDiff transaction(ConfigSource config, int taskCount,
16
+ ConfigDiff transaction(ConfigSource config, int taskCount,
17
17
  FileOutputPlugin.Control control);
18
18
 
19
- public ConfigDiff resume(TaskSource taskSource,
19
+ ConfigDiff resume(TaskSource taskSource,
20
20
  int taskCount,
21
21
  FileOutputPlugin.Control control);
22
22
 
23
- public void cleanup(TaskSource taskSource,
23
+ void cleanup(TaskSource taskSource,
24
24
  int taskCount,
25
25
  List<CommitReport> successCommitReports);
26
26
 
27
- public TransactionalFileOutput open(TaskSource taskSource, int taskIndex);
27
+ TransactionalFileOutput open(TaskSource taskSource, int taskIndex);
28
28
  }
@@ -8,14 +8,14 @@ import org.embulk.config.CommitReport;
8
8
 
9
9
  public interface FilterPlugin
10
10
  {
11
- public interface Control
11
+ interface Control
12
12
  {
13
- public void run(TaskSource taskSource, Schema outputSchema);
13
+ void run(TaskSource taskSource, Schema outputSchema);
14
14
  }
15
15
 
16
- public void transaction(ConfigSource config, Schema inputSchema,
16
+ void transaction(ConfigSource config, Schema inputSchema,
17
17
  FilterPlugin.Control control);
18
18
 
19
- public PageOutput open(TaskSource taskSource, Schema inputSchema,
19
+ PageOutput open(TaskSource taskSource, Schema inputSchema,
20
20
  Schema outputSchema, PageOutput output);
21
21
  }
@@ -5,14 +5,14 @@ import org.embulk.config.ConfigSource;
5
5
 
6
6
  public interface FormatterPlugin
7
7
  {
8
- public interface Control
8
+ interface Control
9
9
  {
10
- public void run(TaskSource taskSource);
10
+ void run(TaskSource taskSource);
11
11
  }
12
12
 
13
- public void transaction(ConfigSource config, Schema schema,
13
+ void transaction(ConfigSource config, Schema schema,
14
14
  FormatterPlugin.Control control);
15
15
 
16
- public PageOutput open(TaskSource taskSource, Schema schema,
16
+ PageOutput open(TaskSource taskSource, Schema schema,
17
17
  FileOutput output);
18
18
  }
@@ -5,5 +5,5 @@ import org.embulk.config.ConfigSource;
5
5
 
6
6
  public interface GuessPlugin
7
7
  {
8
- public ConfigDiff guess(ConfigSource config, Buffer sample);
8
+ ConfigDiff guess(ConfigSource config, Buffer sample);
9
9
  }
@@ -8,26 +8,26 @@ import org.embulk.config.CommitReport;
8
8
 
9
9
  public interface InputPlugin
10
10
  {
11
- public interface Control
11
+ interface Control
12
12
  {
13
- public List<CommitReport> run(TaskSource taskSource,
13
+ List<CommitReport> run(TaskSource taskSource,
14
14
  Schema schema, int taskCount);
15
15
  }
16
16
 
17
- public ConfigDiff transaction(ConfigSource config,
17
+ ConfigDiff transaction(ConfigSource config,
18
18
  InputPlugin.Control control);
19
19
 
20
- public ConfigDiff resume(TaskSource taskSource,
20
+ ConfigDiff resume(TaskSource taskSource,
21
21
  Schema schema, int taskCount,
22
22
  InputPlugin.Control control);
23
23
 
24
- public void cleanup(TaskSource taskSource,
24
+ void cleanup(TaskSource taskSource,
25
25
  Schema schema, int taskCount,
26
26
  List<CommitReport> successCommitReports);
27
27
 
28
- public CommitReport run(TaskSource taskSource,
28
+ CommitReport run(TaskSource taskSource,
29
29
  Schema schema, int taskIndex,
30
30
  PageOutput output);
31
31
 
32
- public ConfigDiff guess(ConfigSource config);
32
+ ConfigDiff guess(ConfigSource config);
33
33
  }
@@ -8,22 +8,22 @@ import org.embulk.config.CommitReport;
8
8
 
9
9
  public interface OutputPlugin
10
10
  {
11
- public interface Control
11
+ interface Control
12
12
  {
13
- public List<CommitReport> run(TaskSource taskSource);
13
+ List<CommitReport> run(TaskSource taskSource);
14
14
  }
15
15
 
16
- public ConfigDiff transaction(ConfigSource config,
16
+ ConfigDiff transaction(ConfigSource config,
17
17
  Schema schema, int taskCount,
18
18
  OutputPlugin.Control control);
19
19
 
20
- public ConfigDiff resume(TaskSource taskSource,
20
+ ConfigDiff resume(TaskSource taskSource,
21
21
  Schema schema, int taskCount,
22
22
  OutputPlugin.Control control);
23
23
 
24
- public void cleanup(TaskSource taskSource,
24
+ void cleanup(TaskSource taskSource,
25
25
  Schema schema, int taskCount,
26
26
  List<CommitReport> successCommitReports);
27
27
 
28
- public TransactionalPageOutput open(TaskSource taskSource, Schema schema, int taskIndex);
28
+ TransactionalPageOutput open(TaskSource taskSource, Schema schema, int taskIndex);
29
29
  }
@@ -3,9 +3,9 @@ package org.embulk.spi;
3
3
  public interface PageOutput
4
4
  extends AutoCloseable
5
5
  {
6
- public void add(Page page);
6
+ void add(Page page);
7
7
 
8
- public void finish();
8
+ void finish();
9
9
 
10
- public void close();
10
+ void close();
11
11
  }
@@ -5,13 +5,13 @@ import org.embulk.config.ConfigSource;
5
5
 
6
6
  public interface ParserPlugin
7
7
  {
8
- public interface Control
8
+ interface Control
9
9
  {
10
- public void run(TaskSource taskSource, Schema schema);
10
+ void run(TaskSource taskSource, Schema schema);
11
11
  }
12
12
 
13
- public void transaction(ConfigSource config, ParserPlugin.Control control);
13
+ void transaction(ConfigSource config, ParserPlugin.Control control);
14
14
 
15
- public void run(TaskSource taskSource, Schema schema,
15
+ void run(TaskSource taskSource, Schema schema,
16
16
  FileInput input, PageOutput output);
17
17
  }
@@ -2,9 +2,9 @@ package org.embulk.spi;
2
2
 
3
3
  public interface ProcessState
4
4
  {
5
- public void initialize(int inputTaskCount, int outputTaskCount);
5
+ void initialize(int inputTaskCount, int outputTaskCount);
6
6
 
7
- public TaskState getInputTaskState(int inputTaskIndex);
7
+ TaskState getInputTaskState(int inputTaskIndex);
8
8
 
9
- public TaskState getOutputTaskState(int outputTaskIndex);
9
+ TaskState getOutputTaskState(int outputTaskIndex);
10
10
  }
@@ -4,7 +4,7 @@ import org.embulk.config.CommitReport;
4
4
 
5
5
  public interface Transactional
6
6
  {
7
- public void abort();
7
+ void abort();
8
8
 
9
- public CommitReport commit();
9
+ CommitReport commit();
10
10
  }
@@ -5,13 +5,13 @@ import org.embulk.config.CommitReport;
5
5
  public interface TransactionalFileInput
6
6
  extends Transactional, FileInput
7
7
  {
8
- public Buffer poll();
8
+ Buffer poll();
9
9
 
10
- public boolean nextFile();
10
+ boolean nextFile();
11
11
 
12
- public void close();
12
+ void close();
13
13
 
14
- public void abort();
14
+ void abort();
15
15
 
16
- public CommitReport commit();
16
+ CommitReport commit();
17
17
  }
@@ -5,15 +5,15 @@ import org.embulk.config.CommitReport;
5
5
  public interface TransactionalFileOutput
6
6
  extends Transactional, FileOutput
7
7
  {
8
- public void nextFile();
8
+ void nextFile();
9
9
 
10
- public void add(Buffer buffer);
10
+ void add(Buffer buffer);
11
11
 
12
- public void finish();
12
+ void finish();
13
13
 
14
- public void close();
14
+ void close();
15
15
 
16
- public void abort();
16
+ void abort();
17
17
 
18
- public CommitReport commit();
18
+ CommitReport commit();
19
19
  }
@@ -5,13 +5,13 @@ import org.embulk.config.CommitReport;
5
5
  public interface TransactionalPageOutput
6
6
  extends Transactional, PageOutput
7
7
  {
8
- public void add(Page page);
8
+ void add(Page page);
9
9
 
10
- public void finish();
10
+ void finish();
11
11
 
12
- public void close();
12
+ void close();
13
13
 
14
- public void abort();
14
+ void abort();
15
15
 
16
- public CommitReport commit();
16
+ CommitReport commit();
17
17
  }
@@ -2,7 +2,7 @@ package org.embulk.spi.time;
2
2
 
3
3
  public interface JRubyTimeParserHelper
4
4
  {
5
- public long strptimeUsec(String text) throws TimestampParseException;
5
+ long strptimeUsec(String text) throws TimestampParseException;
6
6
 
7
- public String getZone();
7
+ String getZone();
8
8
  }
@@ -2,5 +2,5 @@ package org.embulk.spi.time;
2
2
 
3
3
  public interface JRubyTimeParserHelperFactory
4
4
  {
5
- public JRubyTimeParserHelper newInstance(String formatString, int year, int mon, int day, int hour, int min, int sec, int usec);
5
+ JRubyTimeParserHelper newInstance(String formatString, int year, int mon, int day, int hour, int min, int sec, int usec);
6
6
  }
@@ -7,9 +7,9 @@ import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
7
7
  public interface Type
8
8
  {
9
9
  @JsonValue
10
- public String getName();
10
+ String getName();
11
11
 
12
- public Class<?> getJavaType();
12
+ Class<?> getJavaType();
13
13
 
14
- public byte getFixedStorageSize();
14
+ byte getFixedStorageSize();
15
15
  }
@@ -4,15 +4,15 @@ import org.embulk.spi.time.Timestamp;
4
4
 
5
5
  public interface DynamicColumnSetter
6
6
  {
7
- public void setNull();
7
+ void setNull();
8
8
 
9
- public void set(boolean value);
9
+ void set(boolean value);
10
10
 
11
- public void set(long value);
11
+ void set(long value);
12
12
 
13
- public void set(double value);
13
+ void set(double value);
14
14
 
15
- public void set(String value);
15
+ void set(String value);
16
16
 
17
- public void set(Timestamp value);
17
+ void set(Timestamp value);
18
18
  }
@@ -6,13 +6,13 @@ import org.embulk.spi.time.Timestamp;
6
6
 
7
7
  public interface DefaultValueSetter
8
8
  {
9
- public void setBoolean(PageBuilder pageBuilder, Column c);
9
+ void setBoolean(PageBuilder pageBuilder, Column c);
10
10
 
11
- public void setLong(PageBuilder pageBuilder, Column c);
11
+ void setLong(PageBuilder pageBuilder, Column c);
12
12
 
13
- public void setDouble(PageBuilder pageBuilder, Column c);
13
+ void setDouble(PageBuilder pageBuilder, Column c);
14
14
 
15
- public void setString(PageBuilder pageBuilder, Column c);
15
+ void setString(PageBuilder pageBuilder, Column c);
16
16
 
17
- public void setTimestamp(PageBuilder pageBuilder, Column c);
17
+ void setTimestamp(PageBuilder pageBuilder, Column c);
18
18
  }
@@ -4,6 +4,7 @@ Release Notes
4
4
  .. toctree::
5
5
  :maxdepth: 1
6
6
 
7
+ release/release-0.6.23
7
8
  release/release-0.6.22
8
9
  release/release-0.6.21
9
10
  release/release-0.6.20
@@ -0,0 +1,17 @@
1
+ Release 0.6.23
2
+ ==================================
3
+
4
+ General Changes
5
+ ------------------
6
+
7
+ * Fixed ``LoadError: no such file to load -- liquid`` which happens when embulk is loaded by bundler.
8
+
9
+ Ruby Plugin API
10
+ ------------------
11
+
12
+ * ``Embulk::ConfigError`` extending ``org.embulk.config.ConfigException`` is reverted because of ``exception class/object expected`` error.
13
+
14
+
15
+ Release Date
16
+ ------------------
17
+ 2015-08-13
@@ -1,12 +1,6 @@
1
1
 
2
2
  module Embulk
3
- if java?
4
- config_exception = org.embulk.config.ConfigException
5
- else
6
- config_exception = StandardError
7
- end
8
-
9
- class ConfigError < config_exception
3
+ class ConfigError < StandardError
10
4
  end
11
5
 
12
6
  class PluginLoadError < StandardError
@@ -1,11 +1,10 @@
1
1
  module Embulk
2
2
  module Java
3
- require 'liquid'
4
-
5
3
  class LiquidTemplateHelper
6
4
  include org.embulk.command.LiquidTemplate
7
5
 
8
6
  def render(source, params)
7
+ require 'liquid'
9
8
  template = Liquid::Template.parse(source)
10
9
  data = {
11
10
  "env" => ENV.to_h,
@@ -1,3 +1,3 @@
1
1
  module Embulk
2
- VERSION = '0.6.22'
2
+ VERSION = '0.6.23'
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.6.22
4
+ version: 0.6.23
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-08-11 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -103,8 +103,8 @@ files:
103
103
  - classpath/bval-jsr303-0.5.jar
104
104
  - classpath/commons-beanutils-core-1.8.3.jar
105
105
  - classpath/commons-lang3-3.1.jar
106
- - classpath/embulk-core-0.6.22.jar
107
- - classpath/embulk-standards-0.6.22.jar
106
+ - classpath/embulk-core-0.6.23.jar
107
+ - classpath/embulk-standards-0.6.23.jar
108
108
  - classpath/guava-18.0.jar
109
109
  - classpath/guice-4.0.jar
110
110
  - classpath/guice-multibindings-4.0.jar
@@ -382,6 +382,7 @@ files:
382
382
  - embulk-docs/src/release/release-0.6.20.rst
383
383
  - embulk-docs/src/release/release-0.6.21.rst
384
384
  - embulk-docs/src/release/release-0.6.22.rst
385
+ - embulk-docs/src/release/release-0.6.23.rst
385
386
  - embulk-docs/src/release/release-0.6.3.rst
386
387
  - embulk-docs/src/release/release-0.6.4.rst
387
388
  - embulk-docs/src/release/release-0.6.5.rst