teamdrive_api 0.3.0 → 0.3.1

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: 3907c9541d30a306e0115d2e0f1d057d57d06ffb
4
- data.tar.gz: ee7502e5870a9d00ee1091d54dd3f9f3953b913c
3
+ metadata.gz: b45c3b25d1dcb7013098b0b29ae3fb9bbde24ea4
4
+ data.tar.gz: 75b8a46bdaef8a8ad26d6dcdb0cc1228e561bb85
5
5
  SHA512:
6
- metadata.gz: 961ca480bde4d9ef0bf034fd4c33b055bd7488a998f5e8b41746eb287f31abbcc35144e43cd808e1dc53332279eb38ae7a0a6582e8a74421b03afa2cfb815a80
7
- data.tar.gz: 3210a0e0ed635772dd470548a3daa35cf486ac698780041442c22320659f8b263789d5b8cb2333b75fb3d12def3d26376b3273170c938eb7209c9fb88043dd23
6
+ metadata.gz: 4b32c14ab8a45eb5e507d8d6127cfb056dfdc137331b57d43579dfc0b4303a6d62904ac6a5a5dbc6794801f215197f8ce44ebdc66178c4b81637e2dd118b9999
7
+ data.tar.gz: c9288130c22f13fb8a3c421d39933bdc85d4d8c1e87ecd03e1751e3ae106fdfa47f8c18056ba1597677fc3aee4e39ff533abd1a8904d6d10ca875829dc66f256
@@ -100,12 +100,15 @@ module TeamdriveApi
100
100
  # @option opts [String] :username
101
101
  # @option opts [String] :useremail
102
102
  # @option opts [String] :password
103
- # @option opts [String] :language
104
- # @option opts [String] :reference
105
- # @option opts [String] :department
106
- # @option opts [String] :distributor
103
+ # @option opts [String] :language (optional)
104
+ # @option opts [String] :reference (optional)
105
+ # @option opts [String] :department (optional)
106
+ # @option opts [String] :distributor (optional)
107
+ # @return [Boolean] +true+ if the User has been created
107
108
  def register_user(opts = {})
109
+ require_all of: [:username, :useremail, :password], in_hash: opts
108
110
  send_request(:registeruser, opts)
111
+ res[:intresult].eql?('0')
109
112
  end
110
113
  alias_method :create_account, :register_user
111
114
 
@@ -1,3 +1,3 @@
1
1
  module TeamdriveApi
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  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.0
4
+ version: 0.3.1
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-07 00:00:00.000000000 Z
11
+ date: 2015-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -157,4 +157,3 @@ signing_key:
157
157
  specification_version: 4
158
158
  summary: TeamDrive API Client
159
159
  test_files: []
160
- has_rdoc: