user_mgmt 2.1.3 → 2.1.4

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: 0c8acde87c52f85cc57e6b1b300fdbfc76e8d931
4
- data.tar.gz: 24fccaa756037319f1cefec71c2ef92494e87636
3
+ metadata.gz: 43707c6b805a9f10c217afa7a681d0b63abf6704
4
+ data.tar.gz: cf6ec4fd1118294d729726dc86d483f8896c3331
5
5
  SHA512:
6
- metadata.gz: 712c53bd73a0b1f72c12d8f84e9749d745da46356c7860cc028885aa4f006abf08ff8a549bea7c58dff4eb40c6b7c154fe50d0ce828a57480e7fa688ec298545
7
- data.tar.gz: 02a3d39856adfbfe9a8d33aa1f22da856ff3c45c544de4a595bd35ec5d6c1e55b65ad0a4194ebe1593c79bbb2e522483913278697db018b9391cbefaa6675cde
6
+ metadata.gz: 0abfd4931069b5e20364df1de964c552f1418ed2ce0416a3ae5f8b0a3b67380a6af3e1def4912017d1bf623b17e9722f117284f39b2472b53b2e9c21ce4c736a
7
+ data.tar.gz: e828a6b710b172c64896a363c5bdeaaf47fda13f674772b3e264893db04f94c1e7d9de5f26d920fe024e50a9ac03829a5620c1aa388b66d1d6aee85d3d085212
@@ -60,13 +60,13 @@ module UserMgmt
60
60
  end
61
61
 
62
62
  def change_password user, password, new_pw, new_pw_confirm, session, host=UserMgmt.external_database_URI
63
- send_request :put, :change_password, { user: user, password: password,
63
+ send_request :patch, :change_password, { user: user, password: password,
64
64
  new_password: new_pw, new_password_confirmation: new_pw_confirm,
65
65
  session: session }, host
66
66
  end
67
67
 
68
68
  def reset_password reset_token, new_pw, new_pw_confirm, host=UserMgmt.external_database_URI
69
- send_request :put, :change_password, { reset_token: reset_token, new_password: new_pw,
69
+ send_request :patch, :change_password, { reset_token: reset_token, new_password: new_pw,
70
70
  new_password_confirmation: new_pw_confirm }, host
71
71
  end
72
72
 
@@ -75,7 +75,7 @@ module UserMgmt
75
75
  end
76
76
 
77
77
  def change_email user, password, new_email, new_email_confirm, session, host=UserMgmt.external_database_URI
78
- send_request :put, :change_email, { email: user, password: password, new_email: new_email,
78
+ send_request :patch, :change_email, { email: user, password: password, new_email: new_email,
79
79
  new_email_confirmation: new_email_confirm, session: session }, host
80
80
  end
81
81
 
@@ -92,8 +92,8 @@ module UserMgmt
92
92
  request = Net::HTTP::Get.new(uri.request_uri << path, initheader = {'Content-Type' =>'application/json'})
93
93
  when 'post'
94
94
  request = Net::HTTP::Post.new(uri.request_uri << path, initheader = {'Content-Type' =>'application/json'})
95
- when 'put'
96
- request = Net::HTTP::Put.new(uri.request_uri << path, initheader = {'Content-Type' =>'application/json'})
95
+ when 'patch'
96
+ request = Net::HTTP::Patch.new(uri.request_uri << path, initheader = {'Content-Type' =>'application/json'})
97
97
  when 'delete'
98
98
  request = Net::HTTP::Delete.new(uri.request_uri << path, initheader = {'Content-Type' =>'application/json'})
99
99
  end
@@ -1,3 +1,3 @@
1
1
  module UserMgmt
2
- VERSION = "2.1.3"
2
+ VERSION = "2.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_mgmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danilo Faria, Fernando Gorodscy, Josh Leslie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-17 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3