osheet 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. data/Gemfile.lock +24 -4
  2. data/examples/basic_with_templates.rb +1 -1
  3. data/examples/formats.rb +1 -1
  4. data/examples/styles.rb +1 -1
  5. data/examples/trivial.rb +1 -1
  6. data/lib/osheet/associations.rb +5 -9
  7. data/lib/osheet/cell.rb +24 -20
  8. data/lib/osheet/column.rb +19 -15
  9. data/lib/osheet/instance.rb +32 -0
  10. data/lib/osheet/railtie.rb +9 -0
  11. data/lib/osheet/row.rb +19 -15
  12. data/lib/osheet/style.rb +13 -8
  13. data/lib/osheet/styled_element.rb +1 -1
  14. data/lib/osheet/template.rb +13 -4
  15. data/lib/osheet/template_handler/rails.rb +44 -0
  16. data/lib/osheet/template_handler/tilt.rb +42 -0
  17. data/lib/osheet/template_handler.rb +2 -0
  18. data/lib/osheet/version.rb +1 -1
  19. data/lib/osheet/workbook.rb +22 -11
  20. data/lib/osheet/workbook_element.rb +10 -14
  21. data/lib/osheet/worksheet.rb +10 -6
  22. data/lib/osheet/worksheet_element.rb +3 -4
  23. data/lib/osheet/xmlss_writer/base.rb +5 -5
  24. data/lib/osheet.rb +16 -1
  25. data/osheet.gemspec +6 -1
  26. data/test/app_helper.rb +66 -0
  27. data/test/cell_test.rb +30 -14
  28. data/test/column_test.rb +24 -8
  29. data/test/helper.rb +4 -3
  30. data/test/mixin_test.rb +1 -2
  31. data/test/mixins.rb +1 -1
  32. data/test/osheet_test.rb +4 -2
  33. data/test/rails/three/.gitignore +4 -0
  34. data/test/rails/three/Gemfile +5 -0
  35. data/test/rails/three/Gemfile.lock +88 -0
  36. data/test/rails/three/app/controllers/application_controller.rb +3 -0
  37. data/test/rails/three/app/controllers/things_controller.rb +10 -0
  38. data/test/rails/three/app/helpers/application_helper.rb +2 -0
  39. data/test/rails/three/app/views/layouts/application.html.erb +14 -0
  40. data/test/rails/three/app/views/things/index.xls.osheet +15 -0
  41. data/test/rails/three/config/application.rb +42 -0
  42. data/test/rails/three/config/boot.rb +13 -0
  43. data/test/rails/three/config/database.yml +22 -0
  44. data/test/rails/three/config/environment.rb +5 -0
  45. data/test/rails/three/config/environments/development.rb +26 -0
  46. data/test/rails/three/config/environments/production.rb +49 -0
  47. data/test/rails/three/config/environments/test.rb +35 -0
  48. data/test/rails/three/config/initializers/app.rb +0 -0
  49. data/test/rails/three/config/initializers/backtrace_silencers.rb +7 -0
  50. data/test/rails/three/config/initializers/inflections.rb +10 -0
  51. data/test/rails/three/config/initializers/mime_types.rb +5 -0
  52. data/test/rails/three/config/initializers/secret_token.rb +7 -0
  53. data/test/rails/three/config/initializers/session_store.rb +8 -0
  54. data/test/rails/three/config/locales/en.yml +5 -0
  55. data/test/rails/three/config/routes.rb +3 -0
  56. data/test/rails/three/config.ru +4 -0
  57. data/test/rails/three/db/seeds.rb +7 -0
  58. data/test/rails/three/doc/README_FOR_APP +2 -0
  59. data/test/rails/three/lib/tasks/.gitkeep +0 -0
  60. data/test/rails/three/script/rails +6 -0
  61. data/test/rails/two/.bundle/config +2 -0
  62. data/test/rails/two/Booting +0 -0
  63. data/test/rails/two/Gemfile +5 -0
  64. data/test/rails/two/Gemfile.lock +45 -0
  65. data/test/rails/two/Rails +0 -0
  66. data/test/rails/two/app/controllers/application_controller.rb +20 -0
  67. data/test/rails/two/app/controllers/things_controller.rb +10 -0
  68. data/test/rails/two/app/helpers/application_helper.rb +3 -0
  69. data/test/rails/two/app/views/things/index.xls.osheet +15 -0
  70. data/test/rails/two/config/boot.rb +128 -0
  71. data/test/rails/two/config/database.yml +22 -0
  72. data/test/rails/two/config/environment.rb +41 -0
  73. data/test/rails/two/config/environments/development.rb +17 -0
  74. data/test/rails/two/config/environments/production.rb +28 -0
  75. data/test/rails/two/config/environments/test.rb +28 -0
  76. data/test/rails/two/config/initializers/app.rb +2 -0
  77. data/test/rails/two/config/initializers/backtrace_silencers.rb +7 -0
  78. data/test/rails/two/config/initializers/cookie_verification_secret.rb +7 -0
  79. data/test/rails/two/config/initializers/inflections.rb +10 -0
  80. data/test/rails/two/config/initializers/mime_types.rb +5 -0
  81. data/test/rails/two/config/initializers/new_rails_defaults.rb +21 -0
  82. data/test/rails/two/config/initializers/session_store.rb +15 -0
  83. data/test/rails/two/config/locales/en.yml +5 -0
  84. data/test/rails/two/config/routes.rb +3 -0
  85. data/test/rails/two/db/development.sqlite3 +0 -0
  86. data/test/rails/two/db/seeds.rb +7 -0
  87. data/test/rails/two/script/about +4 -0
  88. data/test/rails/two/script/console +3 -0
  89. data/test/rails/two/script/dbconsole +3 -0
  90. data/test/rails/two/script/destroy +3 -0
  91. data/test/rails/two/script/generate +3 -0
  92. data/test/rails/two/script/performance/benchmarker +3 -0
  93. data/test/rails/two/script/performance/profiler +3 -0
  94. data/test/rails/two/script/plugin +3 -0
  95. data/test/rails/two/script/runner +3 -0
  96. data/test/rails/two/script/server +3 -0
  97. data/test/rails/two/tmp/pids/server.pid +1 -0
  98. data/test/rails_test.rb +38 -0
  99. data/test/row_test.rb +24 -8
  100. data/test/sinatra/app.rb +16 -0
  101. data/test/sinatra/views/index.osheet +13 -0
  102. data/test/sinatra_test.rb +19 -0
  103. data/test/style_test.rb +19 -3
  104. data/test/template_test.rb +19 -0
  105. data/test/workbook_test.rb +18 -3
  106. data/test/worksheet_test.rb +18 -2
  107. metadata +232 -11
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/plugin'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/runner'
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env ruby
2
+ require File.expand_path('../../config/boot', __FILE__)
3
+ require 'commands/server'
@@ -0,0 +1 @@
1
+ 23695
@@ -0,0 +1,38 @@
1
+ require "test/helper"
2
+ require "test/app_helper"
3
+ require 'open4'
4
+ require 'rest_client'
5
+
6
+ module Osheet
7
+ class RailsTwoTest < Test::Unit::TestCase
8
+ include RailsTestHelpers
9
+
10
+ before_once do
11
+ test_rails_app :two, :start, 'localhost', 3002
12
+ end
13
+ after_once do
14
+ test_rails_app :two, :stop, 'localhost', 3002
15
+ end
16
+
17
+ should "respond with osheet data" do
18
+ assert_osheet_data 'rails two', RestClient.get("http://localhost:3002/things.xls")
19
+ end
20
+
21
+ end
22
+
23
+ class RailsThreeTest < Test::Unit::TestCase
24
+ include RailsTestHelpers
25
+
26
+ before_once do
27
+ test_rails_app :three, :start, 'localhost', 3003
28
+ end
29
+ after_once do
30
+ test_rails_app :three, :stop, 'localhost', 3003
31
+ end
32
+
33
+ should "respond with osheet data" do
34
+ assert_osheet_data 'rails three', RestClient.get("http://localhost:3003/things.xls")
35
+ end
36
+
37
+ end
38
+ end
data/test/row_test.rb CHANGED
@@ -17,10 +17,10 @@ module Osheet
17
17
  should_have_instance_method :meta
