Sha256: 18116ee73a024730455dece6b4cd20fac185e66e0b4385950469aae957a02a65

Contents?: true

Size: 529 Bytes

Versions: 31

Compression:

Stored size: 529 Bytes

Contents

module Hanami
  module Utils
    # Ordered file list, consistent across operating systems
    #
    # @since 0.9.0
    module FileList
      # Return an ordered list of files, consistent across operating systems
      #
      # It has the same signature of <tt>Dir.glob</tt>, it just guarantees to
      # order the results before to return them.
      #
      # @since 0.9.0
      #
      # @see https://ruby-doc.org/core/Dir.html#method-c-glob
      def self.[](*args)
        Dir.glob(*args).sort!
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
hanami-utils-1.1.0.beta1 lib/hanami/utils/file_list.rb
hanami-utils-1.0.2 lib/hanami/utils/file_list.rb
hanami-utils-1.0.1 lib/hanami/utils/file_list.rb
hanami-utils-1.0.0 lib/hanami/utils/file_list.rb
hanami-utils-1.0.0.rc1 lib/hanami/utils/file_list.rb
hanami-utils-1.0.0.beta3 lib/hanami/utils/file_list.rb
hanami-utils-1.0.0.beta2 lib/hanami/utils/file_list.rb
hanami-utils-1.0.0.beta1 lib/hanami/utils/file_list.rb
hanami-utils-0.9.2 lib/hanami/utils/file_list.rb
hanami-utils-0.9.1 lib/hanami/utils/file_list.rb
hanami-utils-0.9.0 lib/hanami/utils/file_list.rb