wdi-submit 0.0.1

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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/wdi-submit +23 -0
  3. metadata +46 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0dd756a8289306d03c9e90b8c4b70a7af89d11ef
4
+ data.tar.gz: b9a5d1ecd7325b77c05d8847297919c3fc6feb5f
5
+ SHA512:
6
+ metadata.gz: 735fdf83f20c6caf236704b34d0942430d3958def73448d4287401575dfc6b4040ae6fdc0f8827b8ccec1dc7e6a8b079c21fcb8873740453417250d3b6eb0bd4
7
+ data.tar.gz: 4e392174c0dbceb81cd5af657d7c9841f641317a482a093702a7046d32442131abad2766ec0bc0624efb3e35a0e0c364bffd1f0a4d10847f03bb5b49de30909b
data/bin/wdi-submit ADDED
@@ -0,0 +1,23 @@
1
+ #!/usr/bin/env ruby
2
+ require 'json'
3
+
4
+ hub_not_installed = `brew list --versions hub`.empty?
5
+
6
+ if hub_not_installed
7
+ puts "Please install the \`hub\` utility."
8
+ exit(false)
9
+ end
10
+
11
+ data = {}
12
+
13
+ puts "Completeness [1 - 5]"
14
+ data["completeness"] = gets.gsub(/\W+/, '')
15
+
16
+ puts "Comfortability [1 - 5]"
17
+ data["comfortability"] = gets.gsub(/\W+/, '')
18
+
19
+ github_name = `git config --get user.name`.strip
20
+ upstream = `git config --get remote.upstream.url`.strip.match(/:(.*[^\.git])/).captures.first
21
+ branch = "#{upstream}:#{github_name}"
22
+
23
+ puts `hub pull-request -m $'HW #{Time.now.strftime('%Y-%m-%d')}\n\n#{data.to_json}' -b '#{branch}'`
metadata ADDED
@@ -0,0 +1,46 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wdi-submit
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Jeffrey Konowitch
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-07-31 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: ''
14
+ email: jeff.konowitch@ga.co
15
+ executables:
16
+ - wdi-submit
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - "./bin/wdi-submit"
21
+ - bin/wdi-submit
22
+ homepage: https://github.com/jkonowitch/submit_hw
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message:
27
+ rdoc_options: []
28
+ require_paths:
29
+ - lib
30
+ required_ruby_version: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: '0'
35
+ required_rubygems_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ requirements: []
41
+ rubyforge_project:
42
+ rubygems_version: 2.2.1
43
+ signing_key:
44
+ specification_version: 4
45
+ summary: Submitting homework for GA's WDI.
46
+ test_files: []