has_magic_columns 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,6 +2,7 @@ class MagicColumn < ActiveRecord::Base
2
2
  has_many :magic_column_relationships
3
3
  has_many :owners, :through => :magic_column_relationships, :as => :owner
4
4
  has_many :magic_options
5
+ has_many :magic_attributes, :dependent => :destroy
5
6
 
6
7
  validates_presence_of :name, :datatype
7
8
  validates_format_of :name, :with => /^[a-z][a-z0-9_]+$/
@@ -30,4 +31,4 @@ class MagicColumn < ActiveRecord::Base
30
31
  super || name.humanize
31
32
  end
32
33
 
33
- end
34
+ end
@@ -1,3 +1,3 @@
1
1
  module HasMagicColumns
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,124 +1,92 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: has_magic_columns
3
- version: !ruby/object:Gem::Version
4
- hash: 25
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 1
10
- version: 0.1.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Drew Ulmer
14
9
  - Nicholas Zielinski
15
10
  - Brandon Keene
16
11
  autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
-
20
- date: 2011-08-28 00:00:00 -05:00
21
- default_executable:
22
- dependencies:
23
- - !ruby/object:Gem::Dependency
14
+ date: 2011-09-06 00:00:00.000000000Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
24
17
  name: activesupport
25
- prerelease: false
26
- requirement: &id001 !ruby/object:Gem::Requirement
18
+ requirement: &80667260 !ruby/object:Gem::Requirement
27
19
  none: false
28
- requirements:
20
+ requirements:
29
21
  - - ~>
30
- - !ruby/object:Gem::Version
31
- hash: 7
32
- segments:
33
- - 3
34
- - 0
35
- version: "3.0"
22
+ - !ruby/object:Gem::Version
23
+ version: '3.0'
36
24
  type: :runtime
37
- version_requirements: *id001
38
- - !ruby/object:Gem::Dependency
39
- name: activerecord
40
25
  prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
26
+ version_requirements: *80667260
27
+ - !ruby/object:Gem::Dependency
28
+ name: activerecord
29
+ requirement: &80666990 !ruby/object:Gem::Requirement
42
30
  none: false
43
- requirements:
31
+ requirements:
44
32
  - - ~>
45
- - !ruby/object:Gem::Version
46
- hash: 7
47
- segments:
48
- - 3
49
- - 0
50
- version: "3.0"
33
+ - !ruby/object:Gem::Version
34
+ version: '3.0'
51
35
  type: :runtime
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: rails
55
36
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
37
+ version_requirements: *80666990
38
+ - !ruby/object:Gem::Dependency
39
+ name: rails
40
+ requirement: &80666750 !ruby/object:Gem::Requirement
57
41
  none: false
58
- requirements:
42
+ requirements:
59
43
  - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 7
62
- segments:
63
- - 3
64
- - 0
65
- version: "3.0"
44
+ - !ruby/object:Gem::Version
45
+ version: '3.0'
66
46
  type: :development
67
- version_requirements: *id003
68
- - !ruby/object:Gem::Dependency
69
- name: sqlite3
70
47
  prerelease: false
71
- requirement: &id004 !ruby/object:Gem::Requirement
48
+ version_requirements: *80666750
49
+ - !ruby/object:Gem::Dependency
50
+ name: sqlite3
51
+ requirement: &80666560 !ruby/object:Gem::Requirement
72
52
  none: false
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- hash: 3
77
- segments:
78
- - 0
79
- version: "0"
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
80
57
  type: :development
81
- version_requirements: *id004
82
- - !ruby/object:Gem::Dependency
83
- name: rspec
84
58
  prerelease: false
85
- requirement: &id005 !ruby/object:Gem::Requirement
59
+ version_requirements: *80666560
60
+ - !ruby/object:Gem::Dependency
61
+ name: rspec
62
+ requirement: &80666280 !ruby/object:Gem::Requirement
86
63
  none: false
87
- requirements:
64
+ requirements:
88
65
  - - ~>
89
- - !ruby/object:Gem::Version
90
- hash: 3
91
- segments:
92
- - 2
93
- - 0
94
- version: "2.0"
66
+ - !ruby/object:Gem::Version
67
+ version: '2.0'
95
68
  type: :development
96
- version_requirements: *id005
97
- - !ruby/object:Gem::Dependency
98
- name: rdoc
99
69
  prerelease: false
100
- requirement: &id006 !ruby/object:Gem::Requirement
70
+ version_requirements: *80666280
71
+ - !ruby/object:Gem::Dependency
72
+ name: rdoc
73
+ requirement: &80666070 !ruby/object:Gem::Requirement
101
74
  none: false
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- hash: 3
106
- segments:
107
- - 0
108
- version: "0"
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
109
79
  type: :development
110
- version_requirements: *id006
80
+ prerelease: false
81
+ version_requirements: *80666070
111
82
  description: Allow addition of custom 'magic' columns to ActiveRecord models.
112
- email:
83
+ email:
113
84
  - latortuga@gmail.com
114
85
  - zieski@gmail.com
115
86
  executables: []
116
-
117
87
  extensions: []
118
-
119
88
  extra_rdoc_files: []
120
-
121
- files:
89
+ files:
122
90
  - .gitignore
123
91
  - CONTRIBUTORS.md
124
92
  - Gemfile
@@ -140,39 +108,28 @@ files:
140
108
  - lib/has_magic_columns/railtie.rb
141
109
  - lib/has_magic_columns/version.rb
142
110
  - test/has_magic_columns_test.rb
143
- has_rdoc: true
144
111
  homepage: https://github.com/latortuga/has_magic_columns
145
112
  licenses: []
146
-
147
113
  post_install_message:
148
114
  rdoc_options: []
149
-
150
- require_paths:
115
+ require_paths:
151
116
  - lib
152
- required_ruby_version: !ruby/object:Gem::Requirement
117
+ required_ruby_version: !ruby/object:Gem::Requirement
153
118
  none: false
154
- requirements:
155
- - - ">="
156
- - !ruby/object:Gem::Version
157
- hash: 3
158
- segments:
159
- - 0
160
- version: "0"
161
- required_rubygems_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
124
  none: false
163
- requirements:
164
- - - ">="
165
- - !ruby/object:Gem::Version
166
- hash: 3
167
- segments:
168
- - 0
169
- version: "0"
125
+ requirements:
126
+ - - ! '>='
127
+ - !ruby/object:Gem::Version
128
+ version: '0'
170
129
  requirements: []
171
-
172
130
  rubyforge_project:
173
- rubygems_version: 1.6.2
131
+ rubygems_version: 1.8.0
174
132
  signing_key:
175
133
  specification_version: 3
176
134
  summary: Custom fields for Rails 3
177
135
  test_files: []
178
-