Sha256: cd302f505562eb86b457e609a5d0f98d3360618250142374147596accbc7650e

Contents?: true

Size: 500 Bytes

Versions: 4

Compression:

Stored size: 500 Bytes

Contents

# frozen_string_literal: true
require 'proxy_pac_rb/rack/proxy_pac_linter'
use ProxyPacRb::Rack::ProxyPacLinter

require 'proxy_pac_rb/rack/proxy_pac_compressor'
use ProxyPacRb::Rack::ProxyPacCompressor

page '*.pac', content_type: 'application/x-ns-proxy-autoconfig'

Dir.glob(File.join(source_dir, '**', '*.pac')).each do |f|
  relative_path = Pathname.new(f).relative_path_from(Pathname.new(source_dir))
  proxy(format('%s.raw', relative_path), relative_path.to_s, content_type: 'text/plain')
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
proxy_pac_rb-3.0.0 templates/build/middleman/config.rb
proxy_pac_rb-2.1.0 templates/build/middleman/config.rb
proxy_pac_rb-2.0.0 templates/build/middleman/config.rb
proxy_pac_rb-1.0.0 templates/build/middleman/config.rb