release_manager 0.8.2 → 0.8.3
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 +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/lib/release_manager/errors.rb +1 -0
- data/lib/release_manager/git/utilites.rb +2 -1
- data/lib/release_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 90c469d4c950ce4239a5e921c97b9b84403e8afb
|
|
4
|
+
data.tar.gz: e341234c86529656bb71689281b3007126962beb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6c1f27f4c0d7104cca252aad0812abb02509cc40f4c249bb889fcbacd7824fb8b7823e5d42e236693c706e8856507e0ac4d230c06bb3658128d4b677db94f93
|
|
7
|
+
data.tar.gz: add4a8609417cfee032143cd922d569b2ab2e7f2088dd2f60ff5de8e50e888c26ac8f79073798daeb23e916d9cb8f1d69b6c5861f93dd454a82a5da79fbf646e
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -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
|
-
/(
|
|
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
|
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.
|
|
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-
|
|
11
|
+
date: 2018-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gitlab
|