writeexcel 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cebe8b5ad6954bc1738d77487b127646a56d64e7
4
- data.tar.gz: 2a2f56b156a5509f8a4f2908da8add9882c1f3a6
3
+ metadata.gz: e036ee78c56e41a25c0c346a2cbc93b579e4f54d
4
+ data.tar.gz: 20f79a79efa1699803e993ee52aa70665baabcea
5
5
  SHA512:
6
- metadata.gz: d4605d345ef34c4cd5dc42723e68fc81fd5c83d0abf8ae010b14a543dcb0ab1b43a5ecae351c912a49007766ab49c9feb4fb0fc2ac9fc09cf3c6b13b2ea39151
7
- data.tar.gz: e288110b5d45e81b4b38a095d48189b6e87b1384552b9dc9b4d15bede0d72c64adead6ba2f0dab29bffdf9bde6e26bc55e7825769aa9cf05d93bde8f77d188f7
6
+ metadata.gz: 1bb714fcc9f5a3ce118732cce6e4b21623237831ee25d5ab90970320140bc716cb88907ef3326f758f2a909fbdee8f45f1b9d926a72081361cd57d5fc11333a5
7
+ data.tar.gz: 8b89087c85738f136750da5673e3e0fb4bf95158053dbb9d8d00345715c30d22d8372e68d7c1efddc6674a6a9537ed89b46c9d37ca0d4ca0e15e8a188b2b900a
@@ -84,6 +84,9 @@ Example Code:
84
84
  * and ......
85
85
 
86
86
  == Recent Change
87
+ v1.0.5
88
+ * use test-unit gem instead of test/unit.
89
+
87
90
  v1.0.4
88
91
  * put formula parsers classes in a module to avoid namespace conflicts. (thanks Kevin)
89
92
 
@@ -105,7 +108,7 @@ v1.0.0
105
108
  Original was written in Perl by John McNamara (jmcnamara@cpan.org).
106
109
 
107
110
  Convert to ruby by Hideo Nakamura (cxn03651@msj.biglobe.ne.jp)
108
- Copyright (c) 2009-2013 Hideo NAKAMURA. See LICENSE.txt for details.
111
+ Copyright (c) 2009-2014 Hideo NAKAMURA. See LICENSE.txt for details.
109
112
 
110
113
  == License
111
114
 
@@ -9,7 +9,6 @@
9
9
  # original written in Perl by John McNamara
10
10
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
11
11
  #
12
- require 'rubygems'
13
12
  require 'writeexcel'
14
13
 
15
14
  # Create a new workbook called simple.xls and add a worksheet
@@ -10,7 +10,6 @@
10
10
  # original written in Perl by John McNamara
11
11
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
12
12
  #
13
- require 'rubygems'
14
13
  require 'writeexcel'
15
14
 
16
15
  # Create a new workbook called simple.xls and add a worksheet
@@ -7,7 +7,6 @@
7
7
  #
8
8
  # copyright 2013 Hideo NAKAMURA, cxn03651@msj.biglobe.ne.jp
9
9
  #
10
- require 'rubygems'
11
10
  require 'writeexcel'
12
11
 
13
12
  # Create a new workbook called chart_legend.xls and add a worksheet
@@ -9,7 +9,6 @@
9
9
  # original written in Perl by John McNamara
10
10
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
11
11
  #
12
- require 'rubygems'
13
12
  require 'writeexcel'
14
13
 
15
14
  # Create workbook1
@@ -12,7 +12,6 @@
12
12
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
13
13
  #
14
14
 
15
- require 'rubygems'
16
15
  require 'writeexcel'
17
16
 
18
17
  workbook = WriteExcel.new('data_validate.xls')
@@ -152,7 +151,7 @@
152
151
  worksheet.data_validation(row, 1,
153
152
  {
154
153
  :validate => 'list',
155
- :source => '=E4:G4'
154
+ :source => '=$E$4:$G$4'
156
155
  })
157
156
 
158
157
 
@@ -12,7 +12,6 @@
12
12
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
13
13
  #
14
14
 
15
- require 'rubygems'
16
15
  require 'writeexcel'
17
16
 
18
17
  # Create a new workbook and add a worksheet
@@ -13,7 +13,6 @@
13
13
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
14
14
  #
15
15
 
16
- require 'rubygems'
17
16
  require 'writeexcel'
18
17
 
19
18
  # $debug = true
@@ -13,7 +13,6 @@
13
13
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
14
14
  #
15
15
 
16
- require 'rubygems'
17
16
  require 'writeexcel'
18
17
 
