ohio_state_person 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ohio_state_person.rb +2 -1
- data/lib/ohio_state_person/version.rb +1 -1
- metadata +1 -7
data/lib/ohio_state_person.rb
CHANGED
@@ -7,11 +7,12 @@ module OhioStatePerson
|
|
7
7
|
extend ClassMethods
|
8
8
|
include InstanceMethods
|
9
9
|
|
10
|
-
if column_names.include?
|
10
|
+
if table_exists? && column_names.include?('name_n')
|
11
11
|
validates_uniqueness_of :name_n
|
12
12
|
validates_format_of :name_n, :with => /\A[a-z]([a-z-]*[a-z])?\.[1-9]\d*\z/, :message => 'must be in format: name.#'
|
13
13
|
end
|
14
14
|
|
15
|
+
|
15
16
|
validates_uniqueness_of :emplid
|
16
17
|
validates_format_of :emplid, :with => /\A\d{8,9}\z/, :message => 'must be 8 or 9 digits'
|
17
18
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ohio_state_person
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -161,18 +161,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
161
161
|
- - ! '>='
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '0'
|
164
|
-
segments:
|
165
|
-
- 0
|
166
|
-
hash: 3919074982718527741
|
167
164
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
165
|
none: false
|
169
166
|
requirements:
|
170
167
|
- - ! '>='
|
171
168
|
- !ruby/object:Gem::Version
|
172
169
|
version: '0'
|
173
|
-
segments:
|
174
|
-
- 0
|
175
|
-
hash: 3919074982718527741
|
176
170
|
requirements: []
|
177
171
|
rubyforge_project: ohio_state_person
|
178
172
|
rubygems_version: 1.8.24
|