Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
# Before | |
Rails.application.config.assets.version = '1.0' | |
Rails.application.config.assets.paths << Emoji.images_path | |
Rails.application.config.assets.precompile += %w( search.js ) | |
# After | |
Rails.application.config.assets.tap do |assets| | |
assets.version = '1.0' | |
assets.paths << Emoji.images_path | |
assets.precompile += %w( search.js ) |
# Show the percentage of similar lines between files. | |
# Requires: diffy gem | |
# Usage: Edit line 33 to match the files you're interested in, then run this script. | |
require 'rubygems' | |
require 'diffy' | |
def get_dup_lines_percentage(file1, file2) | |
starts_with_minus = /^-.*/ |
Just install this in your apps like so:
gem 'test-spec-mini', :git => 'git://gist.github.com/1806986.git', :require => 'mini'
(fork of https://gist.github.com/aaa08856822a85a6864b (but gist fork is broken :-/ ))
Infoproducts---> something that teaches, helps you learn, transforms your mind, works with you (not for you). Can be part of your own process, can be part of your website so people can do their own.
This script is a replacement for livereload server component designed for working with Rails. It watches the filesystem with FS Events (Mac OS X) rather than with EventMachine. This is better for large projects for wich EventMachine fails with "too many open files" exception.
Sass is supported; .sass files can also be stored in "app/styles/" directory. Compass is detected if "config/compass.rb" file exists.
Download this script to somewhere in your PATH and make it executable. You can name it something different than "livereload" if you want to try this and the official gem executable in parallel.