scribbler 0.1.0 → 0.1.1

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.
@@ -125,9 +125,9 @@ module Scribbler
125
125
  def self.template
126
126
  @template ||= proc do |options|
127
127
  begin
128
- if_id = options[:object].id
129
- rescue NoMethodError
130
- if_id = "no id"
128
+ if_id = options[:object].present? ? options[:object].try(:id) : 'no id'
129
+ rescue NoMethodError, RuntimeError # Uber careful
130
+ if_id = 'no id'
131
131
  end
132
132
  custom_fields = options[:custom_fields].to_a.collect { |x| "#{x[0].to_s.humanize}: #{x[1]}" }.join("\n")
133
133
 
@@ -1,3 +1,3 @@
1
1
  module Scribbler
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scribbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -140,7 +140,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
140
  version: '0'
141
141
  segments:
142
142
  - 0
143
- hash: -504908089194974695
143
+ hash: -4412993880917242240
144
144
  required_rubygems_version: !ruby/object:Gem::Requirement
145
145
  none: false
146
146
  requirements:
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  segments:
151
151
  - 0
152
- hash: -504908089194974695
152
+ hash: -4412993880917242240
153
153
  requirements: []
154
154
  rubyforge_project:
155
155
  rubygems_version: 1.8.24