chatterbot 0.9.3 → 1.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6fbc2531f820dba19fb0a7a8a42d167608e0c6ed
4
- data.tar.gz: 940c107b1d1a3e625dd6a95dcb0a289b7833bd49
3
+ metadata.gz: 68832ca8f4525e7c31f2f5eca5dd631288bfd8f9
4
+ data.tar.gz: 103d9b3e21d4fb770cf3662c4a6d4e4acc3caf4f
5
5
  SHA512:
6
- metadata.gz: 8e8c77f2a0d9a9353e9bc7823b0bdcf7d61c6b7c3a8b7000b33314712c8aa9fbd78cee2f97ba17cb9c7a5ec4528c863c50d6e021a8b97bc87c73a6ab5cfffa30
7
- data.tar.gz: 1abb9ed9e3500ff31b784f42028c8213be682d01292847928bf3e73fa51c85dc2f6fa921dac608bd803f9bfdee4ac0625c23e258c74286260387a81f0185e71b
6
+ metadata.gz: 1169562127a7c74955cbb4c6be6eece17fe2fbce88e686aa867e120b4f1293e073e8d105137460ecde9ae7d262741291ec07346d9376494c6a886b2c26dd72aa
7
+ data.tar.gz: 7c33c635ff6d7233c33e589356eb47f1a8e624f773c74d44504bec2e6a33d434bf893dd7d04d6be5970b40b04feb9130450e7d1239ad2281333e377e9b03ca42
@@ -56,12 +56,12 @@ search("foo", :lang => "en") do |tweet|
56
56
  # reject anything from the incoming tweet that doesn't have a
57
57
  # matching column
58
58
  #
59
- data = tweet.delete_if { |k, v|
59
+ data = tweet.to_h.delete_if { |k, v|
60
60
  ! cols.include?(k)
61
61
  }
62
62
 
63
63
  # update timestamp manually -- sequel isn't doing it right
64
- data[:created_at] ||= Sequel.string_to_datetime(data[:created_at])
64
+ data[:created_at] = Sequel.string_to_datetime(data[:created_at])
65
65
 
66
66
  # store to the db!
67
67
  db[:searches].insert(data)
@@ -95,7 +95,7 @@ module Chatterbot
95
95
  #
96
96
  # return the ID of the most recent tweet pulled up in searches
97
97
  def since_id
98
- config[:since_id] || 0
98
+ config[:since_id] || 1
99
99
  end
100
100
 
101
101
  #
@@ -1,3 +1,3 @@
1
1
  module Chatterbot
2
- VERSION = "0.9.3"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chatterbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Mitchell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-18 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet
@@ -293,5 +293,27 @@ rubygems_version: 2.2.2
293
293
  signing_key:
294
294
  specification_version: 4
295
295
  summary: A ruby framework for writing Twitter bots
296
- test_files: []
296
+ test_files:
297
+ - spec/blacklist_spec.rb
298
+ - spec/bot_spec.rb
299
+ - spec/client_spec.rb
300
+ - spec/config_spec.rb
301
+ - spec/db_spec.rb
302
+ - spec/dsl_spec.rb
303
+ - spec/favorite_spec.rb
304
+ - spec/followers_spec.rb
305
+ - spec/helpers_spec.rb
306
+ - spec/home_timeline_spec.rb
307
+ - spec/logging_spec.rb
308
+ - spec/profile_spec.rb
309
+ - spec/reply_spec.rb
310
+ - spec/retweet_spec.rb
311
+ - spec/search_spec.rb
312
+ - spec/skeleton_spec.rb
313
+ - spec/spec_helper.rb
314
+ - spec/streaming_handler_spec.rb
315
+ - spec/streaming_spec.rb
316
+ - spec/tweet_spec.rb
317
+ - spec/utils_spec.rb
318
+ - spec/whitelist_spec.rb
297
319
  has_rdoc: