1
0
Fork 0
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:
David Rodríguez 2022-01-04 08:32:45 +01:00 committed by git
parent 5074aa1984
commit f0669fb6cb
6 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
# frozen_string_literal: false
require 'optparse'
require_relative '../optparse'
class OptionParser::AC < OptionParser
private

View file

@ -1,5 +1,5 @@
# frozen_string_literal: false
require 'optparse'
require_relative '../optparse'
require 'date'
OptionParser.accept(DateTime) do |s,|

View file

@ -1,5 +1,5 @@
# frozen_string_literal: true
require 'optparse'
require_relative '../optparse'
class OptionParser
# :call-seq:

View file

@ -2,6 +2,6 @@
# -*- ruby -*-
require 'shellwords'
require 'optparse'
require_relative '../optparse'
OptionParser.accept(Shellwords) {|s,| Shellwords.shellwords(s)}

View file

@ -1,5 +1,5 @@
# frozen_string_literal: false
require 'optparse'
require_relative '../optparse'
require 'time'
OptionParser.accept(Time) do |s,|

View file

@ -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}