google-wrapper 0.0.2 → 0.0.3
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c12f283c78195065d6aafb86b984a872d030a539
|
|
4
|
+
data.tar.gz: 1c35b4809df163658c6120aa9afe06310bba6562
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f50fd11aa9e3720624e0ff820a8ee6f1387875ce51319fa7c40bd68235bc675e43414f9cbe6b37e6d83625af14c39e30920a5493c3e1901151b4d7741c1d372
|
|
7
|
+
data.tar.gz: ae16d4efb1415ea59f8b52405c0cfe58b17e82d6255090413e6177574a9ba39300958cd52c15191531b2b78efdca18c8c0944e14c3ee7f13f02c099bc0e1ba70
|
|
@@ -5,10 +5,10 @@ module Google
|
|
|
5
5
|
# Update a users badges
|
|
6
6
|
#
|
|
7
7
|
# @param user_key [String] Can be the user's primary email address, alias email address, or unique user ID.
|
|
8
|
-
# @param badges [
|
|
8
|
+
# @param badges [Hash] Hash of badges with boolean values
|
|
9
9
|
def update(user_key, badges)
|
|
10
10
|
body = directory_api.users.patch.request_schema.new
|
|
11
|
-
body.custom_schemas = { badges: badges
|
|
11
|
+
body.custom_schemas = { badges: badges }
|
|
12
12
|
|
|
13
13
|
client.execute!(api_method: directory_api.users.patch,
|
|
14
14
|
body_object: body,
|
|
@@ -10,7 +10,10 @@ module Google::Directory::User
|
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
it "proxies patch to a google api client" do
|
|
13
|
-
result = badges_api.update("john.bohn@alphasights.com",
|
|
13
|
+
result = badges_api.update("john.bohn@alphasights.com", {
|
|
14
|
+
client_portal: true,
|
|
15
|
+
reporting_world: true,
|
|
16
|
+
})
|
|
14
17
|
|
|
15
18
|
api_method = result.data.api_method
|
|
16
19
|
body_object = result.data.body_object
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-wrapper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Bohn
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-api-client
|