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 CHANGED
@@ -1,3 +1,9 @@
1
+ 0.3.2 / 2012-07-12
2
+
3
+ * Bug fixes
4
+
5
+ * "Wrong date - Fixed 2 days missing because of Lotus 123 leap year bug and the way calculation is done" - thanks @igagnidz !
6
+
1
7
  0.3.1 / 2012-07-10
2
8
 
3
9
  * Enhancements
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.freeze_top_left = 'A2'
17
- @sheet1.add_row(['a', { :value => 'a', :faded => true, :type => :String }])
18
- @sheet1.add_row(['a', 'a'])
19
- # @sheet1.add_row(['foo', 'bar'])
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("Freeze")
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])
@@ -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 '1900-01-01'
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
@@ -1,3 +1,3 @@
1
1
  module XlsxWriter
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
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.1
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-10 00:00:00.000000000 Z
14
+ date: 2012-07-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: activesupport