mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/optparse] Use require_relative
for internal requires (https://github.com/ruby/optparse/pull/28)
https://github.com/ruby/optparse/commit/e4f2682128
This commit is contained in:
parent
5074aa1984
commit
f0669fb6cb
6 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'optparse'
|
||||
require_relative '../optparse'
|
||||
|
||||
class OptionParser::AC < OptionParser
|
||||
private
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'optparse'
|
||||
require_relative '../optparse'
|
||||
require 'date'
|
||||
|
||||
OptionParser.accept(DateTime) do |s,|
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
require 'optparse'
|
||||
require_relative '../optparse'
|
||||
|
||||
class OptionParser
|
||||
# :call-seq:
|
||||
|
|
|
@ -2,6 +2,6 @@
|
|||
# -*- ruby -*-
|
||||
|
||||
require 'shellwords'
|
||||
require 'optparse'
|
||||
require_relative '../optparse'
|
||||
|
||||
OptionParser.accept(Shellwords) {|s,| Shellwords.shellwords(s)}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: false
|
||||
require 'optparse'
|
||||
require_relative '../optparse'
|
||||
require 'time'
|
||||
|
||||
OptionParser.accept(Time) do |s,|
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# frozen_string_literal: false
|
||||
# -*- ruby -*-
|
||||
|
||||
require 'optparse'
|
||||
require_relative '../optparse'
|
||||
require 'uri'
|
||||
|
||||
OptionParser.accept(URI) {|s,| URI.parse(s) if s}
|
||||
|
|
Loading…
Reference in a new issue