Sha256: c9287c5f0d10c73440a136ce87a988883b2505f72562ba91813f92ba76f1378d

Contents?: true

Size: 496 Bytes

Versions: 273

Compression:

Stored size: 496 Bytes

Contents

#!/usr/bin/env ruby -wW2

if $0 == __FILE__
  $: << '.'
  $: << '..'
  $: << '../lib'
  $: << '../ext'
end

require 'pp'
require 'sample/file'
require 'sample/dir'

def files(dir)
  d = ::Sample::Dir.new(dir)
  Dir.new(dir).each do |fn|
    next if fn.start_with?('.')
    filename = File.join(dir, fn)
    #filename = '.' == dir ? fn : File.join(dir, fn)
    if File.directory?(filename)
      d << files(filename)
    else
      d << ::Sample::File.new(filename)
    end
  end
  #pp d
  d
end

Version data entries

273 entries across 273 versions & 4 rubygems

Version Path
devcycle-ruby-server-sdk-2.0.0 vendor/bundle/ruby/3.0.0/gems/oj-3.13.2/test/files.rb
oj-3.14.2 test/files.rb
oj-3.14.1 test/files.rb
oj-3.14.0 test/files.rb
oj-3.13.23 test/files.rb
oj-3.13.22 test/files.rb
oj-3.13.21 test/files.rb
oj-3.13.20 test/files.rb
oj-3.13.19 test/files.rb
oj-3.13.18 test/files.rb
oj-3.13.17 test/files.rb
oj-3.13.16 test/files.rb
oj-3.13.15 test/files.rb
oj-3.13.14 test/files.rb
oj-3.13.13 test/files.rb
oj-3.13.12 test/files.rb
oj-3.13.11 test/files.rb
oj-3.13.10 test/files.rb
oj-3.13.9 test/files.rb
oj-3.13.8 test/files.rb