Skip to content

Commit

Permalink
Rebase from master
Browse files Browse the repository at this point in the history
  • Loading branch information
stevendaniels committed Jul 23, 2015
2 parents ba51cd5 + 7294dd4 commit f0b6428
Show file tree
Hide file tree
Showing 7 changed files with 468 additions and 530 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [Unreleased][unreleased]
## [2.1.0] - 2015-07-18
### Added
- Added support for Excel 2007 `xlsm` files. [#232](https://github.com/roo-rb/roo/pull/232)
- Roo::Excelx returns an enumerator when calling each_row_streaming without a block. [#224](https://github.com/roo-rb/roo/pull/224)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Install as a gem
Or add it to your Gemfile

```ruby
gem 'roo', '~> 2.0.0'
gem 'roo', '~> 2.1.0'
```
## Usage

Expand Down Expand Up @@ -143,7 +143,7 @@ sheet.to_xml
sheet.to_yaml
```

### Excel (xlsx) Support
### Excel (xlsx and xlsm) Support

Stream rows from an Excelx spreadsheet.

Expand Down
7 changes: 4 additions & 3 deletions lib/roo.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require 'roo/constants'
require 'roo/spreadsheet'
require 'roo/base'

Expand All @@ -17,11 +18,11 @@ module Roo
def self.const_missing(const_name)
case const_name
when :Excel
raise "Excel support has been extracted to roo-xls due to its dependency on the GPL'd spreadsheet gem. Install roo-xls to use Roo::Excel."
raise ROO_EXCEL_NOTICE
when :Excel2003XML
raise "Excel SpreadsheetML support has been extracted to roo-xls. Install roo-xls to use Roo::Excel2003XML."
raise ROO_EXCELML_NOTICE
when :Google
raise "Google support has been extracted to roo-google. Install roo-google to use Roo::Google."
raise ROO_GOOGLE_NOTICE
else
super
end
Expand Down
5 changes: 5 additions & 0 deletions lib/roo/constants.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Roo
ROO_EXCEL_NOTICE = "Excel support has been extracted to roo-xls due to its dependency on the GPL'd spreadsheet gem. Install roo-xls to use Roo::Excel.".freeze
ROO_EXCELML_NOTICE = "Excel SpreadsheetML support has been extracted to roo-xls. Install roo-xls to use Roo::Excel2003XML.".freeze
ROO_GOOGLE_NOTICE = "Google support has been extracted to roo-google. Install roo-google to use Roo::Google.".freeze
end
3 changes: 1 addition & 2 deletions lib/roo/libre_office.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
require 'roo/open_office'

# LibreOffice is just an alias for Roo::OpenOffice class
class Roo::LibreOffice < Roo::OpenOffice
end
Roo::LibreOffice = Roo::OpenOffice
Loading

0 comments on commit f0b6428

Please sign in to comment.