plek 1.12.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/plek.rb +3 -3
  4. data/lib/plek/version.rb +1 -1
  5. metadata +3 -17
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1314ffc3512610c4d3b415b260286a96e21219f
4
- data.tar.gz: 6c93d8d7b008a5c3c33e5dbfb0e04d748a086bca
3
+ metadata.gz: 7a4e57ba04bdaed9c12a5cfda39e40b8a7b9e49a
4
+ data.tar.gz: 7fb41bdf33d4f3ce101f339cdbd1daea95318438
5
5
  SHA512:
6
- metadata.gz: 38c576ef1e98d8d05a9e74e95f0475f5ca72409b93c30b32c6d656f4df14f0c9851c64fe073e48c425576802406425157c6828a92efbf1487179169df2d2406c
7
- data.tar.gz: d93efae49515bc45665f2a57953c156f523f46cc4c2e4bf44af89a6083361f817bf977dc039c7ff68033d0bd50ede418283eb17ed47b18a644f366d76d520412
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.production.alphagov.co.uk` on a production machine. This
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
 
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  class Plek
2
- VERSION = '1.12.0'
2
+ VERSION = '2.0.0'
3
3
  end
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: 1.12.0
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: 2016-02-04 00:00:00.000000000 Z
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.4.5.1
87
+ rubygems_version: 2.5.1
102
88
  signing_key:
103
89
  specification_version: 4
104
90
  summary: Locations for services