File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -449,8 +449,29 @@ $ embulk run -X page_size=1 -b . -l trace example/example.yml
449
449
450
450
Place your embulk with `.jar` extension:
451
451
452
+
453
+ ```
454
+ $ curl -o embulk.jar --create-dirs -L "http://dl.embulk.org/embulk-latest.jar "
455
+ $ chmod a+x embulk.jar
456
+ ```
457
+
458
+ Investigate JRUBY\_VERSION included in the embulk.jar:
459
+
460
+ ```
461
+ $ echo JRUBY_VERSION | ./embulk.jar irb
462
+ 2019-08-10 00:59:11.866 +0900: Embulk v0.9.17
463
+ Switch to inspect mode.
464
+ JRUBY_VERSION
465
+ "X.X.X.X"
466
+ ```
467
+
468
+ Install the same version of jruby (change X.X.X.X to the version shown above):
469
+
452
470
```
453
- $ cp -a $(which embulk) embulk.jar
471
+ $ rbenv install jruby-X.X.X.X
472
+ $ rbenv local jruby-X.X.X.X
473
+ $ gem install bundler
474
+ $ bundle install
454
475
```
455
476
456
477
Run tests with `env RUBYOPT="-r ./embulk.jar`:
Original file line number Diff line number Diff line change 7
7
begin
8
8
# Embulk ~> 0.8.x
9
9
Embulk . setup
10
- rescue NotImplementedError
10
+ rescue NotImplementedError , NoMethodError , NameError
11
11
# Embulk ~> 0.9.x
12
12
require 'embulk/java/bootstrap'
13
13
end
You can’t perform that action at this time.
0 commit comments