rods 0.0.9 → 0.1.0
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.
- data/Manifest +1 -0
- data/README +10 -3
- data/Rakefile +2 -2
- data/lib/rods.rb +5 -5
- data/rods.gemspec +2 -2
- metadata +4 -4
data/Manifest
CHANGED
data/README
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
manipulates the XML-files in the zipped *.ods-container.
|
6
6
|
|
7
7
|
On my website http://ruby.homelinux.com/ruby/rods/ you can see the output of the script below.
|
8
|
+
You can contact me at rodsdotrubyatonlinedotde.
|
8
9
|
|
9
10
|
link:images/Rods.jpg
|
10
11
|
|
@@ -12,6 +13,12 @@
|
|
12
13
|
Copyright (c) <em>Dr. Heinz Breinlinger</em> (2011).
|
13
14
|
Licensed under the same terms as Ruby. No warranty is provided.
|
14
15
|
|
16
|
+
= Changelog
|
17
|
+
* 0.1.0
|
18
|
+
* improved support for compound-formulas
|
19
|
+
(=SUMME(WENN((A$12:A$985="x")*(I$12:I$983="Hauskonto");G$12:G$983)))
|
20
|
+
* logging set as default
|
21
|
+
|
15
22
|
= Disclaimer
|
16
23
|
At the time of this publishing and stage of development RODS just suits my personal needs
|
17
24
|
* to provide an intuitively to use, purpose oriented interface for
|
@@ -76,11 +83,11 @@
|
|
76
83
|
#-----------------------------------------------------------------
|
77
84
|
# Alter the data-style for the following 2 date-values.
|
78
85
|
#
|
79
|
-
#
|
86
|
+
# Data-styles affect, how values are displayed, i.e. their "meaning".
|
80
87
|
# Within that "meaning" styles (not data-styles !) affect the look
|
81
88
|
# (color, indentation, 'italic', etc.)
|
82
89
|
# Data-styles are predefined by RODS and (so far) unique for every type.
|
83
|
-
# Only date-values have
|
90
|
+
# Only date-values have 2 different data-styles implemented.
|
84
91
|
#-----------------------------------------------------------------
|
85
92
|
mySheet.setDateFormat("myDateDay") # "05.01.2011" -> "Mi" (if German)
|
86
93
|
#-----------------------------------------------------------------
|
@@ -118,7 +125,7 @@
|
|
118
125
|
#-----------------------------------------------------------------
|
119
126
|
cell=mySheet.writeGetCell(3,4,"formula:currency","=D2+D1")
|
120
127
|
#-----------------------------------------------------------------
|
121
|
-
# Apply different borders and display the font italic and bold.
|
128
|
+
# Apply different borders and display the font as italic and bold.
|
122
129
|
#-----------------------------------------------------------------
|
123
130
|
mySheet.setAttributes(cell,{ "border-right" => "0.05cm solid magenta4",
|
124
131
|
"border-bottom" => "0.03cm solid lightgreen",
|
data/Rakefile
CHANGED
@@ -2,8 +2,8 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('rods', '0.0
|
6
|
-
p.description = "
|
5
|
+
Echoe.new('rods', '0.1.0') do |p|
|
6
|
+
p.description = "OpenOffice.org oocalc: 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 unter http://ruby.homelinux.com/ruby/rods/. You can contact me under 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/"
|
9
9
|
p.author = "Dr. Heinz Breinlinger"
|
data/lib/rods.rb
CHANGED
@@ -98,7 +98,7 @@ class Rods
|
|
98
98
|
# internal: Wrapper around 'puts' to display "all or nothing" according to debug-switch
|
99
99
|
#-------------------------------------------------------------------------
|
100
100
|
def tell(message)
|
101
|
-
|
101
|
+
puts("INFO: #{message}")
|
102
102
|
end
|
103
103
|
##########################################################################
|
104
104
|
# internal: Error-routine for displaying fatal error-message and exiting
|
@@ -2018,7 +2018,7 @@ class Rods
|
|
2018
2018
|
end
|
2019
2019
|
##########################################################################
|
2020
2020
|
# Helper-Tool: Prints all styles of styles.xml in indented ASCII-notation
|
2021
|
-
#
|
2021
|
+
# mySheet.printOfficeStyles()
|
2022
2022
|
# * Lines starting with 'E' are Element-Tags
|
2023
2023
|
# * Lines starting with 'A' are Attributes
|
2024
2024
|
# * Lines starting with 'T' are Element-Text
|
@@ -2048,7 +2048,7 @@ class Rods
|
|
2048
2048
|
end
|
2049
2049
|
##########################################################################
|
2050
2050
|
# Helper-Tool: Prints all styles of content.xml in indented ASCII-notation
|
2051
|
-
#
|
2051
|
+
# mySheet.printAutoStyles()
|
2052
2052
|
# * Lines starting with 'E' are Element-Tags
|
2053
2053
|
# * Lines starting with 'A' are Attributes
|
2054
2054
|
# * Lines starting with 'T' are Element-Text
|
@@ -2163,7 +2163,7 @@ class Rods
|
|
2163
2163
|
#---------------------------------------------
|
2164
2164
|
# Zellbezeichnerformat AABC3421 in [.AABC3421] wandeln
|
2165
2165
|
#---------------------------------------------
|
2166
|
-
formulaOut.gsub!(/([A-Za-z]
|
2166
|
+
formulaOut.gsub!(/(\$*[A-Za-z]+\$*\d+)/,"[.\\1]")
|
2167
2167
|
tell("internalizeFormula: #{formulaIn} -> #{formulaOut}")
|
2168
2168
|
return formulaOut
|
2169
2169
|
end
|
@@ -2436,7 +2436,7 @@ class Rods
|
|
2436
2436
|
end
|
2437
2437
|
##########################################################################
|
2438
2438
|
# Helper-function: Print palette of implemented color-mappings
|
2439
|
-
#
|
2439
|
+
# mySheet.printColorMap()
|
2440
2440
|
# generates ouput like ...
|
2441
2441
|
# "lightturquoise" => "#00ffff",
|
2442
2442
|
# "lightred" => "#ff0000",
|
data/rods.gemspec
CHANGED
@@ -2,12 +2,12 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{rods}
|
5
|
-
s.version = "0.0
|
5
|
+
s.version = "0.1.0"
|
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"]
|
9
9
|
s.date = %q{2011-01-06}
|
10
|
-
s.description = %q{
|
10
|
+
s.description = %q{OpenOffice.org oocalc: 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 unter http://ruby.homelinux.com/ruby/rods/. You can contact me under rodsdotrubyatonlinedotde.}
|
11
11
|
s.email = %q{rods.ruby@online.de}
|
12
12
|
s.extra_rdoc_files = ["README", "lib/example.rb", "lib/rods.rb"]
|
13
13
|
s.files = ["Manifest", "README", "Rakefile", "lib/example.rb", "lib/rods.rb", "rods.gemspec"]
|
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:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.9
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Dr. Heinz Breinlinger
|
@@ -19,7 +19,7 @@ date: 2011-01-06 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
22
|
-
description:
|
22
|
+
description: "OpenOffice.org oocalc: 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 unter http://ruby.homelinux.com/ruby/rods/. You can contact me under rodsdotrubyatonlinedotde."
|
23
23
|
email: rods.ruby@online.de
|
24
24
|
executables: []
|
25
25
|
|