hobo_fields 1.3.0.pre21 → 1.3.0.pre22

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/hobo_fields/model.rb +9 -6
  3. metadata +7 -7
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.0.pre21
1
+ 1.3.0.pre22
@@ -22,13 +22,16 @@ module HoboFields
22
22
  inheriting_cattr_reader :index_specs => []
23
23
  inheriting_cattr_reader :ignore_indexes => []
24
24
 
25
- def self.inherited(klass)
26
- fields do |f|
27
- f.field(inheritance_column, :string)
25
+ # eval avoids the ruby 1.9.2 "super from singleton method ..." error
26
+ eval %(
27
+ def self.inherited(klass)
28
+ fields do |f|
29
+ f.field(inheritance_column, :string)
30
+ end
31
+ index(inheritance_column)
32
+ super
28
33
  end
29
- index(inheritance_column)
30
- super
31
- end
34
+ )
32
35
 
33
36
  def self.index(fields, options = {})
34
37
  # don't double-index fields
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hobo_fields
3
3
  version: !ruby/object:Gem::Version
4
- hash: -1637108441
4
+ hash: -1637108444
5
5
  prerelease: true
6
6
  segments:
7
7
  - 1
8
8
  - 3
9
9
  - 0
10
- - pre21
11
- version: 1.3.0.pre21
10
+ - pre22
11
+ version: 1.3.0.pre22
12
12
  platform: ruby
13
13
  authors:
14
14
  - Tom Locke
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-24 00:00:00 -04:00
19
+ date: 2010-11-27 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -43,13 +43,13 @@ dependencies:
43
43
  requirements:
44
44
  - - "="
45
45
  - !ruby/object:Gem::Version
46
- hash: -1637108441
46
+ hash: -1637108444
47
47
  segments:
48
48
  - 1
49
49
  - 3
50
50
  - 0
51
- - pre21
52
- version: 1.3.0.pre21
51
+ - pre22
52
+ version: 1.3.0.pre22
53
53
  type: :runtime
54
54
  version_requirements: *id002
55
55
  - !ruby/object:Gem::Dependency