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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d82939d4bae35504e839fc0118e27f73ea0df02
4
- data.tar.gz: 0425ba7e11bf078c0f27c6a402e2d2c176700c47
3
+ metadata.gz: 18ce563eae08ef8d490873ac46bbdb7956db3c22
4
+ data.tar.gz: 718e6be6cc82460d955b024cbdd740e7510c0f2e
5
5
  SHA512:
6
- metadata.gz: 7274c6e4e5ff75ca1470afd5e01af84ffd4b3e8f7915e19c734ef419ef8d5ec3000aaf1b3273f228107914572b01cdeb4ced2b76757d18cd30db2bcc466b419f
7
- data.tar.gz: 2adcf6c499b2315e5c1354bc8cc4b4c34268312ea616a8892ba43b1a639a226fa4796c8b07ba5c8c71bb57d5535258e087857e632895cab560ce3699c9a8efaf
6
+ metadata.gz: 1e1604a734977f2db5d5f5becbf3f94968635185eb013ea9a7dabd6261e619ae530f3029296601b586a0f4bec68587ae5b6e3d39ab2ebbe7a15b2321e6205c4d
7
+ data.tar.gz: 6bc02a62493ae684f9fb7e447d6c36ff5f83581e750fae359abc35b62a90ad4118994761527963639238cf0d25ce1ca2d4b7b061ee897ae8cbe68cf6e8a30f10
@@ -5,3 +5,6 @@ AllCops:
5
5
 
6
6
  Documentation:
7
7
  Enabled: false
8
+
9
+ MethodLength:
10
+ Max: 15
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:
@@ -0,0 +1,4 @@
1
+ inherit_from: ../.rubocop.yml
2
+
3
+ LineLength:
4
+ Max: 120
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('-l', '--likelihood [LIKELIHOOD]', OptionParser::DecimalInteger,
101
- Pain::INPUT_MESSAGE[:likelihood]) do |like|
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('-i', '--impact [IMPACT]', OptionParser::DecimalInteger,
106
- Pain::INPUT_MESSAGE[:impact]) do |impact|
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('-t', '--type [TYPE]', OptionParser::DecimalInteger,
111
- Pain::INPUT_MESSAGE[:bug_type]) do |bug_type|
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!
@@ -34,7 +34,7 @@ module Pain
34
34
  },
35
35
 
36
36
  impact: {
37
- 1 => 'Nuisance: not a big deal bug noticeable.',
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',
@@ -1,3 +1,3 @@
1
1
  module Pain
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
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.2
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-05-08 00:00:00.000000000 Z
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