This file contains hidden or 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
$ bundle -v | |
Bundler version 0.9.11 | |
$ bundle install | |
Resolving dependencies | |
Could not find gem 'pg (= 0.9.0, runtime)' in any of the sources. | |
$ cat Gemfile | |
gem "rack", "1.0.1" | |
gem "heroku", "1.8.3" | |
[:development,:test].each do |g| |
This file contains hidden or 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 'rubygems' | |
require 'test/unit' | |
require 'mongo' | |
def rating(query) | |
collection_size = query.collection.count | |
return 100 if collection_size <= 1 | |
explanation = query.explain | |
return 0 if collection_size > 1 and explanation['startKey'].empty? |
This file contains hidden or 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
chadmac:~ woolley$ rvm 1.8.7 ; rvm info ; gem install hoe | |
rvm 0.1.9 by Wayne E. Seguin ([email protected]) [http://rvm.beginrescueend.com/] | |
system: | |
uname: "Darwin chadmac 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386" | |
shell: "bash" | |
version: "3.2.17(1)-release" | |
ruby: |
This file contains hidden or 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
Hoe failed with a segfault, then worked after I cd to home dir, then fails again after I change back to original dir. I did rvm update --head about two days ago (is there a way to display the commit id I have installed?) | |
chadmac:geminstaller woolley$ gem install hoe | |
/Users/woolley/.rvm/rubies/ruby-1.8.7-p249/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb:245: [BUG] Segmentation fault | |
ruby 1.8.7 (2010-01-10 patchlevel 249) [i686-darwin9.8.0] | |
Abort trap | |
chadmac:geminstaller woolley$ rvm -v | |
chadmac:geminstaller woolley$ cd | |
chadmac:~ woolley$ ruby -v |
This file contains hidden or 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
Processing ProjectsController#build (for 127.0.0.1 at 2010-01-27 03:00:31) [POST] | |
Parameters: {"authenticity_token"=>"6BH7VDUvsP1w7fjdxseHjQke2zAWV6Zw1KumDTzj0EY=", "id"=>"dummyrepo", "_"=>""} | |
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken): | |
Processing ProjectsController#build (for 127.0.0.1 at 2010-01-27 03:00:53) [POST] | |
Parameters: {"authenticity_token"=>"HKPUwANTFXW7uq6TizT+nHmPBGFxZcsHmypDaRKl7vM=", "id"=>"dummyrepo", "_"=>""} |
This file contains hidden or 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 | |
# This script copies all .gem files for all versions of a gem from gems.github.com to gemcutter.org. | |
# For all versions of a gem, it does a gem fetch, repackages the gem with the non-namespaced name, | |
# and does a gem push. You must have permission to push the gem, so your gemcutter key must be | |
# set in ~/.gemrc | |
require 'rubygems' | |
require 'yaml' | |
require 'fileutils' |
This file contains hidden or 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
# Execute a block +number+ times. Block should be a predicate (return true/false) | |
# | |
# Use procs/lambdas to define callbacks: | |
# :success => ... | |
# :retry => ... | |
# :failure => ... | |
def do_over(number, options = {}, &block) | |
options = { | |
:success => lambda { puts "SUCCESS" }, | |
:retry => lambda { puts "RETRY" }, |
This file contains hidden or 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
$ cat ~/.gemrc | |
cat: /Users/pivotal/.gemrc: No such file or directory | |
$ jruby -S gem env | |
RubyGems Environment: | |
- RUBYGEMS VERSION: 1.3.3 | |
- RUBY VERSION: 1.8.6 (2009-06-15 patchlevel 287) [java] | |
- INSTALLATION DIRECTORY: /usr/local/lib/jruby-1.3.1/lib/ruby/gems/1.8 | |
- RUBY EXECUTABLE: /usr/local/lib/jruby-1.3.1/bin/jruby | |
- EXECUTABLE DIRECTORY: /usr/local/lib/jruby-1.3.1/bin | |
- RUBYGEMS PLATFORMS: |
This file contains hidden or 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/ci/ci_build.rb b/ci/ci_build.rb | |
index 101edce..ab627b9 100755 | |
--- a/ci/ci_build.rb | |
+++ b/ci/ci_build.rb | |
@@ -65,7 +65,7 @@ cd "#{root_dir}/actionpack" do | |
puts | |
puts "[CruiseControl] Building ActionPack" | |
puts | |
- build_results[:actionpack] = system 'rake' | |
+ build_results[:actionpack] = system 'gem bundle && rake' |
This file contains hidden or 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
Gist sucks, keeps truncating my stuff - see http://pastie.org/617998 |