learn-open 1.1.0 → 1.1.1

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: 069ee8a90603867e8bb20af71a1ac6ba25d6ad41
4
- data.tar.gz: aae6a5eb1ece18870d5e5abc3c4317261eaa001a
3
+ metadata.gz: 14be7fb505718eb64a8458a4dba36707d46a6ecd
4
+ data.tar.gz: aafa93acb1ff996563a71cdba35237a9632026da
5
5
  SHA512:
6
- metadata.gz: e463a05d8fb609afed614cf4ced00d4b6c73aa534f3d79730971b0dc28871283864cd4aa1efc136b32f51c01bf93fe8f5f666e1ade76fe37d9ed4a8e1384fbe0
7
- data.tar.gz: 7fd09c77afcd23dd52f5004d6a15cecb0a54e811c6ea875abf22484228f265639797468d413899299a6783f5a0a37cde2a18d979e6b147ed518a0e83376c9bc4
6
+ metadata.gz: 14da2ad19d5de4f55d3b2274be9ce18cb02118f08fe97e2f616592c42c0010c87a4bcd1da633a2112971768b73947ba5c09523f0495254446a08885ccc09146f
7
+ data.tar.gz: 86949c4c003548574699e6e2383a1814bbdf22280b1ba9269befac1258ea7947b5b09b964b5203bcf17375b1a3910c6df083b8981b61b5100a9039b671597acc
@@ -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 "There seems to be a problem with this lesson. Please submit a bug report to bugs@learn.co. If you'd like to work on your next lesson, type: learn next"
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
@@ -1,3 +1,3 @@
1
1
  module LearnOpen
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn-open
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School