pain 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +3 -0
- data/README.md +2 -0
- data/bin/.rubocop.yml +4 -0
- data/bin/pain +20 -8
- data/lib/pain.rb +1 -1
- data/lib/pain/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 18ce563eae08ef8d490873ac46bbdb7956db3c22
|
4
|
+
data.tar.gz: 718e6be6cc82460d955b024cbdd740e7510c0f2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e1604a734977f2db5d5f5becbf3f94968635185eb013ea9a7dabd6261e619ae530f3029296601b586a0f4bec68587ae5b6e3d39ab2ebbe7a15b2321e6205c4d
|
7
|
+
data.tar.gz: 6bc02a62493ae684f9fb7e447d6c36ff5f83581e750fae359abc35b62a90ad4118994761527963639238cf0d25ce1ca2d4b7b061ee897ae8cbe68cf6e8a30f10
|
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
@@ -3,6 +3,8 @@
|
|
3
3
|
Quickly gauge the User Pain a bug will cause.
|
4
4
|
Basically stolen from http://www.lostgarden.com/2008/05/improving-bug-triage-with-user-pain.html
|
5
5
|
|
6
|
+
[![Code Climate](https://codeclimate.com/github/anicholson/pain.png)](https://codeclimate.com/github/anicholson/pain)
|
7
|
+
|
6
8
|
## Installation
|
7
9
|
|
8
10
|
Install it yourself as:
|
data/bin/.rubocop.yml
ADDED
data/bin/pain
CHANGED
@@ -87,9 +87,9 @@ def print_report_for(o)
|
|
87
87
|
hash
|
88
88
|
end
|
89
89
|
|
90
|
-
color_output "Type: #{o[:bug_type]} - #{Pain::OPTIONS[:bug_type][o[:bug_type]]}", levels[:bug_type]
|
90
|
+
color_output "Type: #{o[:bug_type]} - #{Pain::OPTIONS[:bug_type][o[:bug_type]]}" , levels[:bug_type]
|
91
91
|
color_output "Likelihood: #{o[:likelihood]} - #{Pain::OPTIONS[:likelihood][o[:likelihood]]}", levels[:likelihood]
|
92
|
-
color_output "Impact: #{o[:impact]} - #{Pain::OPTIONS[:impact][o[:impact]]}", levels[:impact]
|
92
|
+
color_output "Impact: #{o[:impact]} - #{Pain::OPTIONS[:impact][o[:impact]]}" , levels[:impact]
|
93
93
|
puts
|
94
94
|
color_output "User Pain: #{pain}", total_danger(pain)
|
95
95
|
end
|
@@ -97,18 +97,30 @@ end
|
|
97
97
|
options = {}
|
98
98
|
|
99
99
|
OptionParser.new do |opts|
|
100
|
-
opts.on(
|
101
|
-
|
100
|
+
opts.on(
|
101
|
+
'-l',
|
102
|
+
'--likelihood [LIKELIHOOD]',
|
103
|
+
OptionParser::DecimalInteger,
|
104
|
+
Pain::INPUT_MESSAGE[:likelihood]
|
105
|
+
) do |like|
|
102
106
|
options[:likelihood] = Pain.normalize(like, :likelihood)
|
103
107
|
end
|
104
108
|
|
105
|
-
opts.on(
|
106
|
-
|
109
|
+
opts.on(
|
110
|
+
'-i',
|
111
|
+
'--impact [IMPACT]',
|
112
|
+
OptionParser::DecimalInteger,
|
113
|
+
Pain::INPUT_MESSAGE[:impact]
|
114
|
+
) do |impact|
|
107
115
|
options[:impact] = Pain.normalize(impact, :impact)
|
108
116
|
end
|
109
117
|
|
110
|
-
opts.on(
|
111
|
-
|
118
|
+
opts.on(
|
119
|
+
'-t',
|
120
|
+
'--type [TYPE]',
|
121
|
+
OptionParser::DecimalInteger,
|
122
|
+
Pain::INPUT_MESSAGE[:bug_type]
|
123
|
+
) do |bug_type|
|
112
124
|
options[:bug_type] = Pain.normalize(bug_type, :bug_type)
|
113
125
|
end
|
114
126
|
end.parse!
|
data/lib/pain.rb
CHANGED
@@ -34,7 +34,7 @@ module Pain
|
|
34
34
|
},
|
35
35
|
|
36
36
|
impact: {
|
37
|
-
1 => 'Nuisance: not a big deal
|
37
|
+
1 => 'Nuisance: not a big deal but noticeable.',
|
38
38
|
2 => 'A Pain: Users won\'t like this once they notice it.',
|
39
39
|
3 => 'Affects Buy-in. Will show up in review. Clearly noticeable.',
|
40
40
|
4 => 'A user would return the product. Should not deploy until fixed',
|
data/lib/pain/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pain
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Nicholson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: term-ansicolor
|
@@ -126,6 +126,7 @@ description: 'Based on http://www.lostgarden.com/2008/05/improving-bug-triage-wi
|
|
126
126
|
email:
|
127
127
|
- andrew@anicholson.net
|
128
128
|
executables:
|
129
|
+
- .rubocop.yml
|
129
130
|
- pain
|
130
131
|
extensions: []
|
131
132
|
extra_rdoc_files: []
|
@@ -137,6 +138,7 @@ files:
|
|
137
138
|
- LICENSE.txt
|
138
139
|
- README.md
|
139
140
|
- Rakefile
|
141
|
+
- bin/.rubocop.yml
|
140
142
|
- bin/pain
|
141
143
|
- lib/pain.rb
|
142
144
|
- lib/pain/version.rb
|