All Projects → interdiscipline → lockup

interdiscipline / lockup

Licence: MIT license
Lockup Gem

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to lockup

i18n lazy scope
Use lazy lookup with custom i18n scopes.
Stars: ✭ 11 (-90.09%)
Mutual labels:  gem, ruby-on-rails
rails cursor pagination
Add cursor pagination to your ActiveRecord backed application
Stars: ✭ 21 (-81.08%)
Mutual labels:  gem, ruby-on-rails
exception hunter
Crash reporting engine to hunt down bugs 🐞
Stars: ✭ 78 (-29.73%)
Mutual labels:  gem, ruby-on-rails
active record-updated at
Touch `updated_at` by default with calls to `update_all` and `update_column(s)`
Stars: ✭ 27 (-75.68%)
Mutual labels:  gem, ruby-on-rails
Motion
Reactive frontend UI components for Rails in pure Ruby
Stars: ✭ 498 (+348.65%)
Mutual labels:  gem, ruby-on-rails
graphql-rails logger
Display GraphQL queries in a more readable format
Stars: ✭ 102 (-8.11%)
Mutual labels:  gem, ruby-on-rails
modular routes
Dedicated controllers for each of your Rails route actions.
Stars: ✭ 45 (-59.46%)
Mutual labels:  gem, ruby-on-rails
Bhf
Rails-Engine-Gem that offers an admin interface for trusted user
Stars: ✭ 81 (-27.03%)
Mutual labels:  gem, ruby-on-rails
Devise masquerade
Extension for devise, enable login as functionality. Add link to the masquerade_path(resource) and use it.
Stars: ✭ 380 (+242.34%)
Mutual labels:  gem, ruby-on-rails
filtered
Filters ActiveRecord queries in a nice way
Stars: ✭ 28 (-74.77%)
Mutual labels:  gem, ruby-on-rails
Pig Ci Rails
Monitor your Ruby Applications metrics (Memory, SQL Requests & Request Time) as part of your test suite.
Stars: ✭ 53 (-52.25%)
Mutual labels:  gem, ruby-on-rails
Lol dba
lol_dba is a small package of rake tasks that scan your application models and displays a list of columns that probably should be indexed. Also, it can generate .sql migration scripts.
Stars: ✭ 1,363 (+1127.93%)
Mutual labels:  gem, ruby-on-rails
pixitar
🧝 Pixitar is an avatar generation library written in Ruby.
Stars: ✭ 20 (-81.98%)
Mutual labels:  gem
hscode
📘🖥 A command line reference tool for http status codes.
Stars: ✭ 31 (-72.07%)
Mutual labels:  gem
google holiday calendar
Get holidays via Google Calendar.
Stars: ✭ 21 (-81.08%)
Mutual labels:  gem
soundstorm
The Federated Social Audio Platform
Stars: ✭ 26 (-76.58%)
Mutual labels:  ruby-on-rails
SpringBoard
BaseCamp clone | Backend: Ruby on Rails | Frontend: React with Redux
Stars: ✭ 18 (-83.78%)
Mutual labels:  ruby-on-rails
grape-jwt-authentication
A reusable Grape JWT authentication concern
Stars: ✭ 31 (-72.07%)
Mutual labels:  gem
firebase id token
A Ruby gem to verify the signature of Firebase ID Tokens.
Stars: ✭ 138 (+24.32%)
Mutual labels:  ruby-on-rails
tv-lineup-app
"My Lineup" has a Ruby on Rails backend with React/Redux frontend. Users can save their favorite shows and add episodes to their lineup. They can view their lineup in a calendar format to see when and where their tv shows air. Users can also see trending and most watched shows as well as shows premiering that week.
Stars: ✭ 27 (-75.68%)
Mutual labels:  ruby-on-rails

Lockup Shield

Lockup

Gem Version Build Status

A simple gem to more elegantly place a staging server or other in-progress rails application behind a basic codeword. It’s easy to implement, share with clients/collaborators, and more beautiful than the typical password-protection sheet.

“Can I come into your fort?”

“…what’s the codeword?”

(currently used in production with Rails 3.X, Rails 4.X, Rails 5.X, and Rails 6.X)

Demos and more information.

Installation

  1. Add this line to your application’s Gemfile:
gem 'lockup'
  1. Define a codeword (see Usage below).

  2. Mount the engine in your application’s routes file (usually first, for best results):

mount Lockup::Engine, at: '/lockup'

Usage

To set a codeword, define LOCKUP_CODEWORD in your environments/your_environment.rb file like so:

ENV['LOCKUP_CODEWORD'] = 'secret'

If you think you might need a hint:

ENV['LOCKUP_HINT'] = 'Something that you do not tell everyone.'

If you’re using Rails >= 4.1 or Rails >= 5.2, you can add your Lockup Codeword via Rails Secrets or Rails Credentials functionality in your secrets.yml or credentials.yml.enc file, respectively:

lockup_codeword: 'love'
lockup_hint: 'Pepé Le Pew'

Alternately, Rails Credentials in >= 5.2 may be organized under the lockup namespace:

lockup:
  codeword: 'love'
  hint: 'Pepé Le Pew'

If you’re using Figaro, set your Lockup codeword and hint (optional) in your application.yml file:

lockup_codeword: 'love'
lockup_hint: 'Pepé Le Pew'

Codewords are not case-sensitive, by design. Keep it simple.

Advanced Usage

Use Lockup around a specific controller:

  1. Follow the installation instructions above.

  2. In your application_controller.rb file, add:

skip_before_action :check_for_lockup, raise: false
  1. In the controller(s) you would like to restrict:
before_action :check_for_lockup

Link it with no typing:

http://somedomain.com/or_path/?lockup_codeword=love

The visitor is redirected and the cookie is set without them ever seeing the Lockup splash page.

(Lockup also makes a rudimentary attempt based on user agent to block major search engine bots/crawlers from following this link and indexing the site, just in case it ever gets out into the wild.)

Set a custom lifetime for cookie

The cookie set by Lockup defaults to 5 years. If you want to set a shorter amount of time, you can specify a number of weeks:

ENV['COOKIE_LIFETIME_IN_WEEKS'] = 4

cookie_lifetime_in_weeks: 4

Design Customization

If you would like to change the content or design of the lockup page, you can create the directories app/views/layouts/lockup and app/views/lockup/lockup and populate them with the default content from here, and then customize as desired.

Contribute

Pull requests are quite welcome.

Project Site (with Demo)

lockup.interdiscipline.com

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].