rubyfromexcel 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- data/examples/ruby-versions/test1-ruby/sheets/sheet1.rb +7 -0
- data/examples/ruby-versions/test1-ruby/sheets/sheet2.rb +6 -0
- data/examples/ruby-versions/test1-ruby/specs/sheet1_rspec.rb +12 -0
- data/examples/ruby-versions/test1-ruby/specs/sheet2_rspec.rb +12 -0
- data/examples/ruby-versions/test1-ruby/spreadsheet.rb +9 -0
- data/examples/ruby-versions/test2-ruby/sheets/sheet1.rb +1334 -0
- data/examples/ruby-versions/test2-ruby/sheets/sheet2.rb +25 -0
- data/examples/ruby-versions/test2-ruby/sheets/sheet3.rb +3703 -0
- data/examples/ruby-versions/test2-ruby/specs/sheet1_rspec.rb +648 -0
- data/examples/ruby-versions/test2-ruby/specs/sheet2_rspec.rb +24 -0
- data/examples/ruby-versions/test2-ruby/specs/sheet3_rspec.rb +11364 -0
- data/examples/ruby-versions/test2-ruby/spreadsheet.rb +9 -0
- data/examples/sheets/test1.xlsx +0 -0
- data/examples/sheets/test2.xlsx +0 -0
- data/examples/sheets/~$test1.xlsx +0 -0
- data/examples/unzipped-sheets/array-formulas/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/array-formulas/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/docProps/thumbnail.jpeg +0 -0
- data/examples/unzipped-sheets/array-formulas/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/checkpoint/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/charts/chart1.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/charts/chart2.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/comments1.xml +5 -0
- data/examples/unzipped-sheets/checkpoint/xl/comments2.xml +5 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing1.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing2.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing1.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing2.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing1.vml +47 -0
- data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing2.vml +47 -0
- data/examples/unzipped-sheets/checkpoint/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet1.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet2.xml.rels +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/checkpoint/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/complex-test/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/complex-test/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/complex-test/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/charts/chart1.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/charts/chart2.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/comments1.xml +5 -0
- data/examples/unzipped-sheets/complex-test/xl/comments2.xml +5 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing1.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing2.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/drawing1.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/drawing2.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing1.vml +46 -0
- data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing2.vml +46 -0
- data/examples/unzipped-sheets/complex-test/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet2.xml.rels +2 -0
- data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/docProps/thumbnail.jpeg +0 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/docProps/thumbnail.jpeg +0 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/sharedFormulaTest/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/table-test/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/table-test/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/table-test/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/table-test/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/printerSettings/printerSettings1.bin +0 -0
- data/examples/unzipped-sheets/table-test/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/tables/table1.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
- data/examples/unzipped-sheets/table-test/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/table-test/xl/worksheets/sheet3.xml +2 -0
- data/examples/unzipped-sheets/test1/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/test1/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/test1/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/test1/docProps/thumbnail.jpeg +0 -0
- data/examples/unzipped-sheets/test1/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/test1/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/test1/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/test2/[Content_Types].xml +2 -0
- data/examples/unzipped-sheets/test2/docProps/app.xml +2 -0
- data/examples/unzipped-sheets/test2/docProps/core.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/_rels/workbook.xml.rels +2 -0
- data/examples/unzipped-sheets/test2/xl/calcChain.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/charts/chart1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/charts/chart2.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/charts/chart3.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/charts/chart4.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/drawings/_rels/drawing1.xml.rels +2 -0
- data/examples/unzipped-sheets/test2/xl/drawings/drawing1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/sharedStrings.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/styles.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/tables/table1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/theme/theme1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/workbook.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/_rels/sheet1.xml.rels +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/_rels/sheet3.xml.rels +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/sheet1.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/sheet2.xml +2 -0
- data/examples/unzipped-sheets/test2/xl/worksheets/sheet3.xml +2 -0
- data/lib/formulae/parse/formula_peg.rb +4 -3
- data/lib/formulae/parse/formula_peg.txt +3 -3
- data/lib/formulae/run/reference.rb +1 -1
- data/spec/formula_peg_spec.rb +13 -0
- metadata +152 -9
@@ -0,0 +1,25 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
# Preferences
|
3
|
+
class Sheet2 < Spreadsheet
|
4
|
+
def b3; "Energy is measured in:"; end
|
5
|
+
def c3; "TWh"; end
|
6
|
+
def e3; "Equivalent to"; end
|
7
|
+
def f3; @f3 ||= 1.0/:name; end
|
8
|
+
def g3; "Joules"; end
|
9
|
+
def b5; "Power is measured in:"; end
|
10
|
+
def c5; "GW"; end
|
11
|
+
def e5; "Equivalent to"; end
|
12
|
+
def f5; @f5 ||= 1.0/:name; end
|
13
|
+
def g5; "Watts"; end
|
14
|
+
def b7; "Area is measured in:"; end
|
15
|
+
def c7; "km^2"; end
|
16
|
+
def e7; "Equivalent to"; end
|
17
|
+
def f7; @f7 ||= 1.0/:name; end
|
18
|
+
def g7; "Square metres"; end
|
19
|
+
def b9; "Money is measured in:"; end
|
20
|
+
def c9; "£m"; end
|
21
|
+
def e9; "Equivalent to"; end
|
22
|
+
def f9; @f9 ||= 1.0/:name; end
|
23
|
+
def g9; "£"; end
|
24
|
+
end
|
25
|
+
|