rodf 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,4 @@
1
+ v0.2.1. Update to newer libraries and Ruby 1.9
1
2
  v0.1.6. Fix date handling
2
3
  v0.1.5. Bug fix
3
4
  v0.1.4. Allow the setting of an entire cell's content to a hyperlink (by Merul Patel)
data/Manifest CHANGED
@@ -22,6 +22,7 @@ lib/odf/span.rb
22
22
  lib/odf/spreadsheet.rb
23
23
  lib/odf/style.rb
24
24
  lib/odf/style_section.rb
25
+ lib/odf/tab.rb
25
26
  lib/odf/table.rb
26
27
  lib/odf/text.rb
27
28
  rodf.gemspec
@@ -38,5 +39,6 @@ spec/spec_helper.rb
38
39
  spec/spreadsheet_spec.rb
39
40
  spec/style_section_spec.rb
40
41
  spec/style_spec.rb
42
+ spec/tab_spec.rb
41
43
  spec/table_spec.rb
42
44
  spec/text_spec.rb
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
- require 'spec/rake/spectask'
2
+ require 'rspec/core/rake_task'
3
3
 
4
- Spec::Rake::SpecTask.new
4
+ RSpec::Core::RakeTask.new
5
5
  task :default => :spec
6
6
  task :test => :spec
7
7
 
@@ -13,11 +13,11 @@ Echoe.new('rodf') do |gem|
13
13
  gem.summary = "ODF generation library for Ruby"
14
14
 
15
15
  gem.runtime_dependencies = [
16
- ["builder", ">= 2.1.2"],
17
- ["rubyzip", ">= 0.9.1"],
18
- ["activesupport", ">= 2.1.2"]]
16
+ ["builder", "~> 3.0"],
17
+ ["rubyzip", "~> 0.9.1"],
18
+ ["activesupport", "~> 3.0"]]
19
19
  gem.development_dependencies = [
20
- ["rspec", ">= 1.1.11"],
21
- ["rspec_hpricot_matchers" , ">= 1.0"],
22
- ["echoe" , ">= 3.0.2"]]
20
+ ["rspec", "~> 2.9"],
21
+ ["rspec_hpricot_matchers" , "~> 1.0"],
22
+ ["echoe" , "~> 4.6"]]
23
23
  end
@@ -34,7 +34,7 @@ module ODF
34
34
  @url = opts[:url]
35
35
  @type = opts[:type] || :string
36
36
  unless value.instance_of?(Hash)
37
- if [Date, DateTime, Time].include? value.class
37
+ if value.respond_to? :strftime
38
38
  @value = value.strftime("%Y-%m-%d")
39
39
  else
40
40
  @value = value.to_s.strip
@@ -16,9 +16,9 @@
16
16
  # along with rODF. If not, see <http://www.gnu.org/licenses/>.
17
17
 
18
18
  require 'rubygems'
19
- gem 'activesupport', '>= 2.1.2'
19
+ gem 'activesupport', '~> 3.0'
20
20
 
21
- require 'active_support'
21
+ require 'active_support/inflector'
22
22
 
23
23
  module ODF
24
24
  class Container
@@ -21,9 +21,12 @@ require 'zip/zip'
21
21
 
22
22
  require 'odf/container'
23
23
  require 'odf/skeleton'
24
+ require 'odf/style'
24
25
 
25
26
  module ODF
26
27
  class Document < Container
28
+ contains :styles, :default_styles
29
+
27
30
  def self.file(ods_file_name)
28
31
  ods_file = Zip::ZipFile.open(ods_file_name, Zip::ZipFile::CREATE)
29
32
  ods_file.get_output_stream('styles.xml') {|f| f << skeleton.styles }
@@ -24,7 +24,8 @@ module ODF
24
24
  :text => 'style:text-properties',
25
25
  :column => 'style:table-column-properties'}
26
26
  TRANSLATED_SPECS = [:border_color, :border_style, :border_width]
27
- STYLE_ATTRIBUTES = ['column-width', 'rotation-angle', 'text-underline-type']
27
+ STYLE_ATTRIBUTES = ['column-width', 'rotation-angle', 'text-underline-type',
28
+ 'tab-stop-distance']
28
29
 
29
30
  def initialize(type, specs={})
30
31
  @name = PROPERTY_NAMES[type] || "style:#{type}-properties"
@@ -27,7 +27,7 @@ module ODF
27
27
  end
28
28
 
29
29
  def xml
30
- @content.to_s.to_xs
30
+ Builder::XChar.encode @content.to_s
31
31
  end
32
32
  end
33
33
 
