release_manager 0.8.2 → 0.8.3

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
  SHA1:
3
- metadata.gz: 8c5f092e245aea42b984105f438d28a7c08ee105
4
- data.tar.gz: 2f33d50455fdf64fb2ad9f6292ab1d438c5791a7
3
+ metadata.gz: 90c469d4c950ce4239a5e921c97b9b84403e8afb
4
+ data.tar.gz: e341234c86529656bb71689281b3007126962beb
5
5
  SHA512:
6
- metadata.gz: f1652bfddb2ab6671ad58216507116eab5beda0622bb977d01ce9102e09c9d047d0d5af0002a84d8b5d5e7c26ac849195263be49d384eb469763e40783606329
7
- data.tar.gz: 5de1534bd90dcd3a4c1f133bacb114dc376a604f2888702391d6332126576f456f93fafa1d095c4d5961bc492b99b41dda599457915effa9f4721c360d77640d
6
+ metadata.gz: a6c1f27f4c0d7104cca252aad0812abb02509cc40f4c249bb889fcbacd7824fb8b7823e5d42e236693c706e8856507e0ac4d230c06bb3658128d4b677db94f93
7
+ data.tar.gz: add4a8609417cfee032143cd922d569b2ab2e7f2088dd2f60ff5de8e50e888c26ac8f79073798daeb23e916d9cb8f1d69b6c5861f93dd454a82a5da79fbf646e
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.8.3
6
+ * Fixes issue when git urls with hypens not being found
7
+
5
8
  ## 0.8.2
6
9
  * Fixes #7 - sandbox-create hangs when ssh does not have host id key
7
10
  * Fixes #6 - sandbox-create hangs when ssh-agent does not have a key/id
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- release_manager (0.8.2)
4
+ release_manager (0.8.3)
5
5
  gitlab (~> 4.2.0)
6
6
  highline (~> 1.7)
7
7
  rugged (~> 0.26)
@@ -10,6 +10,7 @@ class GitError < Exception; end
10
10
  class RepoNotFound < Exception; end
11
11
  class InvalidModule < Exception; end
12
12
  class InvalidToken < Exception; end
13
+ class RemoteNotFound < Exception; end
13
14
  class InvalidSshkey < Exception; end
14
15
  class InvalidBranchName < Exception; end
15
16
  class PatchError < Exception; end
@@ -130,6 +130,7 @@ module ReleaseManager
130
130
  # @param [String] remote_name - the remote name to push the branch to
131
131
  def push_branch(remote_name, branch, force = false)
132
132
  remote = find_or_create_remote(remote_name)
133
+ raise RemoteNotFound, "Remote named: #{remote_name} was not found" unless remote
133
134
  b = repo.branches[branch]
134
135
  raise InvalidBranchName.new("Branch #{branch} does not exist locally, cannot push") unless b
135
136
  refs = [b.canonical_name]
@@ -219,7 +220,7 @@ module ReleaseManager
219
220
  # @return [MatchData] MatchData if the remote name is a url
220
221
  # Is the name actually a url?
221
222
  def git_url?(name)
222
- /([A-Za-z0-9]+@|http(|s)\:\/\/)([A-Za-z0-9.]+)(:|\/)([A-Za-z0-9\/]+)(\.git)?/.match(name)
223
+ /(?:git|ssh|https?|git@[-\w.]+):(\/\/)?(.*?)(\.git)(\/?|\#[-\d\w._]+?)$/.match(name)
223
224
  end
224
225
 
225
226
  # @return [String] - the author name found in the config
@@ -1,3 +1,3 @@
1
1
  module ReleaseManager
2
- VERSION = "0.8.2"
2
+ VERSION = "0.8.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: release_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Corey Osman
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-03-20 00:00:00.000000000 Z
11
+ date: 2018-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gitlab