streambot 0.5.0.beta4 → 0.5.0.beta5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.authors = ["Sascha Wessel"]
13
13
  gem.post_install_message = File.exist?('USAGE.rdoc') ? File.read('USAGE.rdoc') : ""
14
14
  gem.require_path = 'lib'
15
- gem.files = %w(Rakefile) + Dir.glob("{lib}/**/*")
15
+ gem.files = %w(Rakefile) + Dir.glob("{lib}/**/*") + %w(VERSION)
16
16
 
17
17
  # Dependency for dealing with twitter streaming API
18
18
  gem.add_dependency "tweetstream",">= 1.0.4"
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.5.0.beta5
data/lib/streambot.rb CHANGED
@@ -17,4 +17,5 @@ module StreamBot
17
17
  LOG = Logger.new(STDOUT)
18
18
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
19
19
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
20
+ VERSION = ::File.exist?(PATH + 'VERSION') ? ::File.read(PATH+'VERSION') : ""
20
21
  end
@@ -40,7 +40,6 @@ module StreamBot
40
40
  if (@blacklist.nil? || !@blacklist.include?(username)) && !@filters.nil?
41
41
  @filters.each do |key, value|
42
42
  matched = match?(status, value)
43
- puts matched
44
43
  if matched == true
45
44
  match_filter
46
45
  LOG.debug("Tracker#start - filter #{key} matched!")
@@ -66,7 +65,11 @@ module StreamBot
66
65
  elsif @type == "LANGUAGE" then
67
66
  status.user.lang.eql?(@value)
68
67
  elsif @type == "SOURCE" then
69
- status.source.eql?(@value)
68
+ # just a thought at this point:
69
+ # why the heck is html markup in the source field?
70
+ status.source.include?(@value)
71
+ elsif @type == "TIMEZONE" then
72
+ status.user.time_zone.eql?(@value)
70
73
  end
71
74
  end
72
75
 
metadata CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 5
8
8
  - 0
9
- - beta4
10
- version: 0.5.0.beta4
9
+ - beta5
10
+ version: 0.5.0.beta5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sascha Wessel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-23 00:00:00 +02:00
18
+ date: 2010-08-26 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -104,6 +104,7 @@ extra_rdoc_files:
104
104
  - README.rdoc
105
105
  files:
106
106
  - Rakefile
107
+ - VERSION
107
108
  - lib/streambot.rb
108
109
  - lib/streambot/callbacks.rb
109
110
  - lib/streambot/filter.rb