john-doe 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/default.yml CHANGED
@@ -255,7 +255,7 @@ thats:
255
255
  p1: "that's *"
256
256
  p2: "this is *"
257
257
  responses:
258
- r1: "why?"
258
+ r1: "why"
259
259
  r2: "yes it is"
260
260
  r3: "that's right, tell me more"
261
261
 
data/john-doe.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{john-doe}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Pawel Mikolajewski"]
@@ -24,7 +24,6 @@ Gem::Specification.new do |s|
24
24
  "Rakefile",
25
25
  "VERSION",
26
26
  "default.yml",
27
- "john-doe-0.1.0.gem",
28
27
  "john-doe.gemspec",
29
28
  "lib/john-doe.rb",
30
29
  "lib/johndoe/aiml.rb",
data/lib/johndoe/aiml.rb CHANGED
@@ -40,7 +40,7 @@ module JohnDoe
40
40
  end
41
41
  end
42
42
  def normalise_pattern(pattern)
43
- pattern.gsub("*",".*").gsub("$","([^\n\?!.$]*)")
43
+ pattern.gsub("*",".*").gsub("$","([^\n\?!.$]*)").gsub("?","\\?")
44
44
  end
45
45
 
46
46
  end
@@ -19,6 +19,7 @@ module JohnDoe
19
19
 
20
20
  @data.patterns.each do |k,v|
21
21
  if (/^#{k}/i =~ sentence)
22
+ puts k
22
23
  next if v[:priority] <= max_priority
23
24
  max_priority = v[:priority]
24
25
  best_v = v
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: john-doe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pawel Mikolajewski
@@ -49,7 +49,6 @@ files:
49
49
  - Rakefile
50
50
  - VERSION
51
51
  - default.yml
52
- - john-doe-0.1.0.gem
53
52
  - john-doe.gemspec
54
53
  - lib/john-doe.rb
55
54
  - lib/johndoe/aiml.rb
data/john-doe-0.1.0.gem DELETED
Binary file