url_scrubber 0.8.9 → 0.8.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NTkxZGQ1NmRjZDMxMjNmOWViNzlhNzc3Yzg4N2Q1YjRmMmQzY2Y0Yg==
4
+ MWUxZDdlODMwOWZmMjllMDYzYzhlYjM5NzU5NGI4MWNjYTU1ZDM3Yw==
5
5
  data.tar.gz: !binary |-
6
- Mzc1NmFhOTMxZjg5YjdjZjc4OTRiMWEyYWU4OWEwNzVhYTIxZjZlYQ==
6
+ Y2UyZTBhZjFkOGQyNzYzZDhmNjU2MDUyZWVlYjIxYmQzODMxNDU1Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWRjNzU4YjM4OWE3NzE5MjIxOWNlMjMxMTg3YmY1OGM5NTlhMzdjMTUwN2Vl
10
- MmNmZjk1ODMzZWY1MGJlYTYwNWEzZDVjZjAwMGFiZjIyY2I0ZWI0Y2VlYjc5
11
- OTgyOGYzZmU0ZTEwNWY2YTFlYzQwN2IyZWQ2MDBkN2M0Y2NmOTI=
9
+ NjM4MDI1OTdkODc0OGQ3YTE4NDAwNDk3Y2JlYzhhOGIzYmRhYmIwNzE2MWM4
10
+ NTc5N2M4ZjdmZDdlMmMyYjQwMmE2MjliOTY3YzBlNTAzMGNhYTZkN2E2YmVh
11
+ MTBiMWUwMDEzZTA2M2E5MGNkMmU3YWM2NDE0NzkwZDg3YTYzZDg=
12
12
  data.tar.gz: !binary |-
13
- NGY0ZDRiNGQ1NjM4ZTc5NmIxMTZkNWQyZmVkY2YyNTE0MWU4Y2VlZmQ2MmJj
14
- MzY4ODYzM2I2MGE3ZjliZmY3ZGZiZGFlODE3Y2JhZjZlZTM3NDMwZTlkNTU3
15
- ODg3MjczYmVjOWUxMDhiMWNlODJmMTRkZGM2NjQ4NWE4NWIyZDA=
13
+ MDU4YjQ1MWU0NDgyZTFjMjRhODJiOWNhYWJhMzAxNzQyNzQ4ZjliYTI3YjRh
14
+ YWMwMTA0MDhmMWE0MzE3NmRlYTBiZmE4MzU4MDc2YzJkNWUwMjEzN2FiYmQ5
15
+ YTU3Y2E2YzczYzJjYWZmYzNlY2FjMzUwMTVmNjk5NzE3ZTRhYzg=
@@ -1,3 +1,3 @@
1
1
  module UrlScrubber
2
- VERSION = "0.8.9"
2
+ VERSION = "0.8.10"
3
3
  end
data/lib/url_scrubber.rb CHANGED
@@ -8,6 +8,8 @@ module UrlScrubber
8
8
 
9
9
  def self.scrub(url)
10
10
  return url if url.blank?
11
+ return url if /^app:\/\//.match(url) # Do not scrub app-only URLs
12
+
11
13
  url = url.clone # don't modify the original argument
12
14
 
13
15
  m = url.match(/(htt?ps?:\/\/\S*)/i)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: url_scrubber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.9
4
+ version: 0.8.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Langton
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2018-01-12 00:00:00.000000000 Z
14
+ date: 2018-03-12 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rspec