rtf 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES CHANGED
@@ -1,5 +1,8 @@
1
1
  == CHANGES
2
2
 
3
+ 0.3.4
4
+ * Added table fix for IOS [samullen]
5
+
3
6
  0.3.2
4
7
  * Added support for utf-8 thanks to clbustos
5
8
 
@@ -179,6 +179,7 @@ directory, so check that out too.
179
179
  CONTRIBUTORS
180
180
 
181
181
  Claudio Bustos
182
+ Sam Mullen
182
183
  Chris O'Sullivan
183
184
 
184
185
  COPYRIGHT
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 3
4
- :patch: 2
4
+ :patch: 3
5
5
  :build:
@@ -657,7 +657,7 @@ module RTF
657
657
  text << row.to_rtf
658
658
  end
659
659
 
660
- text.string
660
+ text.string.sub(/\\row(?!.*\\row)/m, "\\lastrow\n\\row")
661
661
  end
662
662
 
663
663
  alias :column_shading_color :column_shading_colour
@@ -19,6 +19,7 @@ class TableNodeTest < Test::Unit::TestCase
19
19
  assert(table.columns == 5)
20
20
  assert(table.size == 3)
21
21
  assert(table.cell_margin == 100)
22
+ assert_match(/\\lastrow\n\\row$/, table.to_rtf)
22
23
  end
23
24
 
24
25
  def test_mutators
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,8 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-09-07 00:00:00.000000000 +01:00
13
- default_executable:
12
+ date: 2011-11-08 00:00:00.000000000Z
14
13
  dependencies: []
15
14
  description: Ruby RTF is a library that can be used to create rich text format (RTF)
16
15
  documents. RTF is a text based standard for laying out document content.
@@ -68,7 +67,6 @@ files:
68
67
  - test/table_row_node_test.rb
69
68
  - test/test_helper.rb
70
69
  - test/text_node_test.rb
71
- has_rdoc: true
72
70
  homepage: http://github.com/thechrisoshow/rtf
73
71
  licenses: []
74
72
  post_install_message:
@@ -89,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
87
  version: '0'
90
88
  requirements: []
91
89
  rubyforge_project:
92
- rubygems_version: 1.6.2
90
+ rubygems_version: 1.8.10
93
91
  signing_key:
94
92
  specification_version: 3
95
93
  summary: Ruby library to create rich text format documents.