learn-open 1.1.55 → 1.1.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/learn-open.gemspec +1 -1
- data/lib/learn_open/opener.rb +11 -1
- data/lib/learn_open/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e877dc0fd456d545cfb2c13f6aa66370e62c6305
|
4
|
+
data.tar.gz: 28e16a3f6a1c0a424f4ba979f7b0836ecc0d2f89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9dbfc707fb099fd1077f346ff638034d42262bedc7249991fcfea57a74df8d3c8ac5f3979df4a0d549e1281819b24379e7aaa2c2c27e9dd0caa1fd098dd85e9
|
7
|
+
data.tar.gz: 5d593d885a9a6e993cb891d4e9c01cf482485251e76e60376ce5b85bb436f6ad30fb3f40417dc5273d988e459cd8e9ec088aa01566322cdfced3b203a19ffd90
|
data/learn-open.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Flatiron School"]
|
10
10
|
spec.email = ["learn@flatironschool.com"]
|
11
11
|
spec.summary = %q{Open Learn lessons locally}
|
12
|
-
spec.homepage = "https://learn
|
12
|
+
spec.homepage = "https://github.com/learn-co/learn-open"
|
13
13
|
spec.license = "MIT"
|
14
14
|
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
data/lib/learn_open/opener.rb
CHANGED
@@ -191,7 +191,17 @@ module LearnOpen
|
|
191
191
|
Timeout::timeout(15) do
|
192
192
|
Git.clone("git@github.com:#{lesson}.git", repo_dir, path: lessons_dir)
|
193
193
|
end
|
194
|
-
rescue
|
194
|
+
rescue Git::GitExecuteError
|
195
|
+
if retries > 0
|
196
|
+
puts "There was a problem cloning this lesson. Retrying..." if retries > 1
|
197
|
+
sleep(1)
|
198
|
+
clone_repo(retries-1)
|
199
|
+
else
|
200
|
+
puts "Cannot clone this lesson right now. Please try again."
|
201
|
+
File.write(file_path, 'ERROR: Error cloning. Try again.')
|
202
|
+
exit
|
203
|
+
end
|
204
|
+
rescue Timeout::Error
|
195
205
|
if retries > 0
|
196
206
|
puts "There was a problem cloning this lesson. Retrying..."
|
197
207
|
clone_repo(retries-1)
|
data/lib/learn_open/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn-open
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.56
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flatiron School
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-10-
|
11
|
+
date: 2015-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -99,7 +99,7 @@ files:
|
|
99
99
|
- lib/learn_open/argument_parser.rb
|
100
100
|
- lib/learn_open/opener.rb
|
101
101
|
- lib/learn_open/version.rb
|
102
|
-
homepage: https://learn
|
102
|
+
homepage: https://github.com/learn-co/learn-open
|
103
103
|
licenses:
|
104
104
|
- MIT
|
105
105
|
metadata: {}
|