pco-url 1.7.1 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d87bb456f542bb599ba1bda16e9694b1cab0e0b
4
- data.tar.gz: 701d2d76861a8b78eb61c740ad3e82bc704d093c
3
+ metadata.gz: 99cbb60244f43f127c3396fde9cae695bb63fa83
4
+ data.tar.gz: 36445a79cde986af12548eec067b880655c7cbcb
5
5
  SHA512:
6
- metadata.gz: df8630e29e718b8122e20eca714103524327291c6e8ae547e4f5b78fcd47609912743be4649cd0b222b40e93d7e3a9875075d87fa9a0fe5a399a04433a4cfe6d
7
- data.tar.gz: ae97caeaf47755ce6750e917ed012689782245b72a641a620a213de81802619ed403b2f8c60eef7463c69688a774b7af6a50fe3fc6c5bf9d367d45b4aaa6d111
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
@@ -84,9 +84,7 @@ module PCO
84
84
  case env
85
85
  when "production", "staging"
86
86
  "planningcenteronline.com"
87
- when "development"
88
- "pco.dev"
89
- when "test"
87
+ when "development", "test"
90
88
  "pco.test"
91
89
  end
92
90
  end
@@ -16,10 +16,8 @@ module PCO
16
16
  return @domain if @domain
17
17
  case env
18
18
  when "production", "staging"
19
- "churchcenteronline.com"
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
@@ -1,5 +1,5 @@
1
1
  module PCO
2
2
  class URL
3
- VERSION = "1.7.1"
3
+ VERSION = "1.9.0"
4
4
  end
5
5
  end
@@ -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.churchcenteronline.com")
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://churchcenteronline.com")
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.churchcenteronline.com")
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.churchcenteronline.com")
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.dev")
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.dev")
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.dev")
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.dev")
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.churchcenteronline.com")
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://churchcenteronline.com")
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.dev") }
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.7.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: 2015-12-17 00:00:00.000000000 Z
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.2.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