consulkit 0.1.0 → 0.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed420f460a02053a0cdb911554388b96d9400118b3fc9fdad1a2534a3dbf9712
4
- data.tar.gz: 3db9bb6b418452fa9501a9c68aa4e47b39d4007a18a0f08612c387841189316d
3
+ metadata.gz: e02934f5a05e9c23b06bcd7ecd0e92a6786af730ee8fd1e4539f641d4c7a8eb2
4
+ data.tar.gz: 58cd962e7dd7d7e351156b480c6407045e7b07fbfa0248548e5871d585ca8eb3
5
5
  SHA512:
6
- metadata.gz: ed6a2dbf2ba8ada0961d3c7491c8501478f50742910f7f588c0adc0291898fa96f47ff7ec66d2d699b1e3d3fe47b1c9914fe2be08674da6b8ae84fba686ce075
7
- data.tar.gz: 909cb251f11788907a6988441a4dd95c86678ccd7a53a46ce85e4946847e92535d257a469661b92408396d97adef3a2b6cd67c2b4c111caa898ff977949efe08
6
+ metadata.gz: 8df37b6aa333ad841fe304758ae05b2b7446074f7e5561148d562d9329112d330ca6539a70f693353e8f9f06576f85159bbd040e220318cca3e4e723d1b6ade9
7
+ data.tar.gz: 6aadfdf859005842703c3374ef17c3195a2858c6bb2b78d7546c74ecdbe4d942eef43bb1800de71ad1a22c44c81e1f76742b6c4183f91ccc4b93074082a64fd0
data/CHANGELOG.md ADDED
@@ -0,0 +1,32 @@
1
+ # Changelog
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
+
10
+ ## [0.1.1](https://github.com/etsy/consulkit/compare/v0.1.0...v0.1.1) (2023-07-06)
11
+
12
+
13
+ ### Features
14
+
15
+ * users can install from rubygems now ([ada4106](https://github.com/etsy/consulkit/commit/ada4106a219893590218119a94666de29f718d4f))
16
+
17
+ ## 0.1.0 (2023-07-05)
18
+
19
+
20
+ ### Features
21
+
22
+ * add kv, session, and semaphore features ([e2d455d](https://www.github.com/etsy/consulkit/commit/e2d455df919951c01783e58315d556d427278523))
23
+ * automatically decode base64 values ([d45d025](https://www.github.com/etsy/consulkit/commit/d45d025bba8395681f79cbaa24fa45e07d7a1bc5))
24
+
25
+
26
+ ### Bug Fixes
27
+
28
+ * add platforms ([398609a](https://www.github.com/etsy/consulkit/commit/398609ae4b0092db29ccfeae63736e5f2b28c402))
29
+ * don't mutate string ([0ff26b4](https://www.github.com/etsy/consulkit/commit/0ff26b47b173e646bf64d34006bc5ec91be7132d))
30
+ * misc cleanup ([46671d6](https://www.github.com/etsy/consulkit/commit/46671d601344d2612c4ab91dd6df3cc31e517eb6))
31
+ * move runtime deps to gemspec ([a7d9f0d](https://www.github.com/etsy/consulkit/commit/a7d9f0d1c32b23f97619229fcef2eb6de10edb2c))
32
+ * rake and rubocop errors ([c7c2e5e](https://www.github.com/etsy/consulkit/commit/c7c2e5ece91c3749f3aff0b9ec6ba9b241b5caf8))
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- consulkit (0.1.0)
4
+ consulkit (0.1.2)
5
5
  faraday (~> 2.7)
6
6
  faraday-retry (~> 2.2)
7
7
 
data/README.md CHANGED
@@ -5,7 +5,7 @@ Ruby API for interacting with HashiCorp's [Consul](https://www.consul.io/), heav
5
5
  ## Installation
6
6
 
7
7
  ```
8
- gem "consulkit", :git => "git://github.com/ericnorris/consulkit.git"
8
+ gem "consulkit"
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -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.0'
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.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Norris
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 1980-01-01 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
@@ -38,7 +38,7 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2.2'
41
- description:
41
+ description:
42
42
  email:
43
43
  - enorris@etsy.com
44
44
  executables: []
@@ -47,6 +47,7 @@ extra_rdoc_files: []
47
47
  files:
48
48
  - ".rspec"
49
49
  - ".rubocop.yml"
50
+ - CHANGELOG.md
50
51
  - Gemfile
51
52
  - Gemfile.lock
52
53
  - LICENSE.txt
@@ -69,7 +70,7 @@ licenses:
69
70
  metadata:
70
71
  homepage_uri: https://github.com/etsy/consulkit
71
72
  source_code_uri: https://github.com/etsy/consulkit
72
- post_install_message:
73
+ post_install_message:
73
74
  rdoc_options: []
74
75
  require_paths:
75
76
  - lib
@@ -84,8 +85,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
85
  - !ruby/object:Gem::Version
85
86
  version: '0'
86
87
  requirements: []
87
- rubygems_version: 3.4.13
88
- signing_key:
88
+ rubygems_version: 3.4.10
89
+ signing_key:
89
90
  specification_version: 4
90
91
  summary: Ruby toolkit for the Consul API
91
92
  test_files: []