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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8fe7207839b271a72800dc05b9e9f8ed43b39208e765082e3272f548abc3035a
4
- data.tar.gz: 050fad5950fea4cec1f3d54fa4d2a5fa8a366331a9933ec514d42191bb3fec81
3
+ metadata.gz: fe00c674601d7abf791b03dda0dfc53104eb0f555c125060ebaa2634e5e3ccb6
4
+ data.tar.gz: fee576c01b5f1a62b7057d696a19a5f8cb0f3411528bce182e817a8c8b61d462
5
5
  SHA512:
6
- metadata.gz: 0c66317ece2c5fb5413f8ea43d1627e29a2af29d0b9aa39f6f366a7a54e5f84704ec4f517561625eed63c166074a1dea9c666a6618b4596e188a85ec2b26cef8
7
- data.tar.gz: 987ca13d118419db3f8d9a9b11a35b87c96772388d5afd248f4e15526db858f634016781ec4b55fb4dd5d7ac4e01f5b7910e128d1f4f5798db9013570b6dc778
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.0 (unreleased)
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Iorwerth
4
4
  module Hub
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.1"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iorwerth-hub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iorwerth Technologies