Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
RailsApp is a gem that provides a simple way to create a new Rails application with a pre-configured set of gems and settings, utilizing the Rails application templates feature.
The initial release of this gem is an opinionated template that includes the following dependencies and settings:
The initial release of this gem v.0.1.0 is starting with my personal preferences and a Rails template I have developed locally. I plan to expand the template to include more options and configurations with future releases which will make this template less opinionated.
Install globally:
gem install rails_app
To bootstrap a new Rails application: rails_app
The user will be prompted to enter the name of the new Rails application, and the select the assets pipeline to use (propshaft or sprockets), and a styling option:
Also, you can select your database of choice:
The template will then create a new Rails application with the selected options.
There is an additional syntax, available starting with release v. 0.7.0
, which allows you to use rails_app
very similarly to the rails new
command:
rails_app my_app -a propshaft --css bootstrap -d postgresql
I few things to note:
app_name
must be first, just like with rails new
-a propshaft
. Since, the parser ignores the flag and checks for the specific keywords only, you technically can use the follow: rails_app my_app propshaft bootstrap postgresql
.If you use this syntax, the template will not prompt you the application name, and subsequent options will be preselected for you.
Right not this syntax only supports the following options:
More options will be added in future releases.
NEW Starting with release v. 0.8.0
, you can save your preferred defaults to you users home directory (rails_aap-config.yml
).
If a file has been previously saved, you will be prompted if you want to use:
The CLI menu will then be bypassed and the application with be created with your presets.
documentation coming soon
The template includes the following code quality tools:
rubocop-rails-omakase
gem with a few custom settings in a provided .rubocop.yml
All of this tools can be run using the following command, which also will run the test suite: bin/ci
In addition, the template includes:
annotate
gem to annotate models and factories with schema informationbullet
gem to help identify and diagnose N+1 queriesThe template includes RSpec for testing, which includes pre configured:
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/eclectic-coding/rails_app.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that rails_app 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.