
Security News
ESLint Adds Support for Parallel Linting, Closing 10-Year-Old Feature Request
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
A very simple Gem to add waitlist functionality to a WIP Rails app.
I plan to add automated invite codes in the near future
Follow the installation instructions and you're good to go!
Add this line to your application's Gemfile:
gem "early_bird"
And then execute:
$ bundle
Or install it yourself as:
$ gem install early_bird
Then install the migrations:
$ bin/rails early_bird:install:migrations
And migrate the database:
$ bin/rails db:migrate
EarlyBird requires new and show views to be implemented in your app:
# app/views/early_bird/submissions/new.html.erb
<%= form_with(model: @submission) do |form| %>
<%= form.email_field :email, placeholder: "Your email" %>
<%= form.submit "Join the Waitlist" %>
<% end %>
# app/views/early_bird/submissions/show.html.erb
<p>Thank you! <%= @submission.email %> has been added to the waitlist!</p>
Then mount the engine in your routes.rb file:
mount EarlyBird::Engine => "/"
In your application_controller.rb file, define an authenticate_user!
method, which EarlyBird skips (to allow access to the waitlist while preventing access to the rest of the app):
class ApplicationController < ActionController::Base
before_action :authenticate_user!
private
def authenticate_user!
http_basic_authenticate_with name: "dev", password: "secret"
end
end
Contributions welcome
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that early_bird 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
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.
Security News
Rspack launches Rslint, a fast TypeScript-first linter built on typescript-go, joining in on the trend of toolchains creating their own linters.