teamdrive_api 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teamdrive_api/register.rb +16 -11
- data/lib/teamdrive_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5902b38ba32c886b739e8ef4ff04d7391339fd04
|
4
|
+
data.tar.gz: 2fdd61e169a1dbe061257899a408308b2d9552ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: feef0512be72b9a388d3eae0c6b74945e80b19ebde973dfe8337345cbf396e0cdc5d1bfb85154a03751febfbccc9fcfec64831a3fa2f447946061c0e2a2241d6
|
7
|
+
data.tar.gz: c4790b975de7a5be8326a42387c53d2473a6940cbfbc5115175cb70d27005dae6c4eda02a16bdd6f3d888cd9b70bdaa8585adfce62bde60ef83960c955f69cfb
|
@@ -164,18 +164,23 @@ module TeamdriveApi
|
|
164
164
|
|
165
165
|
# Remove user (added in RegServ API v1.0.003)
|
166
166
|
#
|
167
|
-
# @param [String]
|
168
|
-
# @param [
|
169
|
-
# @
|
170
|
-
#
|
171
|
-
#
|
167
|
+
# @param username [String] User to be deleted
|
168
|
+
# @param [Hash] opts Options
|
169
|
+
# @option opts [Boolean] :deletelicense Remove the users licenses aswell.
|
170
|
+
# -- Default: +false+
|
171
|
+
# @option opts [Boolean] :deletedepot Remove the users depot (data) aswell.
|
172
|
+
# -- Default: +false+
|
173
|
+
# @option opts [String] :distributor Distributor. Only used if allowed by
|
174
|
+
# the API (see +APIAllowSettingDistributor+ in the TD Register docs).
|
175
|
+
# -- Default: +nil+
|
172
176
|
# @return [Boolean] success?
|
173
|
-
def remove_user(username
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
177
|
+
def remove_user(username, opts = {})
|
178
|
+
opts = {
|
179
|
+
username: username,
|
180
|
+
deletelicense: false,
|
181
|
+
deletedepot: false
|
182
|
+
}.merge(opts)
|
183
|
+
res = send_request :removeuser, opts
|
179
184
|
|
180
185
|
res[:intresult].eql?('0')
|
181
186
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamdrive_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Hutter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|