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.
gamefic-overlookable
Advanced tools
A Gamefic library for easy implementation of insignificant entities.
It's good practice to implement nouns that players receive in descriptions, even if they're irrelevant to the game.
Bad:
> look around
You're in a room with four walls.
> examine walls
I recognize "examine" as a verb but don't know what you mean by "walls."
Better:
> examine walls
There's nothing special about the four walls.
The gamefic-overlookable
library simplifies the process of creating Scenery
entities that provide a default response to unimplemented nouns.
Add the library to your Gamefic project's Gemfile:
gem 'gamefic-overlookable'
Run bundle install
.
Add the requirement to your project's code (typically in main.rb
):
require 'gamefic-overlookable'
Entities gain an overlook
method that lets you easily add scenery with a default description.
MyGame.seed do
@room = make Room, name: 'room', description: "You're in a room with four walls."
@room.overlook 'four walls'
end
> look around
You're in a room with four walls.
> examine walls
There's nothing special about the four walls.
The overlook
method can also accept multiple names:
MyGame.seed do
@room = make Room, name: 'room', description: 'A room with a tall ceiling and a wooden floor.'
@room.overlook 'tall ceiling', 'wooden floor'
end
Separate names from synonyms with two slashes:
MyGame.seed do
@room = make Room, name: 'room', description: 'A room with a tall ceiling and a dark wooden floor.'
@room.overlook 'ceiling//tall', 'floor//dark wooden'
end
You can also add overlookable entities with the rubble
and scenery
parameters in make
:
make Room, name: 'room', description: 'A room with a tall ceiling.', scenery: ['ceiling//tall']
make Thing, name: 'dining set', description: 'A plate and a fork.', rubble: ['plate', 'fork']
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/castwide/gamefic-overlookable.
FAQs
Unknown package
We found that gamefic-overlookable demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.