18
18
 
19
19
  should "set it's defaults" do
20
- assert_equal nil, subject.send(:instance_variable_get, "@height")
21
- assert_equal false, subject.send(:instance_variable_get, "@autofit")
20
+ assert_equal nil, subject.send(:get_ivar, "height")
21
+ assert_equal false, subject.send(:get_ivar, "autofit")
22
22
  assert !subject.autofit?
23
- assert_equal false, subject.send(:instance_variable_get, "@hidden")
23
+ assert_equal false, subject.send(:get_ivar, "hidden")
24
24
  assert !subject.hidden?
25
25
 
26
26
  assert_equal [], subject.cells
@@ -41,10 +41,10 @@ module Osheet
41
41
  end
42
42
 
43
43
  should "should set them correctly" do
44
- assert_equal 100, subject.send(:instance_variable_get, "@height")
45
- assert_equal true, subject.send(:instance_variable_get, "@autofit")
44
+ assert_equal 100, subject.send(:get_ivar, "height")
45
+ assert_equal true, subject.send(:get_ivar, "autofit")
46
46
  assert subject.autofit?
47
- assert_equal true, subject.send(:instance_variable_get, "@hidden")
47
+ assert_equal true, subject.send(:get_ivar, "hidden")
48
48
  assert subject.hidden?
49
49
  assert_equal({}, subject.meta)
50
50
  end
@@ -72,8 +72,8 @@ module Osheet
72
72
 
73
73
  should "cast autofit and hidden to bool" do
74
74
  rw = Row.new { autofit :true; hidden 'false'}
75
- assert_kind_of ::TrueClass, rw.send(:instance_variable_get, "@autofit")
76
- assert_kind_of ::TrueClass, rw.send(:instance_variable_get, "@hidden")
75
+ assert_kind_of ::TrueClass, rw.send(:get_ivar, "autofit")
76
+ assert_kind_of ::TrueClass, rw.send(:get_ivar, "hidden")
77
77
  end
78
78
 
79
79
  should_hm(Row, :cells, Cell)
@@ -81,4 +81,20 @@ module Osheet
81
81
  end
82
82
 
83
83
  end
84
+
85
+ class RowBindingTest < Test::Unit::TestCase
86
+ context "a row defined w/ a block" do
87
+ should "access instance vars from that block's binding" do
88
+ @test = 50
89
+ @row = Row.new { height @test }
90
+
91
+ assert !@row.send(:instance_variable_get, "@test").nil?
92
+ assert_equal @test, @row.send(:instance_variable_get, "@test")
93
+ assert_equal @test.object_id, @row.send(:instance_variable_get, "@test").object_id
94
+ assert_equal @test, @row.attributes[:height]
95
+ assert_equal @test.object_id, @row.attributes[:height].object_id
96
+ end
97
+ end
98
+ end
99
+
84
100
  end
@@ -0,0 +1,16 @@
1
+ require 'sinatra/base'
2
+ require 'osheet'
3
+
4
+ Osheet.register
5
+
6
+ class SinatraApp < Sinatra::Base
7
+
8
+ configure do
9
+ set :root, File.expand_path(File.dirname(__FILE__))
10
+ end
11
+
12
+ get '/index.xls' do
13
+ @times = 2
14
+ osheet :index
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ title "sinatra test"
2
+
3
+ worksheet {
4
+ name 'from sinatra'
5
+
6
+ row {
7
+ 1.upto(@times) do |n|
8
+ cell {
9
+ data n
10
+ }
11
+ end
12
+ }
13
+ }
@@ -0,0 +1,19 @@
1
+ require "test/helper"
2
+ require "test/app_helper"
3
+ require 'test/sinatra/app'
4
+
5
+ class SinatraTest < Test::Unit::TestCase
6
+
7
+ def app
8
+ @app ||= SinatraApp
9
+ end
10
+
11
+ context "Requesting xls from a Sinatra app" do
12
+ before { @response = visit "/index.xls" }
13
+
14
+ should "respond with osheet data" do
15
+ assert_osheet_response 'sinatra', @response
16
+ end
17
+ end
18
+
19
+ end
data/test/style_test.rb CHANGED
@@ -31,7 +31,7 @@ module Osheet
31
31
  [ :align, :font, :bg,
32
32
  :border_left, :border_top, :border_right, :border_bottom
33
33
  ].each do |a|
