et_fake_ccd 0.1.5 → 0.1.6

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: 40e19de2e4440c3b95d9bfa3c5350cd764b7c75bc5af14d9c4008fe8bb586440
4
- data.tar.gz: 9ff9b633890d25f2e4e1bdf8dfc56c0a5f1d4f8686dc48e8f93dffb40274fa69
3
+ metadata.gz: b861b770b5cfe8445b20fe64ec186896176d0e2f9c182c48959984333b3d663c
4
+ data.tar.gz: 6fbd42a4e759cda1252abb01934cbcc77997babcb586384fa6912e9402218c2d
5
5
  SHA512:
6
- metadata.gz: 01ef97e6df5e6d13896b6bb2fe966faf296872c97e173c57b76ce5996656f9a853966f10d9db5005c1e386680284f35f9c3507286af81b21a9121f5f8f428493
7
- data.tar.gz: ffd1e180d6a13999683a0fd9ea5282e567acdf691ffabe0aedf98e2998e2f6be164764323306875bc11dd4dfc731e0bd77a13ae6ecefac1b8f079f030a938b2f
6
+ metadata.gz: b06ecc8a9d4eb937c6e3db398fe5ddf45d73eea3ca868158c821d711cc1f9d16e1d06b4c462a4511af769f73b0845ad3c47b03eb094358ce4d34172f16b18577
7
+ data.tar.gz: aa41901dd32dc346c8c3c49baffc39cf7965048b1326c3d87f42e21d6bd945a8ad7b655b9e531262c7982132b665b1bb4a73530330357d24b1edd026e08d4950
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- et_fake_ccd (0.1.5)
4
+ et_fake_ccd (0.1.6)
5
5
  activemodel (~> 5.2, >= 5.2.3)
6
6
  roda (~> 3.21)
7
7
  rotp (~> 5.1)
@@ -2,6 +2,7 @@ require 'roda'
2
2
  require 'json'
3
3
  require 'et_fake_ccd/commands'
4
4
  require 'et_fake_ccd/auth_service'
5
+ require 'addressable/uri'
5
6
  module EtFakeCcd
6
7
  module Service
7
8
  class UiApp < Roda
@@ -19,17 +20,23 @@ module EtFakeCcd
19
20
 
20
21
  def config_result
21
22
  j = {
22
- "login_url": "http://localhost:8080/authentication-web/login",
23
- "logout_url": "http://localhost:8080/api-gateway/logout",
24
- "api_url": "http://localhost:8080/api-gateway/aggregated",
25
- "case_data_url": "http://localhost:8080/api-gateway/data",
26
- "document_management_url": "http://localhost:8080/api-gateway/documents",
23
+ "login_url": url_for("/authentication-web/login"),
24
+ "logout_url": url_for("http://localhost:8080/api-gateway/logout"),
25
+ "api_url": url_for("http://localhost:8080/api-gateway/aggregated"),
26
+ "case_data_url": url_for("http://localhost:8080/api-gateway/data"),
27
+ "document_management_url": url_for("http://localhost:8080/api-gateway/documents"),
27
28
  "pagination_page_size": 25,
28
- "oauth2_token_endpoint_url": "http://localhost:8080/api-gateway/oauth2",
29
- "oauth2_client_id": "ccd_gateway"
29
+ "oauth2_token_endpoint_url": url_for("http://localhost:8080/api-gateway/oauth2"),
30
+ "oauth2_client_id": url_for("ccd_gateway")
30
31
  }
31
32
  JSON.generate(j)
32
33
  end
34
+
35
+ def url_for(path)
36
+ uri = Addressable::URI.parse(request.url)
37
+ uri.path = path
38
+ uri.to_s
39
+ end
33
40
  end
34
41
  end
35
42
  end
@@ -1,3 +1,3 @@
1
1
  module EtFakeCcd
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: et_fake_ccd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Taylor