modalfields 1.5.5 → 1.5.6

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.5
1
+ 1.5.6
@@ -30,6 +30,8 @@ module ModalFields
30
30
 
31
31
  def self.declare(name, type, *args)
32
32
  attributes = args.extract_options!
33
+ required = attributes.delete(:required)
34
+ args << :required if required
33
35
  new(name, type, args, attributes)
34
36
  end
35
37
 
data/modalfields.gemspec CHANGED
@@ -4,14 +4,14 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = "modalfields"
8
- s.version = "1.5.5"
7
+ s.name = %q{modalfields}
8
+ s.version = "1.5.6"
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 = "2012-12-11"
13
- s.description = "ModelFields is a Rails plugin that adds fields declarations to your models."
14
- s.email = "jgoizueta@gmail.com"
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}
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 = "http://github.com/jgoizueta/modalfields"
60
+ s.homepage = %q{http://github.com/jgoizueta/modalfields}
61
61
  s.licenses = ["MIT"]
62
62
  s.require_paths = ["lib"]
63
- s.rubygems_version = "1.8.23"
64
- s.summary = "Model annotator with Ruby (Hobo-like) syntax and hooks."
63
+ s.rubygems_version = %q{1.4.0}
64
+ s.summary = %q{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,185 +1,183 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: modalfields
3
- version: !ruby/object:Gem::Version
4
- version: 1.5.5
3
+ version: !ruby/object:Gem::Version
4
+ hash: 15
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 5
9
+ - 6
10
+ version: 1.5.6
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Javier Goizueta
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2012-12-11 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: modalsettings
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
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"
22
31
  type: :runtime
32
+ requirement: *id001
33
+ name: modalsettings
23
34
  prerelease: false
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
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
37
46
  version: 2.3.5
38
47
  type: :runtime
48
+ requirement: *id002
49
+ name: activesupport
39
50
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: 2.3.5
46
- - !ruby/object:Gem::Dependency
47
- name: activerecord
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
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
53
62
  version: 2.3.5
54
63
  type: :runtime
64
+ requirement: *id003
65
+ name: activerecord
55
66
  prerelease: false
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
63
- name: shoulda
64
- requirement: !ruby/object:Gem::Requirement
65
- none: false
66
- requirements:
67
- - - ! '>='
68
- - !ruby/object:Gem::Version
69
- version: '0'
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"
70
77
  type: :development
78
+ requirement: *id004
79
+ name: shoulda
71
80
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
81
+ - !ruby/object:Gem::Dependency
82
+ version_requirements: &id005 !ruby/object:Gem::Requirement
73
83
  none: false
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:
84
+ requirements:
83
85
  - - ~>
84
- - !ruby/object:Gem::Version
85
- version: '3.12'
86
+ - !ruby/object:Gem::Version
87
+ hash: 31
88
+ segments:
89
+ - 3
90
+ - 12
91
+ version: "3.12"
86
92
  type: :development
93
+ requirement: *id005
94
+ name: rdoc
87
95
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: '3.12'
94
- - !ruby/object:Gem::Dependency
95
- name: bundler
96
- requirement: !ruby/object:Gem::Requirement
96
+ - !ruby/object:Gem::Dependency
97
+ version_requirements: &id006 !ruby/object:Gem::Requirement
97
98
  none: false
98
- requirements:
99
+ requirements:
99
100
  - - ~>
100
- - !ruby/object:Gem::Version
101
- version: '1'
101
+ - !ruby/object:Gem::Version
102
+ hash: 1
103
+ segments:
104
+ - 1
105
+ version: "1"
102
106
  type: :development
107
+ requirement: *id006
108
+ name: bundler
103
109
  prerelease: false
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
110
+ - !ruby/object:Gem::Dependency
111
+ version_requirements: &id007 !ruby/object:Gem::Requirement
113
112
  none: false
114
- requirements:
113
+ requirements:
115
114
  - - ~>
116
- - !ruby/object:Gem::Version
115
+ - !ruby/object:Gem::Version
116
+ hash: 49
117
+ segments:
118
+ - 1
119
+ - 8
120
+ - 3
117
121
  version: 1.8.3
118
122
  type: :development
123
+ requirement: *id007
124
+ name: jeweler
119
125
  prerelease: false
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
127
- name: sqlite3
128
- requirement: !ruby/object:Gem::Requirement
129
- none: false
130
- requirements:
131
- - - ! '>='
132
- - !ruby/object:Gem::Version
133
- version: '0'
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"
134
136
  type: :development
137
+ requirement: *id008
138
+ name: sqlite3
135
139
  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
143
- name: pg
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
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"
150
150
  type: :development
151
+ requirement: *id009
152
+ name: pg
151
153
  prerelease: false
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
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
165
165
  version: 2.3.0
166
166
  type: :runtime
167
+ requirement: *id010
168
+ name: rails
167
169
  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
174
170
  description: ModelFields is a Rails plugin that adds fields declarations to your models.
175
171
  email: jgoizueta@gmail.com
176
172
  executables: []
173
+
177
174
  extensions: []
178
- extra_rdoc_files:
175
+
176
+ extra_rdoc_files:
179
177
  - LICENSE.txt
180
178
  - README.rdoc
181
179
  - TODO
182
- files:
180
+ files:
183
181
  - .document
184
182
  - Gemfile
185
183
  - Gemfile.lock
@@ -218,32 +216,39 @@ files:
218
216
  - test/schema.rb
219
217
  - test/test_diff.rb
220
218
  - test/test_update.rb
219
+ has_rdoc: true
221
220
  homepage: http://github.com/jgoizueta/modalfields
222
- licenses:
221
+ licenses:
223
222
  - MIT
224
223
  post_install_message:
225
224
  rdoc_options: []
226
- require_paths:
225
+
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
- version: '0'
234
- segments:
230
+ requirements:
231
+ - - ">="
232
+ - !ruby/object:Gem::Version
233
+ hash: 3
234
+ segments:
235
235
  - 0
236
- hash: 1778539833342480735
237
- required_rubygems_version: !ruby/object:Gem::Requirement
236
+ version: "0"
237
+ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  none: false
239
- requirements:
240
- - - ! '>='
241
- - !ruby/object:Gem::Version
242
- version: '0'
239
+ requirements:
240
+ - - ">="
241
+ - !ruby/object:Gem::Version
242
+ hash: 3
243
+ segments:
244
+ - 0
245
+ version: "0"
243
246
  requirements: []
247
+
244
248
  rubyforge_project:
245
- rubygems_version: 1.8.23
249
+ rubygems_version: 1.4.0
246
250
  signing_key:
247
251
  specification_version: 3
248
252
  summary: Model annotator with Ruby (Hobo-like) syntax and hooks.
249
253
  test_files: []
254
+