34
- assert_equal [], subject.send(:instance_variable_get, "@#{a}")
34
+ assert_equal [], subject.send(:get_ivar, a)
35
35
  end
36
36
  end
37
37
 
@@ -51,7 +51,7 @@ module Osheet
51
51
  should "collect styles for #{a}" do
52
52
  args = [1, "#FF0000", "Verdana", :love, 1.2]
53
53
  subject.send(a, *args)
54
- assert_equal args, subject.send(:instance_variable_get, "@#{a}")
54
+ assert_equal args, subject.send(:get_ivar, a)
55
55
  end
56
56
  end
57
57
 
@@ -59,7 +59,7 @@ module Osheet
59
59
  args = [:thick, '#FF00FF', :dot]
60
60
  subject.border *args
61
61
  [ :border_left, :border_top, :border_right, :border_bottom].each do |a|
62
- assert_equal args, subject.send(:instance_variable_get, "@#{a}")
62
+ assert_equal args, subject.send(:get_ivar, a)
63
63
  end
64
64
  end
65
65
 
@@ -89,4 +89,20 @@ module Osheet
89
89
  end
90
90
 
91
91
  end
92
+
93
+ class StyleBindingTest < Test::Unit::TestCase
94
+ context "a style defined w/ a block" do
95
+ should "access instance vars from that block's binding" do
96
+ @test = 20
97
+ @style = Style.new('.test') { font @test }
98
+
99
+ assert !@style.send(:instance_variable_get, "@test").nil?
100
+ assert_equal @test, @style.send(:instance_variable_get, "@test")
101
+ assert_equal @test.object_id, @style.send(:instance_variable_get, "@test").object_id
102
+ assert_equal @test, @style.attributes[:font].first
103
+ assert_equal @test.object_id, @style.attributes[:font].first.object_id
104
+ end
105
+ end
106
+ end
107
+
92
108
  end
@@ -60,4 +60,23 @@ module Osheet
60
60
  end
61
61
 
62
62
  end
63
+
64
+ class StyleBindingTest < Test::Unit::TestCase
65
+ context "a template defined w/ a block" do
66
+ should "access instance vars from that block's binding" do
67
+ @test = 'test thing'
68
+ @workbook = Workbook.new {
69
+ template('worksheet', :thing) { name @test }
70
+ worksheet(:thing)
71
+ }
72
+
73
+ assert !@workbook.worksheets.first.send(:instance_variable_get, "@test").nil?
74
+ assert_equal @test, @workbook.worksheets.first.send(:instance_variable_get, "@test")
75
+ assert_equal @test.object_id, @workbook.worksheets.first.send(:instance_variable_get, "@test").object_id
76
+ assert_equal @test, @workbook.worksheets.first.attributes[:name]
77
+ assert_equal @test.object_id, @workbook.worksheets.first.attributes[:name].object_id
78
+ end
79
+ end
80
+ end
81
+
63
82
  end
@@ -14,7 +14,7 @@ module Osheet
14
14
  should_hm(Workbook, :worksheets, Worksheet)
15
15
 
16
16
  should "set it's defaults" do
17
- assert_equal nil, subject.send(:instance_variable_get, "@title")
17
+ assert_equal nil, subject.send(:get_ivar, "title")
18
18
  assert_equal [], subject.worksheets
19
19
  assert_equal StyleSet.new, subject.styles
20
20
  assert_equal TemplateSet.new, subject.templates
@@ -41,7 +41,7 @@ module Osheet
41
41
  end
42
42
 
43
43
  should "set it's title" do
