streambot 0.5.0.beta4 → 0.5.0.beta5
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/Rakefile +1 -1
- data/VERSION +1 -0
- data/lib/streambot.rb +1 -0
- data/lib/streambot/tracker.rb +5 -2
- metadata +4 -3
    
        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
    
    
    
        data/lib/streambot/tracker.rb
    CHANGED
    
    | @@ -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 | 
            -
                     | 
| 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 | 
            -
              -  | 
| 10 | 
            -
              version: 0.5.0. | 
| 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- | 
| 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
         |