wdi-submit 0.0.1 → 0.0.2
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/wdi-submit +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4f3431a842664e94a1af28af2e454eef9f38ac5
|
|
4
|
+
data.tar.gz: 8a8ed06ba559459834e5099ed9132f5ffbc4731f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 67125a58363d29f59033150c75e17b0acf9d1bee8d77e2eb059931cec158c4009feeface9924e19c4cfe49f3d05a364b652b38e29adb2ffa29cdf96017fc449c
|
|
7
|
+
data.tar.gz: f23ffde71d0ea2af076c1d902fea2c17262c99b6f42bec73cacdbcab5dcfa7a49b81b854351b307bbe6070ec799862881ceb2e4528053095210a3fb366ae4988
|
data/bin/wdi-submit
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
require 'json'
|
|
3
3
|
|
|
4
|
-
hub_not_installed = `
|
|
4
|
+
hub_not_installed = `which hub`.empty?
|
|
5
5
|
|
|
6
6
|
if hub_not_installed
|
|
7
7
|
puts "Please install the \`hub\` utility."
|
|
@@ -11,10 +11,12 @@ end
|
|
|
11
11
|
data = {}
|
|
12
12
|
|
|
13
13
|
puts "Completeness [1 - 5]"
|
|
14
|
-
data["completeness"] = gets.gsub(/\W+/, '')
|
|
14
|
+
data["completeness"] = gets.gsub(/\W+/, '').to_i
|
|
15
15
|
|
|
16
16
|
puts "Comfortability [1 - 5]"
|
|
17
|
-
data["comfortability"] = gets.gsub(/\W+/, '')
|
|
17
|
+
data["comfortability"] = gets.gsub(/\W+/, '').to_i
|
|
18
|
+
|
|
19
|
+
puts "Invalid (only 1 - 5)" and exit(false) unless data.values.all? { |n| (0..5).member?(n) }
|
|
18
20
|
|
|
19
21
|
github_name = `git config --get user.name`.strip
|
|
20
22
|
upstream = `git config --get remote.upstream.url`.strip.match(/:(.*[^\.git])/).captures.first
|