td-client 0.8.24 → 0.8.25

Sign up to get free protection for your applications and to get access to all the features.
data/ChangeLog CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ == 2012-09-04 version 0.8.25
3
+
4
+ * Added Client#change_my_password(old_password, password)
5
+
6
+
2
7
  == 2012-08-30 version 0.8.24
3
8
 
4
9
  * TreasureData::Client.new supports :http_proxy option
@@ -375,6 +375,11 @@ class Client
375
375
  @api.change_password(user, password)
376
376
  end
377
377
 
378
+ # => true
379
+ def change_my_password(old_password, password)
380
+ @api.change_my_password(old_password, password)
381
+ end
382
+
378
383
  # => [User]
379
384
  def access_controls
380
385
  list = @api.list_access_controls
@@ -1071,6 +1071,16 @@ class API
1071
1071
  return true
1072
1072
  end
1073
1073
 
1074
+ # => true
1075
+ def change_my_password(old_password, password)
1076
+ params = {'old_password' => old_password, 'password' => password}
1077
+ code, body, res = post("/v3/user/password/change", params)
1078
+ if code != "200"
1079
+ raise_error("Changing password failed", res)
1080
+ end
1081
+ return true
1082
+ end
1083
+
1074
1084
 
1075
1085
  ####
1076
1086
  ## Access Control API
@@ -1,5 +1,5 @@
1
1
  module TreasureData
2
2
 
3
- VERSION = '0.8.24'
3
+ VERSION = '0.8.25'
4
4
 
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.24
4
+ version: 0.8.25
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: 2012-08-30 00:00:00.000000000 Z
12
+ date: 2012-09-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack