simple-spreadsheet 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- simple-spreadsheet (0.0.5.4)
4
+ simple-spreadsheet (0.1.0)
5
5
  roo (= 1.10.1)
6
6
  rubyXL (= 1.2.5)
7
7
  spreadsheet (= 0.6.5.9)
@@ -13,18 +13,24 @@ GEM
13
13
  diff-lcs (1.1.3)
14
14
  faraday (0.8.1)
15
15
  multipart-post (~> 1.1)
16
- google-spreadsheet-ruby (0.1.8)
17
- nokogiri (>= 1.4.3.1)
16
+ google-spreadsheet-ruby (0.3.0)
17
+ google_drive (>= 0.3.0)
18
+ google_drive (0.3.0)
19
+ nokogiri (>= 1.4.4, != 1.5.2, != 1.5.1)
18
20
  oauth (>= 0.3.6)
19
21
  oauth2 (>= 0.5.0)
22
+ httpauth (0.1)
20
23
  log4r (1.1.10)
21
24
  multi_json (1.3.6)
22
25
  multipart-post (1.1.5)
23
- nokogiri (1.5.3)
24
- oauth (0.4.5)
25
- oauth2 (0.5.2)
26
- faraday (~> 0.7)
26
+ nokogiri (1.5.4)
27
+ oauth (0.4.6)
28
+ oauth2 (0.7.1)
29
+ faraday (~> 0.8)
30
+ httpauth (~> 0.1)
27
31
  multi_json (~> 1.0)
32
+ rack (~> 1.4)
33
+ rack (1.4.1)
28
34
  roo (1.10.1)
29
35
  choice (>= 0.1.4)
30
36
  google-spreadsheet-ruby (>= 0.1.5)
@@ -42,7 +48,7 @@ GEM
42
48
  rspec-mocks (2.6.0)
43
49
  ruby-ole (1.2.11.3)
44
50
  rubyXL (1.2.5)
45
- rubyzip (0.9.6.1)
51
+ rubyzip (0.9.8)
46
52
  spreadsheet (0.6.5.9)
47
53
  ruby-ole (>= 1.0)
48
54
  todonotes (0.1.0)
data/README.md CHANGED
@@ -16,7 +16,7 @@ Add to your Gemfile and run the `bundle` command to install it.
16
16
  gem "simple-spreadsheet"
17
17
  ```
18
18
 
19
- **N.B. Requires Ruby 1.9.2 or later.**
19
+ **N.B. Tested only with Ruby 1.9.2.**
20
20
 
21
21
  ## Basic functionality
22
22
 
@@ -25,6 +25,8 @@ Add to your Gemfile and run the `bundle` command to install it.
25
25
  Example:
26
26
 
27
27
  ```ruby
28
+ require "simple-spreadsheet"
29
+
28
30
  s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.xls")
29
31
  ```
30
32
 
@@ -58,8 +60,8 @@ Supported formats:
58
60
  require "simple-spreadsheet"
59
61
 
60
62
  s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.xls")
61
- s.select_worksheet = s.sheets.first
62
- s.first_row.upto(@workbook.last_row) do |line|
63
+ s.selected_sheet = s.sheets.first
64
+ s.first_row.upto(s.last_row) do |line|
63
65
  data1 = s.cell(line, 1)
64
66
  data2 = s.cell(line, 3)
65
67
  end
@@ -71,7 +73,7 @@ end
71
73
  require "simple-spreadsheet"
72
74
 
73
75
  s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.xls")
74
- s.first_row.upto(@workbook.last_row) do |line|
76
+ s.first_row.upto(s.last_row) do |line|
75
77
  data1 = s.cell(line, 1, 1)
76
78
  data2 = s.cell(line, 3, 1)
77
79
  end
@@ -80,19 +82,23 @@ end
80
82
  ### Accessing CSV Excel (semicolon separated)
81
83
 
82
84
  ```ruby
85
+ require "simple-spreadsheet"
86
+
83
87
  s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.csv", ".csvx")
84
88
  ```
85
89
 
86
90
  ### Accessing CSV Tab separated
87
91
 
88
92
  ```ruby
93
+ require "simple-spreadsheet"
94
+
89
95
  s = SimpleSpreadsheet::Workbook.read("my_spreadsheets_file.csv", ".csvt")
90
96
  ```
91
97
 
92
98
  ## Future plans
93
99
 
94
100
  - Reading support for all formats
95
- - More efficent reading for big spreadsheets (extending Roo)
101
+ - More efficient reading for big spreadsheets (adding sequential reading to Roo standard methods)
96
102
  - Writing support for all formats
97
103
  - More reading functionalities
98
- - Edit support fo all formats
104
+ - Edit support for all formats
@@ -1,3 +1,3 @@
1
1
  module SimpleSpreadsheet
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-spreadsheet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70106779608980 !ruby/object:Gem::Requirement
16
+ requirement: &70347911422140 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 2.6.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70106779608980
24
+ version_requirements: *70347911422140
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: roo
27
- requirement: &70106779608180 !ruby/object:Gem::Requirement
27
+ requirement: &70347911421640 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - =
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.10.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70106779608180
35
+ version_requirements: *70347911421640
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: spreadsheet
38
- requirement: &70106779607440 !ruby/object:Gem::Requirement
38
+ requirement: &70347911421180 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - =
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.6.5.9
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70106779607440
46
+ version_requirements: *70347911421180
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rubyXL
49
- requirement: &70106779606580 !ruby/object:Gem::Requirement
49
+ requirement: &70347911420720 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - =
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: 1.2.5
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70106779606580
57
+ version_requirements: *70347911420720
58
58
  description: ! 'Simple spreadsheet reader for common formats: Excel (.xls, .xlsx),
59
59
  Open-office (.ods) and some CSV (standard, excel, tab separated). Future versions:
60
60
  writing and more formats.'