Sha256: e82a5a9cd2623cc86ff85abd6e66573f59a2d1a8237bdc82649fd1e3b47103fc

Contents?: true

Size: 787 Bytes

Versions: 153

Compression:

Stored size: 787 Bytes

Contents

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

include Config

# this was adapted from rdoc's install.rb by way 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("action_controller", "action_controller.rb", "action_view", "action_view.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

153 entries across 150 versions & 19 rubygems

Version Path
actionpack-2.3.18 install.rb
actionpack_csi-2.3.5.p8 install.rb
actionpack-2.3.17-rack-upgrade-2.3.17 install.rb
actionpack-2.3.17 install.rb
actionpack_csi-2.3.5.p7 install.rb
actionpack_csi-2.3.5.p6 install.rb
actionpack-2.3.16 install.rb
actionpack-rack-upgrade-2-2.3.16 install.rb
actionpack-rack-upgrade-2-2.3.15 install.rb
actionpack-2.3.15 install.rb
actionpack-rack-upgrade-2.3.16 install.rb
actionpack-rack-upgrade-2.3.15 install.rb
actionpack-rack-upgrade-2.3.14 install.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/actionpack-2.3.14/install.rb
vanity-1.7.1 vendor/ruby/1.9.1/gems/actionpack-2.3.12/install.rb
actionpack-2.3.14 install.rb
kajam-1.0.3.rc2 vendor/rails/actionpack/install.rb
actionpack-2.3.12 install.rb
radiant-1.0.0.rc2 vendor/rails/actionpack/install.rb
radiant-1.0.0.rc1 vendor/rails/actionpack/install.rb