Skip to content

Instantly share code, notes, and snippets.

@chrisgaunt
chrisgaunt / git_changlog
Created July 26, 2011 01:41 — forked from le0pard/git_changlog
Automatic git changelog
#!/usr/bin/env ruby
SPECIAL_TOKEN = 'SpecialTokenForSearch'
WITHOUT_MERGES = "--no-merges"
GIT_COMMIT_LINK="https://github.com/some_projects/commit/:commit"
cmd = `git show-ref --tags`
tags = []
cmd.each do |l|
tag_commit, tag_name = l.chomp.split(" ")
@chrisgaunt
chrisgaunt / active_admin_heroku.rb
Created June 30, 2011 12:50 — forked from hoverlover/active_admin_heroku.rb
Rails initializer for using ActiveAdmin with Sass on Heroku
if Rails.env.production?
require 'fileutils'
FileUtils.mkdir_p(Rails.root.join("tmp", "stylesheets", "admin"))
template_path = "#{Gem.loaded_specs['activeadmin'].full_gem_path}/lib/active_admin/stylesheets"
old_compile_path = "#{Rails.root}/public/stylesheets/admin"
new_compile_path = "#{Rails.root}/tmp/stylesheets/admin"
Sass::Plugin::remove_template_location template_path, old_compile_path
Sass::Plugin::add_template_location template_path, new_compile_path