osheet 1.0.0.rc.4 → 1.0.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/.gitignore +17 -6
 - data/Gemfile +3 -4
 - data/LICENSE.txt +22 -0
 - data/README.md +129 -0
 - data/Rakefile +1 -7
 - data/lib/osheet/cell.rb +0 -1
 - data/lib/osheet/column.rb +3 -2
 - data/lib/osheet/format.rb +9 -9
 - data/lib/osheet/format/accounting.rb +0 -1
 - data/lib/osheet/format/currency.rb +1 -1
 - data/lib/osheet/format/custom.rb +0 -1
 - data/lib/osheet/format/datetime.rb +0 -1
 - data/lib/osheet/format/fraction.rb +0 -1
 - data/lib/osheet/format/general.rb +2 -2
 - data/lib/osheet/format/number.rb +0 -1
 - data/lib/osheet/format/numeric.rb +2 -1
 - data/lib/osheet/format/percentage.rb +2 -1
 - data/lib/osheet/format/scientific.rb +2 -1
 - data/lib/osheet/format/special.rb +0 -1
 - data/lib/osheet/format/text.rb +0 -1
 - data/lib/osheet/mixin.rb +1 -0
 - data/lib/osheet/row.rb +0 -1
 - data/lib/osheet/style.rb +1 -0
 - data/lib/osheet/styled_element.rb +1 -0
 - data/lib/osheet/version.rb +1 -1
 - data/lib/osheet/workbook.rb +0 -4
 - data/lib/osheet/workbook_element.rb +0 -10
 - data/osheet.gemspec +18 -16
 - data/test/helper.rb +6 -2
 - data/test/{fixtures → support}/mixins.rb +0 -0
 - data/test/{fixtures → support}/test_writer.rb +0 -0
 - data/test/{cell_test.rb → unit/cell_tests.rb} +15 -12
 - data/test/{column_test.rb → unit/column_tests.rb} +10 -9
 - data/test/{format/accounting_test.rb → unit/format/accounting_tests.rb} +35 -26
 - data/test/{format/currency_test.rb → unit/format/currency_tests.rb} +35 -26
 - data/test/{format/custom_test.rb → unit/format/custom_tests.rb} +6 -5
 - data/test/{format/datetime_test.rb → unit/format/datetime_tests.rb} +6 -5
 - data/test/{format/fraction_test.rb → unit/format/fraction_tests.rb} +16 -16
 - data/test/{format/general_test.rb → unit/format/general_tests.rb} +5 -5
 - data/test/unit/format/number_tests.rb +96 -0
 - data/test/{format/percentage_test.rb → unit/format/percentage_tests.rb} +32 -23
 - data/test/{format/scientific_test.rb → unit/format/scientific_tests.rb} +31 -23
 - data/test/{format/special_test.rb → unit/format/special_tests.rb} +11 -11
 - data/test/{format/text_test.rb → unit/format/text_tests.rb} +4 -4
 - data/test/{format_test.rb → unit/format_tests.rb} +8 -7
 - data/test/{mixin_test.rb → unit/mixin_tests.rb} +11 -10
 - data/test/{partial_test.rb → unit/partial_tests.rb} +13 -10
 - data/test/{row_test.rb → unit/row_tests.rb} +11 -10
 - data/test/{style_test.rb → unit/style_tests.rb} +13 -14
 - data/test/{template_test.rb → unit/template_tests.rb} +15 -12
 - data/test/{workbook_element_test.rb → unit/workbook_element_tests.rb} +48 -54
 - data/test/{workbook_test.rb → unit/workbook_tests.rb} +34 -30
 - data/test/{worksheet_test.rb → unit/worksheet_tests.rb} +13 -13
 - metadata +70 -76
 - data/Gemfile.lock +0 -27
 - data/README.rdoc +0 -133
 - data/test/format/number_test.rb +0 -91
 - data/test/irb.rb +0 -9
 
| 
         @@ -1,15 +1,19 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require "assert"
         
     | 
| 
       2 
     | 
    
         
            -
            require 'test/fixtures/mixins'
         
     | 
| 
       3 
     | 
    
         
            -
            require 'test/fixtures/test_writer'
         
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
2 
     | 
    
         
             
            require 'osheet/workbook'
         
     | 
| 
       6 
3 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
      
 4 
     | 
    
         
            +
            require 'test/support/mixins'
         
     | 
| 
      
 5 
     | 
    
         
            +
            require 'test/support/test_writer'
         
     | 
| 
      
 6 
     | 
    
         
            +
            require 'osheet/worksheet'
         
     | 
| 
      
 7 
     | 
    
         
            +
            require 'osheet/style'
         
     | 
| 
      
 8 
     | 
    
         
            +
            require 'osheet/partial'
         
     | 
| 
      
 9 
     | 
    
         
            +
            require 'osheet/template'
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
            class Osheet::Workbook
         
     | 
| 
       8 
12 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
              class  
     | 
| 
       10 
     | 
    
         
            -
                desc " 
     | 
| 
      
 13 
     | 
    
         
            +
              class UnitTests < Assert::Context
         
     | 
| 
      
 14 
     | 
    
         
            +
                desc "Osheet::Workbook"
         
     | 
| 
       11 
15 
     | 
    
         
             
                before do
         
     | 
| 
       12 
     | 
    
         
            -
                  @wkbk = Workbook.new
         
     | 