@@ -23,12 +23,11 @@ require 'odf/data_style'
23
23
  require 'odf/document'
24
24
  require 'odf/hyperlink'
25
25
  require 'odf/span'
26
- require 'odf/style'
27
26
  require 'odf/table'
28
27
 
29
28
  module ODF
30
29
  class Spreadsheet < Document
31
- contains :tables, :styles, :data_styles
30
+ contains :tables, :data_styles
32
31
 
33
32
  def xml
34
33
  b = Builder::XmlMarkup.new
@@ -43,6 +42,9 @@ module ODF
43
42
  'xmlns:number' => "urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0",
44
43
  'xmlns:xlink' => "http://www.w3.org/1999/xlink" do
45
44
  |xml|
45
+ xml.tag! 'office:styles' do
46
+ xml << default_styles_xml
47
+ end unless default_styles.empty?
46
48
  xml.tag! 'office:automatic-styles' do
47
49
  xml << styles_xml
48
50
  xml << data_styles_xml
@@ -27,13 +27,13 @@ module ODF
27
27
 
28
28
  FAMILIES = {:cell => 'table-cell', :column => 'table-column'}
29
29
 
30
- def initialize(name='', opts={})
31
- @name = name
30
+ def initialize(name='', opts={}, node_tag='style:style')
31
+ @name, @node_tag = name, node_tag
32
32
  @elem_attrs = make_element_attributes(@name, opts)
33
33
  end
34
34
 
35
35
  def xml
36
- Builder::XmlMarkup.new.style:style, @elem_attrs do |xml|
36
+ Builder::XmlMarkup.new.tag!(@node_tag, @elem_attrs) do |xml|
37
37
  xml << properties_xml
38
38
  end
39
39
  end
@@ -51,6 +51,12 @@ module ODF
51
51
  def to_s
52
52
  @name
53
53
  end
54
- end
54
+ end
55
+
56
+ class DefaultStyle < Style
57
+ def initialize(opts={})
58
+ super(nil, opts, 'style:default-style')
59
+ end
60
+ end
55
61
  end
56
62
 
@@ -0,0 +1,38 @@
1
+ # Copyright (c) 2010 Thiago Arrais
2
+ #
3
+ # This file is part of rODF.
4
+ #
5
+ # rODF is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as
7
+ # published by the Free Software Foundation, either version 3 of
8
+ # the License, or (at your option) any later version.
9
+
10
+ # rODF is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with rODF. If not, see <http://www.gnu.org/licenses/>.
17
+
18
+ require 'rubygems'
19
+ require 'builder'
20
+
21
+ require 'odf/paragraph_container'
22
+
23
+ module ODF
24
+ class Tab
25
+ def xml
26
+ Builder::XmlMarkup.new.text:tab
27
+ end
28
+ end
29
+
30
+ class ParagraphContainer < Container
31
+ def tab(*args)
32
+ t = Tab.new
33
+ content_parts << t
34
+ t
35
+ end
36
+ end
37
+ end
38
+
@@ -25,11 +25,10 @@ require 'odf/page_layout'
25
25
  require 'odf/paragraph'
26
26
  require 'odf/span'
27
27
  require 'odf/hyperlink'
28
- require 'odf/style'
29
28
 
30
29
  module ODF
31
30
  class Text < Document
32
- contains :paragraphs, :styles, :page_layouts, :master_pages
31
+ contains :paragraphs, :page_layouts, :master_pages
33
32
 
34
33
  alias :p :paragraph
35
34
 
@@ -45,6 +44,9 @@ module ODF
45
44
  'xmlns:fo' => "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0",
46
45
  'xmlns:xlink' => "http://www.w3.org/1999/xlink" do
47
46
  |xml|
47
+ xml.tag! 'office:styles' do
48
+ xml << default_styles_xml
49
+ end unless default_styles.empty?
48
50
  xml.tag! 'office:automatic-styles' do
49
51
  xml << styles_xml
50
52
  xml << page_layouts_xml
