spreadsheet 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +8 -1
- data/README.txt +4 -4
- data/lib/spreadsheet.rb +1 -1
- data/lib/spreadsheet/excel/worksheet.rb +3 -0
- data/spreadsheet.gemspec +1 -1
- data/test/integration.rb +15 -0
- metadata +24 -9
data/History.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
=== 0.8.6 / 11.07.2013
|
2
|
+
|
3
|
+
Author: Arjun Anand and Robert Stern <dev+arjuna+rstern@reenhanced.com>
|
4
|
+
Date: Wed Jul 10 13:45:30 2013 -0400
|
5
|
+
|
6
|
+
* Allow editing of an existing worksheet.
|
7
|
+
|
1
8
|
=== 0.8.5 / 24.04.2013
|
2
9
|
|
3
10
|
* Applied Patch by Joao Almeida: When editing an existing sheet, cells merge was not working.
|
@@ -10,7 +17,7 @@
|
|
10
17
|
|
11
18
|
=== 0.8.3 / 12.03.2013
|
12
19
|
|
13
|
-
|
20
|
+
Author: Keith Walsh <keith.walsh@adtegrity.com>
|
14
21
|
Date: Mon Mar 11 16:48:25 2013 -0400
|
15
22
|
|
16
23
|
* Typo correction in guide example.
|
data/README.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Last Update:
|
1
|
+
Last Update: 31.05.2013 - Zeno R.R. Davatz
|
2
2
|
|
3
3
|
= Spreadsheet
|
4
4
|
|
@@ -64,7 +64,7 @@ You will get a deprecated warning about iconv when using spreadsheet with Ruby
|
|
64
64
|
== Dependencies
|
65
65
|
|
66
66
|
* ruby 1.8
|
67
|
-
* ruby-ole[http://code.google.com/p/ruby-ole/]
|
67
|
+
* ruby-ole [ http://code.google.com/p/ruby-ole/ ]
|
68
68
|
|
69
69
|
|
70
70
|
== Examples
|
@@ -74,7 +74,7 @@ Also look at: https://gist.github.com/phollyer/1214475
|
|
74
74
|
|
75
75
|
== Installation
|
76
76
|
|
77
|
-
Using RubyGems[http://www.rubygems.org]:
|
77
|
+
Using RubyGems [ http://www.rubygems.org ]:
|
78
78
|
|
79
79
|
* sudo gem install spreadsheet
|
80
80
|
|
@@ -97,7 +97,7 @@ Running tests:
|
|
97
97
|
|
98
98
|
== Code Status
|
99
99
|
|
100
|
-
* TravisCI[https://travis-ci.org/zdavatz/spreadsheet]
|
100
|
+
* TravisCI [ https://travis-ci.org/zdavatz/spreadsheet ]
|
101
101
|
|
102
102
|
== Authors
|
103
103
|
|
data/lib/spreadsheet.rb
CHANGED
data/spreadsheet.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
spec = Gem::Specification.new do |s|
|
2
2
|
s.name = "spreadsheet"
|
3
|
-
s.version = "0.
|
3
|
+
s.version = "0.8.6"
|
4
4
|
s.summary = "The Spreadsheet Library is designed to read and write Spreadsheet Documents"
|
5
5
|
s.description = "As of version 0.6.0, only Microsoft Excel compatible spreadsheets are supported"
|
6
6
|
s.author = "Masaomi Hatakeyama, Zeno R.R. Davatz"
|
data/test/integration.rb
CHANGED
@@ -1265,6 +1265,21 @@ module Spreadsheet
|
|
1265
1265
|
assert_equal :brown, format.top_color
|
1266
1266
|
end
|
1267
1267
|
|
1268
|
+
def test_adding_data_to_existing_file
|
1269
|
+
path = File.join @data, 'test_adding_data_to_existing_file.xls'
|
1270
|
+
book = Spreadsheet.open path
|
1271
|
+
assert_equal(1, book.worksheet(0).rows.count)
|
1272
|
+
|
1273
|
+
book.worksheet(0).insert_row(1, [12, 23, 34, 45])
|
1274
|
+
temp_file = Tempfile.new('temp')
|
1275
|
+
book.write(temp_file.path)
|
1276
|
+
|
1277
|
+
open_temp_book = Spreadsheet.open temp_file.path
|
1278
|
+
assert_equal(2, book.worksheet(0).rows.count)
|
1279
|
+
|
1280
|
+
temp_file.unlink
|
1281
|
+
end
|
1282
|
+
|
1268
1283
|
private
|
1269
1284
|
|
1270
1285
|
# Validates the workbook's SST
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreadsheet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-07-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-ole
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: rdoc
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ~>
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '3.10'
|
33
38
|
type: :development
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '3.10'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: hoe
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ~>
|
@@ -43,7 +53,12 @@ dependencies:
|
|
43
53
|
version: '2.13'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.13'
|
47
62
|
description: ! 'The Spreadsheet Library is designed to read and write Spreadsheet
|
48
63
|
Documents.
|
49
64
|
|
@@ -166,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
166
181
|
version: '0'
|
167
182
|
requirements: []
|
168
183
|
rubyforge_project: spreadsheet
|
169
|
-
rubygems_version: 1.8.
|
184
|
+
rubygems_version: 1.8.25
|
170
185
|
signing_key:
|
171
186
|
specification_version: 3
|
172
187
|
summary: The Spreadsheet Library is designed to read and write Spreadsheet Documents
|