Sha256: a677ac9ff7c194cba993ab5ce675466ff772df22efbfe1164272cde62234f152

Contents?: true

Size: 748 Bytes

Versions: 114

Compression:

Stored size: 748 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 actual gruntwork
Dir.chdir("lib")

Find.find("active_record", "active_record.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

114 entries across 111 versions & 21 rubygems

Version Path
activerecord-2.3.8.pre1 install.rb
activerecord-2.3.7 install.rb
activerecord-2.3.6 install.rb
radiant-0.8.2 vendor/rails/activerecord/install.rb
radiant-0.9.0.rc2 vendor/rails/activerecord/install.rb
webroar-0.3.1 src/admin_panel/vendor/rails/activerecord/install.rb
webroar-0.3.0 src/admin_panel/vendor/rails/activerecord/install.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/install.rb
usher-0.7.0 spec/rails2_2/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.2.2/install.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activerecord/install.rb
usher-0.7.0 spec/rails2_3/vendor/rails/vendor/rails/activerecord/pkg/activerecord-2.3.3/install.rb
simply_stated-0.0.5 vendor/gems/ruby/1.8/gems/activerecord-2.3.5/install.rb
simply_stated-0.0.4 vendor/gems/ruby/1.8/gems/activerecord-2.3.5/install.rb
factorylabs-castronaut-0.7.5 vendor/activerecord/install.rb
ginst-2009.12.8 vendor/rails/activerecord/install.rb
activerecord-2.3.5 install.rb
ginst-2009.11.24 vendor/rails/activerecord/install.rb
ginst-2009.11.23 vendor/rails/activerecord/install.rb
ginst-2.0.1 vendor/rails/activerecord/install.rb
ginst-2.0.0 vendor/rails/activerecord/install.rb