Sha256: a156c56a401560664727a917360ad5f0cb9c5cf675fcf86cae5db818f4461ddd

Contents?: true

Size: 747 Bytes

Versions: 93

Compression:

Stored size: 747 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("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

93 entries across 93 versions & 6 rubygems

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/activerecord/install.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/activerecord/install.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/activerecord/install.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/activerecord/install.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/activerecord/install.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/activerecord/install.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/activerecord/install.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/activerecord/install.rb
activerecord-1.10.1 install.rb
activerecord-1.11.1 install.rb
activerecord-1.12.2 install.rb
activerecord-1.11.0 install.rb
activerecord-1.13.0 install.rb
activerecord-1.12.1 install.rb
activerecord-1.10.0 install.rb
activerecord-1.14.1 install.rb
activerecord-1.13.2 install.rb
activerecord-1.14.3 install.rb
activerecord-1.14.0 install.rb
activerecord-1.14.2 install.rb