spreadsheet 0.9.7 → 0.9.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTY2Mjk5NmRiYmUwZTg4MmM2ZDk4M2JkNWUwM2E2ZGZiNGFjZTdkMw==
4
+ NjJhMDIxNjBlNzdiZGI4YWYzMTdkODVjMGRlOTI5ZjdhNGM1ZDAxNA==
5
5
  data.tar.gz: !binary |-
6
- NmNhMmFkYTA1ZDkyZThhMTUzYjkzOGQzYTA4NTFmODU2Y2E4ZTA5Mw==
6
+ NjAzZTBhMmM5OWJiOWRjZDQ0ZGNkNTdhM2JkNWI0NWM0NWExYzM3OA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTE2NmE1MGYzNDhhN2VlYmRhY2VjNjAxZDZjZjk3NTQzNTBmYjJjYWI5ZTFh
10
- MDA1OTExNWY3ZDBiZGI4MTc3MjliNmEyNjhiYjhjOWE1YzJkNTg2YTczZTQ2
11
- ZWI4MWFjNDA1MWI0NGM1MjBjYzY4OGVmMjY3YzEwYWJlMzVhNTQ=
9
+ MDMxZjE5YTllNDlmODlkMGFhZmYzNDZiZjY5ZmMwNTkyODczNTU3ZTcwZTlm
10
+ NjQ2MjlkY2QzYjc4MmRkMDY2YjBmN2QzZmU1MDc0MDlhNTQ1YTE4MTJiY2Ew
11
+ MTNkOGI0YTlkZDQyMDM1NzAyYzYwNDk0ODZjNWFmYjNiNTAyMDM=
12
12
  data.tar.gz: !binary |-
13
- OTAwMzI1ODk5NTlmNzI0MWU3MmNlYjIyNGEyYzFhYjkzZjE0MWYyNjdlNGUw
14
- MTAyYTliMTkzOWZjMTFlZDQ3NmNjODY1MThiZjc4NTc2YjA3OTllZTQ5ZjU0
15
- ZWQyMDE4MzllZGQ5NzI0OTg0NzcwNTQ4ZGUwMWFmM2NjZGEyMWQ=
13
+ YmIzMTE4NzY1NGIwN2E1NDdiOGEyMWFjODU2NTg4ZGI3ZjBjMTljZTZmYTY2
14
+ MDIxOGE1ZjcyMTdlNWEwZDVkN2EyMmEzZTc2MjVmY2JkYTgyZGVlNzNiOTAy
15
+ NzI2MDE1OTMyMWJlZmNkMTA2Y2ViMjM5NmU5MDFiMTgwNTgxYjQ=
data/.travis.yml CHANGED
@@ -6,6 +6,7 @@ script: "ruby -w ./test/suite.rb"
6
6
  rvm:
7
7
  - ruby-head
8
8
  - 2.0.0
9
+ - 2.1.1
9
10
  - 1.9.3
10
11
  - 1.9.2
11
12
  - 1.8.7
data/GUIDE.md CHANGED
@@ -169,6 +169,12 @@ end
169
169
  book.write '/path/to/output/excel-file.xls'
170
170
  ```
171
171
 
172
+ Or you can directly access the cell that you want and add your text on it:
173
+
174
+ ```ruby
175
+ sheet.rows[2][1] = "X"
176
+ ```
177
+
172
178
  ## Date and DateTime
173
179
  Excel does not know a separate Datatype for Dates. Instead it encodes Dates
174
180
  into standard floating-point numbers and recognizes a Date-Cell by its
@@ -317,7 +323,7 @@ Again, you will have to manually uninstall the spreadsheet-excel library.
317
323
 
318
324
  If you perform fancy formatting, you may run into trouble as the
319
325
  Format implementation has changed considerably. If that is the case, please
320
- drop me a line at hannes.wyss@gmail.com and I will try to help you. Don't
326
+ drop me a line at "zdavatz at ywesee dot com" and I will try to help you. Don't
321
327
  forget to include the offending code-snippet!
322
328
 
323
329
  All compatibility code is deprecated and will be removed in version 1.0.0
data/Gemfile CHANGED
@@ -2,6 +2,5 @@ source "https://rubygems.org"
2
2
  gem 'ruby-ole'
3
3
 
4
4
  group :development do
5
- gem 'ruby-ole'
6
5
  gem 'hoe', '>= 3.4'
7
6
  end
data/History.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### 0.9.8 / 19.08.2014
2
+
3
+ Author: PikachuEXE <pikachuexe@gmail.com>
4
+ Date: Tue Aug 19 09:54:30 2014 +0800
5
+
6
+ * Fix Encoding for MRI 2.1.0
7
+
8
+
1
9
  ### 0.9.7 / 04.02.2014
2
10
 
3
11
  * Avoid exception when reading text objects
data/README.md CHANGED
@@ -1,10 +1,7 @@
1
- Forked to continue comment extraction based on andrewinkelmann's fork
2
-
3
-
4
- Last Update: 31.05.2013 - Zeno R.R. Davatz
5
-
6
1
  # Spreadsheet
7
2
 
3
+ [![Build Status](https://secure.travis-ci.org/zdavatz/spreadsheet.png)](http://travis-ci.org/zdavatz/spreadsheet)
4
+
8
5
  https://github.com/zdavatz/spreadsheet
9
6
 
10
7
  The Mailing List can be found here:
@@ -34,10 +34,10 @@ module Internals
34
34
  866 => "IBM866", #(Cyrillic (Russian))
35
35
  869 => "IBM869", #(Greek (Modern))
36
36
  874 => "WINDOWS-874", #(Thai)
37
- 932 => "WINDOWS-932", #(Japanese Shift-JIS)
38
- 936 => "WINDOWS-936", #(Chinese Simplified GBK)
39
- 949 => "WINDOWS-949", #(Korean (Wansung))
40
- 950 => "WINDOWS-950", #(Chinese Traditional BIG5)
37
+ 932 => "Windows-31J", #(Japanese Shift-JIS)
38
+ 936 => "GBK", #(Chinese Simplified GBK)
39
+ 949 => "CP949", #(Korean (Wansung))
40
+ 950 => "CP950", #(Chinese Traditional BIG5)
41
41
  1200 => "UTF-16LE", #(BIFF8)
42
42
  1250 => "WINDOWS-1250", #(Latin II) (Central European)
43
43
  1251 => "WINDOWS-1251", #(Cyrillic)
@@ -380,9 +380,9 @@ module Internals
380
380
  :wsbool => 0x0081, # ○ WSBOOL ➜ 6.113
381
381
  :defcolwidth => 0x0055, # ○ DEFCOLWIDTH ➜ 6.29
382
382
  :sort => 0x0090, # ○ SORT ➜ 6.95
383
- :note => 0x001c,
384
- :obj => 0x005d,
385
- :drawing => 0x00EC,
383
+ :note => 0x001c,
384
+ :obj => 0x005d,
385
+ :drawing => 0x00EC,
386
386
  :txo => 0x01B6,
387
387
  }
388
388
  =begin ## unknown opcodes
@@ -441,7 +441,7 @@ module Internals
441
441
  0x0d => :slanted_medium_dash_dotted
442
442
  }
443
443
  # ensure reader always gets a valid line style
444
- XF_BORDER_LINE_STYLES.default = :none
444
+ XF_BORDER_LINE_STYLES.default = :none
445
445
  SELYTS_ENIL_REDROB_FX = XF_BORDER_LINE_STYLES.invert
446
446
  SELYTS_ENIL_REDROB_FX.default = 0x00
447
447
  OPCODE_SIZE = 4
data/lib/spreadsheet.rb CHANGED
@@ -43,7 +43,7 @@ module Spreadsheet
43
43
 
44
44
  ##
45
45
  # The version of Spreadsheet you are using.
46
- VERSION = '0.9.7'
46
+ VERSION = '0.9.8'
47
47
 
48
48
  ##
49
49
  # Default client Encoding. Change this value if your application uses a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreadsheet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-04 00:00:00.000000000 Z
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-ole
@@ -170,7 +170,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  version: '0'
171
171
  requirements: []
172
172
  rubyforge_project: spreadsheet
173
- rubygems_version: 2.2.1
173
+ rubygems_version: 2.3.0
174
174
  signing_key:
175
175
  specification_version: 4
176
176
  summary: ''