44
- assert_equal "The Poo", subject.send(:instance_variable_get, "@title")
44
+ assert_equal "The Poo", subject.send(:get_ivar, "title")
45
45
  end
46
46
 
47
47
  should "know it's title" do
@@ -54,7 +54,7 @@ module Osheet
54
54
  end
55
55
 
56
56
  should "set it's worksheets" do
57
- worksheets = subject.send(:instance_variable_get, "@worksheets")
57
+ worksheets = subject.send(:get_ivar, "worksheets")
58
58
  assert_equal 1, worksheets.size
59
59
  assert_kind_of Worksheet, worksheets.first
60
60
  end
@@ -139,6 +139,21 @@ module Osheet
139
139
 
140
140
  end
141
141
 
142
+ class WorksheetBindingTest < Test::Unit::TestCase
143
+ context "a workbook defined w/ a block" do
144
+ should "access instance vars from that block's binding" do
145
+ @test = 'test'
146
+ @workbook = Workbook.new { title @test }
147
+
148
+ assert !@workbook.send(:instance_variable_get, "@test").nil?
149
+ assert_equal @test, @workbook.send(:instance_variable_get, "@test")
150
+ assert_equal @test.object_id, @workbook.send(:instance_variable_get, "@test").object_id
151
+ assert_equal @test, @workbook.attributes[:title]
152
+ assert_equal @test.object_id, @workbook.attributes[:title].object_id
153
+ end
154
+ end
155
+ end
156
+
142
157
  class WorkbookMixins < Test::Unit::TestCase
143
158
  context "a workbook w/ mixins" do
144
159
  subject do
@@ -13,7 +13,7 @@ module Osheet
13
13
  should_have_instance_method :meta
14
14
 
15
15
  should "set it's defaults" do
16
- assert_equal nil, subject.send(:instance_variable_get, "@name")
16
+ assert_equal nil, subject.send(:get_ivar, "name")
17
17
  assert_equal [], subject.columns
18
18
  assert_equal [], subject.rows
19
19
 
@@ -43,7 +43,7 @@ module Osheet
43
43
  end
44
44
 
45
45
  should "set it's name and meta" do
46
- assert_equal "Poo!", subject.send(:instance_variable_get, "@name")
46
+ assert_equal "Poo!", subject.send(:get_ivar, "name")
47
47
  assert_equal({}, subject.meta)
48
48
  end
49
49
 
@@ -81,4 +81,20 @@ module Osheet
81
81
  end
82
82
 
83
83
  end
84
+
85
+ class WorksheetBindingTest < Test::Unit::TestCase
86
+ context "a worksheet defined w/ a block" do
87
+ should "access instance vars from that block's binding" do
88
+ @test = 'test'
89
+ @worksheet = Worksheet.new { name @test }
90
+
91
+ assert !@worksheet.send(:instance_variable_get, "@test").nil?
92
+ assert_equal @test, @worksheet.send(:instance_variable_get, "@test")
93
+ assert_equal @test.object_id, @worksheet.send(:instance_variable_get, "@test").object_id
94
+ assert_equal @test, @worksheet.attributes[:name]
95
+ assert_equal @test.object_id, @worksheet.attributes[:name].object_id
96
+ end
97
+ end
98
+ end
99
+
84
100
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osheet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 4
8
+ - 5
9
9
  - 0
10
- version: 0.4.0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Kelly Redding
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-14 00:00:00 -05:00
18
+ date: 2011-04-19 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -50,9 +50,85 @@ dependencies:
50
50
  type: :development
51
51
  version_requirements: *id002
52
52
  - !ruby/object:Gem::Dependency
53
- name: enumeration
53
+ name: sinatra
54
54
  prerelease: false
55
55
  requirement: &id003 !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ hash: 51
