characterizable 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/characterizable.rb +4 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.5
1
+ 0.0.6
@@ -105,9 +105,11 @@ module Characterizable
105
105
  include Blockenspiel::DSL
106
106
  def has(name, options = {}, &block)
107
107
  characteristics[name] = Characteristic.new(self, name, options, &block)
108
- if klass.respond_to? :attribute_methods_generated? and !klass.attribute_methods_generated?
108
+ begin
109
109
  # quacks like an activemodel
110
- klass.define_attribute_methods
110
+ klass.define_attribute_methods if klass.respond_to?(:attribute_methods_generated?) and !klass.attribute_methods_generated?
111
+ rescue
112
+ # for example, if a table doesn't exist... just ignore it
111
113
  end
112
114
  klass.module_eval(%{
113
115
  def #{name}_with_expire_snapshot=(new_#{name})
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 5
9
- version: 0.0.5
8
+ - 6
9
+ version: 0.0.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Andy Rossmeissl
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-25 00:00:00 -04:00
18
+ date: 2010-05-26 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency