rubyfromexcel 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. data/examples/ruby-versions/test1-ruby/sheets/sheet1.rb +7 -0
  2. data/examples/ruby-versions/test1-ruby/sheets/sheet2.rb +6 -0
  3. data/examples/ruby-versions/test1-ruby/specs/sheet1_rspec.rb +12 -0
  4. data/examples/ruby-versions/test1-ruby/specs/sheet2_rspec.rb +12 -0
  5. data/examples/ruby-versions/test1-ruby/spreadsheet.rb +9 -0
  6. data/examples/ruby-versions/test2-ruby/sheets/sheet1.rb +1334 -0
  7. data/examples/ruby-versions/test2-ruby/sheets/sheet2.rb +25 -0
  8. data/examples/ruby-versions/test2-ruby/sheets/sheet3.rb +3703 -0
  9. data/examples/ruby-versions/test2-ruby/specs/sheet1_rspec.rb +648 -0
  10. data/examples/ruby-versions/test2-ruby/specs/sheet2_rspec.rb +24 -0
  11. data/examples/ruby-versions/test2-ruby/specs/sheet3_rspec.rb +11364 -0
  12. data/examples/ruby-versions/test2-ruby/spreadsheet.rb +9 -0
  13. data/examples/sheets/test1.xlsx +0 -0
  14. data/examples/sheets/test2.xlsx +0 -0
  15. data/examples/sheets/~$test1.xlsx +0 -0
  16. data/examples/unzipped-sheets/array-formulas/[Content_Types].xml +2 -0
  17. data/examples/unzipped-sheets/array-formulas/docProps/app.xml +2 -0
  18. data/examples/unzipped-sheets/array-formulas/docProps/core.xml +2 -0
  19. data/examples/unzipped-sheets/array-formulas/docProps/thumbnail.jpeg +0 -0
  20. data/examples/unzipped-sheets/array-formulas/xl/_rels/workbook.xml.rels +2 -0
  21. data/examples/unzipped-sheets/array-formulas/xl/calcChain.xml +2 -0
  22. data/examples/unzipped-sheets/array-formulas/xl/sharedStrings.xml +2 -0
  23. data/examples/unzipped-sheets/array-formulas/xl/styles.xml +2 -0
  24. data/examples/unzipped-sheets/array-formulas/xl/theme/theme1.xml +2 -0
  25. data/examples/unzipped-sheets/array-formulas/xl/workbook.xml +2 -0
  26. data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet1.xml +2 -0
  27. data/examples/unzipped-sheets/array-formulas/xl/worksheets/sheet2.xml +2 -0
  28. data/examples/unzipped-sheets/checkpoint/[Content_Types].xml +2 -0
  29. data/examples/unzipped-sheets/checkpoint/docProps/app.xml +2 -0
  30. data/examples/unzipped-sheets/checkpoint/docProps/core.xml +2 -0
  31. data/examples/unzipped-sheets/checkpoint/xl/_rels/workbook.xml.rels +2 -0
  32. data/examples/unzipped-sheets/checkpoint/xl/calcChain.xml +2 -0
  33. data/examples/unzipped-sheets/checkpoint/xl/charts/chart1.xml +2 -0
  34. data/examples/unzipped-sheets/checkpoint/xl/charts/chart2.xml +2 -0
  35. data/examples/unzipped-sheets/checkpoint/xl/comments1.xml +5 -0
  36. data/examples/unzipped-sheets/checkpoint/xl/comments2.xml +5 -0
  37. data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing1.xml.rels +2 -0
  38. data/examples/unzipped-sheets/checkpoint/xl/drawings/_rels/drawing2.xml.rels +2 -0
  39. data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing1.xml +2 -0
  40. data/examples/unzipped-sheets/checkpoint/xl/drawings/drawing2.xml +2 -0
  41. data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing1.vml +47 -0
  42. data/examples/unzipped-sheets/checkpoint/xl/drawings/vmlDrawing2.vml +47 -0
  43. data/examples/unzipped-sheets/checkpoint/xl/sharedStrings.xml +2 -0
  44. data/examples/unzipped-sheets/checkpoint/xl/styles.xml +2 -0
  45. data/examples/unzipped-sheets/checkpoint/xl/theme/theme1.xml +2 -0
  46. data/examples/unzipped-sheets/checkpoint/xl/workbook.xml +2 -0
  47. data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  48. data/examples/unzipped-sheets/checkpoint/xl/worksheets/_rels/sheet2.xml.rels +2 -0
  49. data/examples/unzipped-sheets/checkpoint/xl/worksheets/sheet1.xml +2 -0
  50. data/examples/unzipped-sheets/checkpoint/xl/worksheets/sheet2.xml +2 -0
  51. data/examples/unzipped-sheets/complex-test/[Content_Types].xml +2 -0
  52. data/examples/unzipped-sheets/complex-test/docProps/app.xml +2 -0
  53. data/examples/unzipped-sheets/complex-test/docProps/core.xml +2 -0
  54. data/examples/unzipped-sheets/complex-test/xl/_rels/workbook.xml.rels +2 -0
  55. data/examples/unzipped-sheets/complex-test/xl/calcChain.xml +2 -0
  56. data/examples/unzipped-sheets/complex-test/xl/charts/chart1.xml +2 -0
  57. data/examples/unzipped-sheets/complex-test/xl/charts/chart2.xml +2 -0
  58. data/examples/unzipped-sheets/complex-test/xl/comments1.xml +5 -0
  59. data/examples/unzipped-sheets/complex-test/xl/comments2.xml +5 -0
  60. data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing1.xml.rels +2 -0
  61. data/examples/unzipped-sheets/complex-test/xl/drawings/_rels/drawing2.xml.rels +2 -0
  62. data/examples/unzipped-sheets/complex-test/xl/drawings/drawing1.xml +2 -0
  63. data/examples/unzipped-sheets/complex-test/xl/drawings/drawing2.xml +2 -0
  64. data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing1.vml +46 -0
  65. data/examples/unzipped-sheets/complex-test/xl/drawings/vmlDrawing2.vml +46 -0
  66. data/examples/unzipped-sheets/complex-test/xl/sharedStrings.xml +2 -0
  67. data/examples/unzipped-sheets/complex-test/xl/styles.xml +2 -0
  68. data/examples/unzipped-sheets/complex-test/xl/theme/theme1.xml +2 -0
  69. data/examples/unzipped-sheets/complex-test/xl/workbook.xml +2 -0
  70. data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  71. data/examples/unzipped-sheets/complex-test/xl/worksheets/_rels/sheet2.xml.rels +2 -0
  72. data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet1.xml +2 -0
  73. data/examples/unzipped-sheets/complex-test/xl/worksheets/sheet2.xml +2 -0
  74. data/examples/unzipped-sheets/namedReferenceTest/[Content_Types].xml +2 -0
  75. data/examples/unzipped-sheets/namedReferenceTest/docProps/app.xml +2 -0
  76. data/examples/unzipped-sheets/namedReferenceTest/docProps/core.xml +2 -0
  77. data/examples/unzipped-sheets/namedReferenceTest/docProps/thumbnail.jpeg +0 -0
  78. data/examples/unzipped-sheets/namedReferenceTest/xl/_rels/workbook.xml.rels +2 -0
  79. data/examples/unzipped-sheets/namedReferenceTest/xl/calcChain.xml +2 -0
  80. data/examples/unzipped-sheets/namedReferenceTest/xl/styles.xml +2 -0
  81. data/examples/unzipped-sheets/namedReferenceTest/xl/theme/theme1.xml +2 -0
  82. data/examples/unzipped-sheets/namedReferenceTest/xl/workbook.xml +2 -0
  83. data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet1.xml +2 -0
  84. data/examples/unzipped-sheets/namedReferenceTest/xl/worksheets/sheet2.xml +2 -0
  85. data/examples/unzipped-sheets/sharedFormulaTest/[Content_Types].xml +2 -0
  86. data/examples/unzipped-sheets/sharedFormulaTest/docProps/app.xml +2 -0
  87. data/examples/unzipped-sheets/sharedFormulaTest/docProps/core.xml +2 -0
  88. data/examples/unzipped-sheets/sharedFormulaTest/docProps/thumbnail.jpeg +0 -0
  89. data/examples/unzipped-sheets/sharedFormulaTest/xl/_rels/workbook.xml.rels +2 -0
  90. data/examples/unzipped-sheets/sharedFormulaTest/xl/calcChain.xml +2 -0
  91. data/examples/unzipped-sheets/sharedFormulaTest/xl/styles.xml +2 -0
  92. data/examples/unzipped-sheets/sharedFormulaTest/xl/theme/theme1.xml +2 -0
  93. data/examples/unzipped-sheets/sharedFormulaTest/xl/workbook.xml +2 -0
  94. data/examples/unzipped-sheets/sharedFormulaTest/xl/worksheets/sheet1.xml +2 -0
  95. data/examples/unzipped-sheets/table-test/[Content_Types].xml +2 -0
  96. data/examples/unzipped-sheets/table-test/docProps/app.xml +2 -0
  97. data/examples/unzipped-sheets/table-test/docProps/core.xml +2 -0
  98. data/examples/unzipped-sheets/table-test/xl/_rels/workbook.xml.rels +2 -0
  99. data/examples/unzipped-sheets/table-test/xl/calcChain.xml +2 -0
  100. data/examples/unzipped-sheets/table-test/xl/printerSettings/printerSettings1.bin +0 -0
  101. data/examples/unzipped-sheets/table-test/xl/sharedStrings.xml +2 -0
  102. data/examples/unzipped-sheets/table-test/xl/styles.xml +2 -0
  103. data/examples/unzipped-sheets/table-test/xl/tables/table1.xml +2 -0
  104. data/examples/unzipped-sheets/table-test/xl/theme/theme1.xml +2 -0
  105. data/examples/unzipped-sheets/table-test/xl/workbook.xml +2 -0
  106. data/examples/unzipped-sheets/table-test/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  107. data/examples/unzipped-sheets/table-test/xl/worksheets/sheet1.xml +2 -0
  108. data/examples/unzipped-sheets/table-test/xl/worksheets/sheet2.xml +2 -0
  109. data/examples/unzipped-sheets/table-test/xl/worksheets/sheet3.xml +2 -0
  110. data/examples/unzipped-sheets/test1/[Content_Types].xml +2 -0
  111. data/examples/unzipped-sheets/test1/docProps/app.xml +2 -0
  112. data/examples/unzipped-sheets/test1/docProps/core.xml +2 -0
  113. data/examples/unzipped-sheets/test1/docProps/thumbnail.jpeg +0 -0
  114. data/examples/unzipped-sheets/test1/xl/_rels/workbook.xml.rels +2 -0
  115. data/examples/unzipped-sheets/test1/xl/calcChain.xml +2 -0
  116. data/examples/unzipped-sheets/test1/xl/sharedStrings.xml +2 -0
  117. data/examples/unzipped-sheets/test1/xl/styles.xml +2 -0
  118. data/examples/unzipped-sheets/test1/xl/theme/theme1.xml +2 -0
  119. data/examples/unzipped-sheets/test1/xl/workbook.xml +2 -0
  120. data/examples/unzipped-sheets/test1/xl/worksheets/sheet1.xml +2 -0
  121. data/examples/unzipped-sheets/test1/xl/worksheets/sheet2.xml +2 -0
  122. data/examples/unzipped-sheets/test2/[Content_Types].xml +2 -0
  123. data/examples/unzipped-sheets/test2/docProps/app.xml +2 -0
  124. data/examples/unzipped-sheets/test2/docProps/core.xml +2 -0
  125. data/examples/unzipped-sheets/test2/xl/_rels/workbook.xml.rels +2 -0
  126. data/examples/unzipped-sheets/test2/xl/calcChain.xml +2 -0
  127. data/examples/unzipped-sheets/test2/xl/charts/chart1.xml +2 -0
  128. data/examples/unzipped-sheets/test2/xl/charts/chart2.xml +2 -0
  129. data/examples/unzipped-sheets/test2/xl/charts/chart3.xml +2 -0
  130. data/examples/unzipped-sheets/test2/xl/charts/chart4.xml +2 -0
  131. data/examples/unzipped-sheets/test2/xl/drawings/_rels/drawing1.xml.rels +2 -0
  132. data/examples/unzipped-sheets/test2/xl/drawings/drawing1.xml +2 -0
  133. data/examples/unzipped-sheets/test2/xl/sharedStrings.xml +2 -0
  134. data/examples/unzipped-sheets/test2/xl/styles.xml +2 -0
  135. data/examples/unzipped-sheets/test2/xl/tables/table1.xml +2 -0
  136. data/examples/unzipped-sheets/test2/xl/theme/theme1.xml +2 -0
  137. data/examples/unzipped-sheets/test2/xl/workbook.xml +2 -0
  138. data/examples/unzipped-sheets/test2/xl/worksheets/_rels/sheet1.xml.rels +2 -0
  139. data/examples/unzipped-sheets/test2/xl/worksheets/_rels/sheet3.xml.rels +2 -0
  140. data/examples/unzipped-sheets/test2/xl/worksheets/sheet1.xml +2 -0
  141. data/examples/unzipped-sheets/test2/xl/worksheets/sheet2.xml +2 -0
  142. data/examples/unzipped-sheets/test2/xl/worksheets/sheet3.xml +2 -0
  143. data/lib/formulae/parse/formula_peg.rb +4 -3
  144. data/lib/formulae/parse/formula_peg.txt +3 -3
  145. data/lib/formulae/run/reference.rb +1 -1
  146. data/spec/formula_peg_spec.rb +13 -0
  147. 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
+