Sha256: e2382458f39cf79d603871e98c88a96cb19f68254799fb1b31cf6a7636633090

Contents?: true

Size: 547 Bytes

Versions: 16

Compression:

Stored size: 547 Bytes

Contents

### Get Files from dir
begin

  module TMP
    @@spec_files = []
  end

  Dir[File.expand_path(File.join(File.dirname(__FILE__),"**","*"))].sort.uniq.each do |one_file_name|
    one_file_name = File.expand_path one_file_name
    file_name = one_file_name[(File.expand_path(File.dirname(__FILE__)).to_s.length+1)..(one_file_name.length-1)]

    if !one_file_name.include?("pkg")
      if !File.directory? file_name

        TMP.class_variable_get("@@spec_files").push file_name
        STDOUT.puts file_name if $DEBUG

      end
    end

  end

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
tmp-4.1.0 files.rb
tmp-4.0.0 files.rb
tmp-3.1.0 files.rb
tmp-3.0.0 files.rb
tmp-2.2.2 files.rb
tmp-2.2.1 files.rb
tmp-2.2.0 files.rb
tmp-2.1.0 files.rb
tmp-2.0.1 files.rb
tmp-2.0.0 files.rb
tmp-1.3.0 files.rb
tmp-1.2.0 files.rb
tmp-1.1.0 files.rb
tmp-1.0.1 files.rb
tmp-1.0.0 files.rb
tmp-0.0.1.pre files.rb