hmcgowan-roo 1.2.4

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 (62) hide show
  1. data/History.txt +225 -0
  2. data/README.txt +43 -0
  3. data/lib/roo/excel.rb +455 -0
  4. data/lib/roo/excelx.rb +654 -0
  5. data/lib/roo/generic_spreadsheet.rb +636 -0
  6. data/lib/roo/google.rb +411 -0
  7. data/lib/roo/openoffice.rb +508 -0
  8. data/lib/roo/roo_rails_helper.rb +81 -0
  9. data/lib/roo/version.rb +9 -0
  10. data/lib/roo.rb +11 -0
  11. data/test/Bibelbund.csv +3741 -0
  12. data/test/Bibelbund.ods +0 -0
  13. data/test/Bibelbund.xls +0 -0
  14. data/test/Bibelbund.xlsx +0 -0
  15. data/test/Bibelbund1.ods +0 -0
  16. data/test/bbu.ods +0 -0
  17. data/test/bbu.xls +0 -0
  18. data/test/bbu.xlsx +0 -0
  19. data/test/bode-v1.ods.zip +0 -0
  20. data/test/bode-v1.xls.zip +0 -0
  21. data/test/boolean.ods +0 -0
  22. data/test/boolean.xls +0 -0
  23. data/test/boolean.xlsx +0 -0
  24. data/test/borders.ods +0 -0
  25. data/test/borders.xls +0 -0
  26. data/test/borders.xlsx +0 -0
  27. data/test/bug-row-column-fixnum-float.xls +0 -0
  28. data/test/datetime.ods +0 -0
  29. data/test/datetime.xls +0 -0
  30. data/test/datetime.xlsx +0 -0
  31. data/test/emptysheets.ods +0 -0
  32. data/test/emptysheets.xls +0 -0
  33. data/test/false_encoding.xls +0 -0
  34. data/test/formula.ods +0 -0
  35. data/test/formula.xls +0 -0
  36. data/test/formula.xlsx +0 -0
  37. data/test/html-escape.ods +0 -0
  38. data/test/no_spreadsheet_file.txt +1 -0
  39. data/test/numbers1.csv +18 -0
  40. data/test/numbers1.ods +0 -0
  41. data/test/numbers1.xls +0 -0
  42. data/test/numbers1.xlsx +0 -0
  43. data/test/numbers1_excel.csv +18 -0
  44. data/test/only_one_sheet.ods +0 -0
  45. data/test/only_one_sheet.xls +0 -0
  46. data/test/only_one_sheet.xlsx +0 -0
  47. data/test/ric.ods +0 -0
  48. data/test/simple_spreadsheet.ods +0 -0
  49. data/test/simple_spreadsheet.xls +0 -0
  50. data/test/simple_spreadsheet.xlsx +0 -0
  51. data/test/simple_spreadsheet_from_italo.ods +0 -0
  52. data/test/simple_spreadsheet_from_italo.xls +0 -0
  53. data/test/style.ods +0 -0
  54. data/test/style.xls +0 -0
  55. data/test/style.xlsx +0 -0
  56. data/test/test_helper.rb +19 -0
  57. data/test/test_roo.rb +4946 -0
  58. data/test/time-test.csv +2 -0
  59. data/test/time-test.ods +0 -0
  60. data/test/time-test.xls +0 -0
  61. data/test/time-test.xlsx +0 -0
  62. metadata +225 -0
Binary file
Binary file
Binary file
Binary file
data/test/bbu.ods ADDED
Binary file
data/test/bbu.xls ADDED
Binary file
data/test/bbu.xlsx ADDED
Binary file
Binary file
Binary file
data/test/boolean.ods ADDED
Binary file
data/test/boolean.xls ADDED
Binary file
data/test/boolean.xlsx ADDED
Binary file
data/test/borders.ods ADDED
Binary file
data/test/borders.xls ADDED
Binary file
data/test/borders.xlsx ADDED
Binary file
data/test/datetime.ods ADDED
Binary file
data/test/datetime.xls ADDED
Binary file
Binary file
Binary file
Binary file
Binary file
data/test/formula.ods ADDED
Binary file
data/test/formula.xls ADDED
Binary file
data/test/formula.xlsx ADDED
Binary file
Binary file
@@ -0,0 +1 @@
1
+ this is intentionally not a spreadsheet file
data/test/numbers1.csv ADDED
@@ -0,0 +1,18 @@
1
+ 1,2,3,4,10,,
2
+ 5,6,7,8,9,"test",11
3
+ ,,,,,,
4
+ 10,11,12,13,14,,
5
+ 1961-11-21,,,,,,
6
+ "tata",,,,,,
7
+ ,,,,,,
8
+ ,,"thisisc8",,,,
9
+ ,,,"thisisd9",,,
10
+ ,,,,,,
11
+ "thisisa11",,,,,,
12
+ 41,42,43,44,45,,
13
+ ,,,,,,
14
+ ,,,,,,
15
+ 41,42,43,44,45,,
16
+ "einundvierzig","zweiundvierzig","dreiundvierzig","vierundvierzig","fuenfundvierzig",,
17
+ ,,,,,,
18
+ 2007-05-31,"dies hier als Date-Objekt",,,,,
data/test/numbers1.ods ADDED
Binary file
data/test/numbers1.xls ADDED
Binary file
Binary file
@@ -0,0 +1,18 @@
1
+ 1,2,3,4,,,
2
+ 5,6,7,8,9,"test",11
3
+ ,,,,,,
4
+ 10,11,12,13,14,,
5
+ 1961-11-21,,,,,,
6
+ "tata",,,,,,
7
+ ,,,,,,
8
+ ,,"thisisc8",,,,
9
+ ,,,"thisisd9",,,
10
+ ,,,,,,
11
+ "thisisa11",,,,,,
12
+ 41,42,43,44,45,,
13
+ ,,,,,,
14
+ ,,,,,,
15
+ 41,42,43,44,45,,
16
+ "einundvierzig","zweiundvierzig","dreiundvierzig","vierundvierzig","fuenfundvierzig",,
17
+ ,,,,,,
18
+ 2007-05-31,"dies hier als Date-Objekt",,,,,
Binary file
Binary file
Binary file
data/test/ric.ods ADDED
Binary file
Binary file
Binary file
Binary file
data/test/style.ods ADDED
Binary file
data/test/style.xls ADDED
Binary file
data/test/style.xlsx ADDED
Binary file
@@ -0,0 +1,19 @@
1
+ require 'test/unit'
2
+ require File.dirname(__FILE__) + '/../lib/roo'
3
+
4
+ # helper method
5
+ def after(d)
6
+ yield if DateTime.now > d
7
+ end
8
+
9
+ # helper method
10
+ def before(d)
11
+ yield if DateTime.now <= d
12
+ end
13
+
14
+ # helper method
15
+ def local_only
16
+ if ENV["roo_local"] == "thomas-p"
17
+ yield
18
+ end
19
+ end