writeexcel 0.6.8 → 0.6.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.rdoc CHANGED
@@ -77,6 +77,9 @@ when use urf8 string data.
77
77
 
78
78
  == Recent Changes
79
79
 
80
+ v0.6.9
81
+ * Bug fix. When sheetname is cell's A1 notation such as 'D1', Worksheet#autofilter causes exception.
82
+
80
83
  v0.6.8
81
84
  * Bug fix. Worksheet#protect doesn't work well.
82
85
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.8
1
+ 0.6.9
data/html/en/doc_en.html CHANGED
@@ -406,7 +406,7 @@ name="add_worksheet"
406
406
  <p>You can specify <code>UTF-16BE</code> worksheet names using an additional optional parameter:</p>
407
407
 
408
408
  <pre>
409
- name = pack &#39;n&#39;, 0x263a
409
+ name = [0x263a].pack(&#39;n&#39;)
410
410
  worksheet = workbook.add_worksheet(name, true) # Smiley
411
411
  </pre>
412
412
 
@@ -491,7 +491,7 @@ name="add_chart"
491
491
  </ul>
492
492
 
493
493
  <p>See <a href="#" class="podlinkpod"
494
- >WriteExcel::Chart</a> for details on how to configure the chart object once it is created. See also the <code>chart_*.pl</code> programs in the examples directory of the distro.</p>
494
+ >WriteExcel::Chart</a> for details on how to configure the chart object once it is created. See also the <code>chart_*.rb</code> programs in the examples directory of the distro.</p>
495
495
 
496
496
  <h2><a class='u' href='#___top' title='click to go to top of document'
497
497
  name="add_chart_ext"
@@ -988,7 +988,7 @@ name="write_utf16le_string"
988
988
  <p><code>UTF-16</code> data can be changed from little-endian to big-endian format (and vice-versa) as follows:</p>
989
989
 
990
990
  <pre>
991
- utf16be = pack &#39;n*&#39;, unpack &#39;v*&#39;, utf16le
991
+ utf16be = [utf16le.unpack(&#39;v*&#39;)].pack(&#39;n*&#39;)
992
992
  </pre>
993
993
 
994
994
  <h2><a class='u' href='#___top' title='click to go to top of document'
@@ -5038,7 +5038,7 @@ name="Introduction"
5038
5038
 
5039
5039
  <!--
5040
5040
 
5041
- <p>You can also modify the module to support function names in the following languages: German, French, Spanish, Portuguese, Dutch, Finnish, Italian and Swedish. See the <code>function_locale.pl</code> program in the <code>examples</code> directory of the distro.</p>
5041
+ <p>You can also modify the module to support function names in the following languages: German, French, Spanish, Portuguese, Dutch, Finnish, Italian and Swedish. See the <code>function_locale.rb</code> program in the <code>examples</code> directory of the distro.</p>
5042
5042
 
5043
5043
  -->
5044
5044
 
@@ -113,7 +113,7 @@ class OLEWriter #:nodoc:
113
113
 
114
114
  @biff_size = size
115
115
 
116
- if biff_size > BlockSize
116
+ if size > BlockSize
117
117
  @book_size = size
118
118
  else
119
119
  @book_size = BlockSize
@@ -5015,7 +5015,7 @@ class Worksheet < BIFFWriter
5015
5015
 
5016
5016
  chars.collect! do |char|
5017
5017
  i += 1
5018
- char = char[0] << i
5018
+ char = char.ord << i
5019
5019
  low_15 = char & 0x7fff
5020
5020
  high_15 = char & 0x7fff << 15
5021
5021
  high_15 = high_15 >> 15
@@ -7233,7 +7233,7 @@ class Worksheet < BIFFWriter
7233
7233
  # TODO. Won't work for external data refs. Also should use a more direct
7234
7234
  # method.
7235
7235
  #
7236
- formula = "=#{@name}!A1"
7236
+ formula = "='#{@name}'!A1"
7237
7237
  store_formula(formula)
7238
7238
 
7239
7239
  @object_ids[0] = spid
data/writeexcel.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{writeexcel}
8
- s.version = "0.6.8"
8
+ s.version = "0.6.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Hideo NAKAMURA"]
12
- s.date = %q{2011-07-30}
12
+ s.date = %q{2011-08-25}
13
13
  s.description = %q{Multiple worksheets can be added to a workbook and formatting can be applied to cells. Text, numbers, formulas, hyperlinks and images can be written to the cells.}
14
14
  s.email = %q{cxn03651@msj.biglobe.ne.jp}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: writeexcel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.8
4
+ version: 0.6.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-30 00:00:00.000000000 +09:00
12
+ date: 2011-08-25 00:00:00.000000000 +09:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
  description: Multiple worksheets can be added to a workbook and formatting can be