Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
p{color:red}. rope is still under early development. Check it out if you wish to follow my progress or help, but do not use it in your applications (yet!).
rope is a pure Ruby implementation of the "Rope data structure":http://en.wikipedia.org/wiki/Rope_%28computer_science%29.
For many applications, the Rope class can be a drop-in replacement for String that is optimized for certain use cases.
Using a Rope instance over a String may be desirable in applications that manipulate large amounts of text.
rope currently offers:
Planned features for rope:
Disadvantages of rope:
h1. Installation
rope is hosted on "rubygems":http://www.rubygems.org/
gem install rope
... or in your Gemfile
gem 'rope'
rope is tested against MRI 1.8.7 and 1.9.2.
h1. Usage
h2. Creating a Rope
rope = "123456789".to_rope # Rope::Rope.new("123456789") also works puts rope # "123456789"
h2. Concatenation
A Rope instance can be concatenated with another Rope or String instance.
rope = "12345" string = "6789" rope += string puts rope # "123456789"
h2. Slices/Substrings
A Rope instance offers efficient substring operations. The slice and [] methods are synonymous with their "String counterparts (Ruby API documentation)":http://ruby-doc.org/core-1.9/classes/String.html#M000293.
rope = "123456789".to_rope puts rope.slice(3, 4) # 4567 puts rope.slice(-6, 4) # 4567 # TODO: More examples when they are implemented
FAQs
Unknown package
We found that basic-rope demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.