write_xlsx 0.64.0 → 0.64.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8c364d46a510e23e976941e667f64e828966e67c
4
+ data.tar.gz: 5d395615effa546f49df304d0ce8c4ee7c151507
5
+ SHA512:
6
+ metadata.gz: 89064c672d2a9fd303234f0e327930ff41bd1d1a21908b9afb1182310eb4bebb8f802e3c174bf86b2f0390bed5e4b850e0173bb2b80ae13a632b27a04242e3e8
7
+ data.tar.gz: 8dcfd96eecba6faa2c9d5eb7336d87178db710d38318d62e1e6ab0b391d23217f96da25b17f51b2fcf01ee0625416fa31b1f7baf008e1bc79a91466f17cd0eda
data/README.rdoc CHANGED
@@ -75,6 +75,12 @@ the first worksheet in an Excel XML spreadsheet called ruby.xlsx:
75
75
  workbook.close
76
76
 
77
77
  == Recent change
78
+ 2013-03-06 v0.64.1
79
+ Bug fix in handling utf-8 string under ruby 1.8.7
80
+ (examples/demo.rb failed under ruby 1.8.7)
81
+
82
+ fix in Worksheet#set_h_pagebreaks
83
+
78
84
  2013-03-05 v0.64.0
79
85
  Added the option to format individual points in a chart series.
80
86
  This allows Pie chart segments to be formatted.
@@ -107,8 +107,8 @@ module Writexlsx
107
107
  ) if string =~ /([\x00-\x08\x0B-\x1F])/
108
108
 
109
109
  # Convert character to \xC2\xxx or \xC3\xxx
110
- unless string.empty?
111
- string = add_c2_c3(string) if 0x80 <= string.ord && string.ord <= 0xFF
110
+ if string.bytesize == 1 && 0x80 <= string.ord && string.ord <= 0xFF
111
+ string = add_c2_c3(string)
112
112
  end
113
113
 
114
114
  # Add attribute to preserve leading or trailing whitespace.
@@ -1,5 +1,5 @@
1
1
  require 'write_xlsx/workbook'
2
2
 
3
3
  class WriteXLSX < Writexlsx::Workbook
4
- VERSION = "0.64.0"
4
+ VERSION = "0.64.1"
5
5
  end
@@ -5021,7 +5021,7 @@ module Writexlsx
5021
5021
  #
5022
5022
  def set_h_pagebreaks(*args)
5023
5023
  breaks = args.collect do |brk|
5024
- brk.respond_to?(:to_a) ? brk.to_a : brk
5024
+ Array(brk)
5025
5025
  end.flatten
5026
5026
  @print_style.hbreaks += breaks
5027
5027
  end
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: write_xlsx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.64.0
5
- prerelease:
4
+ version: 0.64.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Hideo NAKAMURA
@@ -13,25 +12,43 @@ date: 2013-03-05 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rubyzip
16
- requirement: &83702490 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *83702490
25
- description: ! "write_xlsx s a gem to create a new file in the Excel 2007+ XLSX format,
26
- and you can use the same interface as writeexcel gem.\nThe WriteXLSX supports the
27
- following features:\n * Multiple worksheets\n * Strings and numbers\n * Unicode
28
- text\n * Rich string formats\n * Formulas (including array formats)\n * cell
29
- formatting\n * Embedded images\n * Charts\n * Autofilters\n * Data validation\n
30
- \ * Hyperlinks\n * Defined names\n * Grouping/Outlines\n * Cell comments\n *
31
- Panes\n * Page set-up and printing options\n\nwrite_xlsx uses the same interface
32
- as writeexcel gem.\n\ndocumentation is not completed, but writeexcel’s documentation
33
- will help you. See http://writeexcel.web.fc2.com/\n\nAnd you can find many examples
34
- in this gem.\n"
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ description: |
28
+ write_xlsx s a gem to create a new file in the Excel 2007+ XLSX format, and you can use the same interface as writeexcel gem.
29
+ The WriteXLSX supports the following features:
30
+ * Multiple worksheets
31
+ * Strings and numbers
32
+ * Unicode text
33
+ * Rich string formats
34
+ * Formulas (including array formats)
35
+ * cell formatting
36
+ * Embedded images
37
+ * Charts
38
+ * Autofilters
39
+ * Data validation
40
+ * Hyperlinks
41
+ * Defined names
42
+ * Grouping/Outlines
43
+ * Cell comments
44
+ * Panes
45
+ * Page set-up and printing options
46
+
47
+ write_xlsx uses the same interface as writeexcel gem.
48
+
49
+ documentation is not completed, but writeexcel’s documentation will help you. See http://writeexcel.web.fc2.com/
50
+
51
+ And you can find many examples in this gem.
35
52
  email:
36
53
  - cxn03651@msj.biglobe.ne.jp
37
54
  executables:
@@ -1111,27 +1128,26 @@ files:
1111
1128
  - write_xlsx.gemspec
1112
1129
  homepage: http://github.com/cxn03651/write_xlsx#readme
1113
1130
  licenses: []
1131
+ metadata: {}
1114
1132
  post_install_message:
1115
1133
  rdoc_options: []
1116
1134
  require_paths:
1117
1135
  - lib
1118
1136
  required_ruby_version: !ruby/object:Gem::Requirement
1119
- none: false
1120
1137
  requirements:
1121
- - - ! '>='
1138
+ - - '>='
1122
1139
  - !ruby/object:Gem::Version
1123
1140
  version: '0'
1124
1141
  required_rubygems_version: !ruby/object:Gem::Requirement
1125
- none: false
1126
1142
  requirements:
1127
- - - ! '>='
1143
+ - - '>='
1128
1144
  - !ruby/object:Gem::Version
1129
1145
  version: '0'
1130
1146
  requirements: []
1131
1147
  rubyforge_project:
1132
- rubygems_version: 1.8.10
1148
+ rubygems_version: 2.0.0
1133
1149
  signing_key:
1134
- specification_version: 3
1150
+ specification_version: 4
1135
1151
  summary: write_xlsx is a gem to create a new file in the Excel 2007+ XLSX format.
1136
1152
  test_files:
1137
1153
  - test/chart/test_add_series.rb