61
+ segments:
62
+ - 0
63
+ - 9
64
+ - 4
65
+ version: 0.9.4
66
+ type: :development
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: rack-test
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ hash: 13
77
+ segments:
78
+ - 0
79
+ - 5
80
+ - 3
81
+ version: 0.5.3
82
+ type: :development
83
+ version_requirements: *id004
84
+ - !ruby/object:Gem::Dependency
85
+ name: webrat
86
+ prerelease: false
87
+ requirement: &id005 !ruby/object:Gem::Requirement
88
+ none: false
89
+ requirements:
90
+ - - ">="
91
+ - !ruby/object:Gem::Version
92
+ hash: 7
93
+ segments:
94
+ - 0
95
+ - 6
96
+ - 0
97
+ version: 0.6.0
98
+ type: :development
99
+ version_requirements: *id005
100
+ - !ruby/object:Gem::Dependency
101
+ name: open4
102
+ prerelease: false
103
+ requirement: &id006 !ruby/object:Gem::Requirement
104
+ none: false
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ hash: 3
109
+ segments:
110
+ - 0
111
+ version: "0"
112
+ type: :development
113
+ version_requirements: *id006
114
+ - !ruby/object:Gem::Dependency
115
+ name: rest-client
116
+ prerelease: false
117
+ requirement: &id007 !ruby/object:Gem::Requirement
118
+ none: false
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ hash: 3
123
+ segments:
124
+ - 0
125
+ version: "0"
126
+ type: :development
127
+ version_requirements: *id007
128
+ - !ruby/object:Gem::Dependency
129
+ name: enumeration
130
+ prerelease: false
131
+ requirement: &id008 !ruby/object:Gem::Requirement
56
132
  none: false
57
133
  requirements:
58
134
  - - ~>
@@ -64,23 +140,23 @@ dependencies:
64
140
  - 0
65
141
  version: 1.1.0
66
142
  type: :runtime
67
- version_requirements: *id003
143
+ version_requirements: *id008
68
144
  - !ruby/object:Gem::Dependency
69
145
  name: xmlss
70
146
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
147
+ requirement: &id009 !ruby/object:Gem::Requirement
72
148
  none: false
73
149
  requirements:
74
150
  - - ~>
75
151
  - !ruby/object:Gem::Version
76
- hash: 27
152
+ hash: 23
77
153
  segments:
78
154
  - 0
79
- - 1
155
+ - 2
80
156
  - 0
81
- version: 0.1.0
157
+ version: 0.2.0
82
158
  type: :runtime
83
- version_requirements: *id004
159
+ version_requirements: *id009
84
160
  description: A DSL for specifying and generating spreadsheets using Ruby
85
161
  email:
86
162
  - kelly@kelredd.com
@@ -119,13 +195,18 @@ files:
119
195
  - lib/osheet/format/scientific.rb
120
196
  - lib/osheet/format/special.rb
121
197
  - lib/osheet/format/text.rb
198
+ - lib/osheet/instance.rb
122
199
  - lib/osheet/meta_element.rb
123
200
  - lib/osheet/mixin.rb
201
+ - lib/osheet/railtie.rb
124
202
  - lib/osheet/row.rb
125
203
  - lib/osheet/style.rb
126
204
  - lib/osheet/style_set.rb
127
205
  - lib/osheet/styled_element.rb
128
206
  - lib/osheet/template.rb
207
+ - lib/osheet/template_handler.rb
208
+ - lib/osheet/template_handler/rails.rb
209
+ - lib/osheet/template_handler/tilt.rb
129
210
  - lib/osheet/template_set.rb
130
211
  - lib/osheet/version.rb
131
212
  - lib/osheet/workbook.rb
@@ -137,6 +218,7 @@ files:
137
218
  - lib/osheet/xmlss_writer/elements.rb
138
219
  - lib/osheet/xmlss_writer/styles.rb
139
220
  - osheet.gemspec
221
+ - test/app_helper.rb
140
222
  - test/cell_test.rb
141
223
  - test/column_test.rb
142
224
  - test/env.rb
@@ -156,7 +238,76 @@ files:
156
238
  - test/mixin_test.rb
157
239
  - test/mixins.rb
158
240
  - test/osheet_test.rb
241
+ - test/rails/three/.gitignore
242
+ - test/rails/three/Gemfile
243
+ - test/rails/three/Gemfile.lock
244
+ - test/rails/three/app/controllers/application_controller.rb
245
+ - test/rails/three/app/controllers/things_controller.rb
246
+ - test/rails/three/app/helpers/application_helper.rb
247
+ - test/rails/three/app/views/layouts/application.html.erb
248
+ - test/rails/three/app/views/things/index.xls.osheet
249
+ - test/rails/three/config.ru
250
+ - test/rails/three/config/application.rb
251
+ - test/rails/three/config/boot.rb
252
+ - test/rails/three/config/database.yml
253
+ - test/rails/three/config/environment.rb
254
+ - test/rails/three/config/environments/development.rb
255
+ - test/rails/three/config/environments/production.rb
256
+ - test/rails/three/config/environments/test.rb
257
+ - test/rails/three/config/initializers/app.rb
258
+ - test/rails/three/config/initializers/backtrace_silencers.rb
259
+ - test/rails/three/config/initializers/inflections.rb
260
+ - test/rails/three/config/initializers/mime_types.rb
261
+ - test/rails/three/config/initializers/secret_token.rb
262
+ - test/rails/three/config/initializers/session_store.rb
263
+ - test/rails/three/config/locales/en.yml
264
+ - test/rails/three/config/routes.rb
265
+ - test/rails/three/db/seeds.rb
266
+ - test/rails/three/doc/README_FOR_APP
267
+ - test/rails/three/lib/tasks/.gitkeep
268
+ - test/rails/three/script/rails
269
+ - test/rails/two/.bundle/config
270
+ - test/rails/two/Booting
271
+ - test/rails/two/Gemfile
272
+ - test/rails/two/Gemfile.lock
273
+ - test/rails/two/Rails
274
+ - test/rails/two/app/controllers/application_controller.rb
275
+ - test/rails/two/app/controllers/things_controller.rb
276
+ - test/rails/two/app/helpers/application_helper.rb
277
+ - test/rails/two/app/views/things/index.xls.osheet
278
+ - test/rails/two/config/boot.rb
279
+ - test/rails/two/config/database.yml
280
+ - test/rails/two/config/environment.rb
281
+ - test/rails/two/config/environments/development.rb
282
+ - test/rails/two/config/environments/production.rb
283
+ - test/rails/two/config/environments/test.rb
284
+ - test/rails/two/config/initializers/app.rb
285
+ - test/rails/two/config/initializers/backtrace_silencers.rb
286
+ - test/rails/two/config/initializers/cookie_verification_secret.rb
287
+ - test/rails/two/config/initializers/inflections.rb
288
+ - test/rails/two/config/initializers/mime_types.rb
289
+ - test/rails/two/config/initializers/new_rails_defaults.rb
290
+ - test/rails/two/config/initializers/session_store.rb
291
+ - test/rails/two/config/locales/en.yml
292
+ - test/rails/two/config/routes.rb
293
+ - test/rails/two/db/development.sqlite3
294
+ - test/rails/two/db/seeds.rb
295
+ - test/rails/two/script/about
296
+ - test/rails/two/script/console
297
+ - test/rails/two/script/dbconsole
298
+ - test/rails/two/script/destroy
299
+ - test/rails/two/script/generate
300
+ - test/rails/two/script/performance/benchmarker
301
+ - test/rails/two/script/performance/profiler
302
+ - test/rails/two/script/plugin
303
+ - test/rails/two/script/runner
304
+ - test/rails/two/script/server
305
+ - test/rails/two/tmp/pids/server.pid
306
+ - test/rails_test.rb
159
307
  - test/row_test.rb
308
+ - test/sinatra/app.rb
309
+ - test/sinatra/views/index.osheet
310
+ - test/sinatra_test.rb
160
311
  - test/style_set_test.rb
161
312
  - test/style_test.rb
162
313
  - test/template_set_test.rb
@@ -201,6 +352,7 @@ signing_key:
201
352
  specification_version: 3
202
353
  summary: A DSL for specifying and generating spreadsheets using Ruby
203
354
  test_files:
355
+ - test/app_helper.rb
204
356
  - test/cell_test.rb
205
357
  - test/column_test.rb
206
358
  - test/env.rb
