mirror of
https://github.com/chenasraf/snpr.git
synced 2026-05-18 01:39:01 +00:00
* Passwords now need to be 8 characters long (new default in authlogic). * To login to the Sidekiq web interface, log in to opensnp.org, if you have the `admin` flag set, you will find it at the usual place. * I finally found out why Rubocop didn't complain about the frozen string literal pragma missing and added all of them. * Rubocop complained about keyword arguments, which is only relevant for Rails 5, so I disabled the cop. * I removed the `inherit_from: .rubocop_todo.yml` from `.rubocop.yml`, so Hound does complain about **all** the issues. I also added a few tasks for running Rubocop.
20 lines
540 B
Ruby
Executable File
20 lines
540 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
# frozen_string_literal: true
|
|
|
|
# This file loads spring without using Bundler, in order to be fast
|
|
# It gets overwritten when you run the `spring binstub` command
|
|
|
|
unless defined?(Spring)
|
|
require "rubygems"
|
|
require "bundler"
|
|
|
|
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
|
|
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
|
|
ENV["GEM_HOME"] = ""
|
|
Gem.paths = ENV
|
|
|
|
gem "spring", match[1]
|
|
require "spring/binstub"
|
|
end
|
|
end
|