odf-converter 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -66,7 +66,7 @@ module ODF
66
66
  begin
67
67
  load(infile) && store(outfile)
68
68
  ensure
69
- @document.close(true)
69
+ @document.close(true) unless @document
70
70
  end
71
71
  end
72
72
 
@@ -81,7 +81,8 @@ module ODF
81
81
  raise DocumentConversionError, e.message
82
82
  end
83
83
 
84
- @document.refresh
84
+ @document.refresh if @document.respond_to? :refresh
85
+
85
86
  family = detect_family(@document)
86
87
 
87
88
  if family == Families::SPREADSHEET
@@ -33,6 +33,9 @@ module ODF
33
33
  },
34
34
  ODF::Converter::Families::PRESENTATION => {
35
35
  FilterName: "impress_html_Export"
36
+ },
37
+ ODF::Converter::Families::DRAWING => {
38
+ FilterName: "XHTML" #HTML Document (OpenOffice.org Draw)"
36
39
  }
37
40
  }
38
41
 
@@ -109,6 +112,12 @@ module ODF
109
112
  FilterName: "draw_flash_Export"
110
113
  }
111
114
  }
115
+
116
+ ODG = {
117
+ ODF::Converter::Families::DRAWING => {
118
+ FilterName: "draw8"
119
+ }
120
+ }
112
121
  end
113
122
  end
114
123
  end
@@ -1,5 +1,5 @@
1
1
  module ODF
2
2
  class Converter
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odf-converter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-08 00:00:00.000000000 Z
12
+ date: 2012-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubyuno
16
- requirement: &22699960 !ruby/object:Gem::Requirement
16
+ requirement: &21950200 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *22699960
24
+ version_requirements: *21950200
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &22698340 !ruby/object:Gem::Requirement
27
+ requirement: &21980920 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 3.0.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *22698340
35
+ version_requirements: *21980920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &22696080 !ruby/object:Gem::Requirement
38
+ requirement: &21979180 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *22696080
46
+ version_requirements: *21979180
47
47
  description: Ruby library for converting ODF files through OO.org
48
48
  email:
49
49
  - dvandersluis@selfmgmt.com