librariesio-url-parser 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/Gemfile.lock +1 -1
- data/lib/librariesio-url-parser.rb +1 -1
- data/lib/url_parser.rb +5 -0
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00d52ef052704194c97850963c18576440d6bede749f172f525b7738a0f5e79c
|
4
|
+
data.tar.gz: 2de0473ca0d0fd03e98ced3c6c2438be1691a4fe8617ea91da4d11783142efdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17340548393bb17653360e84d467f7488aec88a601cc0e7afae0deefc9ffdcba04829734dc5de2ca48971cc24a42d7063261398b5d38b39253ee27b68fc37eb1
|
7
|
+
data.tar.gz: 00267ffa423156ac519fa4a484210edbb5677eedd57ab0e0a2073ecb978b1dc948a1839df68c50f772b501e9081326df019b6ca1fde1ad462fc18b994971b769
|
data/.gitignore
ADDED
data/Gemfile.lock
CHANGED
data/lib/url_parser.rb
CHANGED
@@ -82,6 +82,7 @@ class URLParser
|
|
82
82
|
|
83
83
|
def clean_url
|
84
84
|
remove_whitespace
|
85
|
+
remove_quotes
|
85
86
|
remove_brackets
|
86
87
|
remove_anchors
|
87
88
|
remove_querystring
|
@@ -190,4 +191,8 @@ class URLParser
|
|
190
191
|
def remove_whitespace
|
191
192
|
url.gsub!(/\s/, '')
|
192
193
|
end
|
194
|
+
|
195
|
+
def remove_quotes
|
196
|
+
url.gsub!(/["']/, '')
|
197
|
+
end
|
193
198
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: librariesio-url-parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Pace
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.14.1
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email:
|
71
71
|
- matt.pace@tidelift.com
|
72
72
|
executables: []
|
@@ -74,6 +74,7 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".circleci/config.yml"
|
77
|
+
- ".gitignore"
|
77
78
|
- ".ruby-version"
|
78
79
|
- Gemfile
|
79
80
|
- Gemfile.lock
|
@@ -98,7 +99,7 @@ licenses:
|
|
98
99
|
- AGPL-3.0
|
99
100
|
metadata:
|
100
101
|
rubygems_mfa_required: 'true'
|
101
|
-
post_install_message:
|
102
|
+
post_install_message:
|
102
103
|
rdoc_options: []
|
103
104
|
require_paths:
|
104
105
|
- lib
|
@@ -113,8 +114,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
114
|
- !ruby/object:Gem::Version
|
114
115
|
version: '0'
|
115
116
|
requirements: []
|
116
|
-
rubygems_version: 3.0.
|
117
|
-
signing_key:
|
117
|
+
rubygems_version: 3.0.3
|
118
|
+
signing_key:
|
118
119
|
specification_version: 4
|
119
120
|
summary: Parse the URL for various repositories tracked by libraries.io
|
120
121
|
test_files: []
|