git-ready 0.8.4 → 0.8.5
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/VERSION +1 -1
- data/git-ready.gemspec +3 -3
- data/lib/git-ready/workspace.rb +2 -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: 3591b66c5391fcb35ddfbb58561ac4b718e30597
|
|
4
|
+
data.tar.gz: 36ef9e15cc42f201d49e588e662232ff479c87f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6012ce95fcffd1390a64327cf6a301169f6b0b6285d377c276643722a224cb6c78bc4d6b8035a42cf0eaebb6dcaada0107238acdd4e5589c8ed015e54076d77a
|
|
7
|
+
data.tar.gz: d8b00622693db7afb457a48445f016a2b620555f32701f677a8bd1aeafa15caf93834a5283d43251aca9958ceb175cc33cb1f0f6b3fb240f7b989d016cf3ee6e
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.8.
|
|
1
|
+
0.8.5
|
data/git-ready.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: git-ready 0.8.
|
|
5
|
+
# stub: git-ready 0.8.5 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "git-ready"
|
|
9
|
-
s.version = "0.8.
|
|
9
|
+
s.version = "0.8.5"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Chris Olstrom"]
|
|
14
|
-
s.date = "2015-07-
|
|
14
|
+
s.date = "2015-07-03"
|
|
15
15
|
s.description = "git-ready gets you ready to work with an established team that already uses GitHub."
|
|
16
16
|
s.email = "chris@olstrom.com"
|
|
17
17
|
s.executables = ["git-ready"]
|
data/lib/git-ready/workspace.rb
CHANGED
|
@@ -22,13 +22,14 @@ module Workspace
|
|
|
22
22
|
def self.clone(url, path)
|
|
23
23
|
credentials = Rugged::Credentials::SshKeyFromAgent.new username: 'git'
|
|
24
24
|
Rugged::Repository.clone_at(url, path, credentials: credentials) unless git_repository? path
|
|
25
|
+
rescue Rugged::NetworkError
|
|
26
|
+
Announce.failure "Failed to clone repository #{url} to path #{path}"
|
|
25
27
|
end
|
|
26
28
|
|
|
27
29
|
Contract ArrayOf[Hash] => Any
|
|
28
30
|
def self.setup(repositories)
|
|
29
31
|
progress = ProgressBar.new repositories.length
|
|
30
32
|
repositories.each do |repo|
|
|
31
|
-
# binding.pry
|
|
32
33
|
path = "#{Settings.workspace}/#{repo[:origin][:name]}"
|
|
33
34
|
clone repo[:origin][:ssh_url], path
|
|
34
35
|
configure_remotes path, repo[:origin][:ssh_url], repo[:upstream][:ssh_url]
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: git-ready
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Olstrom
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-07-
|
|
11
|
+
date: 2015-07-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: contracts
|