write_xlsx 0.72.2 → 0.72.3.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/{README.rdoc → Changes} +3 -94
  3. data/README.md +96 -0
  4. data/lib/write_xlsx/chart.rb +115 -259
  5. data/lib/write_xlsx/chart/axis.rb +4 -4
  6. data/lib/write_xlsx/chart/bar.rb +1 -1
  7. data/lib/write_xlsx/chart/column.rb +1 -1
  8. data/lib/write_xlsx/chart/pie.rb +3 -3
  9. data/lib/write_xlsx/chart/radar.rb +1 -1
  10. data/lib/write_xlsx/chart/scatter.rb +1 -1
  11. data/lib/write_xlsx/chart/series.rb +0 -37
  12. data/lib/write_xlsx/chartsheet.rb +25 -37
  13. data/lib/write_xlsx/col_name.rb +40 -0
  14. data/lib/write_xlsx/drawing.rb +95 -85
  15. data/lib/write_xlsx/format.rb +32 -32
  16. data/lib/write_xlsx/package/app.rb +18 -23
  17. data/lib/write_xlsx/package/button.rb +15 -12
  18. data/lib/write_xlsx/package/comments.rb +33 -30
  19. data/lib/write_xlsx/package/conditional_format.rb +18 -14
  20. data/lib/write_xlsx/package/content_types.rb +22 -17
  21. data/lib/write_xlsx/package/core.rb +19 -24
  22. data/lib/write_xlsx/package/relationships.rb +10 -13
  23. data/lib/write_xlsx/package/shared_strings.rb +8 -16
  24. data/lib/write_xlsx/package/styles.rb +59 -64
  25. data/lib/write_xlsx/package/table.rb +27 -37
  26. data/lib/write_xlsx/package/vml.rb +23 -21
  27. data/lib/write_xlsx/package/xml_writer_simple.rb +3 -6
  28. data/lib/write_xlsx/sheets.rb +4 -4
  29. data/lib/write_xlsx/sparkline.rb +22 -22
  30. data/lib/write_xlsx/utility.rb +61 -33
  31. data/lib/write_xlsx/version.rb +1 -1
  32. data/lib/write_xlsx/workbook.rb +46 -50
  33. data/lib/write_xlsx/worksheet.rb +149 -133
  34. data/lib/write_xlsx/worksheet/cell_data.rb +8 -6
  35. data/lib/write_xlsx/worksheet/data_validation.rb +14 -14
  36. data/lib/write_xlsx/worksheet/hyperlink.rb +97 -65
  37. data/lib/write_xlsx/worksheet/page_setup.rb +23 -22
  38. data/test/chart/test_write_a_latin.rb +3 -3
  39. data/test/regression/test_chart_font01.rb +1 -1
  40. data/test/regression/test_chart_font02.rb +1 -1
  41. data/test/regression/test_chart_font03.rb +1 -1
  42. data/test/regression/test_chart_font04.rb +1 -1
  43. data/test/regression/test_chart_font05.rb +1 -1
  44. data/test/regression/test_chart_font06.rb +1 -1
  45. data/test/test_xml_writer_simple.rb +3 -3
  46. data/test/worksheet/test_write_hyperlink.rb +4 -4
  47. data/test/worksheet/test_write_worksheet_attributes.rb +3 -3
  48. data/write_xlsx.gemspec +2 -1
  49. metadata +9 -8
  50. data/test/package/table/test_write_xml_declaration.rb +0 -20
@@ -13,9 +13,9 @@ def setup
13
13
  def test_write_worksheet_attributes
14
14
  result = @worksheet.__send__('write_worksheet_attributes')
15
15
  expected = [
16
- 'xmlns', "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
17
- 'xmlns:r', "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
18
- ]
16
+ ['xmlns', "http://schemas.openxmlformats.org/spreadsheetml/2006/main"],
17
+ ['xmlns:r', "http://schemas.openxmlformats.org/officeDocument/2006/relationships"]
18
+ ]
19
19
  assert_equal(expected, result)
