lita-estimate 0.1.1 → 0.1.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/lib/lita/handlers/estimate.rb +2 -2
- data/lita-estimate.gemspec +1 -1
- data/spec/lita/handlers/estimate_spec.rb +4 -2
- 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: ffad518329321f3ea4cbf58f0a119ff0bbc22b7b
|
4
|
+
data.tar.gz: 070272665195127a245e87d95296fa75ead1205a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6cdf9ff7296922d4262ee4c1765c81c2c0ea76a8a47efcd92d91750ffa1885238ec4aed536c889fdc13e2ca4716030cc59b05ad5706012d75a4acdb36ebe85f
|
7
|
+
data.tar.gz: aa01a3166fc84803f4ef3219e81417ed963c649a3092f4076bc6413f75acfc4648249482f44b853b2a3995391df6a1db1a4222f6d9f1a13a2701fb7eeb0af00e
|
@@ -2,8 +2,8 @@ module Lita
|
|
2
2
|
module Handlers
|
3
3
|
class Estimate < Handler
|
4
4
|
|
5
|
-
route /estimate (
|
6
|
-
route /(
|
5
|
+
route /estimate ([A-Za-z0-9_.-]+) as (\d+)/, :estimate, command: true, help: {"estimate STORY_ID as FIBONACCI_NUMBER" => "Records your estimate for the story"}
|
6
|
+
route /([A-Za-z0-9_.-]+) estimates/, :show_estimates, command: true, help: {"STORY_ID estimates" => "Lists all estimates for the story and their average"}
|
7
7
|
|
8
8
|
def estimate(response)
|
9
9
|
story, points = response.matches.first
|
data/lita-estimate.gemspec
CHANGED
@@ -4,8 +4,10 @@ describe Lita::Handlers::Estimate, lita_handler: true do
|
|
4
4
|
|
5
5
|
describe "routing" do
|
6
6
|
|
7
|
-
|
8
|
-
|
7
|
+
['US123', 'us123', 'SEARCH-01', 'SEARCH_02', 'SEARCH.2.1'].each do |story_format|
|
8
|
+
it { is_expected.to route_command("estimate #{story_format} as 1").to(:estimate) }
|
9
|
+
it { is_expected.to route_command("#{story_format} estimates").to(:show_estimates) }
|
10
|
+
end
|
9
11
|
|
10
12
|
end
|
11
13
|
|