lita-estimate 0.1.1 → 0.1.2

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: 41de7683e7304d3516be6415d3016cea50c3c8b2
4
- data.tar.gz: b5c595debb988f0dcda69a3f8efd45450fc29fe7
3
+ metadata.gz: ffad518329321f3ea4cbf58f0a119ff0bbc22b7b
4
+ data.tar.gz: 070272665195127a245e87d95296fa75ead1205a
5
5
  SHA512:
6
- metadata.gz: c1a180364e5b0aae3367e61eab23c9bdf436672de70e4673fad1301798f700f1c3faf1b7b0bac765f43bb81c40e92d237957dd2397931cd8331d95e753410621
7
- data.tar.gz: 66d15e1abe080b36d8c5d1beaf5daf5d0a2aa759363e2ddb00d84dda23f6a0ca100a9664826bb8ae8313a448e9e7549ece693f27d9ec597aab93125e78e4372f
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 (US\d+) as (\d+)/, :estimate
6
- route /(US\d+) estimates/, :show_estimates
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-estimate"
3
- spec.version = "0.1.1"
3
+ spec.version = "0.1.2"
4
4
  spec.authors = ["Ingo Weiss"]
5
5
  spec.email = ["ingo@ingoweiss.com"]
6
6
  spec.description = "Just a silly little Lita plugin for estimation"
@@ -4,8 +4,10 @@ describe Lita::Handlers::Estimate, lita_handler: true do
4
4
 
5
5
  describe "routing" do
6
6
 
7
- it { is_expected.to route_command("estimate US123 as 1").to(:estimate) }
8
- it { is_expected.to route_command("US123 estimates").to(:show_estimates) }
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-estimate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ingo Weiss