printr 0.5.2 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ tmp/
5
5
  *~
6
6
  *.gem
7
7
  commit
8
+ *.swp*
@@ -1,3 +1,3 @@
1
1
  module Printr
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
data/lib/printr.rb CHANGED
@@ -171,8 +171,11 @@ module Printr
171
171
  begin
172
172
  rx = Printr.sanitize_tokens[i]
173
173
  rep = Printr.sanitize_tokens[i+1]
174
- Printr.log "Replacing: " + rx.to_s + " with " + rep.to_s
175
- text.gsub!(rx, rep)
174
+ #Printr.log "Replacing: " + rx.to_s + " with " + rep.to_s
175
+ begin
176
+ text.gsub!(rx, rep)
177
+ rescue
178
+ end
176
179
  i += 2
177
180
  end while i < Printr.sanitize_tokens.length
178
181
  return text
data/printr.gemspec CHANGED
@@ -4,7 +4,7 @@ require "printr/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "printr"
7
- s.version = '0.5.2'
7
+ s.version = '0.6.1'
8
8
  s.platform = Gem::Platform::RUBY
9
9
  s.authors = ["Michael Franzl","Jason Martin"]
10
10
  s.email = ["jason@jason-knight-martin.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: printr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-01-30 00:00:00.000000000Z
13
+ date: 2012-02-01 00:00:00.000000000Z
14
14
  dependencies: []
15
15
  description: This engine allows you to define printers and templates.
16
16
  email: