xlsx_writer 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -0
- data/README.markdown +3 -3
- data/foo.rb +7 -9
- data/lib/xlsx_writer/cell.rb +1 -1
- data/lib/xlsx_writer/version.rb +1 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README.markdown
CHANGED
@@ -37,11 +37,11 @@ Features not present in simple_xlsx_writer:
|
|
37
37
|
|
38
38
|
# show TRUE for true but a blank cell instead of FALSE
|
39
39
|
doc.quiet_booleans!
|
40
|
-
|
41
|
-
# freeze pane underneath the first (header) row
|
42
|
-
doc.freeze!
|
43
40
|
|
44
41
|
sheet1 = doc.add_sheet("People")
|
42
|
+
|
43
|
+
# freeze pane underneath the first (header) row
|
44
|
+
sheet1.freeze_top_left = 'A2'
|
45
45
|
|
46
46
|
# DATA
|
47
47
|
|
data/foo.rb
CHANGED
@@ -11,18 +11,16 @@ require 'xlsx_writer'
|
|
11
11
|
|
12
12
|
@doc = XlsxWriter::Document.new
|
13
13
|
|
14
|
-
@sheet1 = @doc.add_sheet("Sheet1")
|
15
|
-
@sheet1.add_row(['a', 'a'])
|
16
|
-
@sheet1.
|
17
|
-
@sheet1.add_row(['a',
|
18
|
-
@sheet1.add_row(['
|
19
|
-
# @sheet1.
|
20
|
-
@sheet1.add_autofilter 'A1:B1'
|
14
|
+
# @sheet1 = @doc.add_sheet("Sheet1")
|
15
|
+
# @sheet1.add_row(['a', 'a'])
|
16
|
+
# @sheet1.add_row(['a', { :value => 'a', :faded => true, :type => :String }])
|
17
|
+
# @sheet1.add_row(['a', 'a'])
|
18
|
+
# # @sheet1.add_row(['foo', 'bar'])
|
19
|
+
# @sheet1.add_autofilter 'A1:B1'
|
21
20
|
|
22
|
-
@sheet2 = @doc.add_sheet("
|
21
|
+
@sheet2 = @doc.add_sheet("Sheet2")
|
23
22
|
@sheet2.add_row(['a', 'a'])
|
24
23
|
@sheet2.add_row(['false1', false])
|
25
|
-
@sheet2.freeze_top_left = 'A4'
|
26
24
|
@sheet2.add_row(['false2', {:value => false, :type => :Boolean}])
|
27
25
|
@sheet2.add_row(['false3', 'faLse'])
|
28
26
|
@sheet2.add_row(['true1', true])
|
data/lib/xlsx_writer/cell.rb
CHANGED
@@ -157,7 +157,7 @@ module XlsxWriter
|
|
157
157
|
MAX_REASONABLE_WIDTH = 75
|
158
158
|
DATE_LENGTH = 'YYYY-MM-DD'.length
|
159
159
|
BOOLEAN_LENGTH = 'FALSE'.length + 1
|
160
|
-
JAN_1_1900 = ::Time.parse
|
160
|
+
JAN_1_1900 = ::Time.parse('1899-12-30 00:00:00 UTC')
|
161
161
|
TRUE_FALSE_PATTERN = %r{^true|false$}i
|
162
162
|
|
163
163
|
attr_reader :row
|
data/lib/xlsx_writer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xlsx_writer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-07-
|
14
|
+
date: 2012-07-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: activesupport
|