modalfields 1.5.6 → 1.5.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.6
1
+ 1.5.7
@@ -493,7 +493,9 @@ module ModalFields
493
493
  models = []
494
494
  files = {}
495
495
  model_dirs.each do |base|
496
- Dir.glob(File.join(base,"**/*.rb")).each do |fn|
496
+ # TODO: look also in subdirectories ('**/*.rb') but then
497
+ # the relative path must be used to qualify the constant name (/x/y.rb => X::Y)
498
+ Dir.glob(File.join(base,"*.rb")).each do |fn|
497
499
  model = File.basename(fn).chomp(".rb").camelize.constantize
498
500
  models << model
499
501
  files[model.to_s] = fn
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{modalfields}
8
- s.version = "1.5.6"
7
+ s.name = "modalfields"
8
+ s.version = "1.5.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Javier Goizueta"]
12
- s.date = %q{2013-08-05}
13
- s.description = %q{ModelFields is a Rails plugin that adds fields declarations to your models.}
14
- s.email = %q{jgoizueta@gmail.com}
12
+ s.date = "2013-09-10"
13
+ s.description = "ModelFields is a Rails plugin that adds fields declarations to your models."
14
+ s.email = "jgoizueta@gmail.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt",
17
17
  "README.rdoc",
@@ -57,11 +57,11 @@ Gem::Specification.new do |s|
57
57
  "test/test_diff.rb",
58
58
  "test/test_update.rb"
59
59
  ]
