rtf-templater 0.0.1 → 0.0.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.
@@ -2,7 +2,8 @@ module RtfTemplater
2
2
  module Generator
3
3
 
4
4
  def dec string
5
- string.unpack('U*').map { |n| n < 128 ? n.chr : n < 256 ? "\\'#{n.to_s(16)}" : "\\u#{n}\\'3f" }.join
5
+ out = string.to_s
6
+ out.unpack('U*').map { |n| n < 128 ? n.chr : n < 256 ? "\\'#{n.to_s(16)}" : "\\u#{n}\\'3f" }.join
6
7
  end
7
8
 
8
9
  def render_rtf content
@@ -1,3 +1,3 @@
1
1
  module RtfTemplater
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rtf-templater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
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: 2012-06-07 00:00:00.000000000 Z
12
+ date: 2012-06-09 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Embedded ruby for RTF documents. You provide .rtf template and data and
15
15
  rtf-templater generates the document.
@@ -19,7 +19,6 @@ executables: []
19
19
  extensions: []
20
20
  extra_rdoc_files: []
21
21
  files:
22
- - .DS_Store
23
22
  - .gitignore
24
23
  - Gemfile
25
24
  - LICENSE
@@ -30,7 +29,6 @@ files:
30
29
  - lib/rtf-templater/template.rb
31
30
  - lib/rtf-templater/version.rb
32
31
  - rtf-templater.gemspec
33
- - showcase/.DS_Store
34
32
  - showcase/document.png
35
33
  - showcase/showcase-out.rtf
36
34
  - showcase/showcase.rb
data/.DS_Store DELETED
Binary file
Binary file