teamdrive_api 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d8d46801ef006ccd36dfefe91ee157089896aa6
4
- data.tar.gz: d121207c9faece16f2ea037a9297dd27d0a5b1d6
3
+ metadata.gz: fd5737a3ae0b9dac3b6f4f78f9b5869ff2313db0
4
+ data.tar.gz: 99ec246ed7c734faa67b57c0ba2120ac1c1ace19
5
5
  SHA512:
6
- metadata.gz: 87e474fd5a313073ceb3968afd8922dfa3eee16de8141fe231dd7af688272317a6fcbf9bfcb43db086681457978d58b05419b57d5d0491051555b6b9d8ee9337
7
- data.tar.gz: 00dd0e749bb1756e9f1058d6b8c992d24a213066dbd382e54847d68cba10de9b2b830f55b24b85a0f05806326747636fdeb9858212e4f21c48624bcb10d61508
6
+ metadata.gz: 89b2340fa3271116168a727b1c7268fa0a7a59fef04ea63dafc061bbf522be10d53bea80a7895818be7020416e0d82286f3d2ea296941add09c07860172843d1
7
+ data.tar.gz: c61297df37f2f5233602ad85464403a1339b7fc2842b39745660aff0927f63c31a4b49ba33cc72651009c0277d45819cf437ec2c1f88a3fe17387a5b1e7409e8
@@ -50,15 +50,15 @@ module TeamdriveApi
50
50
  # @option opts [String] :type +monthly+ / +yearly+ / +permanent+
51
51
  # @option opts [String] :featurevalue one of +webdavs+, +personal+,
52
52
  # +professional+, +enterprise+
53
- # @option opts [String] :limit Amount, only for client licenses
53
+ # @option opts [String] :limit Amount, only for client licenses. _Optional_.
54
54
  # @option opts [String] :licensereference An _optional_ external reference.
55
55
  # Added with v1.0.004
56
- # @option opts [String] :contactnumber An optional contact number. Added
56
+ # @option opts [String] :contactnumber An _optional_ contact number. Added
57
57
  # with v1.0.004
58
- # @option opts [String] :validuntil An optional valid-until date. Format
59
- # must be +DD.MM.YYYY+. Added with v1.0.004
60
- # @option opts [String] :changeid An optional change id for license changes.
61
- # Added with v1.0.004
58
+ # @option opts [String] :validuntil An _optional_ valid-until date. Format
59
+ # must be +MM/DD/YYYY+. Added with v1.0.004
60
+ # @option opts [String] :changeid An _optional_ change id for license
61
+ # changes. Added with v1.0.004
62
62
  # @return [String] The license number of the created license
63
63
  def create_license(opts = {})
64
64
  require_all of: [:username, :productname, :type, :featurevalue],
@@ -142,13 +142,15 @@ module TeamdriveApi
142
142
  #
143
143
  # @param [String] username User to be deleted
144
144
  # @param [Boolean] delete_license delete the user's license aswell
145
- # @param [String] distributor Distributor. Will only be used if allowed by the API (see
146
- # +APIAllowSettingDistributor+ in the Teamdrive Register docs).
145
+ # @param [Boolean] delete_depot delete the user's depot (data) aswell
146
+ # @param [String] distributor Distributor. Only used if allowed by the API
147
+ # (see +APIAllowSettingDistributor+ in the Teamdrive Register docs).
147
148
  # @return [Boolean] success?
148
- def remove_user(username, delete_license = false, distributor = nil)
149
+ def remove_user(username:, delete_license: false, delete_depot: false, distributor: nil)
149
150
  res = send_request :removeuser,
150
151
  username: username,
151
- delete_license: delete_license,
152
+ deletelicense: delete_license,
153
+ deletedepot: delete_depot,
152
154
  distributor: distributor
153
155
 
154
156
  res[:intresult].eql?('0')
@@ -1,4 +1,4 @@
1
1
  # :nodoc:
2
2
  module TeamdriveApi
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.3'
4
4
  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.2
4
+ version: 0.3.3
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-05-27 00:00:00.000000000 Z
11
+ date: 2015-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty