ucb_groups 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +20 -2
- data/lib/ucb_groups/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f043f60d47d06ac9784377d91f42ab15efcc96db
|
4
|
+
data.tar.gz: 7260b09220253c01c0acd2e610a245a2259425a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6266d83c93e0e115cdff01c31f4aaac49e9f6c7ef00384e922ea622f198f8db5325b6e1522191ac907906d2a5b27f26121aa96622858caa054085d00b282c0c5
|
7
|
+
data.tar.gz: 35cba662be0566a36dadc04684cd8616474a8e37f16a32cf082ccfceeed6ee37dd7b2e981aac9965364c5429f1fde5f8c3a4e56845e3d63732f549fca93cd656
|
data/README.md
CHANGED
@@ -29,8 +29,15 @@ Get list of groups in namespace:
|
|
29
29
|
```
|
30
30
|
groups = UcbGroups::CampusGroup.find(<namespace>)
|
31
31
|
=> [CampusGroup, CampusGroup, ...]
|
32
|
-
groups.first
|
33
|
-
|
32
|
+
group = groups.first
|
33
|
+
group.id
|
34
|
+
=> "academic-senate-faculty"
|
35
|
+
group.name
|
36
|
+
=> "Academic Senate Faculty"
|
37
|
+
group.description
|
38
|
+
=> "All ladder-ranked faculty"
|
39
|
+
group.namespace
|
40
|
+
=> "calmessages"
|
34
41
|
```
|
35
42
|
|
36
43
|
Find people in one or more groups:
|
@@ -38,6 +45,17 @@ Find people in one or more groups:
|
|
38
45
|
finder = UcbGroups::MembershipFinder.new(<namespace>)
|
39
46
|
people = finder.find(:groups => [grp1, grp2])
|
40
47
|
=> [Person, Person, Person, ...]
|
48
|
+
person = people.first
|
49
|
+
person.uid
|
50
|
+
=> 666
|
51
|
+
person.first_name
|
52
|
+
=> "Joe"
|
53
|
+
person.last_name
|
54
|
+
=> "Smith"
|
55
|
+
person.email
|
56
|
+
=> "email@berkeley.edu"
|
57
|
+
person.orgs
|
58
|
+
=> "UCBKL-SCHOL-SCHSW-CSDEP"
|
41
59
|
```
|
42
60
|
|
43
61
|
Find people in groups and filter by org:
|
data/lib/ucb_groups/version.rb
CHANGED