trogdir_api_client 0.2.0 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea9c3e595f525942487a98181287f1c6ed41c6ad
4
- data.tar.gz: f6e92275bd78dcaa4a273419af082f4d7a0feb77
3
+ metadata.gz: d794fd0abcfcaf957e4a9f2ef5269e40184930ca
4
+ data.tar.gz: cbe74d2f81eb1b84b4194bccfa5d59326a50b1a3
5
5
  SHA512:
6
- metadata.gz: c3aece16e1db4297f4e434c2494995e3d9202e17a5ec619b64ab3704705bf092a2c3151929ba9c28d639dc30f224832a4ec17497f7c6087d3afaa8d0ac44f914
7
- data.tar.gz: 61e17953d264e2f47149750274ef0dfec6ae15438977805805f124b1c6c4c54000567ab8634616ace80238ae2261c2be4f28107d0eeada4b3b22574d72b400d5
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, # Groups and permissions
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, # Groups and permissions
37
+ :entitlements, :affiliations, :groups, # Groups and permissions
38
38
 
39
39
  # STUDENT INFO #
40
40
  :residence, :floor, :wing, # On-Campus Residence
@@ -22,6 +22,7 @@ module Trogdir
22
22
  autoload :Photos, 'trogdir/api_client/photos'
23
23
  autoload :Addresses, 'trogdir/api_client/addresses'
24
24
  autoload :ChangeSyncs, 'trogdir/api_client/change_syncs'
25
+ autoload :Groups, 'trogdir/api_client/groups'
25
26
  end
26
27
  end
27
28
 
@@ -1,3 +1,3 @@
1
1
  module TrogdirAPIClient
2
- VERSION = '0.2.0'
2
+ VERSION = '0.3.0'
3
3
  end
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.2.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-07-10 00:00:00.000000000 Z
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