submit_hw 0.1.8 → 0.1.10

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: b9181ed3c789c3092bfb543a5b15cc53ea0bb446
4
- data.tar.gz: a4249239dfa76fc15356bc6342ad178d71093e6b
3
+ metadata.gz: a71f327503a722a82354b708cb80547b345dcd1f
4
+ data.tar.gz: 25a28469a1186219685acf7a3927c54532bf3d92
5
5
  SHA512:
6
- metadata.gz: b422b52026b8a7d296a895ba354f5c5a301d282fdb590fb5320477da7aa1e973aa1aed179bf7f9ec0c25a2bfa34174abcdf82442e9b46122925e39883f5508f1
7
- data.tar.gz: 030f7f4adae6a405ed97e2efa063af33f2630e92684761731a99695c283388802c37bd8c2673831d4cb6e22698dd6bd993a18597fe4ed2ef9b4dfb25608ed314
6
+ metadata.gz: 7d2ab43b20934e51f2fc6c815f74dbff8b080f1ae435e807f104f7087f7a50a5f8414480dbc822f365cd9a56101819d140bd4940dc34ef599d64a929b1f71c1d
7
+ data.tar.gz: b0c8cd748257f7834cba3856308d6db022d8eec803e06c79f02c83e3aa73da2c3f0e5ca2eb0afd3b1d6d4fa9aa5b4f1d543cbd6b4b53724e02e25b8e89f3dfab
data/bin/submit_hw CHANGED
@@ -93,7 +93,7 @@ unless File.exists? File.expand_path(".config/hub","~")
93
93
  username = gets.chomp
94
94
  print "Please enter your GitHub password: "
95
95
  password = $stdin.noecho(&:gets).chomp
96
- debug "uname:pass #{username}:#{password}" || puts # spacin' out bru!
96
+ debug("uname:pass #{username}:#{password}") || puts # spacin' out bru!
97
97
 
98
98
  client = Octokit::Client.new \
99
99
  :login => username,
@@ -180,7 +180,7 @@ end
180
180
  human_name = `git config --get user.humanname`.chomp
181
181
  github_name = `git config --get user.githubname`.chomp.downcase
182
182
  branch = "#{upstream}:#{github_name}"
183
- submitted_at = Time.now.strftime("%H:%m")
183
+ submitted_at = Time.now.strftime("%H:%M")
184
184
  submitted_on = Time.now.strftime('%Y-%m-%d')
185
185
  message = "HW for #{human_name}: #{submitted_on} at #{submitted_at}" + \
186
186
  "\n\n#{data.to_json}"
@@ -201,7 +201,7 @@ debug "pr_message: #{submission_msg}"
201
201
  if submission_msg.include? "pull request already exists"
202
202
  puts ("\nYou already have an outstanding pull request," + \
203
203
  "\nand now it's been updated! Have a great day.").green
204
- elsif submission_msg.include? "pull request: Unprocessable Entity (HTTP 422)"
204
+ elsif submission_msg.include? "Invalid value for \"base\""
205
205
  puts ("\nWe may not have an upstream branch for you yet. " + \
206
206
  "Contact your Instructors!").red
207
207
  elsif submission_msg.include? 'github.com///github.com'
@@ -209,7 +209,6 @@ elsif submission_msg.include? 'github.com///github.com'
209
209
  "\nrequires you to use SSH. Update to SSH using this guide:").red + \
210
210
  "\n\nhttps://help.github.com/articles/changing-a-remote-s-url\n\n"
211
211
  elsif submission_msg.include? "No commits between"
212
- # NOTE: (phlco) we'll ignore this for now bc we probably won't get this error.
213
212
  puts "\nYou haven't commited any changes.".red
214
213
  else
215
214
  puts "\nThanks for submitting your homework.".green
@@ -1,3 +1,3 @@
1
1
  module SubmitHw
2
- VERSION = "0.1.8"
3
- end
2
+ VERSION = "0.1.10"
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.8
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Konowitch
@@ -10,10 +10,11 @@ authors:
10
10
  - Travis Vander Hoop
11
11
  - Neel Patel
12
12
  - Dennis Liaw
13
+ - Jaden Carver
13
14
  autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
- date: 2015-05-08 00:00:00.000000000 Z
17
+ date: 2015-08-06 00:00:00.000000000 Z
17
18
  dependencies:
18
19
  - !ruby/object:Gem::Dependency
19
20
  name: hub
@@ -88,7 +89,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
88
89
  version: '0'
89
90
  requirements: []
90
91
  rubyforge_project:
91
- rubygems_version: 2.2.2
92
+ rubygems_version: 2.4.5
92
93
  signing_key:
93
94
  specification_version: 4
94
95
  summary: A script to submit homework for GA's WDI.