excel2csv 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Excel2CSV
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/excel2csv.jar CHANGED
Binary file
data/lib/excel2csv.rb CHANGED
@@ -99,8 +99,7 @@ module Excel2CSV
99
99
  tmp_dir = Dir.mktmpdir
100
100
  dest_folder = options[:dest_folder] || tmp_dir
101
101
  limit = options[:rows_limit]
102
-
103
- if path =~ /\.csv/
102
+ if path =~ /\.csv$/
104
103
  total_rows = 0
105
104
  preview_rows = []
106
105
  opts = clean_options(options)
@@ -8,9 +8,9 @@ describe Excel2CSV do
8
8
  let(:csv_basic_types) {"spec/fixtures/basic_types.csv"}
9
9
  let(:xls_basic_types) {"spec/fixtures/basic_types.xls"}
10
10
  let(:xlsx_basic_types) {"spec/fixtures/basic_types.xlsx"}
11
- let(:date_24) {Time.new(2011,12,24).strftime("%Y-%m-%d %H:%M:%S %Z(%z)")}
12
- let(:date_25) {Time.new(2011,12,25).strftime("%Y-%m-%d %H:%M:%S %Z(%z)")}
13
- let(:date_26) {Time.new(2011,12,26).strftime("%Y-%m-%d %H:%M:%S %Z(%z)")}
11
+ let(:date_24) {Time.new(2011,12,24).strftime("%Y-%m-%dT%H:%M:%S")}
12
+ let(:date_25) {Time.new(2011,12,25).strftime("%Y-%m-%dT%H:%M:%S")}
13
+ let(:date_26) {Time.new(2011,12,26).strftime("%Y-%m-%dT%H:%M:%S")}
14
14
 
15
15
  it "reads xls files" do
16
16
  data = excel.read xls_basic_types
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.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-09-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70214872899040 !ruby/object:Gem::Requirement
16
+ requirement: &70220199776100 !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: *70214872899040
24
+ version_requirements: *70220199776100
25
25
  description: gem for converting Excel files to csv
26
26
  email:
27
27
  - yury.korolev@gmail.com