github_changelog_generator 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2910060704d47726210ebc0f351fea2ff65b817e
4
- data.tar.gz: 8bbeb1926718b2474d9f020f5ae4aa69f86e5737
3
+ metadata.gz: a85fd9e4df53ccc764ea93c75383999a6a6731b4
4
+ data.tar.gz: 6d2713c79a1fccc559c660c92706a8c8dfc84d3a
5
5
  SHA512:
6
- metadata.gz: 1962c167ec181d5894e915c3aa51e6db2642777fcdd783f9ac3dfc50bdf5e15412238ef56eb32028610b05de04e5ee7f03e1a88a650c4177f4ba842343326bdf
7
- data.tar.gz: ed77434e26d4702ce68d2948fece33371b3e7f02d6645c94c74e893f8aa4be80e2ac5de2f7d89c96bcdc8f09ad16255265ce7c6a7401e92ff194fac8fdca9e98
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 = /.*(?:[:\/])(\w*)\/((?:-|\w)*)\.git.*/.match(remote[0])
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_changelog_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Korolev