plek 1.12.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/plek.rb +3 -3
- data/lib/plek/version.rb +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a4e57ba04bdaed9c12a5cfda39e40b8a7b9e49a
|
4
|
+
data.tar.gz: 7fb41bdf33d4f3ce101f339cdbd1daea95318438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb81b99d7eae93c1acc01a321a56296d1c88595deef7ab9863e7f20b0486cddf8a4f3095001d5713d4f34d61ac41ca388d18ac9dd2d3a2b028e707d812294fa6
|
7
|
+
data.tar.gz: 0529dd33cc435710a61861834c0202b25ec72e4dc0a47e97188856d3317f3905af833470a3e5bbc7420fa2dee79def7070e3e981381b7339b89aa5f049fe5b18
|
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Plek.find('frontend')
|
|
8
8
|
```
|
9
9
|
|
10
10
|
returns `http://frontend.dev.gov.uk` on a development machine and
|
11
|
-
`https://frontend.
|
11
|
+
`https://frontend.publishing.service.gov.uk` on a production machine. This
|
12
12
|
means we can use this in our code and let our environment configuration figure
|
13
13
|
out the correct hosts for us at runtime.
|
14
14
|
|
data/lib/plek.rb
CHANGED
@@ -68,11 +68,11 @@ class Plek
|
|
68
68
|
end
|
69
69
|
|
70
70
|
if options[:scheme_relative]
|
71
|
-
"//#{host}"
|
71
|
+
"//#{host}".freeze
|
72
72
|
elsif options[:force_http] or HTTP_DOMAINS.include?(parent_domain)
|
73
|
-
"http://#{host}"
|
73
|
+
"http://#{host}".freeze
|
74
74
|
else
|
75
|
-
"https://#{host}"
|
75
|
+
"https://#{host}".freeze
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
data/lib/plek/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: plek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Craig R Webster
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: gem_publisher
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.1.1
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 1.1.1
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: minitest
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -98,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
84
|
version: '0'
|
99
85
|
requirements: []
|
100
86
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.
|
87
|
+
rubygems_version: 2.5.1
|
102
88
|
signing_key:
|
103
89
|
specification_version: 4
|
104
90
|
summary: Locations for services
|