oxcelix 0.3.2 → 0.3.3

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,26 +1,26 @@
1
- # -*- encoding: utf-8 -*-
2
-
3
- require 'rake'
4
- Gem::Specification.new do |s|
5
- s.name = 'oxcelix'
6
- s.version = '0.3.2'
7
- s.date = '2014-01-12'
8
- s.summary = 'A fast Excel 2007/2010 file parser'
9
- s.description = 'A fast Excel 2007/2010 (.xlsx) file parser that returns a collection of Matrix objects'
10
- s.authors = 'Giovanni Biczo'
11
- s.homepage = 'http://github.com/gbiczo/oxcelix'
12
- s.rubyforge_project = 'oxcelix'
13
-
14
- s.files = FileList["LICENSE", "README.rdoc", "README.md",
15
- "lib/oxcelix.rb", "lib/oxcelix/cellhelper.rb",
16
- "lib/oxcelix/cell.rb", "lib/oxcelix/numformats.rb",
17
- "lib/oxcelix/nf.rb",
18
- "lib/oxcelix/sheet.rb", "lib/oxcelix/workbook.rb",
19
- "lib/oxcelix/sax/*",
20
- "oxcelix.gemspec", "spec/*", ".yardopts", "CHANGES"].to_a
21
- s.license = 'MIT'
22
-
23
- s.add_runtime_dependency "ox", [">= 2.0.6"]
24
- s.add_runtime_dependency "rubyzip", [">= 1.1.0"]
25
- s.rdoc_options << '--all'
26
- end
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ require 'rake'
4
+ Gem::Specification.new do |s|
5
+ s.name = 'oxcelix'
6
+ s.version = '0.3.3'
7
+ s.date = '2014-09-19'
8
+ s.summary = 'A fast Excel 2007/2010 file parser'
9
+ s.description = 'A fast Excel 2007/2010 (.xlsx) file parser that returns a collection of Matrix objects'
10
+ s.authors = 'Giovanni Biczo'
11
+ s.homepage = 'http://github.com/gbiczo/oxcelix'
12
+ s.rubyforge_project = 'oxcelix'
13
+
14
+ s.files = FileList["LICENSE", "README.rdoc", "README.md",
15
+ "lib/oxcelix.rb", "lib/oxcelix/cellhelper.rb",
16
+ "lib/oxcelix/cell.rb", "lib/oxcelix/numformats.rb",
17
+ "lib/oxcelix/nf.rb",
18
+ "lib/oxcelix/sheet.rb", "lib/oxcelix/workbook.rb",
19
+ "lib/oxcelix/sax/*",
20
+ "oxcelix.gemspec", "spec/*", ".yardopts", "CHANGES"].to_a
21
+ s.license = 'MIT'
22
+
23
+ s.add_runtime_dependency "ox", [">= 2.0.6"]
24
+ s.add_runtime_dependency "rubyzip", [">= 1.1.0"]
25
+ s.rdoc_options << '--all'
26
+ end
@@ -1,13 +1,13 @@
1
- #require './spec_helper'
2
- require '../oxcelix.rb'
3
- describe "Cell object" do
4
- describe '#r' do
5
- it "sets the value of xlcoords" do
6
- c=Oxcelix::Cell.new
7
- c.r('H276')
8
- c.xlcoords.should=='H276'
9
- c.x.should==7
10
- c.y.should==275
11
- end
12
- end
13
- end
1
+ #require './spec_helper'
2
+ require_relative '../lib/oxcelix.rb'
3
+ describe "Cell object" do
4
+ describe '#r' do
5
+ it "sets the value of xlcoords" do
6
+ c=Oxcelix::Cell.new
7
+ c.r('H276')
8
+ c.xlcoords.should=='H276'
9
+ c.x.should==7
10
+ c.y.should==275
11
+ end
12
+ end
13
+ end
@@ -1,11 +1,11 @@
1
- #require './spec_helper'
2
- require '../oxcelix.rb'
3
- describe "Fixnum object" do
4
- describe '#col_name' do
5
- it "returns a string representing an excel column name" do
6
- (0..25).each do |x|
7
- x.col_name.should == ('A'..'Z').to_a[x]
8
- end
9
- end
10
- end
11
- end
1
+ #require './spec_helper'
2
+ require '../lib/oxcelix.rb'
3
+ describe "Fixnum object" do
4
+ describe '#col_name' do
5
+ it "returns a string representing an excel column name" do
6
+ (0..25).each do |x|
7
+ x.col_name.should == ('A'..'Z').to_a[x]
8
+ end
9
+ end
10
+ end
11
+ end
@@ -1,11 +1,11 @@
1
- #require './spec_helper'
2
- require '../oxcelix.rb'
3
- describe "Matrix object" do
4
- describe '#[]=' do
5
- it "should set a cell to a new value" do
6
- m_obj=Matrix.build(4, 4){nil}
7
- m_obj[3,3]='foo'
8
- m_obj[3,3].should == 'foo'
9
- end
10
- end
11
- end
1
+ #require './spec_helper'
2
+ require '../lib/oxcelix.rb'
3
+ describe "Matrix object" do
4
+ describe '#[]=' do
5
+ it "should set a cell to a new value" do
6
+ m_obj=Matrix.build(4, 4){nil}
7
+ m_obj[3,3]='foo'
8
+ m_obj[3,3].should == 'foo'
9
+ end
10
+ end
11
+ end
@@ -1,36 +1,36 @@
1
- #require './spec_helper'
2
- require '../oxcelix.rb'
3
- describe "Oxcelix module" do
4
- # before :all do
5
- describe 'Workbook' do
6
- context 'normal' do
7
- it "should open the excel file and return a Workbook object" do
8
- file = './test.xlsx'
9
- w=Oxcelix::Workbook.new(file)
10
- w.sheets.size.should == 2
11
- w.sheets[0].name.should=="Testsheet1"
12
- w.sheets[1].name.should=="Testsheet2"
13
- end
14
- end
15
- context 'with excluded sheets' do
16
- it "should open the sheets not excluded of the excel file" do
17
- file = './test.xlsx'
18
- w=Oxcelix::Workbook.new(file, {:exclude=>['Testsheet2']})
19
- w.sheets.size.should==1
20
- w.sheets[0].name.should=="Testsheet1"
21
- end
22
- end
23
- context 'with included sheets' do
24
- it "should open only the included sheets of the excel file" do
25
- file = './test.xlsx'
26
- w=Oxcelix::Workbook.new(file, {:include=>['Testsheet2']})
27
- w.sheets.size.should==1
28
- w.sheets[0].name.should=="Testsheet2"
29
- end
30
- end
31
- context 'with merged cells copied group-wide'
32
- it "should open the excel file and copy the merged cells trough the mergegroup" do
33
- end
34
- end
35
- # end
36
- end
1
+ #require './spec_helper'
2
+ require '../lib/oxcelix.rb'
3
+ describe "Oxcelix module" do
4
+ # before :all do
5
+ describe 'Workbook' do
6
+ context 'normal' do
7
+ it "should open the excel file and return a Workbook object" do
8
+ file = './test.xlsx'
9
+ w=Oxcelix::Workbook.new(file)
10
+ w.sheets.size.should == 2
11
+ w.sheets[0].name.should=="Testsheet1"
12
+ w.sheets[1].name.should=="Testsheet2"
13
+ end
14
+ end
15
+ context 'with excluded sheets' do
16
+ it "should open the sheets not excluded of the excel file" do
17
+ file = './test.xlsx'
18
+ w=Oxcelix::Workbook.new(file, {:exclude=>['Testsheet2']})
19
+ w.sheets.size.should==1
20
+ w.sheets[0].name.should=="Testsheet1"
21
+ end
22
+ end
23
+ context 'with included sheets' do
24
+ it "should open only the included sheets of the excel file" do
25
+ file = './test.xlsx'
26
+ w=Oxcelix::Workbook.new(file, {:include=>['Testsheet2']})
27
+ w.sheets.size.should==1
28
+ w.sheets[0].name.should=="Testsheet2"
29
+ end
30
+ end
31
+ context 'with merged cells copied group-wide'
32
+ it "should open the excel file and copy the merged cells trough the mergegroup" do
33
+ end
34
+ end
35
+ # end
36
+ end
@@ -1,3 +1,3 @@
1
- require_relative '../oxcelix'
2
-
3
- require 'yaml'
1
+ require_relative '../lib/oxcelix'
2
+
3
+ require 'yaml'
@@ -1,19 +1,19 @@
1
- #require './spec_helper'
2
- require '../oxcelix.rb'
3
- describe "String object" do
4
- describe 'numeric?' do
5
- context "with numbers" do
6
- it "should return true" do
7
- (1..100).each do |x|
8
- x.to_s.numeric?.should == true
9
- end
10
- end
11
- context "with strings"
12
- it "should return false" do
13
- ('a'..'zz').each do |x|
14
- x.numeric?.should == false
15
- end
16
- end
17
- end
18
- end
19
- end
1
+ #require './spec_helper'
2
+ require '../lib/oxcelix.rb'
3
+ describe "String object" do
4
+ describe 'numeric?' do
5
+ context "with numbers" do
6
+ it "should return true" do
7
+ (1..100).each do |x|
8
+ x.to_s.numeric?.should == true
9
+ end
10
+ end
11
+ context "with strings"
12
+ it "should return false" do
13
+ ('a'..'zz').each do |x|
14
+ x.numeric?.should == false
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxcelix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
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: 2014-01-12 00:00:00.000000000 Z
12
+ date: 2014-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ox
@@ -60,18 +60,18 @@ files:
60
60
  - lib/oxcelix/nf.rb
