rodf 0.2.1 → 0.2.2

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.2. Reintroduce compatibility with Ruby 1.8
1
2
  v0.2.1. Update to newer libraries and Ruby 1.9
2
3
  v0.1.6. Fix date handling
3
4
  v0.1.5. Bug fix
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'http://rubygems.org/'
2
+
3
+ gem "builder", "~> 3.0"
4
+ gem "rubyzip", "~> 0.9.1"
5
+ gem "activesupport", "~> 3.0"
6
+ gem "hpricot", "~> 0.8.6"
7
+ gem "rspec", "~> 2.9"
8
+ gem "rspec_hpricot_matchers" , "~> 1.0"
9
+ gem "echoe" , "~> 4.6"
data/Manifest CHANGED
@@ -1,10 +1,12 @@
1
1
  CHANGELOG
2
+ Gemfile
2
3
  LICENSE.LGPL
3
4
  Manifest
4
5
  README.rdoc
5
6
  Rakefile
6
7
  lib/odf/cell.rb
7
8
  lib/odf/column.rb
9
+ lib/odf/compatibility.rb
8
10
  lib/odf/container.rb
9
11
  lib/odf/data_style.rb
10
12
  lib/odf/document.rb
@@ -0,0 +1,25 @@
1
+ # Copyright (c) 2010-2012 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
+ require 'builder'
18
+
19
+ if !String.method_defined? :to_xs
20
+ class String
21
+ def to_xs
22
+ Builder::XChar.encode(self)
23
+ end
24
+ end
25
+ end
@@ -18,6 +18,7 @@
18
18
  require 'rubygems'
19
19
  require 'builder'
20
20
 
21
+ require 'odf/compatibility'
21
22
  require 'odf/paragraph_container'
22
23
 
23
24
  module ODF
@@ -27,7 +28,7 @@ module ODF
27
28
  end
28
29
 
29
30
  def xml
30
- Builder::XChar.encode @content.to_s
31
+ @content.to_s.to_xs
31
32
  end
32
33
  end
33
34
 
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "rodf"
5
- s.version = "0.2.1"
5
+ s.version = "0.2.2"
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 = "2012-04-14"
9
+ s.date = "2012-04-25"
10
10
  s.description = "ODF generation library for Ruby"
11
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"]
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.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", "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.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
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"]
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.2.1
4
+ version: 0.2.2
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-04-14 00:00:00.000000000Z
12
+ date: 2012-04-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
16
- requirement: &18519260 !ruby/object:Gem::Requirement
16
+ requirement: &87158270 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18519260
24
+ version_requirements: *87158270
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rubyzip
27
- requirement: &18518720 !ruby/object:Gem::Requirement
27
+ requirement: &87158060 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.9.1
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *18518720
35
+ version_requirements: *87158060
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: activesupport
38
- requirement: &18518220 !ruby/object:Gem::Requirement
38
+ requirement: &87157850 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *18518220
46
+ version_requirements: *87157850
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &18507080 !ruby/object:Gem::Requirement
49
+ requirement: &87157640 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '2.9'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *18507080
57
+ version_requirements: *87157640
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rspec_hpricot_matchers
60
- requirement: &18506540 !ruby/object:Gem::Requirement
60
+ requirement: &87157430 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '1.0'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *18506540
68
+ version_requirements: *87157430
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: echoe
71
- requirement: &18506060 !ruby/object:Gem::Requirement
71
+ requirement: &87157220 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '4.6'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *18506060
79
+ version_requirements: *87157220
80
80
  description: ODF generation library for Ruby
81
81
  email: thiago.arrais@gmail.com
82
82
  executables: []
@@ -87,6 +87,7 @@ extra_rdoc_files:
87
87
  - README.rdoc
88
88
  - lib/odf/cell.rb
89
89
  - lib/odf/column.rb
90
+ - lib/odf/compatibility.rb
90
91
  - lib/odf/container.rb
91
92
  - lib/odf/data_style.rb
92
93
  - lib/odf/document.rb
@@ -109,12 +110,14 @@ extra_rdoc_files:
109
110
  - lib/odf/text.rb
110
111
  files:
111
112
  - CHANGELOG
113
+ - Gemfile
112
114
  - LICENSE.LGPL
113
115
  - Manifest
114
116
  - README.rdoc
115
117
  - Rakefile
116
118
  - lib/odf/cell.rb
117
119
  - lib/odf/column.rb
120
+ - lib/odf/compatibility.rb
118
121
  - lib/odf/container.rb
119
122
  - lib/odf/data_style.rb
120
123
  - lib/odf/document.rb