This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# Convert an exported Flowdock flow into a static HTML document. | |
# | |
# Usage: | |
# | |
# flowdock-archive-to-html messages.json > messages.html | |
# | |
# The script assumes that there is a subdirectory `files` containing all files referenced in the exported flow. (This is exactly the | |
# directory structure you get if you unzip an archive downloaded from Flowdock.) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
inherit_from: https://raw.githubusercontent.com/die-antwort/style/master/rubocop.yml | |
AllCops: | |
Exclude: | |
- '**/*.erb' | |
- 'bin/**/*' | |
- 'db/**/*' | |
- 'config/initializers/simple_form*.rb' | |
- 'features/**/*' | |
- 'lib/file_column/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capistrano/scm/plugin' | |
class Capistrano::SCM | |
# Usage: Add this to your `Capfile`: | |
# | |
# require_relative "lib/capistrano_rsync" # adapt path as needed | |
# install_plugin Capistrano::SCM::Rsync | |
# | |
# Note that this you need to deactivate any other SCM plugins (there can only be one SCM plugin active at any time)- | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
loader = Zeitwerk::Loader.new | |
loader.push_dir(__dir__) | |
if ENV['RACK_ENV'] == 'production' | |
loader.setup | |
Zeitwerk::Loader.eager_load_all | |
else | |
loader.enable_reloading | |
loader.setup | |
Sidekiq.configure_server do |config| | |
config[:reloader] = ->(&block){ loader.reload; block.call } |
OlderNewer