rodf 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +1 -0
- data/Gemfile +2 -2
- data/Rakefile +2 -2
- data/lib/odf/container.rb +1 -1
- data/lib/odf/document.rb +2 -2
- data/rodf.gemspec +9 -9
- metadata +12 -7
data/CHANGELOG
CHANGED
data/Gemfile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
source 'http://rubygems.org/'
|
2
2
|
|
3
3
|
gem "builder", "~> 3.0"
|
4
|
-
gem "rubyzip", "~> 0
|
5
|
-
gem "activesupport", "
|
4
|
+
gem "rubyzip", "~> 1.0"
|
5
|
+
gem "activesupport", ">= 3.0", "< 5.0"
|
6
6
|
gem "hpricot", "~> 0.8.6"
|
7
7
|
gem "rspec", "~> 2.9"
|
8
8
|
gem "rspec_hpricot_matchers" , "~> 1.0"
|
data/Rakefile
CHANGED
@@ -14,8 +14,8 @@ Echoe.new('rodf') do |gem|
|
|
14
14
|
|
15
15
|
gem.runtime_dependencies = [
|
16
16
|
["builder", "~> 3.0"],
|
17
|
-
["rubyzip", "~> 0
|
18
|
-
["activesupport", "
|
17
|
+
["rubyzip", "~> 1.0"],
|
18
|
+
["activesupport", ">= 3.0", "< 5.0"]]
|
19
19
|
gem.development_dependencies = [
|
20
20
|
["rspec", "~> 2.9"],
|
21
21
|
["rspec_hpricot_matchers" , "~> 1.0"],
|
data/lib/odf/container.rb
CHANGED
data/lib/odf/document.rb
CHANGED
@@ -17,7 +17,7 @@
|
|
17
17
|
|
18
18
|
require 'rubygems'
|
19
19
|
|
20
|
-
require 'zip
|
20
|
+
require 'zip'
|
21
21
|
|
22
22
|
require 'odf/container'
|
23
23
|
require 'odf/skeleton'
|
@@ -33,7 +33,7 @@ module ODF
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def write_to(ods_file_name)
|
36
|
-
ods_file = Zip::
|
36
|
+
ods_file = Zip::File.open(ods_file_name, Zip::File::CREATE)
|
37
37
|
ods_file.get_output_stream('META-INF/manifest.xml') {|f| f << self.class.skeleton.manifest(self.class.doc_type) }
|
38
38
|
|
39
39
|
ods_file.get_output_stream('styles.xml') do |f|
|
data/rodf.gemspec
CHANGED
@@ -2,17 +2,17 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = "rodf"
|
5
|
-
s.version = "0.3.
|
5
|
+
s.version = "0.3.5"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Thiago Arrais, Foivos Zakkak"]
|
9
|
-
s.date = "
|
9
|
+
s.date = "2014-01-20"
|
10
10
|
s.description = "ODF generation library for Ruby"
|
11
11
|
s.email = "thiago.arrais@gmail.com"
|
12
12
|
s.extra_rdoc_files = ["CHANGELOG", "LICENSE.LGPL", "README.rdoc", "lib/odf/cell.rb", "lib/odf/column.rb", "lib/odf/compatibility.rb", "lib/odf/container.rb", "lib/odf/data_style.rb", "lib/odf/document.rb", "lib/odf/hyperlink.rb", "lib/odf/master_page.rb", "lib/odf/page_layout.rb", "lib/odf/paragraph.rb", "lib/odf/paragraph_container.rb", "lib/odf/property.rb", "lib/odf/row.rb", "lib/odf/skeleton.rb", "lib/odf/skeleton/manifest.xml.erb", "lib/odf/skeleton/styles.pxml", "lib/odf/span.rb", "lib/odf/spreadsheet.rb", "lib/odf/style.rb", "lib/odf/style_section.rb", "lib/odf/tab.rb", "lib/odf/table.rb", "lib/odf/text.rb"]
|
13
13
|
s.files = ["CHANGELOG", "Gemfile", "LICENSE.LGPL", "Manifest", "README.rdoc", "Rakefile", "lib/odf/cell.rb", "lib/odf/column.rb", "lib/odf/compatibility.rb", "lib/odf/container.rb", "lib/odf/data_style.rb", "lib/odf/document.rb", "lib/odf/hyperlink.rb", "lib/odf/master_page.rb", "lib/odf/page_layout.rb", "lib/odf/paragraph.rb", "lib/odf/paragraph_container.rb", "lib/odf/property.rb", "lib/odf/row.rb", "lib/odf/skeleton.rb", "lib/odf/skeleton/manifest.xml.erb", "lib/odf/skeleton/styles.pxml", "lib/odf/span.rb", "lib/odf/spreadsheet.rb", "lib/odf/style.rb", "lib/odf/style_section.rb", "lib/odf/tab.rb", "lib/odf/table.rb", "lib/odf/text.rb", "rodf.gemspec", "spec/cell_spec.rb", "spec/data_style_spec.rb", "spec/hyperlink_spec.rb", "spec/master_page_spec.rb", "spec/page_layout_spec.rb", "spec/paragraph_spec.rb", "spec/property_spec.rb", "spec/row_spec.rb", "spec/skeleton_spec.rb", "spec/span_spec.rb", "spec/spec_helper.rb", "spec/spreadsheet_spec.rb", "spec/style_section_spec.rb", "spec/style_spec.rb", "spec/tab_spec.rb", "spec/table_spec.rb", "spec/text_spec.rb"]
|
14
14
|
s.homepage = "http://github.com/thiagoarrais/rodf/tree"
|
15
|
-
s.rdoc_options = ["--line-numbers", "--
|
15
|
+
s.rdoc_options = ["--line-numbers", "--title", "Rodf", "--main", "README.rdoc"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = "rodf"
|
18
18
|
s.rubygems_version = "1.8.25"
|
@@ -23,23 +23,23 @@ Gem::Specification.new do |s|
|
|
23
23
|
|
24
24
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
25
25
|
s.add_runtime_dependency(%q<builder>, ["~> 3.0"])
|
26
|
-
s.add_runtime_dependency(%q<rubyzip>, ["~> 0
|
27
|
-
s.add_runtime_dependency(%q<activesupport>, ["
|
26
|
+
s.add_runtime_dependency(%q<rubyzip>, ["~> 1.0"])
|
27
|
+
s.add_runtime_dependency(%q<activesupport>, ["< 5.0", ">= 3.0"])
|
28
28
|
s.add_development_dependency(%q<rspec>, ["~> 2.9"])
|
29
29
|
s.add_development_dependency(%q<rspec_hpricot_matchers>, ["~> 1.0"])
|
30
30
|
s.add_development_dependency(%q<echoe>, ["~> 4.6"])
|
31
31
|
else
|
32
32
|
s.add_dependency(%q<builder>, ["~> 3.0"])
|
33
|
-
s.add_dependency(%q<rubyzip>, ["~> 0
|
34
|
-
s.add_dependency(%q<activesupport>, ["
|
33
|
+
s.add_dependency(%q<rubyzip>, ["~> 1.0"])
|
34
|
+
s.add_dependency(%q<activesupport>, ["< 5.0", ">= 3.0"])
|
35
35
|
s.add_dependency(%q<rspec>, ["~> 2.9"])
|
36
36
|
s.add_dependency(%q<rspec_hpricot_matchers>, ["~> 1.0"])
|
37
37
|
s.add_dependency(%q<echoe>, ["~> 4.6"])
|
38
38
|
end
|
39
39
|
else
|
40
40
|
s.add_dependency(%q<builder>, ["~> 3.0"])
|
41
|
-
s.add_dependency(%q<rubyzip>, ["~> 0
|
42
|
-
s.add_dependency(%q<activesupport>, ["
|
41
|
+
s.add_dependency(%q<rubyzip>, ["~> 1.0"])
|
42
|
+
s.add_dependency(%q<activesupport>, ["< 5.0", ">= 3.0"])
|
43
43
|
s.add_dependency(%q<rspec>, ["~> 2.9"])
|
44
44
|
s.add_dependency(%q<rspec_hpricot_matchers>, ["~> 1.0"])
|
45
45
|
s.add_dependency(%q<echoe>, ["~> 4.6"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rodf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: builder
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: 0
|
37
|
+
version: '1.0'
|
38
38
|
type: :runtime
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,23 +42,29 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: 0
|
45
|
+
version: '1.0'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: activesupport
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
none: false
|
50
50
|
requirements:
|
51
|
-
- -
|
51
|
+
- - ! '>='
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '3.0'
|
54
|
+
- - <
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '5.0'
|
54
57
|
type: :runtime
|
55
58
|
prerelease: false
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
57
60
|
none: false
|
58
61
|
requirements:
|
59
|
-
- -
|
62
|
+
- - ! '>='
|
60
63
|
- !ruby/object:Gem::Version
|
61
64
|
version: '3.0'
|
65
|
+
- - <
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '5.0'
|
62
68
|
- !ruby/object:Gem::Dependency
|
63
69
|
name: rspec
|
64
70
|
requirement: !ruby/object:Gem::Requirement
|
@@ -191,7 +197,6 @@ licenses: []
|
|
191
197
|
post_install_message:
|
192
198
|
rdoc_options:
|
193
199
|
- --line-numbers
|
194
|
-
- --inline-source
|
195
200
|
- --title
|
196
201
|
- Rodf
|
197
202
|
- --main
|