submit_hw 0.1.6 → 0.1.7

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: a175d698b07799d65fcd6db20e6c05c5044f9b8e
4
- data.tar.gz: 2e9332d1aaf5bffa558d251d77c7bc703ab52c6a
3
+ metadata.gz: c46e5db7f36cfb11db9eb44d4911c94a8216aa10
4
+ data.tar.gz: 6d0172ff8100148a253cea59cfec883bb5ac510c
5
5
  SHA512:
6
- metadata.gz: e829a9f4b328e4647fe38f46148e08386b4c23256bf6163fe072e93116120b265a7a5fe54ba9b17505211f42cb66c0e8c63823730c1caf4f317dde8a9f42732c
7
- data.tar.gz: 1c76398f62ededdba74ff08202670831779720b6d7efc36537943eb3bc1c2c21985f30dbc8c9a6bcc12206d10fa0a253590dfcf127e860b45a29864b8c109f4f
6
+ metadata.gz: f596678952475070280983668fcb7e9107629ae51f373134d9f4701c4cc856afe598126da62d0232695a3dd6923731334a7896b5a7fe0cc01f1135ac04c8ef53
7
+ data.tar.gz: 6cf702a758315a20e0b30a8d47b585dce2e8f7abe60febe4378808c55dd350823586cb985bb251e740c7bb42a043c9eab03c00d3e4e3c7281e0dc42a98b0ae70
data/bin/submit_hw CHANGED
@@ -68,7 +68,7 @@ debug "user.humanname: #{output}"
68
68
  if output.empty?
69
69
  print "Please enter your full, human name: "
70
70
  human_name = gets.chomp
71
- output = `git config --add user.humanname '#{human_name}'`
71
+ output = `git config --add user.humanname '#{human_name}'`
72
72
  debug "new user.humanname: #{output}"
73
73
  end
74
74
 
@@ -187,15 +187,15 @@ message = "HW for #{human_name}: #{submitted_on} at #{submitted_at}" + \
187
187
 
188
188
  # Push to their fork.
189
189
  puts "Pushing your work to your fork...\n"
190
- push_msg = `git push origin master 2>&1`
191
- debug "push output: #{push_msg}" #|| puts # spacin' it out bru
190
+ tag = Time.now.strftime("%m-%d-%Y-%I:%M%P")
191
+ tag_msg = `git tag -f #{tag}`
192
+ push_msg = `git push origin master --tags 2>&1`
193
+ debug "push_message: #{push_msg}" #|| puts # spacin' it out bru
192
194
 
193
195
  # Submit PR to class repo in their GH named branch
194
196
  puts "Submitting a pull request...\n"
195
- debug "pr branch: #{branch}"
196
- debug "pr message: #{message.split("\n").first}"
197
- submission_msg = `hub pull-request -m '#{message}' -b '#{branch}' 2>&1`
198
- debug "pr output: #{submission_msg}"
197
+ submission_msg = `hub pull-request -m '#{message}' -b '#{branch}' -h #{tag} 2>&1`
198
+ debug "pr_message: #{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"
@@ -1,3 +1,3 @@
1
1
  module SubmitHw
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
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.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeffrey Konowitch
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2015-04-30 00:00:00.000000000 Z
16
+ date: 2015-05-07 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: hub