20
20
  end
21
21
  end
data/write_xlsx.gemspec CHANGED
@@ -19,7 +19,8 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.extra_rdoc_files = [
21
21
  "LICENSE.txt",
22
- "README.rdoc"
22
+ "README.md",
23
+ "Changes"
23
24
  ]
24
25
 
25
26
  gem.add_runtime_dependency(%q<rubyzip>, [">=1.0.0"])
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: write_xlsx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.72.2
4
+ version: 0.72.3.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hideo NAKAMURA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-07 00:00:00.000000000 Z
11
+ date: 2013-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubyzip
@@ -46,14 +46,16 @@ executables:
46
46
  extensions: []
47
47
  extra_rdoc_files:
48
48
  - LICENSE.txt
49
- - README.rdoc
49
+ - README.md
50
+ - Changes
50
51
  files:
51
52
  - .document
52
53
  - .gitattributes
53
54
  - .gitignore
55
+ - Changes
54
56
  - Gemfile
55
57
  - LICENSE.txt
56
- - README.rdoc
58
+ - README.md
57
59
  - Rakefile
58
60
  - bin/extract_vba.rb
59
61
  - examples/a_simple.rb
@@ -133,6 +135,7 @@ files:
133
135
  - lib/write_xlsx/chart/series.rb
134
136
  - lib/write_xlsx/chart/stock.rb
135
137
  - lib/write_xlsx/chartsheet.rb
138
+ - lib/write_xlsx/col_name.rb
136
139
  - lib/write_xlsx/colors.rb
137
140
  - lib/write_xlsx/compatibility.rb
138
141
  - lib/write_xlsx/drawing.rb
@@ -260,7 +263,6 @@ files:
260
263
  - test/package/table/test_write_auto_filter.rb
261
264
  - test/package/table/test_write_table_column.rb
262
265
  - test/package/table/test_write_table_style_info.rb
263
- - test/package/table/test_write_xml_declaration.rb
264
266
  - test/package/vml/test_write_auto_fill.rb
265
267
  - test/package/vml/test_write_div.rb
266
268
  - test/package/vml/test_write_idmap.rb
@@ -1292,9 +1294,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
1292
1294
  version: '0'
1293
1295
  required_rubygems_version: !ruby/object:Gem::Requirement
1294
1296
  requirements:
1295
- - - '>='
1297
+ - - '>'
1296
1298
  - !ruby/object:Gem::Version
1297
- version: '0'
1299
+ version: 1.3.1
1298
1300
  requirements: []
1299
1301
  rubyforge_project:
1300
1302
  rubygems_version: 2.0.3
@@ -1399,7 +1401,6 @@ test_files:
1399
1401
  - test/package/table/test_write_auto_filter.rb
1400
1402
  - test/package/table/test_write_table_column.rb
1401
1403
  - test/package/table/test_write_table_style_info.rb
1402
- - test/package/table/test_write_xml_declaration.rb
1403
1404
  - test/package/vml/test_write_auto_fill.rb
1404
1405
  - test/package/vml/test_write_div.rb
1405
1406
  - test/package/vml/test_write_idmap.rb
@@ -1,20 +0,0 @@
1
- # -*- coding: utf-8 -*-
2
- require 'helper'
3
- require 'write_xlsx/package/table'
4
-
5
- class TestTableWriteXmlDeclaration < Test::Unit::TestCase
6
- def setup
7
- workbook = WriteXLSX.new(StringIO.new)
8
- @worksheet = workbook.add_worksheet
9
- end
10
-
11
- def test_table_write_xml_declaration
12
- expected = %Q{<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n}
13
-
14
- table = Writexlsx::Package::Table.new(@worksheet, 0, 1, 1, 2, 2)
15
- table.__send__(:write_xml_declaration)
16
- result = table.instance_variable_get(:@writer).string
17
-
18
- assert_equal(expected, result)
19
- end
20
- end