19
18
  workbook = WriteExcel.new('diag_border.xls')
@@ -11,7 +11,6 @@
11
11
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
12
12
  #
13
13
 
14
- require 'rubygems'
15
14
  require 'writeexcel'
16
15
 
17
16
 
@@ -38,7 +38,6 @@
38
38
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
39
39
  #
40
40
 
41
- require 'rubygems'
42
41
  require 'writeexcel'
43
42
 
44
43
  workbook = WriteExcel.new("headers.xls")
@@ -10,7 +10,6 @@
10
10
  # original written in Perl by John McNamara
11
11
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
12
12
  #
13
- require 'rubygems'
14
13
  require 'writeexcel'
15
14
 
16
15
 
@@ -11,7 +11,6 @@
11
11
  # original written in Perl by John McNamara
12
12
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
13
13
  #
14
- require 'rubygems'
15
14
  require 'writeexcel'
16
15
 
17
16
  # Create a new workbook and add a worksheet
@@ -20,7 +20,6 @@
20
20
  # original written in Perl by John McNamara
21
21
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
22
22
  #
23
- require 'rubygems'
24
23
  require 'writeexcel'
25
24
 
26
25
  # Create three workbooks:
@@ -12,7 +12,6 @@
12
12
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
13
13
  #
14
14
 
15
- require 'rubygems'
16
15
  require 'writeexcel'
17
16
 
18
17
  # Create a new workbook called simple.xls and add a worksheet
@@ -15,7 +15,6 @@
15
15
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
16
16
  #
17
17
 
18
- require 'rubygems'
19
18
  require 'writeexcel'
20
19
 
21
20
  # Create a new workbook and add a worksheet
@@ -15,7 +15,6 @@
15
15
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
16
16
  #
17
17
 
18
- require 'rubygems'
19
18
  require 'writeexcel'
20
19
 
21
20
  # Create a new workbook and add a worksheet
@@ -13,7 +13,6 @@
13
13
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
14
14
  #
15
15
 
16
- require 'rubygems'
17
16
  require 'writeexcel'
18
17
 
19
18
  # Create a new workbook and add a worksheet
@@ -12,7 +12,6 @@
12
12
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
13
13
  #
14
14
 
15
- require 'rubygems'
16
15
  require 'writeexcel'
17
16
 
18
17
  # Create a new workbook and add a worksheet
@@ -13,7 +13,6 @@
13
13
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
14
14
  #
15
15
 
16
- require 'rubygems'
17
16
  require 'writeexcel'
18
17
 
19
18
  # Create a new workbook and add a worksheet
@@ -1,4 +1,3 @@
1
- require 'rubygems'
2
1
  require 'writeexcel'
3
2
 
4
3
  workbook = WriteExcel.new('password_protection.xls')
@@ -10,7 +10,6 @@
10
10
  # original written in Perl by John McNamara
11
11
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
12
12
  #
13
- require 'rubygems'
14
13
  require 'writeexcel'
15
14
 
16
15
  workbook = WriteExcel.new('properties.xls')
@@ -10,7 +10,6 @@
10
10
  # original written in Perl by John McNamara
11
11
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
12
12
  #
13
- require 'rubygems'
14
13
  require 'writeexcel'
15
14
 
16
15
  workbook = WriteExcel.new('properties_jp.xls')
@@ -12,7 +12,6 @@
12
12
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
13
13
  #
14
14
 
15
- require 'rubygems'
16
15
  require 'writeexcel'
17
16
 
18
17
  workbook = WriteExcel.new("protection.xls")
@@ -12,7 +12,6 @@
12
12
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
13
13
  #
14
14
 
15
- require 'rubygems'
16
15
  require 'writeexcel'
17
16
 
18
17
  workbook = WriteExcel.new("regions.xls")
@@ -11,7 +11,6 @@
11
11
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
12
12
  #
13
13
 
14
- require 'rubygems'
15
14
  require 'writeexcel'
16
15
 
17
16
  workbook = WriteExcel.new("repeat.xls")
@@ -1,7 +1,6 @@
1
1
  #!/usr/bin/ruby -w
2
2
  # -*- coding:utf-8 -*-
3
3
 
4
- require 'rubygems'
5
4
  require 'writeexcel'
6
5
 
7
6
  workbook = WriteExcel.new('set_first_sheet.xls')
@@ -14,7 +14,6 @@
14
14
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
15
15
  #
16
16
 
17
- require 'rubygems'
18
17
  require 'writeexcel'
19
18
 
20
19
  # Create a new workbook and add a worksheet
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rubygems'
4
3
  require 'writeexcel'
