Sha256: 7d6953c3744358ee932934504445feb7bc22e4d2ed6e0a7080f821be7a22e956

Contents?: true

Size: 346 Bytes

Versions: 30

Compression:

Stored size: 346 Bytes

Contents

Rollbar.plugins.define('basic_socket') do
  dependency { !configuration.disable_core_monkey_patch }

  # Needed to avoid active_support (< 4.1.0) bug serializing JSONs
  dependency { defined?(ActiveSupport::VERSION::STRING) }

  execute do
    require 'socket'

    class BasicSocket
      def as_json(*)
        to_s
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
rollbar-2.13.2 lib/rollbar/plugins/basic_socket.rb
rollbar-2.13.1 lib/rollbar/plugins/basic_socket.rb
rollbar-2.13.0 lib/rollbar/plugins/basic_socket.rb
rollbar-2.12.0 lib/rollbar/plugins/basic_socket.rb
rollbar-2.11.5 lib/rollbar/plugins/basic_socket.rb
rollbar-2.11.4 lib/rollbar/plugins/basic_socket.rb
rollbar-2.11.3 lib/rollbar/plugins/basic_socket.rb
rollbar-2.11.2 lib/rollbar/plugins/basic_socket.rb
rollbar-2.11.1 lib/rollbar/plugins/basic_socket.rb
rollbar-2.11.0 lib/rollbar/plugins/basic_socket.rb