Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
class RecordExpirer | |
def self.run(scheduled_time = Time.now) | |
# trigger the job for first time | |
Delayed::Job.enqueue(RecordExpirer.new, :run_at => scheduled_time) | |
end | |
def perform | |
SomeModel.where(:created_at < 48.hours.ago).update_all(:status, 'EXPIRED') | |
end |
require 'net/https' | |
require 'uri' | |
server = 'https://github.com/' | |
uri = URI.parse(server) | |
http = Net::HTTP.new(uri.host, uri.port) | |
http.use_ssl = true | |
http.verify_mode = OpenSSL::SSL::VERIFY_PEER |
Gemfile: | |
# Installing from fork to fix requirement of Rubygems v1.3.7 which is not provided by Heroku yet. This tag requires Rubygems v1.3.6 | |
gem 'liquid', :git => 'git://github.com/GnomesLab/liquid.git', :tag => 'v2.2.4' | |
Last line in liquid.rb does this: | |
# Load all the tags of the standard library | |
# |