| 
      
 16 
     | 
    
         
            +
                  @wkbk = Osheet::Workbook.new
         
     | 
| 
       13 
17 
     | 
    
         
             
                  @test_writer = TestWriter.new
         
     | 
| 
       14 
18 
     | 
    
         
             
                end
         
     | 
| 
       15 
19 
     | 
    
         
             
                subject { @wkbk }
         
     | 
| 
         @@ -43,16 +47,16 @@ module Osheet 
     | 
|
| 
       43 
47 
     | 
    
         
             
                should "set it's defaults" do
         
     | 
| 
       44 
48 
     | 
    
         
             
                  assert_equal nil, subject.workbook.title
         
     | 
| 
       45 
49 
     | 
    
         | 
| 
       46 
     | 
    
         
            -
                  assert_equal WorkbookElement.new, subject.workbook_element
         
     | 
| 
      
 50 
     | 
    
         
            +
                  assert_equal Osheet::WorkbookElement.new, subject.workbook_element
         
     | 
| 
       47 
51 
     | 
    
         
             
                  assert_equal subject.workbook_element, subject.workbook
         
     | 
| 
       48 
52 
     | 
    
         | 
| 
       49 
     | 
    
         
            -
                  assert_kind_of Workbook::ElementStack, subject.element_stack
         
     | 
| 
      
 53 
     | 
    
         
            +
                  assert_kind_of Osheet::Workbook::ElementStack, subject.element_stack
         
     | 
| 
       50 
54 
     | 
    
         
             
                  assert_equal 1, subject.element_stack.size
         
     | 
| 
       51 
55 
     | 
    
         
             
                  assert_equal subject.workbook_element, subject.element_stack.current
         
     | 
| 
       52 
56 
     | 
    
         
             
                end
         
     | 
| 
       53 
57 
     | 
    
         | 
| 
       54 
58 
     | 
    
         
             
                should "set its title, casting it to a string" do
         
     | 
| 
       55 
     | 
    
         
            -
                  wb = Workbook.new { title :fun }
         
     | 
| 
      
 59 
     | 
    
         
            +
                  wb = Osheet::Workbook.new { title :fun }
         
     | 
| 
       56 
60 
     | 
    
         
             
                  assert_equal "fun", wb.workbook.title
         
     | 
| 
       57 
61 
     | 
    
         
             
                end
         
     | 
| 
       58 
62 
     | 
    
         | 
| 
         @@ -60,7 +64,7 @@ module Osheet 
     | 
|
| 
       60 
64 
     | 
    
         | 
| 
       61 
65 
     | 
    
         
             
              class ElementStackTests < Assert::Context
         
     | 
| 
       62 
66 
     | 
    
         
             
                desc "an ElementStack"
         
     | 
| 
       63 
     | 
    
         
            -
                before { @s = Workbook::ElementStack.new }
         
     | 
| 
      
 67 
     | 
    
         
            +
                before { @s = Osheet::Workbook::ElementStack.new }
         
     | 
| 
       64 
68 
     | 
    
         
             
                subject { @s }
         
     | 
| 
       65 
69 
     | 
    
         | 
| 
       66 
70 
     | 
    
         
             
                should "be an Array" do
         
     | 
| 
         @@ -118,10 +122,10 @@ module Osheet 
     | 
|
| 
       118 
122 
     | 
    
         | 
| 
       119 
123 
     | 
    
         
             
              end
         
     | 
| 
       120 
124 
     | 
    
         | 
| 
       121 
     | 
    
         
            -
              class WorkbookStyleTests <  
     | 
| 
      
 125 
     | 
    
         
            +
              class WorkbookStyleTests < UnitTests
         
     | 
| 
       122 
126 
     | 
    
         
             
                desc "that defines styles"
         
     | 
| 
       123 
127 
     | 
    
         
             
                before do
         
     | 
