learn-open 1.1.56 → 1.1.57
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/lib/learn_open/opener.rb +11 -0
- data/lib/learn_open/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: 9bf065df8624e78cc8719eb490875aa9aa37f454
|
|
4
|
+
data.tar.gz: e391cf5d3afe82ba6e0235ef328d9ca5258bdd1c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 369602ed4a34d85ea275a58e8d693a317dcebdeecf0d6f6331de115eb43ef0bb83fb71de31f79b1b0cebb6d96653431010abeda223ededec3b56a5f26faa2483
|
|
7
|
+
data.tar.gz: fcd08902cff1fa8b6d604145ecbd0aef6a5fa0491b85900a22a0cac8f7c9a23f78d43b3e9f19434d8654b7431c723f4ae713d4dea3abbda57f745894d4144cbf
|
data/lib/learn_open/opener.rb
CHANGED
|
@@ -241,6 +241,17 @@ module LearnOpen
|
|
|
241
241
|
File.write(file_path, 'ERROR: Problem parsing lesson data. Try again.')
|
|
242
242
|
exit
|
|
243
243
|
end
|
|
244
|
+
rescue NoMethodError => e
|
|
245
|
+
if xcodeproj_file? || xcworkspace_file?
|
|
246
|
+
true
|
|
247
|
+
elsif e.message.match(/for false:FalseClass/)
|
|
248
|
+
false
|
|
249
|
+
else
|
|
250
|
+
puts "Sorry, there seems to be a problem with this lesson. Please submit a bug report to bugs@learn.co and try again later."
|
|
251
|
+
puts "If you'd like to work on your next lesson now, type: learn next"
|
|
252
|
+
File.write(file_path, 'ERROR: Problem parsing lesson data. Try again.')
|
|
253
|
+
exit
|
|
254
|
+
end
|
|
244
255
|
end
|
|
245
256
|
end
|
|
246
257
|
|
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.57
|
|
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-
|
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|