@@ -220,7 +372,76 @@ test_files:
220
372
  - test/mixin_test.rb
221
373
  - test/mixins.rb
222
374
  - test/osheet_test.rb
375
+ - test/rails/three/.gitignore
376
+ - test/rails/three/Gemfile
377
+ - test/rails/three/Gemfile.lock
378
+ - test/rails/three/app/controllers/application_controller.rb
379
+ - test/rails/three/app/controllers/things_controller.rb
380
+ - test/rails/three/app/helpers/application_helper.rb
381
+ - test/rails/three/app/views/layouts/application.html.erb
382
+ - test/rails/three/app/views/things/index.xls.osheet
383
+ - test/rails/three/config.ru
384
+ - test/rails/three/config/application.rb
385
+ - test/rails/three/config/boot.rb
386
+ - test/rails/three/config/database.yml
387
+ - test/rails/three/config/environment.rb
388
+ - test/rails/three/config/environments/development.rb
389
+ - test/rails/three/config/environments/production.rb
390
+ - test/rails/three/config/environments/test.rb
391
+ - test/rails/three/config/initializers/app.rb
392
+ - test/rails/three/config/initializers/backtrace_silencers.rb
393
+ - test/rails/three/config/initializers/inflections.rb
394
+ - test/rails/three/config/initializers/mime_types.rb
395
+ - test/rails/three/config/initializers/secret_token.rb
396
+ - test/rails/three/config/initializers/session_store.rb
397
+ - test/rails/three/config/locales/en.yml
398
+ - test/rails/three/config/routes.rb
399
+ - test/rails/three/db/seeds.rb
400
+ - test/rails/three/doc/README_FOR_APP
401
+ - test/rails/three/lib/tasks/.gitkeep
402
+ - test/rails/three/script/rails
403
+ - test/rails/two/.bundle/config
404
+ - test/rails/two/Booting
405
+ - test/rails/two/Gemfile
406
+ - test/rails/two/Gemfile.lock
407
+ - test/rails/two/Rails
408
+ - test/rails/two/app/controllers/application_controller.rb
409
+ - test/rails/two/app/controllers/things_controller.rb
410
+ - test/rails/two/app/helpers/application_helper.rb
411
+ - test/rails/two/app/views/things/index.xls.osheet
412
+ - test/rails/two/config/boot.rb
413
+ - test/rails/two/config/database.yml
414
+ - test/rails/two/config/environment.rb
415
+ - test/rails/two/config/environments/development.rb
416
+ - test/rails/two/config/environments/production.rb
417
+ - test/rails/two/config/environments/test.rb
418
+ - test/rails/two/config/initializers/app.rb
419
+ - test/rails/two/config/initializers/backtrace_silencers.rb
420
+ - test/rails/two/config/initializers/cookie_verification_secret.rb
421
+ - test/rails/two/config/initializers/inflections.rb
422
+ - test/rails/two/config/initializers/mime_types.rb
423
+ - test/rails/two/config/initializers/new_rails_defaults.rb
424
+ - test/rails/two/config/initializers/session_store.rb
425
+ - test/rails/two/config/locales/en.yml
426
+ - test/rails/two/config/routes.rb
427
+ - test/rails/two/db/development.sqlite3
428
+ - test/rails/two/db/seeds.rb
429
+ - test/rails/two/script/about
430
+ - test/rails/two/script/console
431
+ - test/rails/two/script/dbconsole
432
+ - test/rails/two/script/destroy
433
+ - test/rails/two/script/generate
434
+ - test/rails/two/script/performance/benchmarker
435
+ - test/rails/two/script/performance/profiler
436
+ - test/rails/two/script/plugin
437
+ - test/rails/two/script/runner
438
+ - test/rails/two/script/server
439
+ - test/rails/two/tmp/pids/server.pid
440
+ - test/rails_test.rb
223
441
  - test/row_test.rb
442
+ - test/sinatra/app.rb
443
+ - test/sinatra/views/index.osheet
444
+ - test/sinatra_test.rb
224
445
  - test/style_set_test.rb
225
446
  - test/style_test.rb
226
447
  - test/template_set_test.rb