ruby-identitas-api 0.6.0 → 0.7.0

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
  SHA256:
3
- metadata.gz: afbbe87714067344d14740ffb0c95851ff995ad6370f6b485c513b8882568198
4
- data.tar.gz: 6fc70abfeb99e04355cbc7fc2e612177d19b14dc2f96567662658bf9dcb14c44
3
+ metadata.gz: dd7de916a068e23e7d1798c22583dd5b4d8306a188fa658cd272c3e6ae0e4c32
4
+ data.tar.gz: 54343dae56e61fabe4aa077d161e06167fc749ddae9e040fa65f20e96f534ec1
5
5
  SHA512:
6
- metadata.gz: 450e4aaf9a86c6501876ed21088bf26e1a755d1a848fbdcf61f3989192903186ca727364285b7ce56b68ea68740520b3e5416099ef02d79608767ca8dfaf55a3
7
- data.tar.gz: b9a0f3d5c0a44808e678fe1174864d49ba6ef6633988be62b98e126782a12014781e32acac2e5a5dc435e86fb1961c3d14eb231117c2a9b8939e7e282a0e7a52
6
+ metadata.gz: 19750b3cc6377191100a2eec02c9ecffc086eabff78d8772942ff57fb39eb718f9ce0f719815c434a20356fee2e47584258de343037fb9bd0681a897d7efb497
7
+ data.tar.gz: 9d072c37772defce7c5681763ccc3688360f587344e6d27a52c3db53e25ea3843ed21f4f5ac3dd20c2794410c6b9ae401740a062cc84f8c36875a932a42d3ed3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-identitas-api (0.4.0)
4
+ ruby-identitas-api (0.6.0)
5
5
  httparty
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  module Ruby
2
2
  module Identitas
3
3
  module Api
4
- VERSION = "0.6.0"
4
+ VERSION = "0.7.0"
5
5
  end
6
6
  end
7
7
  end
@@ -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
@@ -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.6.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-18 00:00:00.000000000 Z
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