rods 0.5.0 → 0.5.1

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.
Files changed (5) hide show
  1. data/README +6 -3
  2. data/Rakefile +1 -1
  3. data/lib/rods.rb +2 -2
  4. data/rods.gemspec +1 -1
  5. metadata +3 -3
data/README CHANGED
@@ -14,6 +14,9 @@
14
14
  Licensed under the same terms as Ruby. No warranty is provided.
15
15
 
16
16
  = Changelog
17
+ * 0.5.1
18
+ * made readCellFromRow() more user-friendly by returning defaults for text and type where
19
+ till recently error-messages were thrown due to missing values
17
20
  * 0.5.0
18
21
  * new performance-boosters for reading lots of rows (cf. chapter and second example-script below)
19
22
  * getNextRow, getPreviousRow, getNextCell, getPreviousCell
@@ -280,7 +283,7 @@
280
283
  This difference hardly matters while dealing with small documents, but degrades performance significantly when you
281
284
  move up or down a sheet with a lot of rows and process several cells on the same row !
282
285
 
283
- Provided you just want to read exisiting cells and not write to at the user leven seemingly empty ones, but de facto
286
+ Provided you just want to read exisiting cells and not write to at the user level seemingly empty ones, but de facto
284
287
  non-existent cells according to Open Document format, an absolute speed-booster compared to the above is the following
285
288
 
286
289
  # coding: UTF-8
@@ -300,7 +303,7 @@
300
303
  # - getPreviousRow(row)
301
304
  # - getNextCell(cell)
302
305
  # - getPreviousCell(cell)
303
- # allow the XML-Parser to just continue from the "adjacent" node) and
306
+ # allow the XML-Parser to just continue from the "adjacent" node and
304
307
  # return the previsous/next element without having to start from the top-node
305
308
  # of the document over and over again !
306
309
  #---------------------------------------------------------------------------------
@@ -321,7 +324,7 @@
321
324
  puts("------------")
322
325
  puts("Sum: #{sum}")
323
326
 
324
- On the ATOM-Nettop I developed the gem, even the script above took just 2-3 seconds and on my Core-i7-Notebook it was finished so quickly
327
+ On the ATOM-Nettop I developed the gem, even the first script above took just 2-3 seconds and on my Core-i7-Notebook it was finished so quickly
325
328
  that I supposed it had halted on an immediate error, so: don't be concerned and just experiment :-).
326
329
 
327
330
  = Standards
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('rods', '0.5.0') do |p|
5
+ Echoe.new('rods', '0.5.1') do |p|
6
6
  p.description = "OpenOffice.org oocalc: Fast automated batch-processing of spreadsheets (*.ods) conforming to Open Document Format v1.1. used by e.g. OpenOffice.org and LibreOffice. Please see screenshot and Rdoc-Documentation at http://ruby.homelinux.com/ruby/rods/. You can contact me at rodsdotrubyatonlinedotde."
7
7
  p.summary = "Automation of OpenOffice/LibreOffice by batch-processing of spreadsheets conforming to Open Document v1.1"
8
8
  p.url = "http://ruby.homelinux.com/ruby/rods/"
data/lib/rods.rb CHANGED
@@ -751,11 +751,11 @@ class Rods
751
751
  else
752
752
  text=textElement.text
753
753
  if(! text)
754
- die("readCellFromRow: Could not extract text at coordinate #{rowInd},#{colInd}")
754
+ text=""
755
755
  end
756
756
  type=cell.attributes["office:value-type"]
757
757
  if(! type)
758
- die("readCellFromRow: Could not extract data type at coordinate #{rowInd},#{colInd}")
758
+ type="string"
759
759
  end
760
760
  text=normalizeText(text,type)
761
761
  return text,type
data/rods.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rods}
5
- s.version = "0.5.0"
5
+ s.version = "0.5.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Dr. Heinz Breinlinger"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rods
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dr. Heinz Breinlinger