excel2csv 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +5 -1
- data/lib/excel2csv/version.rb +1 -1
- data/lib/excel2csv.rb +2 -1
- metadata +3 -3
data/README.md
CHANGED
data/lib/excel2csv/version.rb
CHANGED
data/lib/excel2csv.rb
CHANGED
@@ -57,7 +57,8 @@ module Excel2CSV
|
|
57
57
|
tmp_dir = Dir.mktmpdir
|
58
58
|
dest_folder = options[:dest_folder] || tmp_dir
|
59
59
|
java_options = options[:java_options] || "-Dfile.encoding=utf8 -Xms512m -Xmx512m -XX:MaxPermSize=256m"
|
60
|
-
|
60
|
+
jar_path = File.join(File.dirname(__FILE__), "excel2csv.jar")
|
61
|
+
`java #{java_options} -jar #{jar_path} #{path} #{dest_folder}`
|
61
62
|
info = Info.read dest_folder, tmp_dir
|
62
63
|
if block_given?
|
63
64
|
yield info
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: excel2csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-09-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70366534136320 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - <=
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '2.6'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70366534136320
|
25
25
|
description: gem for converting Excel files to csv
|
26
26
|
email:
|
27
27
|
- yury.korolev@gmail.com
|