Sha256: d659eca421e5588a0f9ebc36dc32c01bf9f534c71914b1167effdff5dcf18f18

Contents?: true

Size: 547 Bytes

Versions: 3

Compression:

Stored size: 547 Bytes

Contents

#!/usr/bin/env ruby

# resolve bin path, ignoring symlinks
require "pathname"
bin_file = Pathname.new(__FILE__).realpath

# add locally vendored gems to libpath
gem_dir = File.expand_path("../../vendor/gems", bin_file)
Dir["#{gem_dir}/**/lib"].each do |libdir|
  $:.unshift libdir
end

# add self to libpath
$:.unshift File.expand_path("../../lib", bin_file)

if RUBY_VERSION < '1.9.0' # this is a string comparison, but it should work for any old ruby version
  $stderr.puts "aka requires Ruby 1.9+."
  exit 1
end

require 'aka.rb'

Aka::App.go!

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hsume2-aka-0.4.3 bin/aka
hsume2-aka-0.4.2 bin/aka
hsume2-aka-0.4.1 bin/aka