trogdir_api_client 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trogdir/api_client/groups.rb +19 -0
- data/lib/trogdir/api_client/people.rb +2 -2
- data/lib/trogdir_api_client.rb +1 -0
- data/lib/trogdir_api_client/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d794fd0abcfcaf957e4a9f2ef5269e40184930ca
|
4
|
+
data.tar.gz: cbe74d2f81eb1b84b4194bccfa5d59326a50b1a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eff7a62cd47dc94cf16bd11a1b677b11e5e9c5189cd3c7ea1f400549b7586185b541f677ca696a6fc4fa77b263981f5ff259a4fe9c3137b88b8867aa58e77807
|
7
|
+
data.tar.gz: 91ed4b187057cefbb2578f8e85ee8a03468758245ebeb5a47fade489c168fc8987611c0ca6a390d8098b86b0b3cd60b1cb037c145a60e6f2a0d8303158a111c4
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Trogdir
|
2
|
+
module APIClient
|
3
|
+
class Groups < Weary::Client
|
4
|
+
include Settings
|
5
|
+
|
6
|
+
get :people, '/groups/{group}/people'
|
7
|
+
|
8
|
+
put :add, '/groups/{group}/add' do |resource|
|
9
|
+
resource.required :identifier
|
10
|
+
resource.optional :type
|
11
|
+
end
|
12
|
+
|
13
|
+
put :remove, '/groups/{group}/remove' do |resource|
|
14
|
+
resource.required :identifier
|
15
|
+
resource.optional :type
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -18,7 +18,7 @@ module Trogdir
|
|
18
18
|
resource.optional(
|
19
19
|
:preferred_name, :middle_name, :display_name, # Names
|
20
20
|
:gender, :partial_ssn, :birth_date, # Demographic
|
21
|
-
:entitlements, :affiliations,
|
21
|
+
:entitlements, :affiliations, :groups, # Groups and permissions
|
22
22
|
|
23
23
|
# STUDENT INFO #
|
24
24
|
:residence, :floor, :wing, # On-Campus Residence
|
@@ -34,7 +34,7 @@ module Trogdir
|
|
34
34
|
resource.optional(
|
35
35
|
:first_name, :last_name, :preferred_name, :middle_name, :display_name, # Names
|
36
36
|
:gender, :partial_ssn, :birth_date, # Demographic
|
37
|
-
:entitlements, :affiliations,
|
37
|
+
:entitlements, :affiliations, :groups, # Groups and permissions
|
38
38
|
|
39
39
|
# STUDENT INFO #
|
40
40
|
:residence, :floor, :wing, # On-Campus Residence
|
data/lib/trogdir_api_client.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trogdir_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
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-
|
11
|
+
date: 2014-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: api-auth
|
@@ -147,6 +147,7 @@ files:
|
|
147
147
|
- lib/trogdir/api_client/addresses.rb
|
148
148
|
- lib/trogdir/api_client/change_syncs.rb
|
149
149
|
- lib/trogdir/api_client/emails.rb
|
150
|
+
- lib/trogdir/api_client/groups.rb
|
150
151
|
- lib/trogdir/api_client/ids.rb
|
151
152
|
- lib/trogdir/api_client/people.rb
|
152
153
|
- lib/trogdir/api_client/phones.rb
|