Sha256: 633047795184c1e9e6cbfb746a689bffa91a7478a6014e1fcca4896cca47661a

Contents?: true

Size: 749 Bytes

Versions: 26

Compression:

Stored size: 749 Bytes

Contents

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

include Config

def indir(newdir)
  olddir = Dir.pwd
  Dir.chdir(newdir)
  yield
ensure
  Dir.chdir(olddir)
end

$ruby = CONFIG['ruby_install_name']
$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 library files

file = 'flexmock.rb'

indir('lib') do
  Dir['**/*.rb'].each do |file|
    File::install(
      file,
      File.join($sitedir, file),
      0644,
      true)
  end
end


Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
flexmock-0.1.4 install.rb
flexmock-0.1.1 install.rb
flexmock-0.1.2 install.rb
flexmock-0.1.5 install.rb
flexmock-0.1.3 install.rb
flexmock-0.5.0 install.rb
flexmock-0.3.2 install.rb
flexmock-0.2.0 install.rb
flexmock-0.3.0 install.rb
flexmock-0.4.3.1 install.rb
flexmock-0.5.1 install.rb
flexmock-0.1.6 install.rb
flexmock-0.3.1 install.rb
flexmock-0.4.0 install.rb
flexmock-0.4.1 install.rb
flexmock-0.6.0 install.rb
flexmock-0.6.1 install.rb
flexmock-0.6.2 install.rb
flexmock-0.6.3 install.rb
flexmock-0.6.4 install.rb