excel2csv 0.0.3 → 0.0.4

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.
@@ -1,3 +1,3 @@
1
1
  module Excel2CSV
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
data/lib/excel2csv.jar CHANGED
Binary file
@@ -8,19 +8,22 @@ 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
14
 
12
15
  it "reads xls files" do
13
16
  data = excel.read xls_basic_types
14
- data[0].should == ["1.00", "2011-12-23 21:00:00 UTC(+0000)", "Hello"]
15
- data[1].should == ["2.00", "2011-12-24 21:00:00 UTC(+0000)", "Привет"]
16
- data[2].should == ["3.00", "2011-12-25 21:00:00 UTC(+0000)", 'Привет, "я excel!"']
17
+ data[0].should == ["1.00", date_24, "Hello"]
18
+ data[1].should == ["2.00", date_25, "Привет"]
19
+ data[2].should == ["3.00", date_26, 'Привет, "я excel!"']
17
20
  end
18
21
 
19
22
  it "reads xlsx files" do
20
23
  data = excel.read xlsx_basic_types
21
- data[0].should == ["1.00", "2011-12-23 21:00:00 UTC(+0000)", "Hello"]
22
- data[1].should == ["2.00", "2011-12-24 21:00:00 UTC(+0000)", "Привет"]
23
- data[2].should == ["3.00", "2011-12-25 21:00:00 UTC(+0000)", 'Привет, "я excel!"']
24
+ data[0].should == ["1.00", date_24, "Hello"]
25
+ data[1].should == ["2.00", date_25, "Привет"]
26
+ data[2].should == ["3.00", date_26, 'Привет, "я excel!"']
24
27
  end
25
28
 
26
29
  it "iterates rows like CSV lib" do
@@ -70,7 +73,7 @@ describe Excel2CSV do
70
73
  it "reads previews" do
71
74
  data = excel.read(xls_basic_types, rows_limit:1, preview:true, index:0)
72
75
  data.length.should == 1
73
- data[0].should == ["1.00", "2011-12-23 21:00:00 UTC(+0000)", "Hello"]
76
+ data[0].should == ["1.00", date_24, "Hello"]
74
77
  end
75
78
 
76
79
  it "reads csv files" do
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.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-20 00:00:00.000000000 Z
12
+ date: 2011-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70270996778580 !ruby/object:Gem::Requirement
16
+ requirement: &70255011838840 !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: *70270996778580
24
+ version_requirements: *70255011838840
25
25
  description: gem for converting Excel files to csv
26
26
  email:
27
27
  - yury.korolev@gmail.com