Sha256: e0b692a1b2388af0ffc12f88c141a443e858796e5dd81521686e89955d906b44

Contents?: true

Size: 349 Bytes

Versions: 38

Compression:

Stored size: 349 Bytes

Contents

module TestFiles
  Dir.chdir(File.dirname(__FILE__)) do
    Dir['files/*.{html,xhtml,xml}'].each do |fname|
      if RUBY_VERSION >= '1.9'
        const_set fname[%r!/(\w+)\.\w+$!, 1].upcase, File.open(fname, 'r:ascii-8bit') { |f| f.read }
      else
        const_set fname[%r!/(\w+)\.\w+$!, 1].upcase, File.read(fname)
      end
    end
  end
end

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
akamai_bookmarklet-0.1.2 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/load_files.rb
akamai_bookmarklet-0.1.1 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/load_files.rb
akamai_bookmarklet-0.1.0 vendor/gems/ruby/1.8/gems/nokogiri-1.3.3/test/hpricot/load_files.rb
nokogiri-1.3.3-x86-mswin32 test/hpricot/load_files.rb
nokogiri-1.3.3-x86-mingw32 test/hpricot/load_files.rb
nokogiri-1.3.3-java test/hpricot/load_files.rb
nokogiri-1.3.2-x86-mswin32 test/hpricot/load_files.rb
nokogiri-1.3.2-x86-mingw32 test/hpricot/load_files.rb
nokogiri-1.3.2-java test/hpricot/load_files.rb
nokogiri-1.3.0-x86-mingw32 test/hpricot/load_files.rb
nokogiri-1.3.2 test/hpricot/load_files.rb
nokogiri-1.3.3 test/hpricot/load_files.rb
nokogiri-1.0.7-x86-mswin32-60 test/hpricot/load_files.rb
nokogiri-1.0.7 test/hpricot/load_files.rb
nokogiri-1.1.1-java test/hpricot/load_files.rb
nokogiri-1.1.0 test/hpricot/load_files.rb
nokogiri-1.1.0-x86-mswin32-60 test/hpricot/load_files.rb
nokogiri-1.1.1-x86-mswin32-60 test/hpricot/load_files.rb
nokogiri-1.2.0-x86-mswin32-60 test/hpricot/load_files.rb
nokogiri-1.2.0-java test/hpricot/load_files.rb