Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
An ElasticSearch client with ThriftClient-like failover handling.
Copyright 2010-2012 Grant Rodgers. See included LICENSE file.
Rubberband uses MultiJson for JSON encoding and decoding and supports all JSON backends that MultiJson supports.
The HTTP transport uses Faraday, which also supports a number of http backends. Choose the one that works best for you.
Tested on 1.8.7, 1.9.2, 1.9.3, and Rubinius in 1.8 and 1.9 mode. Ruby 1.8.6 is NOT supported due to missing String#bytesize.
Instantiate a client:
client = ElasticSearch.new('http://127.0.0.1:9200', :index => "twitter", :type => "tweet")
Instantiate a client with multiple servers:
client = ElasticSearch.new(['127.0.0.1:9200', '127.0.0.1:9201'])
Instantiate a client using a Heroku URL (this sets the default index):
client = ElasticSearch.new(ENV['ELASTICSEARCH_URL'])
Connect using the thrift transport (requires the thrift gem and elasticsearch thrift plugin to be installed):
client = ElasticSearch.new('127.0.0.1:9500', :transport => ElasticSearch::Transport::Thrift)
Pass a block to Faraday to configure middleware and options:
client = ElasticSearch::Client.new('127.0.0.1:9200') do |conn|
conn.response :logger
conn.adapter Faraday.default_adapter
end
API:
client.default_index = "test_index"
client.default_type = "test_type"
client.index({:body => "elasticsearch is cool"}, :id => 1)
client.get("1")
client.search("body:elasticsearch")
See TODO file.
http://github.com/grantr/rubberband
Fork, code, send pull request
FAQs
Unknown package
We found that rubberband demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.