submit_hw 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/submit_hw +4 -4
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 713d8924dcf84b32d0445384994d5ca8d0d9db77
|
4
|
+
data.tar.gz: 291390343c692d20c6487e0eec80a8c6e757677b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a3d7e25fab452ab3f68c41c64d6f97639eaeeb0e6527dbc0601d9549c1c5483ee7f3797822dfdcc618b91375c0849bf84f2a07ef3952929ce829ecddd300d41
|
7
|
+
data.tar.gz: 4e91e328cd3949f777957f2d280c1772acf82431d9599d7d89a0951994d04193e542d82823b913c41fd5800d93b4e39154145a6e2975f76d289bdaf53fd9fdc5
|
data/bin/submit_hw
CHANGED
@@ -11,7 +11,7 @@ require "json"
|
|
11
11
|
require "yaml"
|
12
12
|
require "io/console"
|
13
13
|
|
14
|
-
#
|
14
|
+
# handle command line options
|
15
15
|
if ARGV[0] == "--debug"
|
16
16
|
puts "(running in debug mode...)".yellow
|
17
17
|
require "pry"
|
@@ -37,7 +37,7 @@ ARGV.clear # clean out arguments from $stdin so they don't get `gets`-ed below
|
|
37
37
|
# system("export HUMAN_NAME=#{human_name}")
|
38
38
|
# system("echo '\nexport HUMAN_NAME=#{human_name}\n' >> ~/.bash_profile")
|
39
39
|
# end
|
40
|
-
#
|
40
|
+
#
|
41
41
|
# def prompt_to_reload
|
42
42
|
# puts "WARNING: this script changed your ~/.bash_profile file." + \
|
43
43
|
# " When possible immediately run the following command:".yellow
|
@@ -64,7 +64,7 @@ if output.empty?
|
|
64
64
|
debug "new user.humanname: #{output}"
|
65
65
|
end
|
66
66
|
|
67
|
-
# Ensure their gitconfig has a "name" entry with their GH username, and if not,
|
67
|
+
# Ensure their gitconfig has a "name" entry with their GH username, and if not,
|
68
68
|
# add it.
|
69
69
|
output = `git config --get user.name`
|
70
70
|
debug "user.name: #{output}"
|
@@ -170,7 +170,7 @@ end
|
|
170
170
|
|
171
171
|
# Get the necessary data to form a commit message.
|
172
172
|
human_name = `git config --get user.humanname`.chomp
|
173
|
-
github_name = `git config --get user.
|
173
|
+
github_name = `git config --get user.github`.chomp.downcase
|
174
174
|
branch = "#{upstream}:#{github_name}"
|
175
175
|
submitted_at = Time.now.strftime("%H:%m")
|
176
176
|
submitted_on = Time.now.strftime('%Y-%m-%d')
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeffrey Konowitch
|
@@ -9,10 +9,11 @@ authors:
|
|
9
9
|
- Phillip Lamplugh
|
10
10
|
- Travis Vander Hoop
|
11
11
|
- Neel Patel
|
12
|
+
- Dennis Liaw
|
12
13
|
autorequire:
|
13
14
|
bindir: bin
|
14
15
|
cert_chain: []
|
15
|
-
date: 2015-04-
|
16
|
+
date: 2015-04-24 00:00:00.000000000 Z
|
16
17
|
dependencies:
|
17
18
|
- !ruby/object:Gem::Dependency
|
18
19
|
name: hub
|