@@ -1,48 +1,47 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{rodf}
5
- s.version = "0.2.0"
4
+ s.name = "rodf"
5
+ s.version = "0.2.1"
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"]
9
- s.date = %q{2010-05-28}
10
- s.description = %q{ODF generation library for Ruby}
11
- s.email = %q{thiago.arrais@gmail.com}
12
- s.extra_rdoc_files = ["CHANGELOG", "LICENSE.LGPL", "README.rdoc", "lib/odf/cell.rb", "lib/odf/column.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.xml", "lib/odf/span.rb", "lib/odf/spreadsheet.rb", "lib/odf/style_section.rb", "lib/odf/style.rb", "lib/odf/table.rb", "lib/odf/text.rb"]
13
- s.files = ["CHANGELOG", "LICENSE.LGPL", "Manifest", "README.rdoc", "Rakefile", "lib/odf/cell.rb", "lib/odf/column.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.xml", "lib/odf/span.rb", "lib/odf/spreadsheet.rb", "lib/odf/style_section.rb", "lib/odf/style.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/span_spec.rb", "spec/spec_helper.rb", "spec/spreadsheet_spec.rb", "spec/style_section_spec.rb", "spec/style_spec.rb", "spec/table_spec.rb", "spec/text_spec.rb"]
14
- s.homepage = %q{http://github.com/thiagoarrais/rodf/tree}
9
+ s.date = "2012-04-14"
10
+ s.description = "ODF generation library for Ruby"
11
+ s.email = "thiago.arrais@gmail.com"
12
+ s.extra_rdoc_files = ["CHANGELOG", "LICENSE.LGPL", "README.rdoc", "lib/odf/cell.rb", "lib/odf/column.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.xml", "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
+ s.files = ["CHANGELOG", "LICENSE.LGPL", "Manifest", "README.rdoc", "Rakefile", "lib/odf/cell.rb", "lib/odf/column.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.xml", "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/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
+ s.homepage = "http://github.com/thiagoarrais/rodf/tree"
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rodf", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
- s.rubyforge_project = %q{rodf}
18
- s.rubygems_version = %q{1.3.6}
19
- s.summary = %q{ODF generation library for Ruby}
17
+ s.rubyforge_project = "rodf"
18
+ s.rubygems_version = "1.8.10"
19
+ s.summary = "ODF generation library for Ruby"
20
20
 
21
21
  if s.respond_to? :specification_version then
22
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
22
  s.specification_version = 3
24
23
 
25
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
26
- s.add_runtime_dependency(%q<builder>, [">= 2.1.2"])
27
- s.add_runtime_dependency(%q<rubyzip>, [">= 0.9.1"])
28
- s.add_runtime_dependency(%q<activesupport>, [">= 2.1.2"])
29
- s.add_development_dependency(%q<rspec>, [">= 1.1.11"])
30
- s.add_development_dependency(%q<rspec_hpricot_matchers>, [">= 1.0"])
31
- s.add_development_dependency(%q<echoe>, [">= 3.0.2"])
24
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
25
+ s.add_runtime_dependency(%q<builder>, ["~> 3.0"])
26
+ s.add_runtime_dependency(%q<rubyzip>, ["~> 0.9.1"])
27
+ s.add_runtime_dependency(%q<activesupport>, ["~> 3.0"])
28
+ s.add_development_dependency(%q<rspec>, ["~> 2.9"])
29
+ s.add_development_dependency(%q<rspec_hpricot_matchers>, ["~> 1.0"])
30
+ s.add_development_dependency(%q<echoe>, ["~> 4.6"])
32
31
  else
33
- s.add_dependency(%q<builder>, [">= 2.1.2"])
34
- s.add_dependency(%q<rubyzip>, [">= 0.9.1"])
35
- s.add_dependency(%q<activesupport>, [">= 2.1.2"])
36
- s.add_dependency(%q<rspec>, [">= 1.1.11"])
37
- s.add_dependency(%q<rspec_hpricot_matchers>, [">= 1.0"])
38
- s.add_dependency(%q<echoe>, [">= 3.0.2"])
32
+ s.add_dependency(%q<builder>, ["~> 3.0"])
33
+ s.add_dependency(%q<rubyzip>, ["~> 0.9.1"])
34
+ s.add_dependency(%q<activesupport>, ["~> 3.0"])
35
+ s.add_dependency(%q<rspec>, ["~> 2.9"])
36
+ s.add_dependency(%q<rspec_hpricot_matchers>, ["~> 1.0"])
37
+ s.add_dependency(%q<echoe>, ["~> 4.6"])
39
38
  end
40
39
  else
41
- s.add_dependency(%q<builder>, [">= 2.1.2"])
42
- s.add_dependency(%q<rubyzip>, [">= 0.9.1"])
43
- s.add_dependency(%q<activesupport>, [">= 2.1.2"])
44
- s.add_dependency(%q<rspec>, [">= 1.1.11"])
45
- s.add_dependency(%q<rspec_hpricot_matchers>, [">= 1.0"])
46
- s.add_dependency(%q<echoe>, [">= 3.0.2"])
40
+ s.add_dependency(%q<builder>, ["~> 3.0"])
41
+ s.add_dependency(%q<rubyzip>, ["~> 0.9.1"])
42
+ s.add_dependency(%q<activesupport>, ["~> 3.0"])
43
+ s.add_dependency(%q<rspec>, ["~> 2.9"])
44
+ s.add_dependency(%q<rspec_hpricot_matchers>, ["~> 1.0"])
45
+ s.add_dependency(%q<echoe>, ["~> 4.6"])
47
46
  end
48
47
  end
@@ -17,6 +17,8 @@
17
17
 
18
18
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
19
19
 
20
+ require 'date'
21
+
20
22
  require 'odf/cell'
21
23
 
22
24
  describe ODF::Cell do
@@ -128,5 +128,10 @@ describe ODF::Property do
128
128
  ODF::Property.new(:paragraph).xml.
129
129
  should have_tag('style:paragraph-properties')
130
130
  end
131
+
132
+ it "should should prefix tab stop distance property with style namespace" do
133
+ Hpricot(ODF::Property.new(:paragraph, 'tab-stop-distance' => '0.4925in').xml).
134
+ at('style:paragraph-properties')['style:tab-stop-distance'].should == '0.4925in'
135
+ end
131
136
  end
132
137
 
@@ -0,0 +1,34 @@
1
+ # Copyright (c) 2010 Thiago Arrais
2
+ #
3
+ # This file is part of rODF.
4
+ #
5
+ # rODF is free software: you can redistribute it and/or modify
6
+ # it under the terms of the GNU Lesser General Public License as
7
+ # published by the Free Software Foundation, either version 3 of
8
+ # the License, or (at your option) any later version.
9
+
10
+ # rODF is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
+ # GNU Lesser General Public License for more details.
14
+
15
+ # You should have received a copy of the GNU Lesser General Public License
16
+ # along with rODF. If not, see <http://www.gnu.org/licenses/>.
17
+
18
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
19
+
20
+ require 'odf/paragraph'
21
+ require 'odf/tab'
22
+
23
+ describe ODF::Tab do
24
+ it "should be placed inside paragraphs" do
25
+ output = ODF::Paragraph.create {|p|
26
+ p << "Tab"
27
+ p.tab
28
+ p << "test"
29
+ }
30
+ output.should have_tag("//text:p/*", :count => 3)
31
+ output.should have_tag("//text:tab")
32
+ end
33
+ end
34
+
@@ -67,5 +67,13 @@ describe ODF::Text do
67
67
  output.should have_tag('//office:master-styles/*', :count => 1)
68
68
  output.should have_tag('//style:master-page')
69
69
  end
70
+
71
+ it "should support default styles" do
72
+ output = ODF::Text.create do |doc|
73
+ doc.default_style :family => 'paragraph'
74
+ end
75
+ output.should have_tag('//office:styles/*', :count => 1)
76
+ output.should have_tag('//style:default-style')
77
+ end
70
78
  end
71
79
 
metadata CHANGED
@@ -1,112 +1,87 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rodf
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 2
8
- - 0
9
- version: 0.2.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.1
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Thiago Arrais
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2010-05-28 00:00:00 -03:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
12
+ date: 2012-04-14 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
21
15
  name: builder
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 2
29
- - 1
30
- - 2
31
- version: 2.1.2
16
+ requirement: &18519260 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
32
22
  type: :runtime
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: rubyzip
36
23
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- segments:
42
- - 0
43
- - 9
44
- - 1
24
+ version_requirements: *18519260
25
+ - !ruby/object:Gem::Dependency
26
+ name: rubyzip
27
+ requirement: &18518720 !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
45
32
  version: 0.9.1
46
33
  type: :runtime
47
- version_requirements: *id002
48
- - !ruby/object:Gem::Dependency
49
- name: activesupport
50
34
  prerelease: false
51
- requirement: &id003 !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- segments:
56
- - 2
57
- - 1
58
- - 2
59
- version: 2.1.2
35
+ version_requirements: *18518720
36
+ - !ruby/object:Gem::Dependency
37
+ name: activesupport
38
+ requirement: &18518220 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ~>
42
+ - !ruby/object:Gem::Version
43
+ version: '3.0'
60
44
  type: :runtime
61
- version_requirements: *id003
62
- - !ruby/object:Gem::Dependency
63
- name: rspec
64
45
  prerelease: false
65
- requirement: &id004 !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- segments:
70
- - 1
71
- - 1
72
- - 11
73
- version: 1.1.11
46
+ version_requirements: *18518220
47
+ - !ruby/object:Gem::Dependency
48
+ name: rspec
49
+ requirement: &18507080 !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '2.9'
74
55
  type: :development
75
- version_requirements: *id004
76
- - !ruby/object:Gem::Dependency
77
- name: rspec_hpricot_matchers
78
56
  prerelease: false
79
- requirement: &id005 !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- segments:
84
- - 1
85
- - 0
86
- version: "1.0"
57
+ version_requirements: *18507080
58
+ - !ruby/object:Gem::Dependency
59
+ name: rspec_hpricot_matchers
60
+ requirement: &18506540 !ruby/object:Gem::Requirement
61
+ none: false
62
+ requirements:
63
+ - - ~>
64
+ - !ruby/object:Gem::Version
65
+ version: '1.0'
87
66
  type: :development
88
- version_requirements: *id005
89
- - !ruby/object:Gem::Dependency
90
- name: echoe
91
67
  prerelease: false
92
- requirement: &id006 !ruby/object:Gem::Requirement
93
- requirements:
94
- - - ">="
95
- - !ruby/object:Gem::Version
96
- segments:
97
- - 3
98
- - 0
99
- - 2
100
- version: 3.0.2
68
+ version_requirements: *18506540
69
+ - !ruby/object:Gem::Dependency
70
+ name: echoe
71
+ requirement: &18506060 !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ~>
75
+ - !ruby/object:Gem::Version
76
+ version: '4.6'
101
77
  type: :development
102
- version_requirements: *id006
78
+ prerelease: false
79
+ version_requirements: *18506060
103
80
  description: ODF generation library for Ruby
104
81
  email: thiago.arrais@gmail.com
105
82
  executables: []
106
-
107
83
  extensions: []
108
-
109
- extra_rdoc_files:
84
+ extra_rdoc_files:
110
85
  - CHANGELOG
111
86
  - LICENSE.LGPL
112
87
  - README.rdoc
@@ -127,11 +102,12 @@ extra_rdoc_files:
127
102
  - lib/odf/skeleton/styles.xml
128
103
  - lib/odf/span.rb
129
104
  - lib/odf/spreadsheet.rb
130
- - lib/odf/style_section.rb
131
105
  - lib/odf/style.rb
106
+ - lib/odf/style_section.rb
107
+ - lib/odf/tab.rb
132
108
  - lib/odf/table.rb
133
109
  - lib/odf/text.rb
134
- files:
110
+ files:
135
111
  - CHANGELOG
136
112
  - LICENSE.LGPL
137
113
  - Manifest
@@ -154,8 +130,9 @@ files:
154
130
  - lib/odf/skeleton/styles.xml
155
131
  - lib/odf/span.rb
156
132
  - lib/odf/spreadsheet.rb
157
- - lib/odf/style_section.rb
158
133
  - lib/odf/style.rb
134
+ - lib/odf/style_section.rb
135
+ - lib/odf/tab.rb
159
136
  - lib/odf/table.rb
160
137
  - lib/odf/text.rb
161
138
  - rodf.gemspec
@@ -172,43 +149,37 @@ files:
172
149
  - spec/spreadsheet_spec.rb
173
150
  - spec/style_section_spec.rb
174
151
  - spec/style_spec.rb
152
+ - spec/tab_spec.rb
175
153
  - spec/table_spec.rb
176
154
  - spec/text_spec.rb
177
- has_rdoc: true
178
155
  homepage: http://github.com/thiagoarrais/rodf/tree
179
156
  licenses: []
180
-
181
157
  post_install_message:
182
- rdoc_options:
158
+ rdoc_options:
183
159
  - --line-numbers
184
160
  - --inline-source
185
161
  - --title
186
162
  - Rodf
187
163
  - --main
188
164
  - README.rdoc
189
- require_paths:
165
+ require_paths:
190
166
  - lib
191
- required_ruby_version: !ruby/object:Gem::Requirement
192
- requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- segments:
196
- - 0
197
- version: "0"
198
- required_rubygems_version: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - ">="
201
- - !ruby/object:Gem::Version
202
- segments:
203
- - 1
204
- - 2
205
- version: "1.2"
167
+ required_ruby_version: !ruby/object:Gem::Requirement
168
+ none: false
169
+ requirements:
170
+ - - ! '>='
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
173
+ required_rubygems_version: !ruby/object:Gem::Requirement
174
+ none: false
175
+ requirements:
176
+ - - ! '>='
177
+ - !ruby/object:Gem::Version
178
+ version: '1.2'
206
179
  requirements: []
207
-
208
180
  rubyforge_project: rodf
209
- rubygems_version: 1.3.6
181
+ rubygems_version: 1.8.10
210
182
  signing_key:
211
183
  specification_version: 3
212
184
  summary: ODF generation library for Ruby
213
185
  test_files: []
214
-