consulkit 0.1.1 → 0.1.2

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: 585c5f5619ed8f3702a309400d8f1930f8a528909810438d418ba08b14e2594d
4
- data.tar.gz: 92100501f781ac1539c7fdd73abd3d182f4324eeb794ff19fddb8c5046593ef2
3
+ metadata.gz: e02934f5a05e9c23b06bcd7ecd0e92a6786af730ee8fd1e4539f641d4c7a8eb2
4
+ data.tar.gz: 58cd962e7dd7d7e351156b480c6407045e7b07fbfa0248548e5871d585ca8eb3
5
5
  SHA512:
6
- metadata.gz: 037cf6988db74336f088da5d353d546081dc1bcb2914fd2cf19057efca69bedb498880a4487a5df02d821e3b266bf31b63c7273b635036c9f2d4681bce1f60d7
7
- data.tar.gz: 994de327e357ac763ebb999247cfd7333a05592bddf9119c319ec23d783ffc88281198b730098174368c18796d465b12dcd251793ae4be4d7f88732c32298e92
6
+ metadata.gz: 8df37b6aa333ad841fe304758ae05b2b7446074f7e5561148d562d9329112d330ca6539a70f693353e8f9f06576f85159bbd040e220318cca3e4e723d1b6ade9
7
+ data.tar.gz: 6aadfdf859005842703c3374ef17c3195a2858c6bb2b78d7546c74ecdbe4d942eef43bb1800de71ad1a22c44c81e1f76742b6c4183f91ccc4b93074082a64fd0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.2](https://github.com/etsy/consulkit/compare/v0.1.1...v0.1.2) (2023-07-07)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * `/v1/session/destroy` takes a `PUT`, not `DELETE` ([8802e43](https://github.com/etsy/consulkit/commit/8802e43bc8e610bfc7cfbf2944c93f69e116f31f))
9
+
3
10
  ## [0.1.1](https://github.com/etsy/consulkit/compare/v0.1.0...v0.1.1) (2023-07-06)
4
11
 
5
12
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- consulkit (0.1.1)
4
+ consulkit (0.1.2)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
 
@@ -32,16 +32,16 @@ module Consulkit
32
32
  #
33
33
  # @return [Boolean]
34
34
  def session_delete(session_id)
35
- delete("/v1/session/destroy/#{session_id}").body == true
35
+ put("/v1/session/destroy/#{session_id}").body == true
36
36
  end
37
37
 
38
38
  # Reads a session.
39
39
  #
40
40
  # @param session_id [String] the ID of the session to read.
41
41
  #
42
- # @return [Boolean]
42
+ # @return [Hash]
43
43
  def session_read(session_id)
44
- get("/v1/session/info/#{session_id}").body
44
+ get("/v1/session/info/#{session_id}").body.first
45
45
  end
46
46
 
47
47
  # Renews a session.
@@ -50,7 +50,7 @@ module Consulkit
50
50
  #
51
51
  # @return [Hash]
52
52
  def session_renew(session_id)
53
- put("/v1/session/renew/#{session_id}").body
53
+ put("/v1/session/renew/#{session_id}").body.first
54
54
  end
55
55
 
56
56
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Consulkit
4
4
 
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.2'
6
6
 
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consulkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Norris
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-06 00:00:00.000000000 Z
11
+ date: 2023-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday