trogdir_models 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04636485ec86289119e5da24c1f78a66869cbec6
4
- data.tar.gz: 5d0a0ca753f148c7ffa4cfacd198190f5a92279a
3
+ metadata.gz: d4b7ea581103941e7641eac1f66e83d54b2a451f
4
+ data.tar.gz: 1d3f9a0fc88472593254c766d63a904894c8a6f9
5
5
  SHA512:
6
- metadata.gz: d0b515f3e1b93184684451ef8b571f1973c2b3ea11c00c0846add36bda14a90ca00bc178da4a9dda679c7aef2fad637ad57b3b453929ec615b4d368ad770c53d
7
- data.tar.gz: 54159930a57f32a03701de1dfcd3208e61d8d83b29a0648227986fdaf415782a29495fbfa84a97742c8eb151ddfb05125e751cde03a690a34cb9a3003a35ffeb
6
+ metadata.gz: e22b3815ba67e36eb0652c4b6a52255a2922f84f18049aaceb3846d4917d4b3a68f8971a209c98d79768ecdb56a28c6ac6d37a5f7b96d5f878c75260d3b8d057
7
+ data.tar.gz: 9fc8a64d0c32084e4e94ec971e20e87b7d264576e7dd3fe1cf35af0acdb73d861ca78bd9117e0eded45bc18ddf2e593986787184ed5f65fc87ffb870f480a8a0
@@ -9,5 +9,8 @@ module Student
9
9
 
10
10
  # Academic
11
11
  field :majors, type: Array
12
+
13
+ # FERPA
14
+ field :privacy, type: Boolean
12
15
  end
13
16
  end
@@ -30,7 +30,6 @@ class Person
30
30
  field :affiliations, type: Array
31
31
 
32
32
  # Options
33
- field :privacy, type: Boolean
34
33
  field :enabled, type: Boolean # TODO: figure out if tihs is necessary
35
34
 
36
35
  validates :first_name, :last_name, presence: true
@@ -1,3 +1,3 @@
1
1
  module TrogdirModels
2
- VERSION = '0.5.1'
2
+ VERSION = '0.5.2'
3
3
  end
@@ -9,7 +9,22 @@ FactoryGirl.define do
9
9
  birth_date { 20.years.ago }
10
10
  entitlements []
11
11
  affiliations []
12
- privacy false
13
12
  enabled true
13
+
14
+ trait :student do
15
+ residence 'The Stick'
16
+ floor 1
17
+ wing 'West'
18
+ majors ['Mousepad Engineer']
19
+ privacy false
20
+ end
21
+
22
+ trait :employee do
23
+ department 'Cracking Wise'
24
+ title 'Guy With a Big Knife'
25
+ employee_type :'Full-Time'
26
+ full_time true
27
+ pay_type :'02'
28
+ end
14
29
  end
15
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trogdir_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Crownoble
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-28 00:00:00.000000000 Z
11
+ date: 2014-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: api-auth