spreadsheet 0.7.4 → 0.7.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ === 0.7.5 / 06.12.2012
2
+
3
+ * Add error tolerant values for Iconv when writing spreadsheet
4
+ * by andrea@spaghetticode.it
5
+
1
6
  === 0.7.4 / 06.10.2012
2
7
 
3
8
  * Adds Spreadsheet::Excel::Row#to_a method to properly decode Date and DateTime data.
@@ -42,7 +42,7 @@ module Spreadsheet
42
42
 
43
43
  ##
44
44
  # The version of Spreadsheet you are using.
45
- VERSION = '0.7.4'
45
+ VERSION = '0.7.5'
46
46
 
47
47
  ##
48
48
  # Default client Encoding. Change this value if your application uses a
@@ -35,13 +35,13 @@ module Spreadsheet
35
35
  def internal string, client=Spreadsheet.client_encoding
36
36
  string = string.dup
37
37
  key = ['UTF-16LE', client]
38
- iconv = @@iconvs[key] ||= Iconv.new('UTF-16LE', client)
38
+ iconv = @@iconvs[key] ||= Iconv.new('UTF-16LE//TRANSLIT//IGNORE', client)
39
39
  iconv.iconv string
40
40
  end
41
41
  def utf8 string, client=Spreadsheet.client_encoding
42
42
  string = string.dup
43
43
  key = ['UTF-8', client]
44
- iconv = @@iconvs[key] ||= Iconv.new('UTF-8', client)
44
+ iconv = @@iconvs[key] ||= Iconv.new('UTF-8//TRANSLIT//IGNORE', client)
45
45
  iconv.iconv string
46
46
  end
47
47
  end
metadata CHANGED
@@ -1,86 +1,71 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: spreadsheet
3
- version: !ruby/object:Gem::Version
4
- hash: 11
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.5
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 7
9
- - 4
10
- version: 0.7.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Masaomi Hatakeyama, Zeno R.R. Davatz
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-10-06 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-12-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: ruby-ole
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: &24058540 !ruby/object:Gem::Requirement
24
17
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 15
29
- segments:
30
- - 1
31
- - 0
32
- version: "1.0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '1.0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: rdoc
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *24058540
25
+ - !ruby/object:Gem::Dependency
26
+ name: rdoc
27
+ requirement: &24131440 !ruby/object:Gem::Requirement
39
28
  none: false
40
- requirements:
29
+ requirements:
41
30
  - - ~>
42
- - !ruby/object:Gem::Version
43
- hash: 19
44
- segments:
45
- - 3
46
- - 10
47
- version: "3.10"
31
+ - !ruby/object:Gem::Version
32
+ version: '3.10'
48
33
  type: :development
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: hoe
52
34
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *24131440
36
+ - !ruby/object:Gem::Dependency
37
+ name: hoe
38
+ requirement: &24130840 !ruby/object:Gem::Requirement
54
39
  none: false
55
- requirements:
40
+ requirements:
56
41
  - - ~>
57
- - !ruby/object:Gem::Version
58
- hash: 25
59
- segments:
60
- - 2
61
- - 13
62
- version: "2.13"
42
+ - !ruby/object:Gem::Version
43
+ version: '2.13'
63
44
  type: :development
64
- version_requirements: *id003
65
- description: |-
66
- The Spreadsheet Library is designed to read and write Spreadsheet Documents.
45
+ prerelease: false
46
+ version_requirements: *24130840
47
+ description: ! 'The Spreadsheet Library is designed to read and write Spreadsheet
48
+ Documents.
49
+
67
50
  As of version 0.6.0, only Microsoft Excel compatible spreadsheets are
51
+
68
52
  supported. Spreadsheet is a combination/complete rewrite of the
53
+
69
54
  Spreadsheet::Excel Library by Daniel J. Berger and the ParseExcel Library by
70
- Hannes Wyss. Spreadsheet can read, write and modify Spreadsheet Documents.
71
- email:
55
+
56
+ Hannes Wyss. Spreadsheet can read, write and modify Spreadsheet Documents.'
57
+ email:
72
58
  - mhatakeyama@ywesee.com, zdavatz@ywesee.com
73
- executables:
59
+ executables:
74
60
  - xlsopcodes
75
61
  extensions: []
76
-
77
- extra_rdoc_files:
62
+ extra_rdoc_files:
78
63
  - GUIDE.txt
79
64
  - History.txt
80
65
  - LICENSE.txt
81
66
  - Manifest.txt
82
67
  - README.txt
83
- files:
68
+ files:
84
69
  - .gitignore
85
70
  - GUIDE.txt
86
71
  - History.txt
@@ -155,37 +140,28 @@ files:
155
140
  - .gemtest
156
141
  homepage: https://github.com/zdavatz/spreadsheet
157
142
  licenses: []
158
-
159
143
  post_install_message:
160
- rdoc_options:
144
+ rdoc_options:
161
145
  - --main
162
146
  - README.txt
163
- require_paths:
147
+ require_paths:
164
148
  - lib
165
- required_ruby_version: !ruby/object:Gem::Requirement
149
+ required_ruby_version: !ruby/object:Gem::Requirement
166
150
  none: false
167
- requirements:
168
- - - ">="
169
- - !ruby/object:Gem::Version
170
- hash: 3
171
- segments:
172
- - 0
173
- version: "0"
174
- required_rubygems_version: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - ! '>='
153
+ - !ruby/object:Gem::Version
154
+ version: '0'
155
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
156
  none: false
176
- requirements:
177
- - - ">="
178
- - !ruby/object:Gem::Version
179
- hash: 3
180
- segments:
181
- - 0
182
- version: "0"
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
183
161
  requirements: []
184
-
185
162
  rubyforge_project: spreadsheet
186
163
  rubygems_version: 1.8.15
187
164
  signing_key:
188
165
  specification_version: 3
189
166
  summary: The Spreadsheet Library is designed to read and write Spreadsheet Documents
190
167
  test_files: []
191
-