Sha256: ce2c5079cab9809042f36eeac0ff1c3f5cba15a6ba15fc27654af09e7dbecfbc

Contents?: true

Size: 470 Bytes

Versions: 6

Compression:

Stored size: 470 Bytes

Contents

#!/usr/bin/env ruby
require 'rubygems' unless defined?(Gem)
require 'bundler/setup' if %w(Gemfile .components).all? { |f| File.exist?(f) }

def fallback_load_path(path)
  retried = false
  begin
    yield
  rescue LoadError
    unless retried
      $: << path
      retried = true
      retry
    end
    raise
  end
end

fallback_load_path(File.join(File.dirname(__FILE__), '..', 'lib')) do
  require 'capucine.rb'
end

@cap = Capucine::Main.new
@cap.run_command(ARGV)

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
capucine-0.2.5 bin/capucine
capucine-0.2.4 bin/capucine
capucine-0.2.3 bin/capucine
capucine-0.2.2 bin/capucine
capucine-0.2.1 bin/capucine
capucine-0.2.0 bin/capucine