diff --git a/README.md b/README.md index 8903362..83a4d4b 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ gem "lita-karma" ### Optional attributes * `cooldown` (Integer, nil) - Controls how long a user must wait after modifying a term before they can modify it again. The value should be an integer number of seconds. Set it to `nil` to disable rate limiting. Default: `300` (5 minutes. -* `term_pattern` (Regexp) - Determines what Lita will recognize as a valid term for tracking karma. Default: `//[\[\]\w\._|\{\}]{2,}/`. +* `term_pattern` (Regexp) - Determines what Lita will recognize as a valid term for tracking karma. Default: `/[\[\]\p{Word}\._|\{\}]{2,}/`. * `term_normalizer` (Proc) - A custom callable that determines how each term will be normalized before being stored in Redis. The proc should take one argument, the term as matched via regular expression, and return one value, the normalized version of the term. diff --git a/lita-karma.gemspec b/lita-karma.gemspec index 5de9dad..a2133ca 100644 --- a/lita-karma.gemspec +++ b/lita-karma.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = "lita-karma" - spec.version = "2.0.1" + spec.version = "2.1.0" spec.authors = ["Jimmy Cuadra"] spec.email = ["jimmy@jimmycuadra.com"] spec.description = %q{A Lita handler for tracking karma points for arbitrary terms.} @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] - spec.add_runtime_dependency "lita", "~> 2.6" + spec.add_runtime_dependency "lita", ">= 2.6" spec.add_development_dependency "bundler", "~> 1.3" spec.add_development_dependency "rake" diff --git a/spec/lita/handlers/karma_spec.rb b/spec/lita/handlers/karma_spec.rb index a1305d6..3456d1a 100644 --- a/spec/lita/handlers/karma_spec.rb +++ b/spec/lita/handlers/karma_spec.rb @@ -1,4 +1,3 @@ -# Encoding: UTF-8 require "spec_helper" describe Lita::Handlers::Karma, lita_handler: true do