ruby-identitas-api 0.6.0 → 0.7.0
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruby/identitas/api/version.rb +1 -1
- data/lib/ruby/identitas/endpoints/internal/password.rb +15 -0
- data/lib/ruby/identitas/main.rb +4 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd7de916a068e23e7d1798c22583dd5b4d8306a188fa658cd272c3e6ae0e4c32
|
4
|
+
data.tar.gz: 54343dae56e61fabe4aa077d161e06167fc749ddae9e040fa65f20e96f534ec1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 19750b3cc6377191100a2eec02c9ecffc086eabff78d8772942ff57fb39eb718f9ce0f719815c434a20356fee2e47584258de343037fb9bd0681a897d7efb497
|
7
|
+
data.tar.gz: 9d072c37772defce7c5681763ccc3688360f587344e6d27a52c3db53e25ea3843ed21f4f5ac3dd20c2794410c6b9ae401740a062cc84f8c36875a932a42d3ed3
|
data/Gemfile.lock
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
module Ruby
|
2
|
+
module Identitas
|
3
|
+
module Endpoints
|
4
|
+
module Internal
|
5
|
+
module Password
|
6
|
+
def user_password(options = {}, headers = {})
|
7
|
+
headers.merge!({AuthKey: @api_key})
|
8
|
+
endpoint = build_endpoint("/v1/internal/users/password")
|
9
|
+
self.class.post(endpoint, query: options, headers: headers)
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/ruby/identitas/main.rb
CHANGED
@@ -2,6 +2,7 @@ require "ruby/identitas/endpoints/me"
|
|
2
2
|
require "ruby/identitas/endpoints/token_status"
|
3
3
|
require "ruby/identitas/endpoints/password"
|
4
4
|
require "ruby/identitas/endpoints/user"
|
5
|
+
require "ruby/identitas/endpoints/internal/password"
|
5
6
|
|
6
7
|
module Ruby
|
7
8
|
module Identitas
|
@@ -11,10 +12,12 @@ module Ruby
|
|
11
12
|
include Ruby::Identitas::Endpoints::TokenStatus
|
12
13
|
include Ruby::Identitas::Endpoints::Password
|
13
14
|
include Ruby::Identitas::Endpoints::User
|
15
|
+
include Ruby::Identitas::Endpoints::Internal::Password
|
14
16
|
|
15
|
-
def initialize(token)
|
17
|
+
def initialize(token, api_key = "")
|
16
18
|
@base_uri = Ruby::Identitas::Api.url
|
17
19
|
@token = token
|
20
|
+
@ap_key = api_key
|
18
21
|
end
|
19
22
|
|
20
23
|
private
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-identitas-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yunanhelmy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/ruby/identitas/api.rb
|
90
90
|
- lib/ruby/identitas/api/version.rb
|
91
91
|
- lib/ruby/identitas/configuration.rb
|
92
|
+
- lib/ruby/identitas/endpoints/internal/password.rb
|
92
93
|
- lib/ruby/identitas/endpoints/me.rb
|
93
94
|
- lib/ruby/identitas/endpoints/password.rb
|
94
95
|
- lib/ruby/identitas/endpoints/token_status.rb
|