oxcelix 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,17 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b99db0578e523cdacaeebc304bf13850f46c0294
4
- data.tar.gz: e288d38ee68505029830d3e5b9983ddf19b5f995
2
+ !binary "U0hBMjU2":
3
+ metadata.gz: !binary |-
4
+ NzFjMzMxY2FjYTc3NmVkOWI4NjJiMWI5NmQzOTAyZDdlODcxNTNmZTA2MzZi
5
+ NzllYWY2NGY1NmEzYzYxN2U2Yg==
6
+ data.tar.gz: !binary |-
7
+ NjA1ODY4YzBmZDQyODk2NzBhOWM1NmFlOGUxZDRkZjVmNGEwMmIyMzA4MzQ1
8
+ NzMzZTI4YjYyMGExNTAxNzI4Zg==
5
9
  SHA512:
6
- metadata.gz: d1a32e742704a9f458465b7c2d7309537c397c3a2624ead2f50f6405cb17590c481f403f3b7752c4607fffb47a5a642dedd3e420927b0a0040df69cc373a106e
7
- data.tar.gz: f2df2be85463b332b02cfb42144794b25a4385a1ea30a7326f0b2fb6e272eeecec844e60bead634721daf722b5f2cf2f1345f5ec2d80eb1d2fad13d07b330512
10
+ metadata.gz: !binary |-
11
+ ZjM5N2I1M2UwOWIyNTU3YjI3ODY5YjMwMWRmZjM5ZmZhZDYxMTU0NDdjMjgw
12
+ M2JiNzE5ZjExZjVkNjMxOGE5YTI4NGZlZTI3ZDc3ZTAzZmIwODI2YWY4OWFj
13
+ MzY4NTE4ODUyM2FiMzFhMjk0N2Q0ZTE4MWVlNTBmZDhmNjI1OWQ=
14
+ data.tar.gz: !binary |-
15
+ ODRkNDM2YWI2MTY4MmU5YzBmMWE5Yjc2NmU3YzM1OWRkMDhjOWY2NGYxM2I0
16
+ ZTRiNWRmYWEwYmRkNDRkNGFiZDVlNWJmNDNhZDdiNWM5NTljYjI1M2I3ZTE1
17
+ M2UwMDNlN2FhZjI1ZTQyN2M1YWZhM2FlZTA3ZWM1YWZjOTk2OTY=
data/CHANGES CHANGED
@@ -1,10 +1,9 @@
1
+ 0.4.2
2
+ * fixed deprecation warning caused by ruby 2.4 Fixnum and Bignum unification
3
+ into Integer
4
+
1
5
  0.4.1
2
- * Depends on ox >= 2.1.7 that fixed a GC issue on ruby 2.2 (mindreframer)
3
- * Simplified gemfile (mindreframer)
4
- * pry in spec_helper (mindreframer)
5
- * code style cleanup (mindreframer)
6
- * "duplicate key" warning removed in numformats.rb (mindreframer, jdevega)
7
- * numformat 49 is now treated as Text (jaydorsey)
6
+ * Fixed whitespaces around equality signs (Thanks to mindreframer)
8
7
 
9
8
  0.4.0
10
9
  * Code refactoring - Workbook creation is now more fine-grained.
@@ -17,7 +16,7 @@
17
16
  * System temp directory is uses for unpacking.
18
17
 
19
18
  0.3.3
20
- * Will not terminate it a directory called 'tmp' already exists in the current directory.
19
+ * Will not terminate if a directory called 'tmp' already exists in the current directory.
21
20
  Thanks to bhavinkamani for pointing this out.
22
21
  * Corrected type in xlsheet parser: empty cells near to non-empty ones will now be correctly handled
23
22
 
data/README.md CHANGED
@@ -42,11 +42,13 @@ Synopsis
42
42
  `w.sheets[0].to_ru # returns a Matrix of DateTime, Integer, etc objects`
43
43
  `w.sheets[0].to_fmt # returns a Matrix of formatted Strings based on the above.`
44
44
  OR:
45
+
45
46
  `require 'oxcelix'`
46
47
  `w = Oxcelix::RuValueWorkbook.new('whatever.xlsx', :copymerge => true)`
47
48
  `w = Oxcelix::FormattedWorkbook.new('whatever.xlsx', :copymerge => true)`
48
49
 
49
50
  You can parse an Excel file partially to save memory:
51
+
50
52
  `require 'oxcelix'`
51
53
  `w = Oxcelix::Workbook.new('whatever.xlsx', :cellrange => ('A3'..'R42')) # will only parse the cells included in the given range on every included sheet`
52
54
  `w = Oxcelix::Workbook.new('whatever.xlsx', :paginate => [5,2]) # will only parse the second five-row group of every included sheet.`
@@ -74,6 +76,7 @@ For a comparison of XML parsers, please consult the Ox homepage[http://www.ohler
74
76
 
75
77
  TODO
76
78
  ----
79
+ * Support for inline strings to be added
77
80
  * include/exclude mechanism should extend to cell areas inside Sheet objects
78
81
  * Further improvement to the formatting algorithms. Theoretically, to_fmt should be able to
79
82
  split conditional-formatting strings and to display e.g. thousands separated number strings
@@ -33,7 +33,7 @@ class Matrix
33
33
  end
34
34
  end
35
35
 
36
- class Fixnum
36
+ class Integer
37
37
  # Returns the column name corresponding to the given number. e.g: 1.col_name => 'B'
38
38
  # @return [String]
39
39
  def col_name
@@ -3,8 +3,8 @@
3
3
  require 'rake'
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'oxcelix'
6
- s.version = '0.4.1'
7
- s.date = '2015-06-15'
6
+ s.version = '0.4.2'
7
+ s.date = '2018-11-01'
8
8
  s.summary = 'A fast Excel 2007/2010 file parser'
9
9
  s.description = 'A fast Excel 2007/2010 (.xlsx) file parser that returns a collection of Matrix objects'
10
10
  s.authors = 'Giovanni Biczo'
@@ -1,6 +1,6 @@
1
1
  require './spec/spec_helper'
2
2
 
3
- describe "Fixnum object" do
3
+ describe "Integer object" do
4
4
  describe '#col_name' do
5
5
  it "returns a string representing an excel column name" do
6
6
  (0..25).each do |x|
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxcelix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giovanni Biczo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-15 00:00:00.000000000 Z
11
+ date: 2018-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ox
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.1.7
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.1.7
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubyzip
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: oga
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: A fast Excel 2007/2010 (.xlsx) file parser that returns a collection
@@ -101,7 +101,7 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - ".yardopts"
104
+ - .yardopts
105
105
  - CHANGES
106
106
  - LICENSE
107
107
  - README.md
@@ -119,7 +119,7 @@ files:
119
119
  - lib/oxcelix/workbook.rb
120
120
  - oxcelix.gemspec
121
121
  - spec/cell_spec.rb
122
- - spec/fixnum_spec.rb
122
+ - spec/integer_spec.rb
123
123
  - spec/matrix_spec.rb
124
124
  - spec/oxcelix_spec.rb
125
125
  - spec/sheet_spec.rb
@@ -131,22 +131,22 @@ licenses:
131
131
  metadata: {}
132
132
  post_install_message:
133
133
  rdoc_options:
134
- - "--all"
134
+ - --all
135
135
  require_paths:
136
136
  - lib
137
137
  required_ruby_version: !ruby/object:Gem::Requirement
138
138
  requirements:
139
- - - ">="
139
+ - - ! '>='
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - ">="
144
+ - - ! '>='
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project: oxcelix
149
- rubygems_version: 2.4.8
149
+ rubygems_version: 2.7.7
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: A fast Excel 2007/2010 file parser