pco-url 1.7.1 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +46 -0
- data/lib/pco/url.rb +1 -3
- data/lib/pco/url/church_center.rb +2 -4
- data/lib/pco/url/version.rb +1 -1
- data/spec/pco/url/church_center_spec.rb +6 -6
- data/spec/pco_url_spec.rb +5 -5
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99cbb60244f43f127c3396fde9cae695bb63fa83
|
4
|
+
data.tar.gz: 36445a79cde986af12548eec067b880655c7cbcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75427e67cbe1af5d0247aaf07d5612299f73298681497aa88a0db04f3c64bf144ce8f610e6249286628af416772afa5a7903bb8646d50bc51ca55eb4f8f92c25
|
7
|
+
data.tar.gz: 55b872ca020c14c13344872fdcdc84b3fe2d0a8156fb2c991ca2e9d247fd509f0bcc158715a214d4030ea6922f46599e40cf20beaff90e218b9eb9a848bb9fbc
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,46 @@
|
|
1
|
+
# 1.9.0
|
2
|
+
|
3
|
+
* Chore: Update URL for local dev to use pco.test and churchcenter.test
|
4
|
+
|
5
|
+
# 1.8.0
|
6
|
+
|
7
|
+
* Chore: Update URL for churchcenter.com
|
8
|
+
|
9
|
+
# 1.7.1
|
10
|
+
|
11
|
+
* Fix: Allow `_e` encrypted param to be accompanied by unencrypted params [Geo Lessel]
|
12
|
+
|
13
|
+
# 1.7.0
|
14
|
+
|
15
|
+
* Feature: Add support for Church Center [Tim Morgan]
|
16
|
+
* Fix: Remove https from get site URLs [Daniel Murphy]
|
17
|
+
|
18
|
+
# 1.6.0
|
19
|
+
|
20
|
+
* Feature: Add support for custom domains [James Miller]
|
21
|
+
|
22
|
+
# 1.5.0
|
23
|
+
|
24
|
+
* Fix: Ensure URLs don't have double-slashes between hostname and path [James Miller]
|
25
|
+
|
26
|
+
# 1.4.0
|
27
|
+
|
28
|
+
* Feature: Refactor to allow instantiating a PCO::URL object, add encrypted query parameters functionality [James Miller]
|
29
|
+
* Feature: Add .parse method to parse PCO::URL strings [Geo Lessel]
|
30
|
+
* Feature: Add support for partial encrypted query strings [James Miller]
|
31
|
+
|
32
|
+
# 1.3.0
|
33
|
+
|
34
|
+
* Feature: Allow people to specificy path [Jeff Berg]
|
35
|
+
|
36
|
+
# 1.2.0
|
37
|
+
|
38
|
+
* Feature: Convert any method call to a URL instead of having a whitelist [James Miller]
|
39
|
+
|
40
|
+
# 1.1.0
|
41
|
+
|
42
|
+
* Feature: Make applications list a changeable array [James Miller]
|
43
|
+
|
44
|
+
# 1.0.0
|
45
|
+
|
46
|
+
Initial release [James Miller]
|
data/lib/pco/url.rb
CHANGED
@@ -16,10 +16,8 @@ module PCO
|
|
16
16
|
return @domain if @domain
|
17
17
|
case env
|
18
18
|
when "production", "staging"
|
19
|
-
"
|
20
|
-
when "development"
|
21
|
-
"churchcenter.dev"
|
22
|
-
when "test"
|
19
|
+
"churchcenter.com"
|
20
|
+
when "development", "test"
|
23
21
|
"churchcenter.test"
|
24
22
|
end
|
25
23
|
end
|
data/lib/pco/url/version.rb
CHANGED
@@ -11,7 +11,7 @@ describe PCO::URL::ChurchCenter do
|
|
11
11
|
subject { described_class.new(subdomain: "foo") }
|
12
12
|
|
13
13
|
it "returns the proper URL" do
|
14
|
-
expect(subject.to_s).to eq("https://foo.
|
14
|
+
expect(subject.to_s).to eq("https://foo.churchcenter.com")
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -19,7 +19,7 @@ describe PCO::URL::ChurchCenter do
|
|
19
19
|
subject { described_class.new }
|
20
20
|
|
21
21
|
it "returns the proper URL" do
|
22
|
-
expect(subject.to_s).to eq("https://
|
22
|
+
expect(subject.to_s).to eq("https://churchcenter.com")
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -35,7 +35,7 @@ describe PCO::URL::ChurchCenter do
|
|
35
35
|
subject { described_class.new(subdomain: "foo") }
|
36
36
|
|
37
37
|
it "returns the proper URL" do
|
38
|
-
expect(subject.to_s).to eq("https://foo.staging.
|
38
|
+
expect(subject.to_s).to eq("https://foo.staging.churchcenter.com")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
@@ -43,7 +43,7 @@ describe PCO::URL::ChurchCenter do
|
|
43
43
|
subject { described_class.new }
|
44
44
|
|
45
45
|
it "returns the proper URL" do
|
46
|
-
expect(subject.to_s).to eq("https://staging.
|
46
|
+
expect(subject.to_s).to eq("https://staging.churchcenter.com")
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
@@ -59,7 +59,7 @@ describe PCO::URL::ChurchCenter do
|
|
59
59
|
subject { described_class.new(subdomain: "foo") }
|
60
60
|
|
61
61
|
it "returns the proper URL" do
|
62
|
-
expect(subject.to_s).to eq("http://foo.churchcenter.
|
62
|
+
expect(subject.to_s).to eq("http://foo.churchcenter.test")
|
63
63
|
end
|
64
64
|
end
|
65
65
|
|
@@ -67,7 +67,7 @@ describe PCO::URL::ChurchCenter do
|
|
67
67
|
subject { described_class.new }
|
68
68
|
|
69
69
|
it "returns the proper URL" do
|
70
|
-
expect(subject.to_s).to eq("http://churchcenter.
|
70
|
+
expect(subject.to_s).to eq("http://churchcenter.test")
|
71
71
|
end
|
72
72
|
end
|
73
73
|
end
|
data/spec/pco_url_spec.rb
CHANGED
@@ -26,12 +26,12 @@ describe PCO::URL do
|
|
26
26
|
|
27
27
|
APPLICATIONS.map(&:to_s).each do |app|
|
28
28
|
it "has an #{app} URL" do
|
29
|
-
expect(PCO::URL.send(app)).to eq("http://#{app.tr('_', '-')}.pco.
|
29
|
+
expect(PCO::URL.send(app)).to eq("http://#{app.tr('_', '-')}.pco.test")
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
33
|
it "has a church-center url" do
|
34
|
-
expect(PCO::URL.church_center).to eq("http://churchcenter.
|
34
|
+
expect(PCO::URL.church_center).to eq("http://churchcenter.test")
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
@@ -52,7 +52,7 @@ describe PCO::URL do
|
|
52
52
|
end
|
53
53
|
|
54
54
|
it "has a church-center url" do
|
55
|
-
expect(PCO::URL.church_center).to eq("https://staging.
|
55
|
+
expect(PCO::URL.church_center).to eq("https://staging.churchcenter.com")
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
@@ -73,7 +73,7 @@ describe PCO::URL do
|
|
73
73
|
end
|
74
74
|
|
75
75
|
it "has a church-center url" do
|
76
|
-
expect(PCO::URL.church_center).to eq("https://
|
76
|
+
expect(PCO::URL.church_center).to eq("https://churchcenter.com")
|
77
77
|
end
|
78
78
|
end
|
79
79
|
|
@@ -193,7 +193,7 @@ describe PCO::URL do
|
|
193
193
|
end
|
194
194
|
|
195
195
|
context "when only a url string is passed" do
|
196
|
-
subject { PCO::URL.parse("http://people.pco.
|
196
|
+
subject { PCO::URL.parse("http://people.pco.test") }
|
197
197
|
|
198
198
|
it "sets the app_name attr" do
|
199
199
|
expect(subject.app_name).to eq("people")
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pco-url
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: urlcrypt
|
@@ -82,6 +82,7 @@ files:
|
|
82
82
|
- ".editorconfig"
|
83
83
|
- ".gitignore"
|
84
84
|
- ".rubocop.yml"
|
85
|
+
- CHANGELOG.md
|
85
86
|
- Gemfile
|
86
87
|
- LICENSE.txt
|
87
88
|
- README.md
|
@@ -115,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
116
|
version: '0'
|
116
117
|
requirements: []
|
117
118
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.
|
119
|
+
rubygems_version: 2.5.2
|
119
120
|
signing_key:
|
120
121
|
specification_version: 4
|
121
122
|
summary: Generate URLs for PCO apps in all environments
|