learn-open 1.1.0 → 1.1.1
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 +8 -1
- data/lib/learn_open/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14be7fb505718eb64a8458a4dba36707d46a6ecd
|
|
4
|
+
data.tar.gz: aafa93acb1ff996563a71cdba35237a9632026da
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 14da2ad19d5de4f55d3b2274be9ce18cb02118f08fe97e2f616592c42c0010c87a4bcd1da633a2112971768b73947ba5c09523f0495254446a08885ccc09146f
|
|
7
|
+
data.tar.gz: 86949c4c003548574699e6e2383a1814bbdf22280b1ba9269befac1258ea7947b5b09b964b5203bcf17375b1a3910c6df083b8981b61b5100a9039b671597acc
|
data/lib/learn_open/opener.rb
CHANGED
|
@@ -87,6 +87,7 @@ module LearnOpen
|
|
|
87
87
|
get_current_lesson_forked_repo(retries-1)
|
|
88
88
|
else
|
|
89
89
|
puts "There seems to be a problem connecting to Learn. Please try again."
|
|
90
|
+
File.write(file_path, 'ERROR: Error connecting to Learn')
|
|
90
91
|
exit
|
|
91
92
|
end
|
|
92
93
|
end
|
|
@@ -103,6 +104,7 @@ module LearnOpen
|
|
|
103
104
|
get_next_lesson_forked_repo(retries-1)
|
|
104
105
|
else
|
|
105
106
|
puts "There seems to be a problem connecting to Learn. Please try again."
|
|
107
|
+
File.write(file_path, 'ERROR: Error connecting to Learn')
|
|
106
108
|
exit
|
|
107
109
|
end
|
|
108
110
|
end
|
|
@@ -123,6 +125,7 @@ module LearnOpen
|
|
|
123
125
|
correct_lesson(retries-1)
|
|
124
126
|
else
|
|
125
127
|
puts "Cannot connect to Learn right now. Please try again."
|
|
128
|
+
File.write(file_path, 'ERROR: Error connecting to Learn')
|
|
126
129
|
exit
|
|
127
130
|
end
|
|
128
131
|
end
|
|
@@ -142,6 +145,7 @@ module LearnOpen
|
|
|
142
145
|
fork_repo(retries-1)
|
|
143
146
|
else
|
|
144
147
|
puts "There is an issue connecting to Learn. Please try again."
|
|
148
|
+
File.write(file_path, 'ERROR: Error connecting to Learn')
|
|
145
149
|
exit
|
|
146
150
|
end
|
|
147
151
|
end
|
|
@@ -162,6 +166,7 @@ module LearnOpen
|
|
|
162
166
|
clone_repo(retries-1)
|
|
163
167
|
else
|
|
164
168
|
puts "Cannot clone this lesson right now. Please try again."
|
|
169
|
+
File.write(file_path, 'ERROR: Error cloning. Try again.')
|
|
165
170
|
exit
|
|
166
171
|
end
|
|
167
172
|
end
|
|
@@ -190,7 +195,9 @@ module LearnOpen
|
|
|
190
195
|
if xcodeproj_file? || xcworkspace_file?
|
|
191
196
|
true
|
|
192
197
|
else
|
|
193
|
-
puts "
|
|
198
|
+
puts "Sorry, there seems to be a problem with this lesson. Please submit a bug report to bugs@learn.co and try again later."
|
|
199
|
+
puts "If you'd like to work on your next lesson now, type: learn next"
|
|
200
|
+
File.write(file_path, 'ERROR: Problem parsing lesson data. Try again.')
|
|
194
201
|
exit
|
|
195
202
|
end
|
|
196
203
|
end
|
data/lib/learn_open/version.rb
CHANGED