printr 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/printr.rb +3 -2
  2. data/printr.gemspec +1 -1
  3. metadata +2 -2
data/lib/printr.rb CHANGED
@@ -123,7 +123,7 @@ module Printr
123
123
  puts "Could not find #{key} #{Printr.printrs[key].class}"
124
124
  end
125
125
  rescue Exception => e
126
- puts "#{e.inspect}"
126
+ puts "[Printr] Error in print_to: #{e.inspect}"
127
127
  Printr.close
128
128
  end
129
129
  end
@@ -146,12 +146,13 @@ module Printr
146
146
  text
147
147
  end
148
148
  def template(name,bndng)
149
- puts "[Printr] attempting to print with template"
149
+ puts "[Printr] attempting to print with template #{RAILS_ROOT}/app/views/printr/#{name}.prnt.erb"
150
150
  begin
151
151
  erb = ERB.new(File.new("#{RAILS_ROOT}/app/views/printr/#{name}.prnt.erb",'r').read)
152
152
  rescue Exception => e
153
153
  puts "[Printr] Exception in view: " + e.inspect
154
154
  end
155
+ puts "[Printr] returning text"
155
156
  text = erb.result(bndng)
156
157
  return text
157
158
  end
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.1.2'
7
+ s.version = '0.1.3'
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
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Franzl