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 +4 -4
- data/lib/teamdrive_api/register.rb +7 -4
- data/lib/teamdrive_api/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b45c3b25d1dcb7013098b0b29ae3fb9bbde24ea4
|
4
|
+
data.tar.gz: 75b8a46bdaef8a8ad26d6dcdb0cc1228e561bb85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
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.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-
|
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:
|