Skip to content

Commit

Permalink
Update documentation for new Unicode-supporting pattern and bump vers…
Browse files Browse the repository at this point in the history
…ion to 2.1.0.
  • Loading branch information
jimmycuadra committed Feb 6, 2014
1 parent bc820fc commit 6e61854
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.


Expand Down
4 changes: 2 additions & 2 deletions lita-karma.gemspec
Original file line number Diff line number Diff line change
@@ -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 = ["[email protected]"]
spec.description = %q{A Lita handler for tracking karma points for arbitrary terms.}
Expand All @@ -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"
Expand Down
1 change: 0 additions & 1 deletion spec/lita/handlers/karma_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# Encoding: UTF-8
require "spec_helper"

describe Lita::Handlers::Karma, lita_handler: true do
Expand Down

0 comments on commit 6e61854

Please sign in to comment.