Skip to content

Commit

Permalink
Move the managed and reserved classes to top level.
Browse files Browse the repository at this point in the history
Much more readable, and had the opportunity to rename the files correctly
at the same time.
  • Loading branch information
hainesr committed Feb 24, 2024
1 parent 92f428a commit ef6bb47
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions lib/zip-container/container.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#
# Author: Robert Haines

require_relative 'entries/managed'
require_relative 'entries/reserved'
require_relative 'errors'
require_relative 'managed_entries'
require_relative 'reserved_names'

##
module ZipContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#
# Author: Robert Haines

require_relative 'entry'
require_relative 'managed'
require_relative 'reserved'
require_relative 'managed_entries'
require_relative 'managed_entry'
require_relative 'reserved_names'

##
module ZipContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
#
# Author: Robert Haines

require_relative 'entry'
require_relative 'file'
require_relative '../errors'
require_relative '../util'
require_relative 'errors'
require_relative 'managed_entry'
require_relative 'managed_file'
require_relative 'util'

##
module ZipContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#
# Author: Robert Haines

require_relative '../util'
require_relative 'util'

##
module ZipContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#
# Author: Robert Haines

require_relative 'entry'
require_relative 'managed_entry'

##
module ZipContainer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#
# Author: Robert Haines

require_relative '../util'
require_relative 'util'

##
module ZipContainer
Expand Down
6 changes: 3 additions & 3 deletions test/managed_entries_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@
require_relative 'test_helper'

require 'tmpdir'
require 'zip-container/file'
require 'zip-container/dir'
require 'zip-container/entries/file'
require 'zip-container/entries/directory'
require 'zip-container/file'
require 'zip-container/managed_directory'
require 'zip-container/managed_file'

# Classes to test managed entries.
class ManagedZipContainer < ZipContainer::File
Expand Down
4 changes: 2 additions & 2 deletions test/reserved_names_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

require 'zip-container/errors'
require 'zip-container/file'
require 'zip-container/entries/directory'
require 'zip-container/entries/file'
require 'zip-container/managed_directory'
require 'zip-container/managed_file'

# A class to test the overriding of reserved and managed names.
class NewZipContainer < ZipContainer::File
Expand Down

0 comments on commit ef6bb47

Please sign in to comment.