rubyXL 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.7
1
+ 1.1.8
@@ -19,13 +19,11 @@ module Writer
19
19
  def write()
20
20
  builder = Nokogiri::XML::Builder.new do |xml|
21
21
  xml.Types('xmlns'=>"http://schemas.openxmlformats.org/package/2006/content-types") {
22
- xml.Override('PartName'=>'/docProps/app.xml',
23
- 'ContentType'=>"application/vnd.openxmlformats-officedocument.extended-properties+xml")
22
+ xml.Default('Extension'=>'xml', 'ContentType'=>'application/xml')
24
23
  unless @workbook.shared_strings.nil?
25
24
  xml.Override('PartName'=>'/xl/sharedStrings.xml',
26
25
  'ContentType'=>"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml")
27
26
  end
28
- xml.Default('Extension'=>'xml', 'ContentType'=>'application/xml')
29
27
  if @workbook.macros.nil? && @workbook.drawings.nil?
30
28
  xml.Override('PartName'=>'/xl/workbook.xml',
31
29
  'ContentType'=>"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml")
@@ -33,6 +31,8 @@ module Writer
33
31
  xml.Override('PartName'=>'/xl/workbook.xml',
34
32
  'ContentType'=>"application/vnd.ms-excel.sheet.macroEnabled.main+xml")
35
33
  end
34
+ xml.Override('PartName'=>"/xl/styles.xml",
35
+ 'ContentType'=>"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml")
36
36
  xml.Default('Extension'=>'rels','ContentType'=>'application/vnd.openxmlformats-package.relationships+xml')
37
37
  unless @workbook.external_links.nil?
38
38
  1.upto(@workbook.external_links.size-1) do |i|
@@ -40,8 +40,6 @@ module Writer
40
40
  'ContentType'=>"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml")
41
41
  end
42
42
  end
43
- xml.Override('PartName'=>"/xl/styles.xml",
44
- 'ContentType'=>"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml")
45
43
  unless @workbook.macros.nil?
46
44
  xml.Override('PartName'=>'/xl/vbaProject.bin',
47
45
  'ContentType'=>'application/vnd.ms-office.vbaProject')
@@ -62,6 +60,8 @@ module Writer
62
60
  end
63
61
  xml.Override('PartName'=>'/docProps/core.xml',
64
62
  'ContentType'=>"application/vnd.openxmlformats-package.core-properties+xml")
63
+ xml.Override('PartName'=>'/docProps/app.xml',
64
+ 'ContentType'=>"application/vnd.openxmlformats-officedocument.extended-properties+xml")
65
65
  }
66
66
  end
67
67
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rubyXL}
8
- s.version = "1.1.7"
8
+ s.version = "1.1.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Vivek Bhagwat"]
12
- s.date = %q{2011-09-13}
12
+ s.date = %q{2011-09-14}
13
13
  s.description = %q{rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents}
14
14
  s.email = %q{bhagwat.vivek@gmail.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyXL
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 1
9
- - 7
10
- version: 1.1.7
9
+ - 8
10
+ version: 1.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vivek Bhagwat
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-09-13 00:00:00 -04:00
18
+ date: 2011-09-14 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency