Sha256: 5f6abf2c6060319704e8f238e8d45552d3519c8a6a652472728ea645ad82bf8e
Contents?: true
Size: 653 Bytes
Versions: 9
Compression:
Stored size: 653 Bytes
Contents
require 'rack/test' require 'rspec' require File.join(File.dirname(__FILE__),'..','..','lib','rhoconnect','server.rb') require File.join(File.dirname(__FILE__),'..','spec_helper') require File.join(File.dirname(__FILE__), '..', 'support', 'shared_examples') def app Rhoconnect::Server.set :stats, false @app ||= Rhoconnect::Server.new end def compress(path) path.sub!(%r[/$],'') archive = File.join(path,File.basename(path))+'.zip' FileUtils.rm archive, :force=>true Zip::ZipFile.open(archive, 'w') do |zipfile| Dir["#{path}/**/**"].reject{|f|f==archive}.each do |file| zipfile.add(file.sub(path+'/',''),file) end end end
Version data entries
9 entries across 9 versions & 1 rubygems