cinch-yaml-keywords 1.2.0 → 1.2.1

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.
data/README.md CHANGED
@@ -29,11 +29,11 @@ bot.start
29
29
 
30
30
  ```irc
31
31
  !keywords # list all definitions
32
- !keyword <keyword> # show single definition
33
- !keyword <keyword> <definition> # define without spaces
32
+ !keyword? <keyword> # show single definition
33
+ !keyword <keyword> <definition> # define without spaces
34
34
  !keyword '<keyword>' <definition> # define with spaces
35
35
  !keyword "<keyword>" <definition> # define with spaces
36
- !forget <keyword> # remove definition
36
+ !forget <keyword> # remove definition
37
37
  <keyword> # display definition
38
38
  ```
39
39
 
@@ -66,11 +66,11 @@ module Cinch
66
66
  m.message
67
67
  when /^!keywords/
68
68
  keywords(m)
69
- when /keyword '(.*)' (.+)$/, /keyword "(.*)" (.+)$/, /keyword (\S+) (.+)$/
69
+ when /^!keyword '(.+)' (.+)$/, /^!keyword "(.+)" (.+)$/, /^!keyword (\S+) (.+)$/
70
70
  keyword_define(m, $1, $2)
71
- when /keyword (\S+)$/, /keyword\? (\S+)$/
71
+ when /^!keyword (\S+)$/, /^!keyword\? (.+)$/
72
72
  keyword_check(m, $1)
73
- when /forget (\S+)$/
73
+ when /^!forget (.+)$/
74
74
  keyword_forget(m, $1)
75
75
  else
76
76
  find_keyword(m)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-yaml-keywords
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: