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
| $ gem spec --debug ~/.bundle/ruby/1.8/bundler/gems/sinatra-b525892ea06b9fac17e190c37b6500b2c2378e0b-1.0.a/sinatra-1.0.a.gem | |
| Exception `NameError' at /Library/Ruby/Site/1.8/rubygems/command_manager.rb:163 - uninitialized constant Gem::Commands::SpecificationCommand | |
| Exception `Gem::Exception' at /Library/Ruby/Site/1.8/rubygems/specification.rb:487 - YAML data doesn't evaluate to gem specification | |
| Exception `IOError' at /Library/Ruby/Site/1.8/rubygems/format.rb:50 - closed stream | |
| Exception `NoMethodError' at /Library/Ruby/Site/1.8/rubygems/commands/specification_command.rb:118 - undefined method `version' for nil:NilClass | |
| ERROR: While executing gem ... (NoMethodError) | |
| undefined method `version' for nil:NilClass | |
| /Library/Ruby/Site/1.8/rubygems/commands/specification_command.rb:118:in `execute' | |
| /Library/Ruby/Site/1.8/rubygems/format.rb:50:in `sort_by' | |
| /Library/Ruby/Site/1.8/rubygems/commands/specification_command.rb:118:in `each' |
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
| gem install --debug ~/.bundle/ruby/1.8/bundler/gems/sinatra-b525892ea06b9fac17e190c37b6500b2c2378e0b-1.0.a/sinatra-1.0.a.gem | |
| Exception `NameError' at /Library/Ruby/Site/1.8/rubygems/command_manager.rb:163 - uninitialized constant Gem::Commands::InstallCommand | |
| Exception `Gem::LoadError' at /Library/Ruby/Site/1.8/rubygems.rb:777 - Could not find RubyGem test-unit (>= 0) | |
| Exception `Gem::Exception' at /Library/Ruby/Site/1.8/rubygems/specification.rb:487 - YAML data doesn't evaluate to gem specification | |
| Exception `IOError' at /Library/Ruby/Site/1.8/rubygems/format.rb:50 - closed stream | |
| Exception `NoMethodError' at /Library/Ruby/Site/1.8/rubygems/dependency_list.rb:181 - undefined method `runtime_dependencies' for nil:NilClass | |
| ERROR: While executing gem ... (NoMethodError) | |
| undefined method `runtime_dependencies' for nil:NilClass | |
| /Library/Ruby/Site/1.8/rubygems/dependency_list.rb:181:in `tsort_each_child' |
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
| source :gemcutter | |
| git '[email protected]:emcien/emcien-engine.git' | |
| git 'git://github.com/rack/rack-contrib.git' | |
| git 'git://github.com/sinatra/sinatra.git', :ref => '1.0.a' | |
| gem 'emcien-engine', | |
| :require => 'emcien/engine' | |
| gem 'couchrest' |
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 'monkey' | |
| Monkey.see(Object) do | |
| def metaclass | |
| class << self; self; end | |
| end | |
| end | |
| o1 = Object.new | |
| o2 = Object.new |
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
| CREATE TABLE `db` ( | |
| `Host` char(60) COLLATE utf8_bin NOT NULL DEFAULT '', | |
| `Db` char(64) COLLATE utf8_bin NOT NULL DEFAULT '', | |
| `User` char(16) COLLATE utf8_bin NOT NULL DEFAULT '', | |
| `Select_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', | |
| `Insert_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', | |
| `Update_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', | |
| `Delete_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', | |
| `Create_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', | |
| `Drop_priv` enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N', |
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
| From af2fbd424f2b766dfb1a45f8fd1690aa60bd8eb9 Mon Sep 17 00:00:00 2001 | |
| From: Stephen Touset <[email protected]> | |
| Date: Thu, 18 Feb 2010 18:23:08 -0500 | |
| Subject: [PATCH] Generate gems through gemspec, so C extensions are built | |
| --- | |
| lib/bundler/source.rb | 25 ++++++++++++++----------- | |
| 1 files changed, 14 insertions(+), 11 deletions(-) | |
| diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb |
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/lib/bundler/source.rb b/lib/bundler/source.rb | |
| index 75da44f..23b993e 100644 | |
| --- a/lib/bundler/source.rb | |
| +++ b/lib/bundler/source.rb | |
| @@ -188,18 +188,19 @@ module Bundler | |
| private | |
| def generate_bin(spec) | |
| - # HAX -- Generate the bin | |
| - bin_dir = "#{Gem.dir}/bin" |
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
| module Authlogic::Session::Timeout::DontLockoutApiKey | |
| def self.included(klass) | |
| klass.class_eval do | |
| before_persisting_callback_chain.detect {|c| c.method == :reset_stale_state }.options.update(:unless => :single_access?) | |
| after_persisting_callback_chain.detect {|c| c.method == :enforce_timeout }.options.update(:unless => :single_access?) | |
| end | |
| end | |
| end | |
| class Authlogic::Session::Base |
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
| #include <stdio.h> | |
| int main(void) { | |
| int fd = dup2(1, 3); | |
| FILE *stdout2 = fdopen(fd, "w"); | |
| fprintf(stdout, "stdout\n"); | |
| fprintf(stdout2, "stdout2\n"); | |
| return 0; | |
| } |
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
| class ThreadPool | |
| attr_reader :size | |
| attr_reader :queue | |
| Job = Struct.new(:args, :block) | |
| # | |
| # Creates a new ThreadPool with +size+ threads, waiting at your beck and | |
| # call. | |
| # |