chatterbot 0.2.4 → 0.2.5

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.
@@ -22,7 +22,7 @@ module Chatterbot
22
22
  at_exit do
23
23
  raise $! if $!
24
24
  update_config
25
- end
25
+ end
26
26
  end
27
27
 
28
28
  end
@@ -44,7 +44,7 @@ module Chatterbot
44
44
  #
45
45
  # Should we run any config updates?
46
46
  def update_config?
47
- config.has_key?(:dry_run) ? ! config[:dry_run] : true
47
+ config.has_key?(:no_update) ? ! config[:no_update] : true
48
48
  end
49
49
 
50
50
  #
@@ -200,7 +200,7 @@ module Chatterbot
200
200
 
201
201
  # let's not store these, they're just command-line options
202
202
  tmp.delete(:debug_mode)
203
- tmp.delete(:dry_run)
203
+ tmp.delete(:no_update)
204
204
  tmp.delete(:verbose)
205
205
 
206
206
 
@@ -1,3 +1,3 @@
1
1
  module Chatterbot
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
data/spec/config_spec.rb CHANGED
@@ -31,7 +31,7 @@ describe "Chatterbot::Config" do
31
31
  end
32
32
 
33
33
  it "update_config? is false if this is a dry run" do
34
- @bot.config[:dry_run] = true
34
+ @bot.config[:no_update] = true
35
35
  @bot.update_config?.should == false
36
36
  end
37
37
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chatterbot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Colin Mitchell