Sha256: 7a0eb904c8ce69fbb2dba23904e6df3a088a1331643a77d9c7f87b462a2e5828

Contents?: true

Size: 1002 Bytes

Versions: 25

Compression:

Stored size: 1002 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

makedirs = %w{ shipping }
makedirs.each {|f| File::makedirs(File.join($sitedir, *f.split(/\//)))}

Dir.chdir("lib")
begin
	require 'rubygems'
	require 'rake'
rescue LoadError
	puts
	puts "Please install Gem and Rake from http://rubyforge.org/projects/rubygems and http://rubyforge.org/projects/rake"
	puts
	exit(-1)
end

files = FileList["**/*"]

# File::safe_unlink *deprecated.collect{|f| File.join($sitedir, f.split(/\//))}
files.each {|f| 
  File::install(f, File.join($sitedir, *f.split(/\//)), 0644, true)
}

Version data entries

25 entries across 25 versions & 9 rubygems

Version Path
simple-rss-1.3.3 install.rb
simple-rss-1.3.2 install.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/bundler/gems/simple-rss-d1200d5126c2/install.rb
rrsimple-rss-1.3.10 install.rb
rrsimple-rss-1.3.9 install.rb
rrsimple-rss-1.3.8 install.rb
rrsimple-rss-1.3.7 install.rb
rrsimple-rss-1.3.6 install.rb
rrsimple-rss-1.3.5 install.rb
rrsimple-rss-1.3.4 install.rb
rrsimple-rss-1.3.3 install.rb
rrsimple-rss-1.3.2 install.rb
benschwarz-smoke-0.5.0 vendor/simple-rss/install.rb
benschwarz-smoke-0.5.1 vendor/simple-rss/install.rb
cardmagic-simple-rss-1.1 install.rb
cardmagic-simple-rss-1.2.1 install.rb
cardmagic-simple-rss-1.2.2 install.rb
cardmagic-simple-rss-1.2 install.rb
ideaoforder-shipping-1.6.1 install.rb
bridgeutopia-simple-rss-1.2.4 install.rb