librariesio-url-parser 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0552e054ac1b05ff114f7d95cf7281508ee65500356810168c5d4c56587524d6
4
- data.tar.gz: 1a1dc645db555eb8935de55c6cf11ecebe3448bcb0325a49b9e850114006c92e
3
+ metadata.gz: bae64bd33bdd5556d8d16472bf9c815813375f60254335b0e39c8e80a669249f
4
+ data.tar.gz: 06b4b0e89906bcf89d8679e96c48028991a0f77eeb200950b617c02a2b8671ba
5
5
  SHA512:
6
- metadata.gz: c479b95802f3d673fa23fbdd8fcc67fd36ed51c2fdf9f640147ebaa276466f9a8112111ba8a796ceb918e9df1b97d97dabcbfa2abe7e6df63e2a8911a53b5837
7
- data.tar.gz: b9daf84d0a9347979489f1289d6608ea4f44125a607b37cba2d5065db56be2e4b551349f1cd585ee9f520f192d516dd264b8a91faa0c7da03fb92fd601689c7e
6
+ metadata.gz: 19ab606c3ee731d48df907595b9a6ccaf01ded2dd4606928744766f729ea1718d776a1be481f12c9cae34f2e0b4b2109fc12ce895cc016b499c2767661c94cf0
7
+ data.tar.gz: 3aab091fb8161ea1d928cfd51eddbfc66b9b8a6d8f1c446e247f1c3417a5908a27a07d14057656835a73d98d6e276ad08da1467f2dd394f6a1c5fbe2e6fd991d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- librariesio-url-parser (1.0.6)
4
+ librariesio-url-parser (1.0.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -13,5 +13,5 @@ require_relative "android_googlesource_url_parser"
13
13
  require_relative "sourceforge_url_parser"
14
14
 
15
15
  module LibrariesioURLParser
16
- VERSION = "1.0.6"
16
+ VERSION = "1.0.7"
17
17
  end
data/lib/url_parser.rb CHANGED
@@ -96,9 +96,9 @@ class URLParser
96
96
 
97
97
  remove_subdomain
98
98
  remove_domain
99
- remove_git_extension
100
99
  remove_git_scheme
101
100
  remove_extra_segments
101
+ remove_git_extension
102
102
  end
103
103
 
104
104
  def format_url
@@ -168,7 +168,7 @@ class URLParser
168
168
  end
169
169
 
170
170
  def remove_git_extension
171
- url.gsub!(/(\.git|\/)$/i, '')
171
+ Array(url).last&.gsub!(/(\.git|\/)$/i, '')
172
172
  end
173
173
 
174
174
  def remove_git_scheme
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.6
4
+ version: 1.0.7
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: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2022-10-07 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: []
@@ -98,7 +98,7 @@ licenses:
98
98
  - AGPL-3.0
99
99
  metadata:
100
100
  rubygems_mfa_required: 'true'
101
- post_install_message:
101
+ post_install_message:
102
102
  rdoc_options: []
103
103
  require_paths:
104
104
  - lib
@@ -113,8 +113,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
- rubygems_version: 3.0.3
117
- signing_key:
116
+ rubygems_version: 3.0.9
117
+ signing_key:
118
118
  specification_version: 4
119
119
  summary: Parse the URL for various repositories tracked by libraries.io
120
120
  test_files: []