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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4899dbf25f5ee6d5b619afe9b33efbcec40d3b77
4
- data.tar.gz: 7b96e7efe2c3e3a13d3a8993c8d0e542179c214d
3
+ metadata.gz: e877dc0fd456d545cfb2c13f6aa66370e62c6305
4
+ data.tar.gz: 28e16a3f6a1c0a424f4ba979f7b0836ecc0d2f89
5
5
  SHA512:
6
- metadata.gz: 4147981459c281736f615d3f772b1f30fa77a8bb899a5761347ec17774f66fa3e9650b8146a882fa642359b784a65f393a866b303f89e7fc0a6cd6503969c46c
7
- data.tar.gz: 25333887c3a51ae8f5ab38003189c59da2a3bfa36e8412a4411de6a1f651de132927b59d6de6194dfc93a343acca43fe3de6baffcba6f35028d0a2453d7e277f
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.co"
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")
@@ -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 Timeout::Error, Git::GitExecuteError
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)
@@ -1,3 +1,3 @@
1
1
  module LearnOpen
2
- VERSION = '1.1.55'
2
+ VERSION = '1.1.56'
3
3
  end
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.55
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-08 00:00:00.000000000 Z
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.co
102
+ homepage: https://github.com/learn-co/learn-open
103
103
  licenses:
104
104
  - MIT
105
105
  metadata: {}