spreadsheet 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/History.md +7 -0
- data/lib/spreadsheet.rb +1 -1
- data/lib/spreadsheet/format.rb +1 -1
- data/spreadsheet.gemspec +4 -1
- data/test/format.rb +11 -3
- metadata +23 -35
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4e25242aa5a57f88a676dfac1d03eb87ff3e34e0
|
4
|
+
data.tar.gz: d899a6a7aed3653c0788c450fc4cbd5b3d4fe3e3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9d93307f9c91d0625654733d24d95e5de6133dd6bf9adbf61f1685a4d6e82343e8898f68f9c0185abf2549997cc4d1a54dfe9c7365b8d0cf0cae7ecdc40b21d1
|
7
|
+
data.tar.gz: 9474b80232062b6e1d960a2f88b2a0567bd8ca6748c0b5048c91a4cd95e2fa420cbfad092784f030bccd91239e044cf9339b75e29a9938ac13f2438eb1607119
|
data/History.md
CHANGED
data/lib/spreadsheet.rb
CHANGED
data/lib/spreadsheet/format.rb
CHANGED
@@ -105,7 +105,7 @@ module Spreadsheet
|
|
105
105
|
:date_or_time => Regexp.new(client("[hmsYMD]", 'UTF-8')),
|
106
106
|
:datetime => Regexp.new(client("([YMD].*[HS])|([HS].*[YMD])", 'UTF-8')),
|
107
107
|
:time => Regexp.new(client("[hms]", 'UTF-8')),
|
108
|
-
:number => Regexp.new(client("[\#]", 'UTF-8'))
|
108
|
+
:number => Regexp.new(client("([\#]|0+)", 'UTF-8'))
|
109
109
|
}
|
110
110
|
|
111
111
|
# Temp code to prevent merged formats in non-merged cells.
|
data/spreadsheet.gemspec
CHANGED
@@ -1,4 +1,7 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), 'lib', 'spreadsheet')
|
1
|
+
# require File.join(File.dirname(__FILE__), 'lib', 'spreadsheet')
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'spreadsheet'
|
2
5
|
|
3
6
|
spec = Gem::Specification.new do |s|
|
4
7
|
s.name = "spreadsheet"
|
data/test/format.rb
CHANGED
@@ -21,6 +21,8 @@ module Spreadsheet
|
|
21
21
|
assert_equal true, @format.date?
|
22
22
|
@format.number_format = "\\$#,##0.00_);[RED]\"($\"#,##0.00\\)"
|
23
23
|
assert_equal false, @format.date?
|
24
|
+
@format.number_format = "0.00;[RED]\\-0.00"
|
25
|
+
assert_equal false, @format.date?
|
24
26
|
end
|
25
27
|
def test_date_or_time?
|
26
28
|
assert_equal false, @format.date_or_time?
|
@@ -31,7 +33,9 @@ module Spreadsheet
|
|
31
33
|
@format.number_format = "hmsYMD"
|
32
34
|
assert_equal true, @format.date_or_time?
|
33
35
|
@format.number_format = "\\$#,##0.00_);[RED]\"($\"#,##0.00\\)"
|
34
|
-
assert_equal false, @format.
|
36
|
+
assert_equal false, @format.date_or_time?
|
37
|
+
@format.number_format = "0.00;[RED]\\-0.00)"
|
38
|
+
assert_equal false, @format.date_or_time?
|
35
39
|
end
|
36
40
|
def test_datetime?
|
37
41
|
assert_equal false, @format.datetime?
|
@@ -44,7 +48,9 @@ module Spreadsheet
|
|
44
48
|
@format.number_format = "HSYMD"
|
45
49
|
assert_equal true, @format.datetime?
|
46
50
|
@format.number_format = "\\$#,##0.00_);[RED]\"($\"#,##0.00\\)"
|
47
|
-
assert_equal false, @format.
|
51
|
+
assert_equal false, @format.datetime?
|
52
|
+
@format.number_format = "0.00;[RED]\\-0.00)"
|
53
|
+
assert_equal false, @format.datetime?
|
48
54
|
end
|
49
55
|
def test_time?
|
50
56
|
assert_equal false, @format.time?
|
@@ -59,7 +65,9 @@ module Spreadsheet
|
|
59
65
|
@format.number_format = "hms"
|
60
66
|
assert_equal true, @format.time?
|
61
67
|
@format.number_format = "\\$#,##0.00_);[RED]\"($\"#,##0.00\\)"
|
62
|
-
assert_equal false, @format.
|
68
|
+
assert_equal false, @format.time?
|
69
|
+
@format.number_format = "0.00;[RED]\\-0.00)"
|
70
|
+
assert_equal false, @format.time?
|
63
71
|
end
|
64
72
|
def test_borders?
|
65
73
|
assert_equal [:none, :none, :none, :none], @format.border
|
metadata
CHANGED
@@ -1,74 +1,63 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreadsheet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Masaomi Hatakeyama, Zeno R.R. Davatz
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-
|
11
|
+
date: 2015-09-01 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: ruby-ole
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '1.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '1.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rdoc
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '4.0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '4.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: hoe
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
|
-
version: '3.
|
47
|
+
version: '3.7'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
|
-
version: '3.
|
62
|
-
description:
|
63
|
-
Documents.
|
64
|
-
|
54
|
+
version: '3.7'
|
55
|
+
description: |-
|
56
|
+
The Spreadsheet Library is designed to read and write Spreadsheet Documents.
|
65
57
|
As of version 0.6.0, only Microsoft Excel compatible spreadsheets are
|
66
|
-
|
67
58
|
supported. Spreadsheet is a combination/complete rewrite of the
|
68
|
-
|
69
59
|
Spreadsheet::Excel Library by Daniel J. Berger and the ParseExcel Library by
|
70
|
-
|
71
|
-
Hannes Wyss. Spreadsheet can read, write and modify Spreadsheet Documents.'
|
60
|
+
Hannes Wyss. Spreadsheet can read, write and modify Spreadsheet Documents.
|
72
61
|
email:
|
73
62
|
- mhatakeyama@ywesee.com, zdavatz@ywesee.com
|
74
63
|
executables:
|
@@ -81,8 +70,9 @@ extra_rdoc_files:
|
|
81
70
|
- Manifest.txt
|
82
71
|
- README.md
|
83
72
|
files:
|
84
|
-
- .
|
85
|
-
- .
|
73
|
+
- ".gemtest"
|
74
|
+
- ".gitignore"
|
75
|
+
- ".travis.yml"
|
86
76
|
- Excel97-2007BinaryFileFormatSpecification.pdf
|
87
77
|
- GUIDE.md
|
88
78
|
- Gemfile
|
@@ -168,32 +158,30 @@ files:
|
|
168
158
|
- test/workbook.rb
|
169
159
|
- test/workbook_protection.rb
|
170
160
|
- test/worksheet.rb
|
171
|
-
- .gemtest
|
172
161
|
homepage:
|
173
162
|
licenses:
|
174
163
|
- MIT
|
164
|
+
metadata: {}
|
175
165
|
post_install_message:
|
176
166
|
rdoc_options:
|
177
|
-
- --main
|
167
|
+
- "--main"
|
178
168
|
- README.md
|
179
169
|
require_paths:
|
180
170
|
- lib
|
181
171
|
required_ruby_version: !ruby/object:Gem::Requirement
|
182
|
-
none: false
|
183
172
|
requirements:
|
184
|
-
- -
|
173
|
+
- - ">="
|
185
174
|
- !ruby/object:Gem::Version
|
186
175
|
version: '0'
|
187
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
|
-
none: false
|
189
177
|
requirements:
|
190
|
-
- -
|
178
|
+
- - ">="
|
191
179
|
- !ruby/object:Gem::Version
|
192
180
|
version: '0'
|
193
181
|
requirements: []
|
194
|
-
rubyforge_project:
|
195
|
-
rubygems_version:
|
182
|
+
rubyforge_project: spreadsheet
|
183
|
+
rubygems_version: 2.4.5
|
196
184
|
signing_key:
|
197
|
-
specification_version:
|
185
|
+
specification_version: 4
|
198
186
|
summary: The Spreadsheet Library is designed to read and write Spreadsheet Documents
|
199
187
|
test_files: []
|