mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[rubygems/rubygems] [DOC] Enable Gem::Package example
Other code must not be between the doc and class definition.
366784aae5
This commit is contained in:
parent
63b1633f86
commit
b85457c710
1 changed files with 6 additions and 5 deletions
|
|
@ -3,7 +3,12 @@
|
||||||
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
|
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
|
||||||
# See LICENSE.txt for additional licensing information.
|
# See LICENSE.txt for additional licensing information.
|
||||||
#++
|
#++
|
||||||
#
|
|
||||||
|
require_relative "../rubygems"
|
||||||
|
require_relative 'security'
|
||||||
|
require_relative 'user_interaction'
|
||||||
|
|
||||||
|
##
|
||||||
# Example using a Gem::Package
|
# Example using a Gem::Package
|
||||||
#
|
#
|
||||||
# Builds a .gem file given a Gem::Specification. A .gem file is a tarball
|
# Builds a .gem file given a Gem::Specification. A .gem file is a tarball
|
||||||
|
|
@ -41,10 +46,6 @@
|
||||||
# #files are the files in the .gem tar file, not the Ruby files in the gem
|
# #files are the files in the .gem tar file, not the Ruby files in the gem
|
||||||
# #extract_files and #contents automatically call #verify
|
# #extract_files and #contents automatically call #verify
|
||||||
|
|
||||||
require_relative "../rubygems"
|
|
||||||
require_relative 'security'
|
|
||||||
require_relative 'user_interaction'
|
|
||||||
|
|
||||||
class Gem::Package
|
class Gem::Package
|
||||||
include Gem::UserInteraction
|
include Gem::UserInteraction
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue