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
diff --git a/lib/integrity/project.rb b/lib/integrity/project.rb | |
index 0c67b68..49ec71a 100644 | |
--- a/lib/integrity/project.rb | |
+++ b/lib/integrity/project.rb | |
@@ -60,23 +60,29 @@ module Integrity | |
private | |
def find_or_create_commit_with_identifier(identifier) | |
- # We abuse +committed_at+ here setting it to Time.now because we use it | |
- # to sort (for last_commit and previous_commits). I don't like this |
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
diff --git a/.gitignore b/.gitignore | |
new file mode 100644 | |
index 0000000..a3a6afd | |
--- /dev/null | |
+++ b/.gitignore | |
@@ -0,0 +1,2 @@ | |
+*.gem | |
+ | |
diff --git a/lib/sax-machine/sax_collection_config.rb b/lib/sax-machine/sax_collection_config.rb | |
index 3d22a08..88a637a 100644 |
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
# Factory girl, relaxed. | |
# | |
# Factory.define :user do |f| | |
# f.login 'johndoe%d' # Sequence. | |
# f.email '%{login}@example.com' # Interpolate. | |
# f.password f.password_confirmation('foobar') # Chain. | |
# end | |
# | |
# Factory.define :post do |f| | |
# f.user { Factory :user } # Blocks, if you must. |
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
######################################## | |
### Start with a "clean" environment ### | |
######################################## | |
mmoen@shiny:~/tmp$ gem environment | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.3.5 | |
- RUBY VERSION: 1.8.6 (2009-08-04 patchlevel 383) [i686-darwin10.2.0] | |
- INSTALLATION DIRECTORY: /Users/mmoen/.rvm/gems/ruby/1.8.6 | |
- RUBY EXECUTABLE: /Users/mmoen/.rvm/ruby-1.8.6-p383/bin/ruby |
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
The following scenario leads to the below gem paths. Not sure how/where to fix it. | |
rvm 1.9.1 | |
rvm 1.8.6 | |
- GEM PATHS: | |
- /Users/tukaiz/.rvm/gems/ruby-1.8.6-p383 | |
- /Users/tukaiz/.rvm/gems/ruby-1.8.6-p383%global | |
- /Users/tukaiz/.rvm/gems/ruby-1.9.1-p378%global |
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
mmoen@shiny:~$ !echo | |
echo $PATH | tr ":" "\n" | |
/Users/mmoen/.rvm/rubies/ruby-1.8.6-p383/bin | |
/Users/mmoen/.rvm/gems/ruby-1.8.6-p383%strappy/bin | |
/Users/mmoen/.rvm/gems/ruby-1.8.6-p383%strappy%global/bin | |
/Users/mmoen/.rvm/bin | |
/opt/local/bin | |
/opt/local/sbin | |
/Users/mmoen/bin | |
/usr/local/mysql/bin |
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 | |
File.open('gemlist').each do |line| | |
next if line =~ /^#/ | |
g, v = line.split | |
ret = system("gem install #{g} #{v} --no-rdoc --no-ri") if g && v | |
p $? unless ret | |
end |
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 'sunspot/session_proxy/silent_fail_session_proxy' | |
module Sunspot | |
module SessionProxy | |
class QueueFailureSessionProxy < Sunspot::SessionProxy::SilentFailSessionProxy | |
QUEUE_METHODS = [:index!, :index, :remove!, :remove] | |
def rescued_exception(method_name, ex, klass) | |
raise ex unless ::Rails.env.production? |
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
#!/bin/bash | |
debug=`git diff --cached | grep -C 2 -E '+\s*And (open|show me the page|save_and_open_page)'` | |
pry=`git diff --cached | grep -C 2 -E 'binding.pry'` | |
debugger=`git diff --cached | grep -C 2 debugger` | |
console_log=`git diff --cached | grep -C 2 console.log` | |
conflicts=`git diff --cached | grep -C 2 -E '<<<|>>>'` | |
if [ -n "$debug" ]; then | |
echo "debugging statements added in this commit" |
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 'formula' | |
class Mysql < Formula | |
homepage 'http://dev.mysql.com/doc/refman/5.1/en/' | |
url 'http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.60.tar.gz' | |
md5 '076d61d5f9b0de4e51b6c48a5e576035' | |
depends_on 'readline' | |
def options |
OlderNewer