Skip to content

Commit

Permalink
Use require_relative for internal requires (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez committed Jan 4, 2022
1 parent faf8e5c commit e4f2682
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/optparse/ac.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: false
require 'optparse'
require_relative '../optparse'

class OptionParser::AC < OptionParser
private
Expand Down
2 changes: 1 addition & 1 deletion lib/optparse/date.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: false
require 'optparse'
require_relative '../optparse'
require 'date'

OptionParser.accept(DateTime) do |s,|
Expand Down
2 changes: 1 addition & 1 deletion lib/optparse/kwargs.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: true
require 'optparse'
require_relative '../optparse'

class OptionParser
# :call-seq:
Expand Down
2 changes: 1 addition & 1 deletion lib/optparse/shellwords.rb
Expand Up @@ -2,6 +2,6 @@
# -*- ruby -*-

require 'shellwords'
require 'optparse'
require_relative '../optparse'

OptionParser.accept(Shellwords) {|s,| Shellwords.shellwords(s)}
2 changes: 1 addition & 1 deletion lib/optparse/time.rb
@@ -1,5 +1,5 @@
# frozen_string_literal: false
require 'optparse'
require_relative '../optparse'
require 'time'

OptionParser.accept(Time) do |s,|
Expand Down
2 changes: 1 addition & 1 deletion lib/optparse/uri.rb
@@ -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}

0 comments on commit e4f2682

Please sign in to comment.