rods 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/README +3 -0
  2. data/Rakefile +1 -1
  3. data/lib/rods.rb +11 -21
  4. data/rods.gemspec +1 -1
  5. metadata +3 -3
data/README CHANGED
@@ -16,6 +16,9 @@
16
16
  Licensed under the same terms as Ruby. No warranty is provided.
17
17
 
18
18
  = Changelog
19
+ * 0.9.1
20
+ * bug fixes
21
+ * methods readCellFromRow and readCell did not return value, if this value was identical with previous cell's value and therefore repeated (in the XML-tree)
19
22
  * 0.9.0
20
23
  * added new methods
21
24
  * insertRow, insertCell, insertCellFromRow, deleteCellBefore, deleteCellAfter, deleteCell, deleteCellFromRow,
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('rods', '0.9.0') do |p|
5
+ Echoe.new('rods', '0.9.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 rods.ruby@online.de (and tell me about your experiences or drop me a line, if you like it ;-)"
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/"
@@ -794,14 +794,9 @@ class Rods
794
794
  j=j+(repetition.to_i-1)
795
795
  end
796
796
  #-------------------------------------------
797
- # Falls Spaltenindex schon uebersprungen
797
+ # Falls Spaltenindex uebersprungen oder erreicht
798
798
  #-------------------------------------------
799
- if(j > colInd)
800
- return nil, nil
801
- #-------------------------------------------
802
- # Falls Spaltenindex erreicht
803
- #-------------------------------------------
804
- elsif(j == colInd)
799
+ if(j >= colInd)
805
800
  #-------------------------------------------
806
801
  # Zelltext und Datentyp zurueckgeben
807
802
  # ggf. Waehrungssymbol abschneiden
@@ -862,14 +857,9 @@ class Rods
862
857
  i=i+(repetition.to_i-1)
863
858
  end
864
859
  #-------------------------------------------
865
- # Falls Zeilenindex schon uebersprungen
866
- #-------------------------------------------
867
- if(i > rowInd)
868
- return nil, nil
869
- #-------------------------------------------
870
- # Falls Zeilenindex erreicht
860
+ # Falls Zeilenindex uebersprungen oder erreicht
871
861
  #-------------------------------------------
872
- elsif(i == rowInd)
862
+ if(i >= rowInd)
873
863
  return readCellFromRow(row,colInd)
874
864
  end
875
865
  }
@@ -1035,7 +1025,7 @@ class Rods
1035
1025
  # Writes the given text-string to given cell and sets style of
1036
1026
  # cell to corresponding type. Keep in mind: All values of tables are
1037
1027
  # passed and retrieved as strings !
1038
- # mySheet.writeText(getCell(17,39),"currency","14,37")
1028
+ # mySheet.writeText(mySheet.getCell(17,39),"currency","14,37")
1039
1029
  # The example can of course be simplified by
1040
1030
  # mySheet.writeCell(17,39,"currency","14,37")
1041
1031
  #-----------------------------------------------------------
@@ -2588,12 +2578,12 @@ class Rods
2588
2578
  ##########################################################################
2589
2579
  # Finds all cells with content 'content' and returns them along with the
2590
2580
  # indices of row and column as an array of hashes.
2591
- # [{ :cell => cell,
2592
- # :row => rowIndex,
2593
- # :col => colIndex},
2594
- # { :cell => cell,
2595
- # :row => rowIndex,
2596
- # :col => colIndex}]
2581
+ # [{:cell => cell,
2582
+ # :row => rowIndex,
2583
+ # :col => colIndex},
2584
+ # {:cell => cell,
2585
+ # :row => rowIndex,
2586
+ # :col => colIndex}]
2597
2587
  #
2598
2588
  # Regular expressions for 'content' are allowed but must be enclosed in
2599
2589
  # single (not double) quotes !
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rods}
5
- s.version = "0.9.0"
5
+ s.version = "0.9.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: 59
4
+ hash: 57
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 0
10
- version: 0.9.0
9
+ - 1
10
+ version: 0.9.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dr. Heinz Breinlinger