github_changelog_generator 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/github_changelog_generator/parser.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a85fd9e4df53ccc764ea93c75383999a6a6731b4
|
4
|
+
data.tar.gz: 6d2713c79a1fccc559c660c92706a8c8dfc84d3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1bef64c1b569079d0954b1d311b6148211e15b6351c67bd8ec4446961fe3daa159a544a6d6b1ff6449492b1ac9943c20c1706f04bfbee41c0e064c80af50fa19
|
7
|
+
data.tar.gz: d99a95dae2167ab00aaa75217d0d682fd0be5a314fd4b43794113e60cf7b8f27da8c1abb81111b0d7844dcfcd4026c51297b7d5ffc9d324982fcf92623ac884a
|
@@ -56,9 +56,9 @@ class Parser
|
|
56
56
|
|
57
57
|
if !options[:user] && !options[:project]
|
58
58
|
remote = `git remote -vv`.split("\n")
|
59
|
-
match = /.*(?:[:\/])(
|
59
|
+
match = /.*(?:[:\/])((?:-|\w|\.)*)\/((?:-|\w|\.)*)\.git.*/.match(remote[0])
|
60
60
|
|
61
|
-
if match[1] && match[2]
|
61
|
+
if match && match[1] && match[2]
|
62
62
|
puts "Detected user:#{match[1]}, project:#{match[2]}"
|
63
63
|
options[:user], options[:project] = match[1], match[2]
|
64
64
|
end
|