lita-vader 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c4cd2d2d6c8dda73380c4c6158dc55be03ad48a
4
- data.tar.gz: 4b1fc0f83dd5d6beb0d6c769c286be6563d0e751
3
+ metadata.gz: 7be16b8a4501930a3f62ce7256dbce1590984563
4
+ data.tar.gz: fd6164f2f6f9babbd6561b787067b792ceb5039d
5
5
  SHA512:
6
- metadata.gz: 002c7872157bdf05dcf1f8c53033bbc776634e85666faba8fca9c9f0145744549029f82d57a0f0e6bda799d265422f703b02eef95095721939b7ddbfff03beee
7
- data.tar.gz: 4dc3982bd39fa230e24506b96692e168d35277dbc8e5cbbb087114fc491b25a3b2ebcf1bd0f920e998da66d178becf1dafdc0e651d2cd8ced6f323757c7f3792
6
+ metadata.gz: a118529962dc8d9842a256ca88879c8a53b776bd1df65a14edf919ecfbec23554cda45c842b820d446a6cd86cd4c50e59df96813fdeefd5fbba04b9140136939
7
+ data.tar.gz: 3f8616899afa0a9ff782149b182781bac4102d955d97f5c69d3d293e41b77dadfb45b4885af2b538406798be1fcf74b2a1770c80836b93ca227f9c1141743e33
@@ -1,7 +1,7 @@
1
1
  module Lita
2
2
  module Handlers
3
3
  class Vader < Handler
4
- route(/who is (.*)'s father\?/, :father, command: true, help: {
4
+ route(/who is (.*)['’]s father\?/, :father, command: true, help: {
5
5
  "who is USER's father?" => "Replies back with the suprising truth."
6
6
  })
7
7
 
data/lita-vader.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-vader"
3
- spec.version = "0.1.1"
3
+ spec.version = "0.1.2"
4
4
  spec.authors = ["Lee Jones", "Brian Pitts"]
5
5
  spec.description = %q{Lita handler to tell you who a user's father is}
6
6
  spec.summary = spec.description
@@ -2,10 +2,14 @@ require "spec_helper"
2
2
 
3
3
  describe Lita::Handlers::Vader, lita_handler: true do
4
4
 
5
- it 'routes questions about fathers' do
5
+ it 'routes questions with normal quotes' do
6
6
  expect(subject).to route_command("who is Luke's father?").to(:father)
7
7
  end
8
8
 
9
+ it 'routes questions with fancy quotes' do
10
+ expect(subject).to route_command("who is Luke’s father?").to(:father)
11
+ end
12
+
9
13
  describe 'father' do
10
14
  it "explains who a user's father is" do
11
15
  send_command("who is Luke's father?")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-vader
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
  - Lee Jones