README.md in simple-spreadsheet-0.0.6 vs README.md in simple-spreadsheet-0.1.0
- old
+ new
@@ -14,19 +14,21 @@
```ruby
gem "simple-spreadsheet"
```
-**N.B. Requires Ruby 1.9.2 or later.**
+**N.B. Tested only with Ruby 1.9.2.**
## Basic functionality
### Reading Spreadsheet
Example:
```ruby
+require "simple-spreadsheet"
+
s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.xls")
```
Supported formats:
@@ -56,12 +58,12 @@
```ruby
require "simple-spreadsheet"
s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.xls")
-s.select_worksheet = s.sheets.first
-s.first_row.upto(@workbook.last_row) do |line|
+s.selected_sheet = s.sheets.first
+s.first_row.upto(s.last_row) do |line|
data1 = s.cell(line, 1)
data2 = s.cell(line, 3)
end
```
@@ -69,30 +71,34 @@
```ruby
require "simple-spreadsheet"
s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.xls")
-s.first_row.upto(@workbook.last_row) do |line|
+s.first_row.upto(s.last_row) do |line|
data1 = s.cell(line, 1, 1)
data2 = s.cell(line, 3, 1)
end
```
### Accessing CSV Excel (semicolon separated)
```ruby
+require "simple-spreadsheet"
+
s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.csv", ".csvx")
```
### Accessing CSV Tab separated
```ruby
+require "simple-spreadsheet"
+
s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.csv", ".csvt")
```
## Future plans
- Reading support for all formats
-- More efficent reading for big spreadsheets (extending Roo)
+- More efficient reading for big spreadsheets (adding sequential reading to Roo standard methods)
- Writing support for all formats
- More reading functionalities
-- Edit support fo all formats
+- Edit support for all formats