ohio_state_person 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZDIzY2NkN2ZkOTgzMjdjY2VhN2ZlMDY0MmQzMGI5NTk4NDU0NDQ4Zg==
5
+ data.tar.gz: !binary |-
6
+ ZjM5YmIwYzJhZjdlZTMzYjVjNjM1MGQ2NWFkMjdmOTBiYjBmNTYxZg==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ MzNiNzhiZDMzNzFiYTQwM2E1ODg4MWFjMWM5YzIyZGVkOTZkNjBiYzhmMzRk
10
+ NjBlOTdiMDljY2E0MTJjOGYyMjYzYmIyZjM4ZTYzODIyODllOWY3MjUwZWFj
11
+ NjIyOTYwZGY0NDE1ZTIyNDg0NWQ5ODMzYTEyMGJjZTQ5YjA5YjM=
12
+ data.tar.gz: !binary |-
13
+ NTUzYzM3Y2JjYTE2MjU1YmI4ZjU1NGI3M2E2YjE0ZjE0OGUwYmM3MGMyYzJl
14
+ YjAwYjNhZDlkNDE3YTdjOGE2OWI2MjgxODk5YWU4ZTQ1MmNjZGQzOTA1YTBm
15
+ ZDEzMDRhNDA0MWViZTdkYjFlZmJlMWM2MjZkYWI1MjRlNWQwNDU=
@@ -1,3 +1,3 @@
1
1
  module OhioStatePerson
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
@@ -18,11 +18,11 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ["lib"]
20
20
 
21
- s.add_runtime_dependency "activerecord", '~> 3.0'
21
+ s.add_runtime_dependency "activerecord" #,'~> 3.0'
22
22
 
23
23
  s.add_development_dependency "rake"
24
24
  s.add_development_dependency "rspec"
25
- s.add_development_dependency "activesupport", '~> 3.0'
25
+ s.add_development_dependency "activesupport" #, '~> 3.0'
26
26
  s.add_development_dependency "sqlite3"
27
27
  s.add_development_dependency "shoulda-matchers"
28
28
  s.add_development_dependency "factory_girl"
@@ -12,20 +12,16 @@ describe 'validations' do
12
12
  subject { student }
13
13
 
14
14
  it { should validate_uniqueness_of :name_n }
15
- it { should validate_format_of(:name_n).not_with('gee2').
16
- with_message(/must be in format: name.#/) }
17
- it { should validate_format_of(:name_n).with('gee.2').
18
- with_message(/must be in format: name.#/) }
15
+ it { should_not allow_value('gee2').for(:name_n) }
16
+ it { should allow_value('gee.2').for(:name_n) }
19
17
  end
20
18
 
21
19
  describe 'the emplid field' do
22
20
  subject { applicant }
23
21
 
24
22
  it { should validate_uniqueness_of :emplid }
25
- it { should validate_format_of(:emplid).not_with('54321').
26
- with_message(/must be 8 or 9 digits/) }
27
- it { should validate_format_of(:emplid).with('987654321').
28
- with_message(/must be 8 or 9 digits/) }
23
+ it { should_not allow_value('54321').for(:emplid) }
24
+ it { should allow_value('987654321').for(:emplid) }
29
25
  end
30
26
 
31
27
  describe 'the id field' do
metadata CHANGED
@@ -1,36 +1,32 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ohio_state_person
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
5
- prerelease:
4
+ version: 0.3.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - mikegee
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-20 00:00:00.000000000 Z
11
+ date: 2013-11-25 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activerecord
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - ! '>='
20
18
  - !ruby/object:Gem::Version
21
- version: '3.0'
19
+ version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - ! '>='
28
25
  - !ruby/object:Gem::Version
29
- version: '3.0'
26
+ version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ! '>='
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ! '>='
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ! '>='
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ! '>='
60
53
  - !ruby/object:Gem::Version
@@ -62,23 +55,20 @@ dependencies:
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: activesupport
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - ! '>='
68
60
  - !ruby/object:Gem::Version
69
- version: '3.0'
61
+ version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - ! '>='
76
67
  - !ruby/object:Gem::Version
77
- version: '3.0'
68
+ version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: sqlite3
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ! '>='
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ! '>='
92
81
  - !ruby/object:Gem::Version
@@ -94,7 +83,6 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: shoulda-matchers
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
87
  - - ! '>='
100
88
  - !ruby/object:Gem::Version
@@ -102,7 +90,6 @@ dependencies:
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
94
  - - ! '>='
108
95
  - !ruby/object:Gem::Version
@@ -110,7 +97,6 @@ dependencies:
110
97
  - !ruby/object:Gem::Dependency
111
98
  name: factory_girl
112
99
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
100
  requirements:
115
101
  - - ! '>='
116
102
  - !ruby/object:Gem::Version
@@ -118,7 +104,6 @@ dependencies:
118
104
  type: :development
119
105
  prerelease: false
120
106
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
107
  requirements:
123
108
  - - ! '>='
124
109
  - !ruby/object:Gem::Version
@@ -151,33 +136,26 @@ files:
151
136
  - spec/validations_spec.rb
152
137
  homepage: https://github.com/ASCTech/ohio_state_person
153
138
  licenses: []
139
+ metadata: {}
154
140
  post_install_message:
155
141
  rdoc_options: []
156
142
  require_paths:
157
143
  - lib
158
144
  required_ruby_version: !ruby/object:Gem::Requirement
159
- none: false
160
145
  requirements:
161
146
  - - ! '>='
162
147
  - !ruby/object:Gem::Version
163
148
  version: '0'
164
- segments:
165
- - 0
166
- hash: 4469442282912756943
167
149
  required_rubygems_version: !ruby/object:Gem::Requirement
168
- none: false
169
150
  requirements:
170
151
  - - ! '>='
171
152
  - !ruby/object:Gem::Version
172
153
  version: '0'
173
- segments:
174
- - 0
175
- hash: 4469442282912756943
176
154
  requirements: []
177
155
  rubyforge_project: ohio_state_person
178
- rubygems_version: 1.8.25
156
+ rubygems_version: 2.1.11
179
157
  signing_key:
180
- specification_version: 3
158
+ specification_version: 4
181
159
  summary: ActiveRecord mixin for people at Ohio State University
182
160
  test_files:
183
161
  - spec/callbacks_spec.rb