
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
A configurable default Rails stack.
This is a proof of concept and any feedback is welcome either on GitHub, Twitter, or email.
Inspired by Steve Klabnik's article "Rails has Two Default Stacks" and the awesome Rails application templates.
Rails application templates are awesome, especially for hackers that often need to set up the same basic app, but also for companies that want to promote their best pratices. Sadly the ecosystem around them seems to be quite limited. Primo tries to solve this by adding a command line interface for defining your default template and share it with others.
At the moment Primo comes with 1 bundle of templates but it is relatively easy to add your own.
$ gem install primo
$ primo new app_name #instead of "rails new app_name"
This generates a PostgreSQL/HAML/Rspec Rails app using this admittedly very basic template.
You can specify a different template as follows
$ primo new app_name --template default-rails # this just runs a plain rails install
Using a different template is easy. You can specify them any remote repository and bring in those templates.
# add a new remote
$ primo remote add <name> <git url> #pulls the templates into ~/primo_remotes/<name>/
# list all remotes
$ primo remote list
# remove a remote
$ primo remote rm <name>
# update a remote by pulling in changes
$ primo remote pull <name>
To use templates and set a different default:
# list all templates in all pulled remotes
$ primo template list
+---------------+---------+-----------------------------------------------+
| Name | Remote | Path |
+---------------+---------+-----------------------------------------------+
| default-rails | default | /home/vagrant/.primo_remotes/default/rails.rb |
| default-prime | default | /home/vagrant/.primo_remotes/default/prime.rb |
+---------------+---------+-----------------------------------------------+
# view a template content
$ primo template show <name>
# open a template in your editor
$ primo template open <name>
# set your default template to use when creating new projects
$ primo template default <name>
# see your current default
$ primo template default
See LICENSE
FAQs
Unknown package
We found that primo 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.