plek 1.8.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/plek.rb +4 -0
- data/lib/plek/version.rb +1 -1
- metadata +9 -19
data/README.md
CHANGED
@@ -4,7 +4,7 @@ Plek
|
|
4
4
|
"Plek" is Afrikaans. It means "Location." Plek is used to generate the correct hostnames for internal GOV.UK services, eg:
|
5
5
|
|
6
6
|
```ruby
|
7
|
-
Plek.
|
7
|
+
Plek.find('frontend')
|
8
8
|
```
|
9
9
|
|
10
10
|
returns `https://frontend.production.alphagov.co.uk`. This means we can use this in our code and let our environment configuration figure out the correct hosts for us at runtime.
|
@@ -21,7 +21,7 @@ PLEK_SERVICE_EXAMPLE_CHEESE_THING_URI=http://example.com bundle exec rails s
|
|
21
21
|
would set
|
22
22
|
|
23
23
|
```ruby
|
24
|
-
Plek.
|
24
|
+
Plek.find('example-cheese-thing')
|
25
25
|
```
|
26
26
|
|
27
27
|
to `http://example.com`. Underscores in environment variables are converted to dashes in Plek names as demonstrated.
|
data/lib/plek.rb
CHANGED
data/lib/plek/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &21071240 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,15 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
24
|
+
version_requirements: *21071240
|
30
25
|
- !ruby/object:Gem::Dependency
|
31
26
|
name: gem_publisher
|
32
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &21089680 !ruby/object:Gem::Requirement
|
33
28
|
none: false
|
34
29
|
requirements:
|
35
30
|
- - ~>
|
@@ -37,12 +32,7 @@ dependencies:
|
|
37
32
|
version: 1.1.1
|
38
33
|
type: :development
|
39
34
|
prerelease: false
|
40
|
-
version_requirements:
|
41
|
-
none: false
|
42
|
-
requirements:
|
43
|
-
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: 1.1.1
|
35
|
+
version_requirements: *21089680
|
46
36
|
description: Find the right hostname for each service in an environment-dependent
|
47
37
|
manner
|
48
38
|
email:
|
@@ -68,7 +58,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
68
58
|
version: '0'
|
69
59
|
segments:
|
70
60
|
- 0
|
71
|
-
hash:
|
61
|
+
hash: 3691232646913469979
|
72
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
63
|
none: false
|
74
64
|
requirements:
|
@@ -77,10 +67,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
67
|
version: '0'
|
78
68
|
segments:
|
79
69
|
- 0
|
80
|
-
hash:
|
70
|
+
hash: 3691232646913469979
|
81
71
|
requirements: []
|
82
72
|
rubyforge_project:
|
83
|
-
rubygems_version: 1.8.
|
73
|
+
rubygems_version: 1.8.11
|
84
74
|
signing_key:
|
85
75
|
specification_version: 3
|
86
76
|
summary: Locations for services
|