user_mgmt 0.7.1 → 0.7.2

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.
@@ -16,13 +16,13 @@ module UserMgmt
16
16
  @current_user ||= user_info(cookies[:user_session_id])[:body] unless cookies[:user_session_id] == nil
17
17
  end
18
18
 
19
- def sign_up email, password, password_confirmation, host=UserMgmt.external_database_URI
19
+ def sign_up email, password, password_confirmation, admin=false, host=UserMgmt.external_database_URI
20
20
  send_request :post, :users, { user: { email: email, password: password,
21
- password_confirmation: password_confirmation }, method: :simple }, host
21
+ password_confirmation: password_confirmation, admin: admin }, method: :simple }, host
22
22
  end
23
23
 
24
- def sign_up_oauth uid, strategy, email, host=UserMgmt.external_database_URI
25
- send_request :post, :users, { user: { uid: uid, strategy: strategy, email: email }, method: :oauth }, host
24
+ def sign_up_oauth uid, strategy, email, admin=false, host=UserMgmt.external_database_URI
25
+ send_request :post, :users, { user: { uid: uid, strategy: strategy, email: email, admin: admin }, method: :oauth }, host
26
26
  end
27
27
 
28
28
  def log_in email, password, host=UserMgmt.external_database_URI
@@ -1,3 +1,3 @@
1
1
  module UserMgmt
2
- VERSION = "0.7.1"
2
+ VERSION = "0.7.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_mgmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: