td-client 0.8.49 → 0.8.50

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.
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ == 2012-05-27 version 0.8.50
2
+
3
+ * add_user now requires email and passowrd
4
+
5
+
1
6
  == 2012-05-06 version 0.8.49
2
7
 
3
8
  * Add User-Agent header
@@ -359,8 +359,8 @@ class Client
359
359
  end
360
360
 
361
361
  # => true
362
- def add_user(user, org)
363
- @api.add_user(user, org)
362
+ def add_user(name, org, email, password)
363
+ @api.add_user(name, org, email, password)
364
364
  end
365
365
 
366
366
  # => true
@@ -1103,9 +1103,9 @@ class API
1103
1103
  end
1104
1104
 
1105
1105
  # => true
1106
- def add_user(user, org)
1107
- params = {'organization'=>org}
1108
- code, body, res = post("/v3/user/add/#{e user}", params)
1106
+ def add_user(name, org, email, password)
1107
+ params = {'organization'=>org, :email=>email, :password=>password}
1108
+ code, body, res = post("/v3/user/add/#{e name}", params)
1109
1109
  if code != "200"
1110
1110
  raise_error("Adding user failed", res)
1111
1111
  end
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
  class Client
3
- VERSION = '0.8.49'
3
+ VERSION = '0.8.50'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: td-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.49
4
+ version: 0.8.50
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-06 00:00:00.000000000 Z
12
+ date: 2013-05-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack