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