sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot
module MTG | |
module API | |
PATH = "http://gatherer.wizards.com/Pages" | |
SEARCH = "/Search/Default.aspx?output=checklist&action=advanced" | |
CARD = "/Card/Details.aspx?multiverseid=" | |
MID_SELECTOR = '.nameLink' | |
MAIN_SELECTOR = '#ctl00_ctl00_ctl00_MainContent_SubContent_SubContent_' | |
NAME_SELECTOR = MAIN_SELECTOR + 'nameRow .value' |
namespace :deploy do | |
namespace :assets do | |
task :precompile, :roles => :web, :except => { :no_release => true } do | |
begin | |
from = source.next_revision(current_revision) # <-- Fail here at first-time deploy because of current/REVISION absence | |
rescue | |
err_no = true | |
end | |
if err_no || capture("cd #{latest_release} && #{source.local.log(from)} vendor/assets/ app/assets/ | wc -l").to_i > 0 | |
run %Q{cd #{latest_release} && #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile} |
No need for homebrew or anything like that. Works with https://www.git-tower.com and the command line.
gpg --list-secret-keys
and look for sec
, use the key ID for the next stepgit
to use GPG -- replace the key with the one from gpg --list-secret-keys
class Api::V1::BaseController < ApplicationController | |
protect_from_forgery with: :null_session | |
serialization_scope :current_user | |
include ResourceLoader | |
include TokenAuthentication | |
after_action :build_response_headers |