class Object

Public Instance Methods

gem_twitter_patcher() click to toggle source

This module gives special workarounds for some issues.

Problems are bypassed by monkey-patching.

As soon as a problem is resolved, patch should be removed.

**** Known issues ****

  1. gem/twitter

Location : override/gem/twitter/connection.rb Maintain : until below issue is fixed Reference: github.com/sferik/twitter/pull/669

Gem ‘twitter’ does not handle streaming timeout. By applying this, reading timeout works and Rbitter can handle timeouts.

  1. gem/rubysl-socket

Location : override/gem/rubysl-socket/socket.rb Maintain : until ip_address_list is implemented Reference: github.com/rubysl/rubysl-socket/pull/9

With ipv6 environment, Resolv#use_ipv6? (in rubysl-resolv gem) checks Socket.ip_address_list. This is not implemented at all with rubysl-socket-2.0.1. NoMethodError exception is raised instead of NotImplementedError.

By applying this, Socket.ip_address_list is implemented and the method throws NotImplementedError exception.

# File lib/rbitter/override.rb, line 32
def gem_twitter_patcher
  require 'rbitter/override/gems/twitter/connection'
end