iorwerth-hub 0.1.0 → 0.1.1
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/CHANGELOG.md +6 -1
- data/README.md +4 -0
- data/lib/iorwerth/hub/omniauth.rb +3 -0
- data/lib/iorwerth/hub/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fe00c674601d7abf791b03dda0dfc53104eb0f555c125060ebaa2634e5e3ccb6
|
|
4
|
+
data.tar.gz: fee576c01b5f1a62b7057d696a19a5f8cb0f3411528bce182e817a8c8b61d462
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 288a3cef72db3fac3c58d97de710dcc5aa40088d661d80fab1999d7790c0104e3c0f8df7e28f22ce989ba60c22743ac5d7dbe4f40d0f6e9e6fda60691cd77d0c
|
|
7
|
+
data.tar.gz: 44121888f35a9809e5de9455a9a953fb9421836955dcb512a95c6db000cb1dd60583447ce7324fc0897a1aa994deb0e52bf9e5e63308831d4017c37ae0714596
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## 0.1.
|
|
3
|
+
## 0.1.1
|
|
4
|
+
|
|
5
|
+
- Sign-in works against a Hub on plain http, such as the local one from
|
|
6
|
+
`docker compose --profile dev up`: discovery no longer assumes https.
|
|
7
|
+
|
|
8
|
+
## 0.1.0
|
|
4
9
|
|
|
5
10
|
- First release: `Iorwerth::Hub::Client` for every `/api/v1` operation, `entitled?` and
|
|
6
11
|
`limit` with a cache that survives a Hub outage, `Webhook.verify` and a Rack
|
data/README.md
CHANGED
|
@@ -40,6 +40,10 @@ HUB_API_KEY=...
|
|
|
40
40
|
HUB_WEBHOOK_SECRET=...
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
+
To develop against a Hub on your own machine, see
|
|
44
|
+
[step 10 of the guide](../../docs/integration/connecting-a-product.md#10-test-locally):
|
|
45
|
+
`docker compose --profile dev up` prints a ready-made block for `.env.development`.
|
|
46
|
+
|
|
43
47
|
You can override any of them in code:
|
|
44
48
|
|
|
45
49
|
```ruby
|
|
@@ -36,6 +36,9 @@ module OmniAuth
|
|
|
36
36
|
options.client_options.scheme = hub.scheme
|
|
37
37
|
options.client_options.host = hub.host
|
|
38
38
|
options.client_options.port = hub.port
|
|
39
|
+
# A Hub on a laptop (the Compose dev profile) is plain http, and discovery builds
|
|
40
|
+
# https URLs unless told otherwise. Production Hubs are https, so this never applies.
|
|
41
|
+
SWD.url_builder = URI::HTTP if hub.scheme == "http"
|
|
39
42
|
end
|
|
40
43
|
|
|
41
44
|
def request_phase
|
data/lib/iorwerth/hub/version.rb
CHANGED