Sha256: 92a4cd0f487322e6e6c4085a4f902588001b7283730ea5fbbba8497937093175

Contents?: true

Size: 726 Bytes

Versions: 36

Compression:

Stored size: 726 Bytes

Contents

require 'rbconfig'
require 'find'
require 'ftools'

include Config

# this was adapted from rdoc's install.rb by ways of Log4r

$sitedir = CONFIG["sitelibdir"]
unless $sitedir
  version = CONFIG["MAJOR"] + "." + CONFIG["MINOR"]
  $libdir = File.join(CONFIG["libdir"], "ruby", version)
  $sitedir = $:.find {|x| x =~ /site_ruby/ }
  if !$sitedir
    $sitedir = File.join($libdir, "site_ruby")
  elsif $sitedir !~ Regexp.quote(version)
    $sitedir = File.join($sitedir, version)
  end
end

# the acual gruntwork
Dir.chdir("lib")

Find.find("uuidtools.rb") { |f|
  if f[-3..-1] == ".rb"
    File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
  else
    File::makedirs(File.join($sitedir, *f.split(/\//)))
  end
}

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
typo-5.5 vendor/uuidtools/install.rb
typo-5.4.4 vendor/uuidtools/install.rb
typo-5.4.3 vendor/uuidtools/install.rb
typo-5.4.2 vendor/uuidtools/install.rb
typo-5.4.1 vendor/uuidtools/install.rb
typo-5.4 vendor/uuidtools/install.rb
typo-3.99.0 vendor/uuidtools/install.rb
typo-3.99.3 vendor/uuidtools/install.rb
typo-3.99.1 vendor/uuidtools/install.rb
typo-3.99.2 vendor/uuidtools/install.rb
typo-4.0.2 vendor/uuidtools/install.rb
typo-3.99.4 vendor/uuidtools/install.rb
typo-4.0.0 vendor/uuidtools/install.rb
typo-4.0.1 vendor/uuidtools/install.rb
typo-4.0.3 vendor/uuidtools/install.rb
typo-4.1.1 vendor/uuidtools/install.rb
typo-5.0.2 vendor/uuidtools/install.rb
typo-5.0.1 vendor/uuidtools/install.rb
typo-4.1 vendor/uuidtools/install.rb
typo-5.0.3.98.1 vendor/uuidtools/install.rb