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.19.2 lib/rollbar/plugins/basic_socket.rb
rollbar-2.19.1 lib/rollbar/plugins/basic_socket.rb
rollbar-2.19.0 lib/rollbar/plugins/basic_socket.rb
rollbar-2.18.2 lib/rollbar/plugins/basic_socket.rb
rollbar-2.18.0 lib/rollbar/plugins/basic_socket.rb
rollbar-2.17.0 lib/rollbar/plugins/basic_socket.rb
rollbar-2.16.4 lib/rollbar/plugins/basic_socket.rb
rollbar-2.16.3 lib/rollbar/plugins/basic_socket.rb
rollbar-2.16.2 lib/rollbar/plugins/basic_socket.rb
rollbar-2.16.0 lib/rollbar/plugins/basic_socket.rb
rollbar-2.15.6 lib/rollbar/plugins/basic_socket.rb
rollbar-2.15.5 lib/rollbar/plugins/basic_socket.rb
rollbar-2.15.4 lib/rollbar/plugins/basic_socket.rb
rollbar-2.15.3 lib/rollbar/plugins/basic_socket.rb
rollbar-2.15.2 lib/rollbar/plugins/basic_socket.rb
rollbar-2.15.1 lib/rollbar/plugins/basic_socket.rb
rollbar-2.15.0 lib/rollbar/plugins/basic_socket.rb
rollbar-2.14.1 lib/rollbar/plugins/basic_socket.rb
rollbar-2.14.0 lib/rollbar/plugins/basic_socket.rb
rollbar-2.13.3 lib/rollbar/plugins/basic_socket.rb