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 'rubygems' | |
require 'aws-sdk' | |
is_clean = `git diff-index HEAD`.chomp.empty? | |
unless is_clean | |
puts 'You currently have uncommitted changes. Stash or commit them before bundling.' | |
exit | |
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 'thread' | |
require 'fiber' | |
require 'benchmark' | |
include Benchmark | |
class DeferredProxy < BasicObject | |
def initialize(&block) | |
@fiber = ::Fiber.new do | |
thread = ::Thread.new{ @result = block.call } | |
::Fiber.yield |
NewerOlder