submit_hw 0.1.6 → 0.1.7
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 +7 -7
- data/lib/submit_hw/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c46e5db7f36cfb11db9eb44d4911c94a8216aa10
|
4
|
+
data.tar.gz: 6d0172ff8100148a253cea59cfec883bb5ac510c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
191
|
-
|
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
|
-
|
196
|
-
debug "
|
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"
|
data/lib/submit_hw/version.rb
CHANGED
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.
|
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-
|
16
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: hub
|