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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc8d5f061f0255fd0fdbee8509e17ac02ed577b0
4
- data.tar.gz: edd47509de38150bb42a63bb4373ac5115685ef1
3
+ metadata.gz: a175d698b07799d65fcd6db20e6c05c5044f9b8e
4
+ data.tar.gz: 2e9332d1aaf5bffa558d251d77c7bc703ab52c6a
5
5
  SHA512:
6
- metadata.gz: 282dc8ae0dae8400e6285af1b19e9fe7cd1b59a27e3420eaf91cbc1529fdab435e214c0b3b9508f70dce812980ce0ed6476e851e3769c17336fe170bad745387
7
- data.tar.gz: 11afeaad757ed3ed542b2478374fb7795cedcf13d555a15b9b03ae6fe848f02525f84f6ca55dec7cc340e9741e1351542077bd032397fee6756bc1407a897186
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 ("You already have an outstanding pull request," + \
203
- "\nand now it's been updated! Have a great day.").green
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 ("We may not have an upstream branch for you yet. " + \
206
- "Contact your Instructors!").red
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 "You haven't commited any changes.".red
213
+ puts "\nYou haven't commited any changes.".red
210
214
  else
211
- puts "Thanks for submitting your homework.".green
215
+ puts "\nThanks for submitting your homework.".green
212
216
  end
@@ -1,3 +1,3 @@
1
1
  module SubmitHw
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: submit_hw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Konowitch