| 
       124 
     | 
    
         
            -
                  @wkbk = Workbook.new(@test_writer) {
         
     | 
| 
      
 128 
     | 
    
         
            +
                  @wkbk = Osheet::Workbook.new(@test_writer) {
         
     | 
| 
       125 
129 
     | 
    
         
             
                    style('.test')
         
     | 
| 
       126 
130 
     | 
    
         
             
                    style('.test.awesome')
         
     | 
| 
       127 
131 
     | 
    
         | 
| 
         @@ -134,7 +138,7 @@ module Osheet 
     | 
|
| 
       134 
138 
     | 
    
         
             
                should "return the style obj created" do
         
     | 
| 
       135 
139 
     | 
    
         
             
                  style = subject.style(".a.test.style")
         
     | 
| 
       136 
140 
     | 
    
         | 
| 
       137 
     | 
    
         
            -
                  assert_kind_of Style, style
         
     | 
| 
      
 141 
     | 
    
         
            +
                  assert_kind_of Osheet::Style, style
         
     | 
| 
       138 
142 
     | 
    
         
             
                  assert_equal '.a.test.style', style.selectors.first
         
     | 
| 
       139 
143 
     | 
    
         
             
                end
         
     | 
| 
       140 
144 
     | 
    
         | 
| 
         @@ -152,10 +156,10 @@ module Osheet 
     | 
|
| 
       152 
156 
     | 
    
         | 
| 
       153 
157 
     | 
    
         
             
              end
         
     | 
| 
       154 
158 
     | 
    
         | 
| 
       155 
     | 
    
         
            -
              class WorkbookWorksheetTests <  
     | 
| 
      
 159 
     | 
    
         
            +
              class WorkbookWorksheetTests < UnitTests
         
     | 
| 
       156 
160 
     | 
    
         
             
                desc "with worksheets"
         
     | 
| 
       157 
161 
     | 
    
         
             
                before do
         
     | 
| 
       158 
     | 
    
         
            -
                  @wkbk = Workbook.new(@test_writer) {
         
     | 
| 
      
 162 
     | 
    
         
            +
                  @wkbk = Osheet::Workbook.new(@test_writer) {
         
     | 
| 
       159 
163 
     | 
    
         
             
                    worksheet {
         
     | 
| 
       160 
164 
     | 
    
         
             
                      name "one"
         
     | 
| 
       161 
165 
     | 
    
         
             
                    }
         
     | 
| 
         @@ -167,7 +171,7 @@ module Osheet 
     | 
|
| 
       167 
171 
     | 
    
         
             
                end
         
     | 
| 
       168 
172 
     | 
    
         | 
| 
       169 
173 
     | 
    
         
             
                should "return the worksheet obj created" do
         
     | 
| 
       170 
     | 
    
         
            -
                  assert_kind_of Worksheet, subject.worksheet("test")
         
     | 
| 
      
 174 
     | 
    
         
            +
                  assert_kind_of Osheet::Worksheet, subject.worksheet("test")
         
     | 
| 
       171 
175 
     | 
    
         
             
                end
         
     | 
| 
       172 
176 
     | 
    
         | 
| 
       173 
177 
     | 
    
         
             
                should "add them to it's worksheets reader" do
         
     | 
| 
         @@ -187,10 +191,10 @@ module Osheet 
     | 
|
| 
       187 
191 
     | 
    
         | 
| 
       188 
192 
     | 
    
         
             
              end
         
     | 
| 
       189 
193 
     | 
    
         | 
| 
       190 
     | 
    
         
            -
              class WorkbookRowCellMetaTests <  
     | 
| 
      
 194 
     | 
    
         
            +
              class WorkbookRowCellMetaTests < UnitTests
         
     | 
| 
       191 
195 
     | 
    
         
             
                desc "with columns, meta, rows, and cells"
         
     | 
| 
       192 
196 
     | 
    
         
             
                before do
         
     | 
| 
       193 
     | 
    
         
            -
                  @wkbk = Workbook.new(@test_writer) {
         
     | 
| 
      
 197 
     | 
    
         
            +
                  @wkbk = Osheet::Workbook.new(@test_writer) {
         
     | 
| 
       194 
198 
     | 
    
         
             
                    worksheet {
         
     | 
| 
       195 
199 
     | 
    
         
             
                      column(100) { meta(:label => 'One') }
         
     | 
| 
       196 
200 
     | 
    
         
             
                      column { meta(:label => 'Two') }
         
     | 
| 
         @@ -243,10 +247,10 @@ module Osheet 
     | 
|
| 
       243 
247 
     | 
    
         | 
| 
       244 
248 
     | 
    
         
             
              end
         
     | 
| 
       245 
249 
     | 
    
         | 
| 
       246 
     | 
    
         
            -
              class WorkbookPartialTests <  
     | 
| 
      
 250 
     | 
    
         
            +
              class WorkbookPartialTests < UnitTests
         
     | 
| 
       247 
251 
     | 
    
         
             
                desc "that defines partials"
         
     | 
| 
       248 
252 
     | 
    
         
             
                before do
         
     | 
| 
       249 
     | 
    
         
            -
                  @wkbk = Workbook.new(@test_writer) {
         
     | 
| 
      
 253 
     | 
    
         
            +
                  @wkbk = Osheet::Workbook.new(@test_writer) {
         
     | 
| 
       250 
254 
     | 
    
         
             
                    partial(:named_styles) { |name|
         
     | 
| 
       251 
255 
     | 
    
         
             
                      style(".#{name}")
         
     | 
| 
       252 
256 
     | 
    
         
             
                      style(".#{name}.awesome")
         
     | 
| 
         @@ -259,7 +263,7 @@ module Osheet 
     | 
|
| 
       259 
263 
     | 
    
         
             
                  assert_equal 2, subject.workbook.partials.keys.size
         
     | 
| 
       260 
264 
     | 
    
         
             
                  assert subject.workbook.partials.has_key?('named_styles')
         
     | 
| 
       261 
265 
     | 
    
         
             
                  assert subject.workbook.partials.has_key?('stuff')
         
     | 
| 
       262 
     | 
    
         
            -
                  assert_kind_of Partial, subject.workbook.partials.get('stuff')
         
     | 
| 
      
 266 
     | 
    
         
            +
                  assert_kind_of Osheet::Partial, subject.workbook.partials.get('stuff')
         
     | 
| 
       263 
267 
     | 
    
         
             
                end
         
     | 
| 
       264 
268 
     | 
    
         | 
| 
       265 
269 
     | 
    
         
             
                should "add it's partials to it's markup" do
         
     | 
| 
         @@ -271,10 +275,10 @@ module Osheet 
     | 
|
| 
       271 
275 
     | 
    
         | 
| 
       272 
276 
     | 
    
         
             
              end
         
     | 
| 
       273 
277 
     | 
    
         | 
| 
       274 
     | 
    
         
            -
              class WorkbookTemplateTests <  
     | 
| 
      
 278 
     | 
    
         
            +
              class WorkbookTemplateTests < UnitTests
         
     | 
| 
       275 
279 
     | 
    
         
             
                desc "that defines templates"
         
     | 
| 
       276 
280 
     | 
    
         
             
                before do
         
     | 
| 
       277 
     | 
    
         
            -
                  @wkbk = Workbook.new(@test_writer) {
         
     | 
| 
      
 281 
     | 
    
         
            +
                  @wkbk = Osheet::Workbook.new(@test_writer) {
         
     | 
| 
       278 
282 
     | 
    
         
             
                    template(:column, :yo) { |color|
         
     | 
| 
       279 
283 
     | 
    
         
             
                      width 200
         
     | 
| 
       280 
284 
     | 
    
         
             
                      meta(:color => color)
         
     | 
| 
         @@ -291,11 +295,11 @@ module Osheet 
     | 
|
| 
       291 
295 
     | 
    
         | 
| 
       292 
296 
     | 
    
         
             
                should "add them to it's templates" do
         
     | 
| 
       293 
297 
     | 
    
         
             
                  assert subject.templates
         
     | 
| 
       294 
     | 
    
         
            -
                  assert_kind_of WorkbookElement::TemplateSet, subject.templates
         
     | 
| 
      
 298 
     | 
    
         
            +
                  assert_kind_of Osheet::WorkbookElement::TemplateSet, subject.templates
         
     | 
| 
       295 
299 
     | 
    
         
             
                  assert_equal 3, subject.templates.keys.size
         
     | 
| 
       296 
     | 
    
         
            -
                  assert_kind_of Template, subject.templates.get('column', 'yo')
         
     | 
| 
       297 
     | 
    
         
            -
                  assert_kind_of Template, subject.templates.get('row', 'yo_yo')
         
     | 
| 
       298 
     | 
    
         
            -
                  assert_kind_of Template, subject.templates.get('worksheet', 'go')
         
     | 
| 
      
 300 
     | 
    
         
            +
                  assert_kind_of Osheet::Template, subject.templates.get('column', 'yo')
         
     | 
| 
      
 301 
     | 
    
         
            +
                  assert_kind_of Osheet::Template, subject.templates.get('row', 'yo_yo')
         
     | 
| 
      
 302 
     | 
    
         
            +
                  assert_kind_of Osheet::Template, subject.templates.get('worksheet', 'go')
         
     | 
| 
       299 
303 
     | 
    
         
             
                end
         
     | 
| 
       300 
304 
     | 
    
         | 
| 
       301 
305 
     | 
    
         
             
                should "apply it's templates" do
         
     | 
| 
         @@ -307,10 +311,10 @@ module Osheet 
     | 
|
| 
       307 
311 
     | 
    
         | 
| 
       308 
312 
     | 
    
         
             
              end
         
     | 
| 
       309 
313 
     | 
    
         | 
| 
       310 
     | 
    
         
            -
              class WorkbookMixinTests <  
     | 
| 
      
 314 
     | 
    
         
            +
              class WorkbookMixinTests < UnitTests
         
     | 
| 
       311 
315 
     | 
    
         
             
                desc "with mixins"
         
     | 
| 
       312 
316 
     | 
    
         
             
                before do
         
     | 
| 
       313 
     | 
    
         
            -
                  @wkbk = Workbook.new(@test_writer) {
         
     | 
| 
      
 317 
     | 
    
         
            +
                  @wkbk = Osheet::Workbook.new(@test_writer) {
         
     | 
| 
       314 
318 
     | 
    
         
             
                    use StyledMixin
         
     | 
| 
       315 
319 
     | 
    
         
             
                    use TemplatedMixin
         
     | 
| 
       316 
320 
     | 
    
         
             
                    use PartialedMixin
         
     | 
| 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            require "assert"
         
     | 
| 
      
 2 
     | 
    
         
            +
            require 'osheet/worksheet'
         
     | 
| 
       2 
3 
     | 
    
         | 
| 
       3 
4 
     | 
    
         
             
            require 'osheet/column'
         
     | 
| 
       4 
5 
     | 
    
         
             
            require 'osheet/row'
         
     | 
| 
       5 
     | 
    
         
            -
            require 'osheet/worksheet'
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
      
 7 
     | 
    
         
            +
            class Osheet::Worksheet
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
              class  
     | 
| 
       10 
     | 
    
         
            -
                desc " 
     | 
| 
       11 
     | 
    
         
            -
                before { @wksht = Worksheet.new }
         
     | 
| 
      
 9 
     | 
    
         
            +
              class UnitTests < Assert::Context
         
     | 
| 
      
 10 
     | 
    
         
            +
                desc "Osheet::Worksheet"
         
     | 
| 
      
 11 
     | 
    
         
            +
                before { @wksht = Osheet::Worksheet.new }
         
     | 
| 
       12 
12 
     | 
    
         
             
                subject { @wksht }
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
       14 
14 
     | 
    
         
             
                should be_a_meta_element
         
     | 
| 
         @@ -25,10 +25,10 @@ module Osheet 
     | 
|
| 
       25 
25 
     | 
    
         | 
| 
       26 
26 
     | 
    
         
             
              end
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
     | 
    
         
            -
              class WorksheetColumnTests <  
     | 
| 
      
 28 
     | 
    
         
            +
              class WorksheetColumnTests < UnitTests
         
     | 
| 
       29 
29 
     | 
    
         
             
                desc "with columns"
         
     | 
| 
       30 
30 
     | 
    
         
             
                before {
         
     | 
| 
       31 
     | 
    
         
            -
                  @col = Column.new
         
     | 
| 
      
 31 
     | 
    
         
            +
                  @col = Osheet::Column.new
         
     | 
| 
       32 
32 
     | 
    
         
             
                  @wksht.column(@col)
         
     | 
| 
       33 
33 
     | 
    
         
             
                }
         
     | 
| 
       34 
34 
     | 
    
         | 
| 
         @@ -39,10 +39,10 @@ module Osheet 
     | 
|
| 
       39 
39 
     | 
    
         | 
| 
       40 
40 
     | 
    
         
             
              end
         
     | 
| 
       41 
41 
     | 
    
         | 
| 
       42 
     | 
    
         
            -
              class WorksheetRowTests <  
     | 
| 
      
 42 
     | 
    
         
            +
              class WorksheetRowTests < UnitTests
         
     | 
| 
       43 
43 
     | 
    
         
             
                desc "with rows"
         
     | 
| 
       44 
44 
     | 
    
         
             
                before {
         
     | 
| 
       45 
     | 
    
         
            -
                  @row = Row.new
         
     | 
| 
      
 45 
     | 
    
         
            +
                  @row = Osheet::Row.new
         
     | 
| 
       46 
46 
     | 
    
         
             
                  @wksht.row(@row)
         
     | 
| 
       47 
47 
     | 
    
         
             
                }
         
     | 
| 
       48 
48 
     | 
    
         | 
| 
         @@ -52,7 +52,7 @@ module Osheet 
     | 
|
| 
       52 
52 
     | 
    
         
             
                end
         
     | 
| 
       53 
53 
     | 
    
         | 
| 
       54 
54 
     | 
    
         
             
                should "only keep the latest row" do
         
     | 
| 
       55 
     | 
    
         
            -
                  new_row = Row.new(120)
         
     | 
| 
      
 55 
     | 
    
         
            +
                  new_row = Osheet::Row.new(120)
         
     | 
| 
       56 
56 
     | 
    
         
             
                  subject.row(new_row)
         
     | 
| 
       57 
57 
     | 
    
         | 
| 
       58 
58 
     | 
    
         
             
                  assert_equal 1, subject.rows.size
         
     | 
| 
         @@ -61,10 +61,10 @@ module Osheet 
     | 
|
| 
       61 
61 
     | 
    
         | 
| 
       62 
62 
     | 
    
         
             
              end
         
     | 
| 
       63 
63 
     | 
    
         | 
| 
       64 
     | 
    
         
            -
              class WorksheetNameTests <  
     | 
| 
      
 64 
     | 
    
         
            +
              class WorksheetNameTests < UnitTests
         
     | 
| 
       65 
65 
     | 
    
         
             
                desc "with a name"
         
     | 
| 
       66 
66 
     | 
    
         
             
                before do
         
     | 
| 
       67 
     | 
    
         
            -
                  @wksht = Worksheet.new("fun")
         
     | 
| 
      
 67 
     | 
    
         
            +
                  @wksht = Osheet::Worksheet.new("fun")
         
     | 
| 
       68 
68 
     | 
    
         
             
                end
         
     | 
| 
       69 
69 
     | 
    
         | 
| 
       70 
70 
     | 
    
         
             
                should "know it's name" do
         
     | 
| 
         @@ -81,7 +81,7 @@ module Osheet 
     | 
|
| 
       81 
81 
     | 
    
         
             
                end
         
     | 
| 
       82 
82 
     | 
    
         | 
| 
       83 
83 
     | 
    
         
             
                should "set it's name with an init parameter" do
         
     | 
| 
       84 
     | 
    
         
            -
                  assert_equal "more fun", Worksheet.new("more fun").name
         
     | 
| 
      
 84 
     | 
    
         
            +
                  assert_equal "more fun", Osheet::Worksheet.new("more fun").name
         
     | 
| 
       85 
85 
     | 
    
         
             
                end
         
     | 
| 
       86 
86 
     | 
    
         | 
| 
       87 
87 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,15 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: osheet
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash:  
     | 
| 
       5 
     | 
    
         
            -
              prerelease:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 23
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 1
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 0
         
     | 
| 
       9 
9 
     | 
    
         
             
              - 0
         
     | 
| 
       10 
     | 
    
         
            -
               
     | 
| 
       11 
     | 
    
         
            -
              - 4
         
     | 
| 
       12 
     | 
    
         
            -
              version: 1.0.0.rc.4
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 1.0.0
         
     | 
| 
       13 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       14 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       15 
13 
     | 
    
         
             
            - Kelly Redding
         
     | 
| 
         @@ -17,25 +15,26 @@ autorequire: 
     | 
|
| 
       17 
15 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       18 
16 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       19 
17 
     | 
    
         | 
| 
       20 
     | 
    
         
            -
            date:  
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2013-07-21 00:00:00 Z
         
     | 
| 
       21 
19 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       22 
20 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       23 
     | 
    
         
            -
               
     | 
| 
      
 21 
     | 
    
         
            +
              name: assert
         
     | 
| 
      
 22 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
       24 
23 
     | 
    
         
             
              requirement: &id001 !ruby/object:Gem::Requirement 
         
     | 
| 
       25 
24 
     | 
    
         
             
                none: false
         
     | 
| 
       26 
25 
     | 
    
         
             
                requirements: 
         
     | 
| 
       27 
26 
     | 
    
         
             
                - - ~>
         
     | 
| 
       28 
27 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       29 
     | 
    
         
            -
                    hash:  
     | 
| 
      
 28 
     | 
    
         
            +
                    hash: 3
         
     | 
| 
       30 
29 
     | 
    
         
             
                    segments: 
         
     | 
| 
      
 30 
     | 
    
         
            +
                    - 2
         
     | 
| 
       31 
31 
     | 
    
         
             
                    - 0
         
     | 
| 
       32 
     | 
    
         
            -
                     
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
     | 
    
         
            -
              name: assert
         
     | 
| 
      
 32 
     | 
    
         
            +
                    version: "2.0"
         
     | 
| 
      
 33 
     | 
    
         
            +
              type: :development
         
     | 
| 
       35 
34 
     | 
    
         
             
              version_requirements: *id001
         
     | 
| 
       36 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       37 
35 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       38 
     | 
    
         
            -
               
     | 
| 
      
 36 
     | 
    
         
            +
              name: enumeration
         
     | 
| 
      
 37 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
       39 
38 
     | 
    
         
             
              requirement: &id002 !ruby/object:Gem::Requirement 
         
     | 
| 
       40 
39 
     | 
    
         
             
                none: false
         
     | 
| 
       41 
40 
     | 
    
         
             
                requirements: 
         
     | 
| 
         @@ -46,9 +45,8 @@ dependencies: 
     | 
|
| 
       46 
45 
     | 
    
         
             
                    - 1
         
     | 
| 
       47 
46 
     | 
    
         
             
                    - 3
         
     | 
| 
       48 
47 
     | 
    
         
             
                    version: "1.3"
         
     | 
| 
       49 
     | 
    
         
            -
               
     | 
| 
      
 48 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
       50 
49 
     | 
    
         
             
              version_requirements: *id002
         
     | 
| 
       51 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       52 
50 
     | 
    
         
             
            description: A DSL for specifying and generating spreadsheets using Ruby
         
     | 
| 
       53 
51 
     | 
    
         
             
            email: 
         
     | 
| 
       54 
52 
     | 
    
         
             
            - kelly@kellyredding.com
         
     | 
| 
         @@ -61,8 +59,8 @@ extra_rdoc_files: [] 
     | 
|
| 
       61 
59 
     | 
    
         
             
            files: 
         
     | 
| 
       62 
60 
     | 
    
         
             
            - .gitignore
         
     | 
| 
       63 
61 
     | 
    
         
             
            - Gemfile
         
     | 
| 
       64 
     | 
    
         
            -
            -  
     | 
| 
       65 
     | 
    
         
            -
            - README. 
     | 
| 
      
 62 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 63 
     | 
    
         
            +
            - README.md
         
     | 
| 
       66 
64 
     | 
    
         
             
            - Rakefile
         
     | 
| 
       67 
65 
     | 
    
         
             
            - lib/osheet.rb
         
     | 
| 
       68 
66 
     | 
    
         
             
            - lib/osheet/cell.rb
         
     | 
| 
         @@ -93,35 +91,34 @@ files: 
     | 
|
| 
       93 
91 
     | 
    
         
             
            - lib/osheet/workbook_element.rb
         
     | 
| 
       94 
92 
     | 
    
         
             
            - lib/osheet/worksheet.rb
         
     | 
| 
       95 
93 
     | 
    
         
             
            - osheet.gemspec
         
     | 
| 
       96 
     | 
    
         
            -
            - test/cell_test.rb
         
     | 
| 
       97 
     | 
    
         
            -
            - test/column_test.rb
         
     | 
| 
       98 
     | 
    
         
            -
            - test/fixtures/mixins.rb
         
     | 
| 
       99 
     | 
    
         
            -
            - test/fixtures/test_writer.rb
         
     | 
| 
       100 
     | 
    
         
            -
            - test/format/accounting_test.rb
         
     | 
| 
       101 
     | 
    
         
            -
            - test/format/currency_test.rb
         
     | 
| 
       102 
     | 
    
         
            -
            - test/format/custom_test.rb
         
     | 
| 
       103 
     | 
    
         
            -
            - test/format/datetime_test.rb
         
     | 
| 
       104 
     | 
    
         
            -
            - test/format/fraction_test.rb
         
     | 
| 
       105 
     | 
    
         
            -
            - test/format/general_test.rb
         
     | 
| 
       106 
     | 
    
         
            -
            - test/format/number_test.rb
         
     | 
| 
       107 
     | 
    
         
            -
            - test/format/percentage_test.rb
         
     | 
| 
       108 
     | 
    
         
            -
            - test/format/scientific_test.rb
         
     | 
| 
       109 
     | 
    
         
            -
            - test/format/special_test.rb
         
     | 
| 
       110 
     | 
    
         
            -
            - test/format/text_test.rb
         
     | 
| 
       111 
     | 
    
         
            -
            - test/format_test.rb
         
     | 
| 
       112 
94 
     | 
    
         
             
            - test/helper.rb
         
     | 
| 
       113 
     | 
    
         
            -
            - test/ 
     | 
| 
       114 
     | 
    
         
            -
            - test/ 
     | 
| 
       115 
     | 
    
         
            -
            - test/ 
     | 
| 
       116 
     | 
    
         
            -
            - test/ 
     | 
| 
       117 
     | 
    
         
            -
            - test/ 
     | 
| 
       118 
     | 
    
         
            -
            - test/ 
     | 
| 
       119 
     | 
    
         
            -
            - test/ 
     | 
| 
       120 
     | 
    
         
            -
            - test/ 
     | 
| 
       121 
     | 
    
         
            -
            - test/ 
     | 
| 
      
 95 
     | 
    
         
            +
            - test/support/mixins.rb
         
     | 
| 
      
 96 
     | 
    
         
            +
            - test/support/test_writer.rb
         
     | 
| 
      
 97 
     | 
    
         
            +
            - test/unit/cell_tests.rb
         
     | 
| 
      
 98 
     | 
    
         
            +
            - test/unit/column_tests.rb
         
     | 
| 
      
 99 
     | 
    
         
            +
            - test/unit/format/accounting_tests.rb
         
     | 
| 
      
 100 
     | 
    
         
            +
            - test/unit/format/currency_tests.rb
         
     | 
| 
      
 101 
     | 
    
         
            +
            - test/unit/format/custom_tests.rb
         
     | 
| 
      
 102 
     | 
    
         
            +
            - test/unit/format/datetime_tests.rb
         
     | 
| 
      
 103 
     | 
    
         
            +
            - test/unit/format/fraction_tests.rb
         
     | 
| 
      
 104 
     | 
    
         
            +
            - test/unit/format/general_tests.rb
         
     | 
| 
      
 105 
     | 
    
         
            +
            - test/unit/format/number_tests.rb
         
     | 
| 
      
 106 
     | 
    
         
            +
            - test/unit/format/percentage_tests.rb
         
     | 
| 
      
 107 
     | 
    
         
            +
            - test/unit/format/scientific_tests.rb
         
     | 
| 
      
 108 
     | 
    
         
            +
            - test/unit/format/special_tests.rb
         
     | 
| 
      
 109 
     | 
    
         
            +
            - test/unit/format/text_tests.rb
         
     | 
| 
      
 110 
     | 
    
         
            +
            - test/unit/format_tests.rb
         
     | 
| 
      
 111 
     | 
    
         
            +
            - test/unit/mixin_tests.rb
         
     | 
| 
      
 112 
     | 
    
         
            +
            - test/unit/partial_tests.rb
         
     | 
| 
      
 113 
     | 
    
         
            +
            - test/unit/row_tests.rb
         
     | 
| 
      
 114 
     | 
    
         
            +
            - test/unit/style_tests.rb
         
     | 
| 
      
 115 
     | 
    
         
            +
            - test/unit/template_tests.rb
         
     | 
| 
      
 116 
     | 
    
         
            +
            - test/unit/workbook_element_tests.rb
         
     | 
| 
      
 117 
     | 
    
         
            +
            - test/unit/workbook_tests.rb
         
     | 
| 
      
 118 
     | 
    
         
            +
            - test/unit/worksheet_tests.rb
         
     | 
| 
       122 
119 
     | 
    
         
             
            homepage: http://github.com/kellyredding/osheet
         
     | 
| 
       123 
     | 
    
         
            -
            licenses:  
     | 
| 
       124 
     | 
    
         
            -
             
     | 
| 
      
 120 
     | 
    
         
            +
            licenses: 
         
     | 
| 
      
 121 
     | 
    
         
            +
            - MIT
         
     | 
| 
       125 
122 
     | 
    
         
             
            post_install_message: 
         
     | 
| 
       126 
123 
     | 
    
         
             
            rdoc_options: []
         
     | 
| 
       127 
124 
     | 
    
         | 
| 
         @@ -139,45 +136,42 @@ required_ruby_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       139 
136 
     | 
    
         
             
            required_rubygems_version: !ruby/object:Gem::Requirement 
         
     | 
| 
       140 
137 
     | 
    
         
             
              none: false
         
     | 
| 
       141 
138 
     | 
    
         
             
              requirements: 
         
     | 
| 
       142 
     | 
    
         
            -
              - - " 
     | 
| 
      
 139 
     | 
    
         
            +
              - - ">="
         
     | 
| 
       143 
140 
     | 
    
         
             
                - !ruby/object:Gem::Version 
         
     | 
| 
       144 
     | 
    
         
            -
                  hash:  
     | 
| 
      
 141 
     | 
    
         
            +
                  hash: 3
         
     | 
| 
       145 
142 
     | 
    
         
             
                  segments: 
         
     | 
| 
       146 
     | 
    
         
            -
                  -  
     | 
| 
       147 
     | 
    
         
            -
                   
     | 
| 
       148 
     | 
    
         
            -
                  - 1
         
     | 
| 
       149 
     | 
    
         
            -
                  version: 1.3.1
         
     | 
| 
      
 143 
     | 
    
         
            +
                  - 0
         
     | 
| 
      
 144 
     | 
    
         
            +
                  version: "0"
         
     | 
| 
       150 
145 
     | 
    
         
             
            requirements: []
         
     | 
| 
       151 
146 
     | 
    
         | 
| 
       152 
147 
     | 
    
         
             
            rubyforge_project: 
         
     | 
| 
       153 
     | 
    
         
            -
            rubygems_version: 1.8. 
     | 
| 
      
 148 
     | 
    
         
            +
            rubygems_version: 1.8.24
         
     | 
| 
       154 
149 
     | 
    
         
             
            signing_key: 
         
     | 
| 
       155 
150 
     | 
    
         
             
            specification_version: 3
         
     | 
| 
       156 
151 
     | 
    
         
             
            summary: A DSL for specifying and generating spreadsheets using Ruby
         
     | 
| 
       157 
152 
     | 
    
         
             
            test_files: 
         
     | 
| 
       158 
     | 
    
         
            -
            - test/cell_test.rb
         
     | 
| 
       159 
     | 
    
         
            -
            - test/column_test.rb
         
     | 
| 
       160 
     | 
    
         
            -
            - test/fixtures/mixins.rb
         
     | 
| 
       161 
     | 
    
         
            -
            - test/fixtures/test_writer.rb
         
     | 
| 
       162 
     | 
    
         
            -
            - test/format/accounting_test.rb
         
     | 
| 
       163 
     | 
    
         
            -
            - test/format/currency_test.rb
         
     | 
| 
       164 
     | 
    
         
            -
            - test/format/custom_test.rb
         
     | 
| 
       165 
     | 
    
         
            -
            - test/format/datetime_test.rb
         
     | 
| 
       166 
     | 
    
         
            -
            - test/format/fraction_test.rb
         
     | 
| 
       167 
     | 
    
         
            -
            - test/format/general_test.rb
         
     | 
| 
       168 
     | 
    
         
            -
            - test/format/number_test.rb
         
     | 
| 
       169 
     | 
    
         
            -
            - test/format/percentage_test.rb
         
     | 
| 
       170 
     | 
    
         
            -
            - test/format/scientific_test.rb
         
     | 
| 
       171 
     | 
    
         
            -
            - test/format/special_test.rb
         
     | 
| 
       172 
     | 
    
         
            -
            - test/format/text_test.rb
         
     | 
| 
       173 
     | 
    
         
            -
            - test/format_test.rb
         
     | 
| 
       174 
153 
     | 
    
         
             
            - test/helper.rb
         
     | 
| 
       175 
     | 
    
         
            -
            - test/ 
     | 
| 
       176 
     | 
    
         
            -
            - test/ 
     | 
| 
       177 
     | 
    
         
            -
            - test/ 
     | 
| 
       178 
     | 
    
         
            -
            - test/ 
     | 
| 
       179 
     | 
    
         
            -
            - test/ 
     | 
| 
       180 
     | 
    
         
            -
            - test/ 
     | 
| 
       181 
     | 
    
         
            -
            - test/ 
     | 
| 
       182 
     | 
    
         
            -
            - test/ 
     | 
| 
       183 
     | 
    
         
            -
            - test/ 
     | 
| 
      
 154 
     | 
    
         
            +
            - test/support/mixins.rb
         
     | 
| 
      
 155 
     | 
    
         
            +
            - test/support/test_writer.rb
         
     | 
| 
      
 156 
     | 
    
         
            +
            - test/unit/cell_tests.rb
         
     | 
| 
      
 157 
     | 
    
         
            +
            - test/unit/column_tests.rb
         
     | 
| 
      
 158 
     | 
    
         
            +
            - test/unit/format/accounting_tests.rb
         
     | 
| 
      
 159 
     | 
    
         
            +
            - test/unit/format/currency_tests.rb
         
     | 
| 
      
 160 
     | 
    
         
            +
            - test/unit/format/custom_tests.rb
         
     | 
| 
      
 161 
     | 
    
         
            +
            - test/unit/format/datetime_tests.rb
         
     | 
| 
      
 162 
     | 
    
         
            +
            - test/unit/format/fraction_tests.rb
         
     | 
| 
      
 163 
     | 
    
         
            +
            - test/unit/format/general_tests.rb
         
     | 
| 
      
 164 
     | 
    
         
            +
            - test/unit/format/number_tests.rb
         
     | 
| 
      
 165 
     | 
    
         
            +
            - test/unit/format/percentage_tests.rb
         
     | 
| 
      
 166 
     | 
    
         
            +
            - test/unit/format/scientific_tests.rb
         
     | 
| 
      
 167 
     | 
    
         
            +
            - test/unit/format/special_tests.rb
         
     | 
| 
      
 168 
     | 
    
         
            +
            - test/unit/format/text_tests.rb
         
     | 
| 
      
 169 
     | 
    
         
            +
            - test/unit/format_tests.rb
         
     | 
| 
      
 170 
     | 
    
         
            +
            - test/unit/mixin_tests.rb
         
     | 
| 
      
 171 
     | 
    
         
            +
            - test/unit/partial_tests.rb
         
     | 
| 
      
 172 
     | 
    
         
            +
            - test/unit/row_tests.rb
         
     | 
| 
      
 173 
     | 
    
         
            +
            - test/unit/style_tests.rb
         
     | 
| 
      
 174 
     | 
    
         
            +
            - test/unit/template_tests.rb
         
     | 
| 
      
 175 
     | 
    
         
            +
            - test/unit/workbook_element_tests.rb
         
     | 
| 
      
 176 
     | 
    
         
            +
            - test/unit/workbook_tests.rb
         
     | 
| 
      
 177 
     | 
    
         
            +
            - test/unit/worksheet_tests.rb
         
     |