61
61
  - lib/oxcelix/sheet.rb
62
62
  - lib/oxcelix/workbook.rb
63
+ - lib/oxcelix/sax/comments.rb
63
64
  - lib/oxcelix/sax/sharedstrings.rb
64
- - lib/oxcelix/sax/xlsheet.rb
65
65
  - lib/oxcelix/sax/styles.rb
66
- - lib/oxcelix/sax/comments.rb
66
+ - lib/oxcelix/sax/xlsheet.rb
67
67
  - oxcelix.gemspec
68
- - spec/test.xlsx
69
- - spec/spec_helper.rb
70
- - spec/fixnum_spec.rb
71
- - spec/oxcelix_spec.rb
72
68
  - spec/cell_spec.rb
69
+ - spec/fixnum_spec.rb
73
70
  - spec/matrix_spec.rb
71
+ - spec/oxcelix_spec.rb
72
+ - spec/spec_helper.rb
74
73
  - spec/string_spec.rb
74
+ - spec/test.xlsx
75
75
  - .yardopts
76
76
  - CHANGES
77
77
  homepage: http://github.com/gbiczo/oxcelix
@@ -96,9 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  requirements: []
98
98
  rubyforge_project: oxcelix
99
- rubygems_version: 1.8.25
99
+ rubygems_version: 1.8.28
100
100
  signing_key:
101
101
  specification_version: 3
102
102
  summary: A fast Excel 2007/2010 file parser
103
103
  test_files: []
104
- has_rdoc: