excel2csv 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -4,9 +4,13 @@
4
4
 
5
5
  gem install excel2csv
6
6
 
7
- With Gemfile
7
+
8
+ With Gemfile
8
9
 
9
10
  gem 'excel2csv'
10
11
 
12
+
13
+ require 'excel2csv'
14
+
11
15
  Excel2CSV.read "path/to/file.xls"
12
16
  Excel2CSV.read "path/to/file.xlsx"
@@ -1,3 +1,3 @@
1
1
  module Excel2CSV
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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
- `java #{java_options} -jar lib/excel2csv.jar #{path} #{dest_folder}`
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.1
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: &70324209188260 !ruby/object:Gem::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: *70324209188260
24
+ version_requirements: *70366534136320
25
25
  description: gem for converting Excel files to csv
26
26
  email:
27
27
  - yury.korolev@gmail.com