Sha256: 70a38586e1742ad46efb70b574652a922810e7d071a7e50ca6a132445833f766

Contents?: true

Size: 756 Bytes

Versions: 16

Compression:

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

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

16 entries across 16 versions & 5 rubygems

Version Path
aforward-actionwebservice-2.3.8.100 old/install.rb
aforward-actionwebservice-2.3.8.3 old/install.rb
aforward-actionwebservice-2.3.8.1 old/install.rb
valdemaximus-actionwebservice-0.1.1 install.rb
valdemaximus-actionwebservice-0.1.0 install.rb
backlog-0.0.0 vendor/rails/actionwebservice/install.rb
backlog-0.0.1 vendor/rails/actionwebservice/install.rb
backlog-0.0.2 vendor/rails/actionwebservice/install.rb
backlog-0.0.4 vendor/rails/actionwebservice/install.rb
radiant-0.6.0 vendor/rails/actionwebservice/install.rb
radiant-0.6.1 vendor/rails/actionwebservice/install.rb
radiant-0.6.2 vendor/rails/actionwebservice/install.rb
radiant-0.6.3 vendor/rails/actionwebservice/install.rb
radiant-0.6.4 vendor/rails/actionwebservice/install.rb
typo-5.1.98 vendor/actionwebservice/install.rb
typo-5.2 vendor/actionwebservice/install.rb