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.
Craby is just a quick test suite setup that uses RSpec with Shoulda::Matchers, Capybara with Selenium, DatabaseCleaner, FactoryBot, Faker, Standard Ruby as default. And it also has webmock and VRC for applications that need to test third-party services
Add this line to your application's Gemfile:
gem "craby", "~> 0.0.1"
And then execute:
bundle install
Or install it yourself as:
bundle add craby
You can use a Rails generator to create setup files:
rails g craby:install
Or you can create manually spec/craby_helper.rb
file in your rails application:
ENV["RAILS_ENV"] ||= "test"
require "craby"
Craby::Setup.call([
"craby/simplecov",
File.expand_path("config/environment", File.dirname(__dir__)),
"craby/default"
])
And .rspec
file in your root rails application:
--require craby_helper
--format documentation
--force-color
--order rand
Create .standard.yml
file in your root rails application:
ruby_version: 3.3
Create .rubocop.yml
file in your root rails application:
require:
- rubocop-rails
- rubocop-factory_bot
- rubocop-capybara
- rubocop-rspec
inherit_gem:
standard: config/base.yml
AllCops:
NewCops: enable
TargetRubyVersion: 3.3
TargetRailsVersion: 7.1
Exclude:
- "bin/**/*"
- "config/environments/**/*"
- "db/schema.rb"
- "db/seeds.rb"
- "tmp/**/*"
- "vendor/**/*"
If your application was a full stack rails application you should create a .erb-lint.yml
file:
EnableDefaultLinters: true
linters:
ErbSafety:
enabled: true
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
Style/FrozenStringLiteralComment:
Enabled: false
Layout/InitialIndentation:
Enabled: false
Layout/TrailingEmptyLines:
Enabled: false
Layout/TrailingWhitespace:
Enabled: false
Rails/OutputSafety:
Enabled: false
Lint/UselessAssignment:
Enabled: false
And generate bin/erblint
:
bin/bundle binstub erb_lint
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/craby.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that craby 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.