embulk 0.8.32-java → 0.8.33-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/embulk +5 -28
- data/build.gradle +4 -13
- data/embulk-cli/src/main/bat/{selfrun.bat.template → selfrun.bat} +6 -57
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkCommandLine.java +3 -0
- data/embulk-cli/src/main/java/org/embulk/cli/EmbulkRun.java +15 -2
- data/embulk-cli/src/main/sh/{selfrun.sh.template → selfrun.sh} +7 -40
- data/embulk-cli/src/test/java/org/embulk/cli/SelfrunTest.java +3 -7
- data/embulk-core/src/main/java/org/embulk/jruby/JRubyScriptingModule.java +15 -9
- data/embulk-docs/src/release.rst +1 -0
- data/embulk-docs/src/release/release-0.8.33.rst +13 -0
- data/lib/embulk/version.rb +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd96601a8c321a46fc090e7072d14fd0a529e1b5
|
4
|
+
data.tar.gz: a9ce23a6473b3cfa3812231fd45cc7ca9869c7d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7068bb0463ac5d8e6f44bd9fa3bd564a83d4efe835a12eca9b18a4d7964d66f9dfb57efa2b3e8a453bf243c5956de28da7ccd010c0dcc9d1551ae2703d77200
|
7
|
+
data.tar.gz: 8d103a47eaec288a1df2036aa48437fe7f2d88f2cea4746d05684510bc688e346f1bd2969298332b8bccabdc22f5e0d483104b70dcd5ba5833e85961baa8e60e
|
data/bin/embulk
CHANGED
@@ -15,34 +15,6 @@ if RUBY_PLATFORM =~ /java/i
|
|
15
15
|
# bin/embulk is started by CRuby (embulk gem for CRuby is installed), and re-run by JRuby at the end of the script.
|
16
16
|
# Bundler may be enabled in this path.
|
17
17
|
ENV.delete('EMBULK_BIN_ENABLE_BUNDLE')
|
18
|
-
|
19
|
-
# Handle environment variables before initializing the global JRuby instance in org.embulk.EmbulkRunner.
|
20
|
-
# See: https://github.com/embulk/embulk/pull/604
|
21
|
-
|
22
|
-
bundle_path = ENV['EMBULK_BUNDLE_PATH'].to_s
|
23
|
-
bundle_path = nil if bundle_path.empty?
|
24
|
-
|
25
|
-
# The -b or --bundle option are processed in org.embulk.EmbulkRunner. The option should be kept.
|
26
|
-
bundle_option_index = ARGV.find_index {|arg| arg == '-b' || arg == '--bundle' }
|
27
|
-
if bundle_option_index
|
28
|
-
bundle_path = ARGV[bundle_option_index + 1]
|
29
|
-
end
|
30
|
-
|
31
|
-
if bundle_path
|
32
|
-
ENV['EMBULK_BUNDLE_PATH'] = bundle_path
|
33
|
-
ENV['BUNDLE_GEMFILE'] = File.expand_path File.join(bundle_path, "Gemfile")
|
34
|
-
ENV.delete('GEM_HOME')
|
35
|
-
ENV.delete('GEM_PATH')
|
36
|
-
else
|
37
|
-
ENV.delete('EMBULK_BUNDLE_PATH')
|
38
|
-
user_home = java.lang.System.properties["user.home"] || ENV['HOME']
|
39
|
-
unless user_home
|
40
|
-
raise "HOME environment variable is not set."
|
41
|
-
end
|
42
|
-
ENV['GEM_HOME'] = File.expand_path File.join(user_home, '.embulk', Gem.ruby_engine, RbConfig::CONFIG['ruby_version'])
|
43
|
-
ENV['GEM_PATH'] = ''
|
44
|
-
ENV.delete('BUNDLE_GEMFILE')
|
45
|
-
end
|
46
18
|
else
|
47
19
|
# bin/embulk is started by JRuby (embulk gem for JRuby is installed).
|
48
20
|
# Bundler must be disabled in this path not to bother the JRuby's bundler.
|
@@ -76,6 +48,11 @@ overwrite_optimize = nil
|
|
76
48
|
until ARGV.empty?
|
77
49
|
v = ARGV[0]
|
78
50
|
case v
|
51
|
+
when /-E(.*)/
|
52
|
+
external_script = v[2..-1]
|
53
|
+
STDERR.puts "Running an external Ruby script: #{external_script}"
|
54
|
+
load external_script
|
55
|
+
ARGV.shift
|
79
56
|
when "-J+O"
|
80
57
|
overwrite_optimize = true
|
81
58
|
ARGV.shift
|
data/build.gradle
CHANGED
@@ -24,7 +24,7 @@ def release_projects = [project(":embulk-core"), project(":embulk-standards"), p
|
|
24
24
|
|
25
25
|
allprojects {
|
26
26
|
group = 'org.embulk'
|
27
|
-
version = '0.8.
|
27
|
+
version = '0.8.33'
|
28
28
|
|
29
29
|
ext {
|
30
30
|
jrubyVersion = '9.1.5.0'
|
@@ -217,27 +217,18 @@ task classpath(dependsOn: ['build', ':embulk-cli:classpath']) { doLast {} }
|
|
217
217
|
|
218
218
|
clean { delete 'classpath' }
|
219
219
|
|
220
|
-
//
|
221
|
-
// Gets RbConfig::CONFIG['ruby_version'] from the same version of JRuby with Embulk's embedded.
|
222
|
-
//
|
223
|
-
task retrieveRubyVersion(type: JRubyExec) {
|
224
|
-
standardOutput = new ByteArrayOutputStream()
|
225
|
-
jrubyArgs '-e', "print RbConfig::CONFIG['ruby_version']"
|
226
|
-
}
|
227
|
-
|
228
220
|
//
|
229
221
|
// cli task
|
230
222
|
//
|
231
|
-
task cli(dependsOn:
|
223
|
+
task cli(dependsOn: ':embulk-cli:shadowJar') {
|
232
224
|
doLast {
|
233
|
-
def rubyVersion = retrieveRubyVersion.standardOutput.toString().trim()
|
234
225
|
file('pkg').mkdirs()
|
235
226
|
File f = file("pkg/embulk-${project.version}.jar")
|
236
227
|
f.write("")
|
237
228
|
f.append("\n: <<END_OF_EMBULK_SELFRUN_BATCH_PART\r\n")
|
238
|
-
f.append(file("embulk-cli/src/main/bat/selfrun.bat
|
229
|
+
f.append(file("embulk-cli/src/main/bat/selfrun.bat").readBytes())
|
239
230
|
f.append("\r\nEND_OF_EMBULK_SELFRUN_BATCH_PART\r\n\n")
|
240
|
-
f.append(file("embulk-cli/src/main/sh/selfrun.sh
|
231
|
+
f.append(file("embulk-cli/src/main/sh/selfrun.sh").readBytes())
|
241
232
|
f.append(file("embulk-cli/build/libs/embulk-cli-${project.version}-all.jar").readBytes())
|
242
233
|
f.setExecutable(true)
|
243
234
|
}
|
@@ -33,59 +33,6 @@ if "%overwrite_optimize%" == "true" (
|
|
33
33
|
)
|
34
34
|
)
|
35
35
|
|
36
|
-
setlocal enabledelayedexpansion
|
37
|
-
|
38
|
-
set found_bundle_option=0
|
39
|
-
|
40
|
-
for %%a in (%*) do (
|
41
|
-
if %%a == -b (
|
42
|
-
set found_bundle_option=1
|
43
|
-
) else if %%a == --bundle (
|
44
|
-
set found_bundle_option=1
|
45
|
-
) else if !found_bundle_option! == 1 (
|
46
|
-
set embulk_bundle_path=%%a
|
47
|
-
set found_bundle_option=2
|
48
|
-
)
|
49
|
-
)
|
50
|
-
|
51
|
-
endlocal && set EMBULK_BUNDLE_PATH=%embulk_bundle_path%
|
52
|
-
|
53
|
-
if not defined EMBULK_BUNDLE_PATH (
|
54
|
-
set EMBULK_BUNDLE_PATH=
|
55
|
-
set GEM_PATH=""
|
56
|
-
) else (
|
57
|
-
if not exist "%EMBULK_BUNDLE_PATH%\" (
|
58
|
-
echo Directory not found: "%EMBULK_BUNDLE_PATH%"
|
59
|
-
exit /b 1
|
60
|
-
)
|
61
|
-
set GEM_PATH=
|
62
|
-
)
|
63
|
-
|
64
|
-
setlocal enabledelayedexpansion
|
65
|
-
|
66
|
-
if not defined EMBULK_BUNDLE_PATH (
|
67
|
-
set bundle_gemfile=
|
68
|
-
) else (
|
69
|
-
call :get_absolute_path %EMBULK_BUNDLE_PATH%
|
70
|
-
set bundle_gemfile=!absolute_path!\Gemfile
|
71
|
-
if not exist !bundle_gemfile! (
|
72
|
-
echo Gemfile not found: "!bundle_gemfile!"
|
73
|
-
exit /b 1
|
74
|
-
)
|
75
|
-
)
|
76
|
-
|
77
|
-
endlocal && set BUNDLE_GEMFILE=%bundle_gemfile%
|
78
|
-
|
79
|
-
setlocal enabledelayedexpansion
|
80
|
-
|
81
|
-
if not defined EMBULK_BUNDLE_PATH (
|
82
|
-
set gem_home=%USERPROFILE%\.embulk\jruby\<%= ruby_version %>
|
83
|
-
) else (
|
84
|
-
set gem_home=
|
85
|
-
)
|
86
|
-
|
87
|
-
endlocal && set GEM_HOME=%gem_home%
|
88
|
-
|
89
36
|
if "%optimize%" == "true" (
|
90
37
|
set java_args=-XX:+AggressiveOpts -XX:+UseConcMarkSweepGC %java_args%
|
91
38
|
) else (
|
@@ -114,6 +61,12 @@ if "%status%" == "rest" (
|
|
114
61
|
) else if "%status%" == "read" (
|
115
62
|
call :read_file %arg%
|
116
63
|
|
64
|
+
) else if "%arg:~0,2%" == "-E" (
|
65
|
+
if not "%arg:~2%" == "" (
|
66
|
+
echo Running an external batch file: %arg:~2%
|
67
|
+
call %arg:~2%
|
68
|
+
)
|
69
|
+
|
117
70
|
) else if "%arg%" == "-J+O" (
|
118
71
|
set overwrite_optimize=true
|
119
72
|
set status=rest
|
@@ -152,7 +105,3 @@ if not exist "%~1" (
|
|
152
105
|
)
|
153
106
|
set status=
|
154
107
|
exit /b
|
155
|
-
|
156
|
-
:get_absolute_path
|
157
|
-
set absolute_path=%~f1
|
158
|
-
exit /b
|
@@ -62,6 +62,9 @@ public class EmbulkCommandLine
|
|
62
62
|
"jruby_load_path",
|
63
63
|
Paths.get(oneJRubyLoadPathToAddLib).resolve("lib").toString());
|
64
64
|
}
|
65
|
+
if (this.bundlePath == null) {
|
66
|
+
systemConfigJRubyLoadPath.put("jruby_use_default_embulk_gem_home", "true");
|
67
|
+
}
|
65
68
|
return new EmbulkCommandLine(
|
66
69
|
this.arguments,
|
67
70
|
systemConfigJRubyLoadPath,
|
@@ -693,7 +693,6 @@ public class EmbulkRun
|
|
693
693
|
|
694
694
|
private void printGeneralUsage(final PrintStream out)
|
695
695
|
{
|
696
|
-
final String gemHomeEnv = System.getenv("GEM_HOME");
|
697
696
|
out.println("Embulk v" + this.embulkVersion);
|
698
697
|
out.println("Usage: embulk [-vm-options] <command> [--options]");
|
699
698
|
out.println("Commands:");
|
@@ -704,13 +703,15 @@ public class EmbulkRun
|
|
704
703
|
out.println(" preview <config.yml> # dry-run the bulk load without output and show preview.");
|
705
704
|
out.println(" guess <partial-config.yml> -o <output.yml> # guess missing parameters to create a complete configuration file.");
|
706
705
|
out.println(" gem <install | list | help> # install a plugin or show installed plugins.");
|
707
|
-
out.println(" # plugin path is " + (gemHomeEnv == null ? "(empty)" : gemHomeEnv));
|
708
706
|
out.println(" new <category> <name> # generates new plugin template");
|
709
707
|
out.println(" migrate <path> # modify plugin code to use the latest Embulk plugin API");
|
710
708
|
out.println(" example [path] # creates an example config file and csv file to try embulk.");
|
711
709
|
out.println(" selfupdate [version] # upgrades embulk to the latest released version or to the specified version.");
|
712
710
|
out.println("");
|
713
711
|
out.println("VM options:");
|
712
|
+
out.println(" -E... Run an external script to configure environment variables in JVM");
|
713
|
+
out.println(" (Operations not just setting envs are not recommended nor guaranteed.");
|
714
|
+
out.println(" Expect side effects by running your external script at your own risk.)");
|
714
715
|
out.println(" -J-O Disable JVM optimizations to speed up startup time (enabled by default if command is 'run')");
|
715
716
|
out.println(" -J+O Enable JVM optimizations to speed up throughput");
|
716
717
|
out.println(" -J... Set JVM options (use -J-help to see available options)");
|
@@ -730,12 +731,24 @@ public class EmbulkRun
|
|
730
731
|
// Not |LocalContextScope.SINGLETON| to narrow down considerations.
|
731
732
|
final ScriptingContainer localJRubyContainer =
|
732
733
|
new ScriptingContainer(LocalContextScope.SINGLETHREAD, LocalVariableBehavior.PERSISTENT);
|
734
|
+
|
735
|
+
// NOTE: Same done in JRubyScriptingModule.
|
736
|
+
// Remember to update |org.embulk.jruby.JRubyScriptingModule| when these environment variables are changed.
|
737
|
+
localJRubyContainer.runScriptlet("ENV.delete('BUNDLE_GEMFILE')");
|
738
|
+
localJRubyContainer.runScriptlet("ENV['GEM_HOME'] = File.expand_path File.join(Java::java.lang.System.properties['user.home'], '.embulk', Gem.ruby_engine, RbConfig::CONFIG['ruby_version'])");
|
739
|
+
localJRubyContainer.runScriptlet("ENV['GEM_PATH'] = ''");
|
740
|
+
|
733
741
|
return localJRubyContainer;
|
734
742
|
}
|
735
743
|
|
736
744
|
private void callJRubyGem(final List<String> subcommandArguments)
|
737
745
|
{
|
738
746
|
final ScriptingContainer localJRubyContainer = createLocalJRubyScriptingContainer();
|
747
|
+
|
748
|
+
localJRubyContainer.runScriptlet("puts ''");
|
749
|
+
localJRubyContainer.runScriptlet("puts 'Gem plugin path is: %s' % (ENV.has_key?('GEM_HOME') ? ENV['GEM_HOME'] : '(empty)')");
|
750
|
+
localJRubyContainer.runScriptlet("puts ''");
|
751
|
+
|
739
752
|
localJRubyContainer.runScriptlet("require 'rubygems/gem_runner'");
|
740
753
|
localJRubyContainer.put("__internal_argv_java__", subcommandArguments);
|
741
754
|
localJRubyContainer.runScriptlet("Gem::GemRunner.new.run Array.new(__internal_argv_java__)");
|
@@ -5,6 +5,12 @@ overwrite_optimize=""
|
|
5
5
|
|
6
6
|
while true; do
|
7
7
|
case "$1" in
|
8
|
+
-E*)
|
9
|
+
external_script="${1#-E}"
|
10
|
+
echo "Running an external shell script: $external_script"
|
11
|
+
. $external_script
|
12
|
+
shift
|
13
|
+
;;
|
8
14
|
"-J+O")
|
9
15
|
overwrite_optimize="true"
|
10
16
|
shift
|
@@ -44,50 +50,11 @@ while true; do
|
|
44
50
|
esac
|
45
51
|
done
|
46
52
|
|
47
|
-
embulk_args="$@"
|
48
|
-
|
49
|
-
while [ $# -gt 0 ] ; do
|
50
|
-
case "$1" in
|
51
|
-
"-b" | "--bundle")
|
52
|
-
shift
|
53
|
-
EMBULK_BUNDLE_PATH="$1"
|
54
|
-
export EMBULK_BUNDLE_PATH
|
55
|
-
shift
|
56
|
-
break
|
57
|
-
;;
|
58
|
-
*)
|
59
|
-
shift
|
60
|
-
;;
|
61
|
-
esac
|
62
|
-
done
|
63
|
-
|
64
|
-
if test -z ${EMBULK_BUNDLE_PATH}; then
|
65
|
-
unset EMBULK_BUNDLE_PATH
|
66
|
-
unset BUNDLE_GEMFILE
|
67
|
-
GEM_HOME="`cd && pwd`/.embulk/jruby/<%= ruby_version %>"
|
68
|
-
export GEM_HOME
|
69
|
-
GEM_PATH=""
|
70
|
-
export GEM_PATH
|
71
|
-
else
|
72
|
-
if test ! -d ${EMBULK_BUNDLE_PATH}; then
|
73
|
-
echo "Directory not found: \"${EMBULK_BUNDLE_PATH}\""
|
74
|
-
exit 127
|
75
|
-
fi
|
76
|
-
BUNDLE_GEMFILE="`cd ${EMBULK_BUNDLE_PATH} && pwd`/Gemfile"
|
77
|
-
if test ! -f ${BUNDLE_GEMFILE}; then
|
78
|
-
echo "Gemfile not found: \"${BUNDLE_GEMFILE}\""
|
79
|
-
exit 127
|
80
|
-
fi
|
81
|
-
export BUNDLE_GEMFILE
|
82
|
-
unset GEM_HOME
|
83
|
-
unset GEM_PATH
|
84
|
-
fi
|
85
|
-
|
86
53
|
if test "$overwrite_optimize" = "true" -o "$default_optimize" -a "$overwrite_optimize" != "false"; then
|
87
54
|
java_args="-XX:+AggressiveOpts -XX:+UseConcMarkSweepGC $java_args"
|
88
55
|
else
|
89
56
|
java_args="-XX:+AggressiveOpts -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none $java_args"
|
90
57
|
fi
|
91
58
|
|
92
|
-
exec java $java_args -jar "$0" $jruby_args
|
59
|
+
exec java $java_args -jar "$0" $jruby_args "$@"
|
93
60
|
exit 127
|
@@ -40,11 +40,7 @@ public class SelfrunTest {
|
|
40
40
|
.replaceAll("java ",
|
41
41
|
"java -classpath "
|
42
42
|
+ classpath.getAbsolutePath().replaceAll("\\\\", "\\\\\\\\")
|
43
|
-
+ " org.embulk.cli.DummyMain ")
|
44
|
-
// The following version string emulates RbConfig::CONFIG["ruby_version"].
|
45
|
-
// RbConfig::CONFIG["ruby_version"] is different from org.jruby.runtime.Constants.RUBY_VERSION.
|
46
|
-
// https://github.com/jruby/jruby/blob/9.1.5.0/core/src/main/java/org/jruby/ext/rbconfig/RbConfigLibrary.java#L229-L235
|
47
|
-
.replace("<%= ruby_version %>", org.jruby.runtime.Constants.RUBY_MAJOR_VERSION + ".0");
|
43
|
+
+ " org.embulk.cli.DummyMain ");
|
48
44
|
|
49
45
|
// Modify selfrun so that arguments are written in 'args.txt' .
|
50
46
|
Files.write(fileSystem.getPath(testSelfrunFile.getAbsolutePath()),
|
@@ -292,9 +288,9 @@ public class SelfrunTest {
|
|
292
288
|
folder = new File(folder, "embulk-cli");
|
293
289
|
}
|
294
290
|
if (System.getProperty("file.separator").equals("\\")) {
|
295
|
-
return new File(new File(new File(new File(folder, "src"), "main"), "bat"), "selfrun.bat
|
291
|
+
return new File(new File(new File(new File(folder, "src"), "main"), "bat"), "selfrun.bat");
|
296
292
|
} else {
|
297
|
-
return new File(new File(new File(new File(folder, "src"), "main"), "sh"), "selfrun.sh
|
293
|
+
return new File(new File(new File(new File(folder, "src"), "main"), "sh"), "selfrun.sh");
|
298
294
|
}
|
299
295
|
}
|
300
296
|
}
|
@@ -56,6 +56,7 @@ public class JRubyScriptingModule
|
|
56
56
|
private final Injector injector;
|
57
57
|
private final boolean useGlobalRubyRuntime;
|
58
58
|
private final String gemHome;
|
59
|
+
private final boolean useDefaultEmbulkGemHome;
|
59
60
|
private final List<String> jrubyClasspath;
|
60
61
|
private final List<String> jrubyLoadPath;
|
61
62
|
private final List<String> jrubyOptions;
|
@@ -71,6 +72,8 @@ public class JRubyScriptingModule
|
|
71
72
|
this.useGlobalRubyRuntime = systemConfig.get(boolean.class, "use_global_ruby_runtime", false);
|
72
73
|
|
73
74
|
this.gemHome = systemConfig.get(String.class, "gem_home", null);
|
75
|
+
this.useDefaultEmbulkGemHome =
|
76
|
+
systemConfig.get(String.class, "jruby_use_default_embulk_gem_home", "false").equals("true");
|
74
77
|
|
75
78
|
// TODO get jruby-home from systemConfig to call jruby.container.setHomeDirectory
|
76
79
|
|
@@ -133,6 +136,13 @@ public class JRubyScriptingModule
|
|
133
136
|
{
|
134
137
|
LocalContextScope scope = (useGlobalRubyRuntime ? LocalContextScope.SINGLETON : LocalContextScope.SINGLETHREAD);
|
135
138
|
ScriptingContainer jruby = new ScriptingContainer(scope, LocalVariableBehavior.PERSISTENT);
|
139
|
+
if (this.useDefaultEmbulkGemHome) {
|
140
|
+
// NOTE: Same done in "gem", "exec", and "irb" subcommands.
|
141
|
+
// Remember to update |org.embulk.cli.EmbulkRun| as well when these environment variables are changed.
|
142
|
+
jruby.runScriptlet("ENV.delete('BUNDLE_GEMFILE')");
|
143
|
+
jruby.runScriptlet("ENV['GEM_HOME'] = File.expand_path File.join(Java::java.lang.System.properties['user.home'], '.embulk', Gem.ruby_engine, RbConfig::CONFIG['ruby_version'])");
|
144
|
+
jruby.runScriptlet("ENV['GEM_PATH'] = ''");
|
145
|
+
}
|
136
146
|
final RubyInstanceConfig jrubyInstanceConfig = jruby.getProvider().getRubyInstanceConfig();
|
137
147
|
for (final String jrubyOption : this.jrubyOptions) {
|
138
148
|
try {
|
@@ -250,14 +260,12 @@ public class JRubyScriptingModule
|
|
250
260
|
private void setBundlerPluginSourceDirectory(final ScriptingContainer jruby, final String directory)
|
251
261
|
{
|
252
262
|
if (directory != null) {
|
253
|
-
|
254
|
-
|
255
|
-
* ENV['BUNDLE_GEMFILE']: set for "ENV['EMBULK_BUNDLE_PATH']/Gemfile"
|
256
|
-
* ENV['GEM_HOME']: unset
|
257
|
-
* ENV['GEM_PATH']: unset
|
258
|
-
*/
|
263
|
+
jruby.put("__internal_bundler_plugin_source_directory__", directory);
|
264
|
+
jruby.runScriptlet("ENV['BUNDLE_GEMFILE'] = File.expand_path File.join(__internal_bundler_plugin_source_directory__, 'Gemfile')");
|
259
265
|
|
260
266
|
// bundler is included in embulk-core.jar
|
267
|
+
jruby.runScriptlet("ENV.delete('GEM_HOME')");
|
268
|
+
jruby.runScriptlet("ENV.delete('GEM_PATH')");
|
261
269
|
jruby.runScriptlet("Gem.clear_paths");
|
262
270
|
jruby.runScriptlet("require 'bundler'");
|
263
271
|
|
@@ -270,13 +278,11 @@ public class JRubyScriptingModule
|
|
270
278
|
// It can cause insecure injections.
|
271
279
|
//
|
272
280
|
// add bundle directory path to load local plugins at ./embulk
|
273
|
-
jruby.put("__internal_bundler_plugin_source_directory__", directory);
|
274
281
|
jruby.runScriptlet("$LOAD_PATH << File.expand_path(__internal_bundler_plugin_source_directory__)");
|
275
282
|
jruby.remove("__internal_bundler_plugin_source_directory__");
|
276
283
|
}
|
277
284
|
else {
|
278
|
-
/* Environment variables are set in
|
279
|
-
* ENV['EMBULK_BUNDLE_PATH']: unset
|
285
|
+
/* Environment variables are set in ScriptingContainerProvider#get():
|
280
286
|
* ENV['BUNDLE_GEMFILE']: unset
|
281
287
|
* ENV['GEM_HOME']: set for "~/.embulk/jruby/${ruby-version}"
|
282
288
|
* ENV['GEM_PATH']: set for ""
|
data/embulk-docs/src/release.rst
CHANGED
@@ -0,0 +1,13 @@
|
|
1
|
+
Release 0.8.33
|
2
|
+
==================================
|
3
|
+
|
4
|
+
General Changes
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Configure environment variables in JRuby again, instead of the selfrun scripts [#779]
|
8
|
+
* Add a CLI option "-E" running an external script to configure environment variables [#778] [#790]
|
9
|
+
|
10
|
+
|
11
|
+
Release Date
|
12
|
+
------------------
|
13
|
+
2017-09-15
|
data/lib/embulk/version.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module Embulk
|
4
4
|
@@warned = false
|
5
5
|
|
6
|
-
VERSION_INTERNAL = '0.8.
|
6
|
+
VERSION_INTERNAL = '0.8.33'
|
7
7
|
|
8
8
|
DEPRECATED_MESSAGE = 'Embulk::VERSION in (J)Ruby is deprecated. Use org.embulk.EmbulkVersion::VERSION instead. If this message is from a plugin, please tell this to the author of the plugin!'
|
9
9
|
def self.const_missing(name)
|
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.8.
|
4
|
+
version: 0.8.33
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -155,10 +155,10 @@ files:
|
|
155
155
|
- classpath/commons-compress-1.10.jar
|
156
156
|
- classpath/commons-lang-2.4.jar
|
157
157
|
- classpath/commons-lang3-3.4.jar
|
158
|
-
- classpath/embulk-cli-0.8.
|
159
|
-
- classpath/embulk-core-0.8.
|
160
|
-
- classpath/embulk-jruby-strptime-0.8.
|
161
|
-
- classpath/embulk-standards-0.8.
|
158
|
+
- classpath/embulk-cli-0.8.33.jar
|
159
|
+
- classpath/embulk-core-0.8.33.jar
|
160
|
+
- classpath/embulk-jruby-strptime-0.8.33.jar
|
161
|
+
- classpath/embulk-standards-0.8.33.jar
|
162
162
|
- classpath/guava-18.0.jar
|
163
163
|
- classpath/guice-4.0.jar
|
164
164
|
- classpath/guice-bootstrap-0.1.1.jar
|
@@ -192,7 +192,7 @@ files:
|
|
192
192
|
- classpath/validation-api-1.1.0.Final.jar
|
193
193
|
- classpath/velocity-1.7.jar
|
194
194
|
- embulk-cli/build.gradle
|
195
|
-
- embulk-cli/src/main/bat/selfrun.bat
|
195
|
+
- embulk-cli/src/main/bat/selfrun.bat
|
196
196
|
- embulk-cli/src/main/java/org/embulk/cli/EmbulkArguments.java
|
197
197
|
- embulk-cli/src/main/java/org/embulk/cli/EmbulkCommandLine.java
|
198
198
|
- embulk-cli/src/main/java/org/embulk/cli/EmbulkCommandLineException.java
|
@@ -213,7 +213,7 @@ files:
|
|
213
213
|
- embulk-cli/src/main/java/org/embulk/cli/parse/HelpMessageLineDefinition.java
|
214
214
|
- embulk-cli/src/main/java/org/embulk/cli/parse/OptionBehavior.java
|
215
215
|
- embulk-cli/src/main/java/org/embulk/cli/parse/OptionDefinition.java
|
216
|
-
- embulk-cli/src/main/sh/selfrun.sh
|
216
|
+
- embulk-cli/src/main/sh/selfrun.sh
|
217
217
|
- embulk-cli/src/test/java/org/embulk/cli/DummyMain.java
|
218
218
|
- embulk-cli/src/test/java/org/embulk/cli/SelfrunTest.java
|
219
219
|
- embulk-core/build.gradle
|
@@ -562,6 +562,7 @@ files:
|
|
562
562
|
- embulk-docs/src/release/release-0.8.30.rst
|
563
563
|
- embulk-docs/src/release/release-0.8.31.rst
|
564
564
|
- embulk-docs/src/release/release-0.8.32.rst
|
565
|
+
- embulk-docs/src/release/release-0.8.33.rst
|
565
566
|
- embulk-docs/src/release/release-0.8.4.rst
|
566
567
|
- embulk-docs/src/release/release-0.8.5.rst
|
567
568
|
- embulk-docs/src/release/release-0.8.6.rst
|