60
- s.homepage = %q{http://github.com/jgoizueta/modalfields}
60
+ s.homepage = "http://github.com/jgoizueta/modalfields"
61
61
  s.licenses = ["MIT"]
62
62
  s.require_paths = ["lib"]
63
- s.rubygems_version = %q{1.4.0}
64
- s.summary = %q{Model annotator with Ruby (Hobo-like) syntax and hooks.}
63
+ s.rubygems_version = "1.8.23"
64
+ s.summary = "Model annotator with Ruby (Hobo-like) syntax and hooks."
65
65
 
66
66
  if s.respond_to? :specification_version then
67
67
  s.specification_version = 3
metadata CHANGED
@@ -1,183 +1,185 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: modalfields
3
- version: !ruby/object:Gem::Version
4
- hash: 15
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.5.7
5
5
  prerelease:
6
- segments:
7
- - 1
8
- - 5
9
- - 6
10
- version: 1.5.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Javier Goizueta
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2013-08-05 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
22
- version_requirements: &id001 !ruby/object:Gem::Requirement
23
- none: false
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- hash: 3
28
- segments:
29
- - 0
30
- version: "0"
31
- type: :runtime
32
- requirement: *id001
12
+ date: 2013-09-10 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
33
15
  name: modalsettings
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :runtime
34
23
  prerelease: false
35
- - !ruby/object:Gem::Dependency
36
- version_requirements: &id002 !ruby/object:Gem::Requirement
37
- none: false
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- hash: 9
42
- segments:
43
- - 2
44
- - 3
45
- - 5
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: activesupport
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
46
37
  version: 2.3.5
47
38
  type: :runtime
48
- requirement: *id002
49
- name: activesupport
50
39
  prerelease: false
51
- - !ruby/object:Gem::Dependency
52
- version_requirements: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
55
- - - ">="
56
- - !ruby/object:Gem::Version
57
- hash: 9
58
- segments:
59
- - 2
60
- - 3
61
- - 5
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
62
45
  version: 2.3.5
63
- type: :runtime
64
- requirement: *id003
46
+ - !ruby/object:Gem::Dependency
65
47
  name: activerecord
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: 2.3.5
54
+ type: :runtime
66
55
  prerelease: false
67
- - !ruby/object:Gem::Dependency
68
- version_requirements: &id004 !ruby/object:Gem::Requirement
69
- none: false
70
- requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- hash: 3
74
- segments:
75
- - 0
76
- version: "0"
77
- type: :development
78
- requirement: *id004
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: 2.3.5
62
+ - !ruby/object:Gem::Dependency
79
63
  name: shoulda
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
80
71
  prerelease: false
81
- - !ruby/object:Gem::Dependency
82
- version_requirements: &id005 !ruby/object:Gem::Requirement
72
+ version_requirements: !ruby/object:Gem::Requirement
83
73
  none: false
84
- requirements:
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: rdoc
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
85
83
  - - ~>
86
- - !ruby/object:Gem::Version
87
- hash: 31
88
- segments:
89
- - 3
90
- - 12
91
- version: "3.12"
84
+ - !ruby/object:Gem::Version
85
+ version: '3.12'
92
86
  type: :development
93
- requirement: *id005
94
- name: rdoc
95
87
  prerelease: false
96
- - !ruby/object:Gem::Dependency
97
- version_requirements: &id006 !ruby/object:Gem::Requirement
88
+ version_requirements: !ruby/object:Gem::Requirement
98
89
  none: false
99
- requirements:
90
+ requirements:
100
91
  - - ~>
101
- - !ruby/object:Gem::Version
102
- hash: 1
103
- segments:
104
- - 1
105
- version: "1"
106
- type: :development
107
- requirement: *id006
92
+ - !ruby/object:Gem::Version
93
+ version: '3.12'
94
+ - !ruby/object:Gem::Dependency
108
95
  name: bundler
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ~>
100
+ - !ruby/object:Gem::Version
101
+ version: '1'
102
+ type: :development
109
103
  prerelease: false
110
- - !ruby/object:Gem::Dependency
111
- version_requirements: &id007 !ruby/object:Gem::Requirement
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ~>
108
+ - !ruby/object:Gem::Version
109
+ version: '1'
110
+ - !ruby/object:Gem::Dependency
111
+ name: jeweler
112
+ requirement: !ruby/object:Gem::Requirement
112
113
  none: false
113
- requirements:
114
+ requirements:
114
115
  - - ~>
115
- - !ruby/object:Gem::Version
116
- hash: 49
117
- segments:
118
- - 1
119
- - 8
120
- - 3
116
+ - !ruby/object:Gem::Version
121
117
  version: 1.8.3
122
118
  type: :development
123
- requirement: *id007
124
- name: jeweler
125
119
  prerelease: false
126
- - !ruby/object:Gem::Dependency
127
- version_requirements: &id008 !ruby/object:Gem::Requirement
128
- none: false
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- hash: 3
133
- segments:
134
- - 0
135
- version: "0"
136
- type: :development
137
- requirement: *id008
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ~>
124
+ - !ruby/object:Gem::Version
125
+ version: 1.8.3
126
+ - !ruby/object:Gem::Dependency
138
127
  name: sqlite3
139
- prerelease: false
140
- - !ruby/object:Gem::Dependency
141
- version_requirements: &id009 !ruby/object:Gem::Requirement
142
- none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 3
147
- segments:
148
- - 0
149
- version: "0"
128
+ requirement: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
150
134
  type: :development
151
- requirement: *id009
135
+ prerelease: false
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ - !ruby/object:Gem::Dependency
152
143
  name: pg
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
153
151
  prerelease: false
154
- - !ruby/object:Gem::Dependency
155
- version_requirements: &id010 !ruby/object:Gem::Requirement
156
- none: false
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- hash: 3
161
- segments:
162
- - 2
163
- - 3
164
- - 0
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ - !ruby/object:Gem::Dependency
159
+ name: rails
160
+ requirement: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
165
  version: 2.3.0
166
166
  type: :runtime
167
- requirement: *id010
168
- name: rails
169
167
  prerelease: false
168
+ version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: 2.3.0
170
174
  description: ModelFields is a Rails plugin that adds fields declarations to your models.
171
175
  email: jgoizueta@gmail.com
172
176
  executables: []
173
-
174
177
  extensions: []
175
-
176
- extra_rdoc_files:
178
+ extra_rdoc_files:
177
179
  - LICENSE.txt
178
180
  - README.rdoc
179
181
  - TODO
180
- files:
182
+ files:
181
183
  - .document
182
184
  - Gemfile
183
185
  - Gemfile.lock
@@ -216,39 +218,32 @@ files:
216
218
  - test/schema.rb
217
219
  - test/test_diff.rb
218
220
  - test/test_update.rb
219
- has_rdoc: true
220
221
  homepage: http://github.com/jgoizueta/modalfields
221
- licenses:
222
+ licenses:
222
223
  - MIT
223
224
  post_install_message:
224
225
  rdoc_options: []
225
-
226
- require_paths:
226
+ require_paths:
227
227
  - lib
228
- required_ruby_version: !ruby/object:Gem::Requirement
228
+ required_ruby_version: !ruby/object:Gem::Requirement
229
229
  none: false
230
- requirements:
231
- - - ">="
232
- - !ruby/object:Gem::Version
233
- hash: 3
234
- segments:
230
+ requirements:
231
+ - - ! '>='
232
+ - !ruby/object:Gem::Version
233
+ version: '0'
234
+ segments:
235
235
  - 0
236
- version: "0"
237
- required_rubygems_version: !ruby/object:Gem::Requirement
236
+ hash: 3211460596259879660
237
+ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  none: false
239
- requirements:
240
- - - ">="
241
- - !ruby/object:Gem::Version
242
- hash: 3
243
- segments:
244
- - 0
245
- version: "0"
239
+ requirements:
240
+ - - ! '>='
241
+ - !ruby/object:Gem::Version
242
+ version: '0'
246
243
  requirements: []
247
-
248
244
  rubyforge_project:
249
- rubygems_version: 1.4.0
245
+ rubygems_version: 1.8.23
250
246
  signing_key:
251
247
  specification_version: 3
252
248
  summary: Model annotator with Ruby (Hobo-like) syntax and hooks.
253
249
  test_files: []
254
-