td 0.10.90 → 0.10.91
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/lib/td/command/import.rb +7 -2
- data/lib/td/version.rb +1 -1
- metadata +4 -4
data/ChangeLog
CHANGED
data/lib/td/command/import.rb
CHANGED
@@ -5,7 +5,6 @@ module Command
|
|
5
5
|
BASE_PATH = File.expand_path('../../..', File.dirname(__FILE__))
|
6
6
|
|
7
7
|
JAVA_COMMAND = "java"
|
8
|
-
JAVA_COMMAND_CHECK = "#{JAVA_COMMAND} -version >/dev/null 2>&1"
|
9
8
|
JAVA_MAIN_CLASS = "com.treasure_data.bulk_import.BulkImportMain"
|
10
9
|
JVM_OPTS = ["-Xmx1024m"] # TODO
|
11
10
|
|
@@ -97,7 +96,13 @@ module Command
|
|
97
96
|
|
98
97
|
private
|
99
98
|
def check_java
|
100
|
-
|
99
|
+
if RbConfig::CONFIG["target_os"].downcase =~ /mswin(?!ce)|mingw|cygwin|bccwin/ # windows
|
100
|
+
cmd = "#{JAVA_COMMAND} -version > NUL 2>&1"
|
101
|
+
else # others
|
102
|
+
cmd = "#{JAVA_COMMAND} -version > /dev/null 2>&1"
|
103
|
+
end
|
104
|
+
|
105
|
+
system(cmd)
|
101
106
|
|
102
107
|
unless $?.success?
|
103
108
|
$stderr.puts "Java is not installed. 'td import' command requires Java (version 1.6 or later)."
|
data/lib/td/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: td
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.91
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-10-
|
12
|
+
date: 2013-10-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: msgpack
|
@@ -294,7 +294,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
294
294
|
version: '0'
|
295
295
|
segments:
|
296
296
|
- 0
|
297
|
-
hash:
|
297
|
+
hash: 3403017301161628743
|
298
298
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
299
299
|
none: false
|
300
300
|
requirements:
|
@@ -303,7 +303,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
303
303
|
version: '0'
|
304
304
|
segments:
|
305
305
|
- 0
|
306
|
-
hash:
|
306
|
+
hash: 3403017301161628743
|
307
307
|
requirements: []
|
308
308
|
rubyforge_project:
|
309
309
|
rubygems_version: 1.8.23
|