submit_hw 0.1.5 → 0.1.6
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/bin/submit_hw +10 -6
- data/lib/submit_hw/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: a175d698b07799d65fcd6db20e6c05c5044f9b8e
|
|
4
|
+
data.tar.gz: 2e9332d1aaf5bffa558d251d77c7bc703ab52c6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e829a9f4b328e4647fe38f46148e08386b4c23256bf6163fe072e93116120b265a7a5fe54ba9b17505211f42cb66c0e8c63823730c1caf4f317dde8a9f42732c
|
|
7
|
+
data.tar.gz: 1c76398f62ededdba74ff08202670831779720b6d7efc36537943eb3bc1c2c21985f30dbc8c9a6bcc12206d10fa0a253590dfcf127e860b45a29864b8c109f4f
|
data/bin/submit_hw
CHANGED
|
@@ -199,14 +199,18 @@ debug "pr output: #{submission_msg}"
|
|
|
199
199
|
|
|
200
200
|
# Check the submission message to ensure there were no errors
|
|
201
201
|
if submission_msg.include? "pull request already exists"
|
|
202
|
-
puts ("
|
|
203
|
-
|
|
202
|
+
puts ("\nYou already have an outstanding pull request," + \
|
|
203
|
+
"\nand now it's been updated! Have a great day.").green
|
|
204
204
|
elsif submission_msg.include? "pull request: Unprocessable Entity (HTTP 422)"
|
|
205
|
-
puts ("
|
|
206
|
-
|
|
205
|
+
puts ("\nWe may not have an upstream branch for you yet. " + \
|
|
206
|
+
"Contact your Instructors!").red
|
|
207
|
+
elsif submission_msg.include? 'github.com///github.com'
|
|
208
|
+
print ("\nYou are using HTTPS to connect to upstream, but submit_hw" + \
|
|
209
|
+
"\nrequires you to use SSH. Update to SSH using this guide:").red + \
|
|
210
|
+
"\n\nhttps://help.github.com/articles/changing-a-remote-s-url\n\n"
|
|
207
211
|
elsif submission_msg.include? "No commits between"
|
|
208
212
|
# NOTE: (phlco) we'll ignore this for now bc we probably won't get this error.
|
|
209
|
-
puts "
|
|
213
|
+
puts "\nYou haven't commited any changes.".red
|
|
210
214
|
else
|
|
211
|
-
puts "
|
|
215
|
+
puts "\nThanks for submitting your homework.".green
|
|
212
216
|
end
|
data/lib/submit_hw/version.rb
CHANGED