lita-howlongtobeat 0.2.0 → 0.3.0

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: 91b6e19dc629d36b665cccd5803e18c774d03ad1
4
- data.tar.gz: 43348a2c88c171e3b41a0f707235465cfc538020
3
+ metadata.gz: 3d5777bc6a05d669d65225425e746b1f82e090b7
4
+ data.tar.gz: 661a69cf29bcd2ff8b163b480c0e7b31c6e26c30
5
5
  SHA512:
6
- metadata.gz: bb6d0666bfadc04662055f9371775400fdb849257ad344c5c5b5ae1e767c1dbb8a17f22674a16d6ba6414ac23d116aa194c50e70250ea2c7881cc037baf6cc43
7
- data.tar.gz: c9cc7264a66dc65561aa47a7444cd577d55fed7e3878f68a651e48add33b8c824962cd62d576eed235f1379091efd0048607a12aa03ed4671a0e72dc42247a94
6
+ metadata.gz: 7d27265d4477d02d3628f246da5c25eb45b82699f9ad05ee67ae6a4cddd5e56e383b119b4f54aca945429af42588150ef98b41781edc5add7e7b794afc0962a2
7
+ data.tar.gz: afd40476b0ae55cd5f458187273cfe509f02781da59f5b60e28a3246b88850c0881a23a671c410afcde92c8dc522a2bdae2840a807e582c0c5b5b1596a186d69
@@ -2,7 +2,7 @@ module Lita
2
2
  module Handlers
3
3
  class Howlongtobeat < Handler
4
4
 
5
- route(/^(?:hltp|howlongtobeat)\s+(.*)/i, :howlongtobeat, command: true, help: { t("help.howlongtobeat_key") => t("help.howlongtobeat_value")})
5
+ route(/^(?:hltp|hltb|howlongtobeat)\s+(.*)/i, :howlongtobeat, command: true, help: { t("help.howlongtobeat_key") => t("help.howlongtobeat_value")})
6
6
 
7
7
  def howlongtobeat(response)
8
8
  HowlongtobeatSearch.new(response.matches[0][0], http).print_result(response)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-howlongtobeat"
3
- spec.version = "0.2.0"
3
+ spec.version = "0.3.0"
4
4
  spec.authors = ["Magnus Skog"]
5
5
  spec.email = ["magnus.m.skog@gmail.com"]
6
6
  spec.description = "A Lita handler that returns the average number of hours required to beat a game from http://howlongtobeat.com"
@@ -3,6 +3,7 @@ require "spec_helper"
3
3
  describe Lita::Handlers::Howlongtobeat, lita_handler: true do
4
4
  it { is_expected.to route_command("howlongtobeat witcher 3").to(:howlongtobeat) }
5
5
  it { is_expected.to route_command("hltp witcher 3").to(:howlongtobeat) }
6
+ it { is_expected.to route_command("hltb witcher 3").to(:howlongtobeat) }
6
7
 
7
8
  describe "#howlongtobeat" do
8
9
  before :each do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-howlongtobeat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus Skog
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-17 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita