1SIMPLE_GEM = <<-GEMDATA 2 MD5SUM = "989bf34a1cbecd52e0ea66b662b3a405" 3 if $0 == __FILE__ 4 require 'optparse' 5 6 options = {} 7 ARGV.options do |opts| 8 opts.on_tail("--help", "show this message") {puts opts; exit} 9 opts.on('--dir=DIRNAME', "Installation directory for the Gem") {|options[:directory]|} 10 opts.on('--force', "Force Gem to install, bypassing dependency checks") {|options[:force]|} 11 opts.on('--gen-rdoc', "Generate RDoc documentation for the Gem") {|options[:gen_rdoc]|} 12 opts.parse! 13 end 14 15 require 'rubygems' 16 @directory = options[:directory] || Gem.dir 17 @force = options[:force] 18 19 gem = Gem::Installer.new(__FILE__).install(@force, @directory) 20 if options[:gen_rdoc] 21 Gem::DocManager.new(gem).generate_rdoc 22 end 23end 24 25__END__ 26--- !ruby/object:Gem::Specification 27rubygems_version: "1.0" 28name: testing 29version: !ruby/object:Gem::Version 30 version: 1.2.3 31date: 2004-03-18 22:01:52.859121 -05:00 32platform: 33summary: This exercise the gem testing stuff. 34require_paths: 35 - lib 36files: 37 - lib/foo.rb 38 - lib/test 39 - lib/test.rb 40 - lib/test/wow.rb 41autorequire: test 42test_suite_file: foo 43requirements: 44 - a computer processor 45--- 46- 47 size: 109 48 mode: 420 49 path: lib/foo.rb 50- 51 size: 0 52 mode: 420 53 path: lib/test.rb 54- 55 size: 15 56 mode: 420 57 path: lib/test/wow.rb 58--- 59eJwVjDEKgDAUQ/eeIpsKguhY3ARPoHMp9quF0mL7e39/h5DwQpLpqz4TOqbC 60U42eO6WuYEvBntIhECuaaX1KqXXLmy2kAEc32szExK+PjyBAlpTZyK0N/Twu 61g1CKTjX9BGAj1w== 62--- 63eJwDAAAAAAE= 64--- 65eJwrKC0pVlAvzy9XyE3MU+cCACwiBP4= 66GEMDATA 67