pco-url 1.7.0 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pco/url.rb +1 -1
- data/lib/pco/url/version.rb +1 -1
- data/spec/pco_url_spec.rb +16 -0
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d87bb456f542bb599ba1bda16e9694b1cab0e0b
|
4
|
+
data.tar.gz: 701d2d76861a8b78eb61c740ad3e82bc704d093c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df8630e29e718b8122e20eca714103524327291c6e8ae547e4f5b78fcd47609912743be4649cd0b222b40e93d7e3a9875075d87fa9a0fe5a399a04433a4cfe6d
|
7
|
+
data.tar.gz: ae97caeaf47755ce6750e917ed012689782245b72a641a620a213de81802619ed403b2f8c60eef7463c69688a774b7af6a50fe3fc6c5bf9d367d45b4aaa6d111
|
data/lib/pco/url.rb
CHANGED
data/lib/pco/url/version.rb
CHANGED
data/spec/pco_url_spec.rb
CHANGED
@@ -257,6 +257,22 @@ describe PCO::URL do
|
|
257
257
|
)
|
258
258
|
end
|
259
259
|
end
|
260
|
+
|
261
|
+
context "when the encrypted part of the query string is not first" do
|
262
|
+
let(:url) { pco_url.to_s.sub(/\?(_e=.+)/, "?foo=bar&\\1") }
|
263
|
+
|
264
|
+
subject { PCO::URL.parse(url) }
|
265
|
+
|
266
|
+
it "decrypts the encrypted portion and includes the unencrypted portion" do
|
267
|
+
expect(subject.query).to eq("foo=bar&full_access=1&total_control=1")
|
268
|
+
end
|
269
|
+
|
270
|
+
it "returns the full url" do
|
271
|
+
expect(subject.to_s).to eq(
|
272
|
+
"https://people-staging.planningcenteronline.com/households/2.html?foo=bar&full_access=1&total_control=1"
|
273
|
+
)
|
274
|
+
end
|
275
|
+
end
|
260
276
|
end
|
261
277
|
end
|
262
278
|
end
|
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.
|
4
|
+
version: 1.7.1
|
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-
|
11
|
+
date: 2015-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: urlcrypt
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.
|
118
|
+
rubygems_version: 2.2.2
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Generate URLs for PCO apps in all environments
|
@@ -123,4 +123,3 @@ test_files:
|
|
123
123
|
- spec/pco/url/church_center_spec.rb
|
124
124
|
- spec/pco_url_spec.rb
|
125
125
|
- spec/spec_helper.rb
|
126
|
-
has_rdoc:
|