5
4
 
6
5
  # Create a new workbook called simple.xls and add a worksheet
@@ -11,7 +11,6 @@
11
11
  # converted to Ruby by Hideo Nakamura, cxn03651@msj.biglobe.ne.jp
12
12
  #
13
13
 
14
- require 'rubygems'
15
14
  require 'writeexcel'
16
15
 
17
16
  workbook = WriteExcel.new('tab_colors.xls')
@@ -6,7 +6,6 @@
6
6
  # Example of how to use the WriteExcel module to
7
7
  # write 1D and 2D arrays of data.
8
8
  #
9
- require 'rubygems'
10
9
  require 'writeexcel'
11
10
 
12
11
  workbook = WriteExcel.new("write_arrays.xls")
@@ -680,13 +680,11 @@ def initialize_hashes
680
680
  'ptgRefNV' => 0x4C,
681
681
  'ptgAreaNV' => 0x4D,
682
682
  'ptgMemAreaNV' => 0x4E,
683
- 'ptgMemNoMemN' => 0x4F,
684
683
  'ptgFuncCEV' => 0x58,
685
684
  'ptgNameXV' => 0x59,
686
685
  'ptgRef3dV' => 0x5A,
687
686
  'ptgArea3dV' => 0x5B,
688
687
  'ptgRefErr3dV' => 0x5C,
689
- 'ptgAreaErr3d' => 0x5D,
690
688
  'ptgArrayA' => 0x60,
691
689
  'ptgFuncA' => 0x61,
692
690
  'ptgFuncVarA' => 0x62,
@@ -702,13 +700,11 @@ def initialize_hashes
702
700
  'ptgRefNA' => 0x6C,
703
701
  'ptgAreaNA' => 0x6D,
704
702
  'ptgMemAreaNA' => 0x6E,
705
- 'ptgMemNoMemN' => 0x6F,
706
703
  'ptgFuncCEA' => 0x78,
707
704
  'ptgNameXA' => 0x79,
708
705
  'ptgRef3dA' => 0x7A,
709
706
  'ptgArea3dA' => 0x7B,
710
- 'ptgRefErr3dA' => 0x7C,
711
- 'ptgAreaErr3d' => 0x7D
707
+ 'ptgRefErr3dA' => 0x7C
712
708
  }
713
709
 
714
710
  # Thanks to Michael Meeks and Gnumeric for the initial arg values.
@@ -1,5 +1,5 @@
1
1
  require 'writeexcel'
2
2
 
3
3
  class WriteExcel < Workbook
4
- VERSION = "1.0.4"
4
+ VERSION = "1.0.5"
5
5
  end
@@ -1,5 +1,4 @@
1
1
  # -*- coding: utf-8 -*-
2
- require 'rubygems'
3
2
  require 'simplecov'
4
3
  require 'test/unit'
5
4
 
@@ -11,11 +11,13 @@ Gem::Specification.new do |gem|
11
11
  gem.description = "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."
12
12
  gem.summary = "Write to a cross-platform Excel binary file."
13
13
  gem.homepage = "http://github.com/cxn03651/writeexcel#readme"
14
+ gem.license = 'MIT'
14
15
 
15
16
  gem.files = `git ls-files`.split($/)
16
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
19
  gem.require_paths = ["lib"]
20
+ gem.add_development_dependency 'test-unit'
19
21
  gem.extra_rdoc_files = [
20
22
  "LICENSE.txt",
21
23
  "README.rdoc"
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: writeexcel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hideo NAKAMURA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-06 00:00:00.000000000 Z
11
+ date: 2014-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: test-unit
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: simplecov
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -296,7 +310,8 @@ files:
296
310
  - writeexcel.gemspec
297
311
  - writeexcel.rdoc
298
312
  homepage: http://github.com/cxn03651/writeexcel#readme
299
- licenses: []
313
+ licenses:
314
+ - MIT
300
315
  metadata: {}
301
316
  post_install_message:
302
317
  rdoc_options: []
@@ -314,7 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
314
329
  version: '0'
315
330
  requirements: []
316
331
  rubyforge_project:
317
- rubygems_version: 2.2.0
332
+ rubygems_version: 2.4.5
318
333
  signing_key:
319
334
  specification_version: 4
320
335
  summary: Write to a cross-platform Excel binary file.
@@ -451,3 +466,4 @@ test_files:
451
466
  - test/test_workbook.rb
452
467
  - test/test_worksheet.rb
453
468
  - test/test_write_formula_does_not_change_formula_string.rb
469
+ has_rdoc: