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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/submit_hw +4 -4
  3. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d8dc8df93f67d123b29dd4743b932f425bb6b843
4
- data.tar.gz: 2b197f2cc31367bcfec66b6442f1afcde4972208
3
+ metadata.gz: 713d8924dcf84b32d0445384994d5ca8d0d9db77
4
+ data.tar.gz: 291390343c692d20c6487e0eec80a8c6e757677b
5
5
  SHA512:
6
- metadata.gz: e4a43288af0d38df003efb7db81d5f440caf202cb5092344aa5a37cc0eb5d8988c3f9976337bb26726cf03c528167aad75b3aa47f5212158720a7884367b341c
7
- data.tar.gz: d57f1efd30a7bf00a337d26897a8581646f8a53538c262503d44179b8ded0218bcf2d0803f71c029e3b54743fc190c5b8a1e1c02c1d122fe3fbf7a4b13c228aa
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
- # require development dependencies
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.name`.chomp
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.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-23 00:00:00.000000000 Z
16
+ date: 2015-04-24 00:00:00.000000000 Z
16
17
  dependencies:
17
18
  - !ruby/object:Gem::Dependency
18
19
  name: hub