Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
"SCV ready to go, sir!" -- some scv.
A set of thor scripts with most general tasks to administer Rails applications.
Into Gemfile:
gem 'scv', :group => 'development', :require => false
It's a common pattern, especially for open source projects not to keep development configuration files in version control, keeping their example versions instead. The most common is config/database.yml.example. While I'm going to support this patten in future, I currently suggest another one, which is keeping all example configuration files in config/examples, which structure repeats config directory. For support of this patter there is a setup:config script in this set. Run
scv config
to copy all example configuration files to their natural locations. You may use --force
, --skip
, --quiet
and --pretend
options as with usual Rails generators. If you append any of the file names with .tt
it will be considered as template, evaluated and placed to the right place without .tt
.
Pretty often you need to create a database, tune it's schema to current and load seeds after checking out a new application. I advice you to use a
scv db
for it. Available modificators are:
--drop
or -d
- drop database before creation. Defaults to false.--no-seeds
- don't run db:seed
The no-
options are also available with --skip
prefix as usual (e.g., --skip-test-clone
)
Again, pretty often you need to populate database with a test data, needed for development. I suggest a solution when near db/seeds.rb
file you place db/populate.rb
with the similar purpose and content, but containing data you'd like to insert to database for development. If you do so, you may use
scv populate
to clean the database, load seeds.rb
and populate.rb
without dropping the database. There is an option --no-truncate
to prevent database cleanup, that is used from meta tasks like bootstrap
or reset
.
scv bootstrap
should be used after initial checkout of application. It does scv config --force
, then scv db --no-seed
(because scv populate
is expected to be run), and then, yeah, scv populate --no-truncate
.
In the meantime, scv reset
should be used when you wish to reset your database. It does scv db --drop --no-seed
, then scv populate --no-truncate
. This command can also be executed by just running scv db
.
FAQs
Unknown package
We found that scv 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.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.