local_pac 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.gitignore CHANGED
@@ -18,3 +18,4 @@ tmp
18
18
  share/archlinux/src/
19
19
  share/archlinux/pkg/
20
20
  *.tar.xz
21
+ *.tar.gz
@@ -1,5 +1,9 @@
1
1
  module LocalPac
2
2
  class FileServer < Sinatra::Base
3
+ configure do
4
+ mime_type :proxy_pac_file, 'application/x-ns-proxy-autoconfig'
5
+ end
6
+
3
7
  not_found do
4
8
  "Sorry, but I cant' find proxy-pac-file \"#{env['sinatra.error'].message}\"."
5
9
  end
@@ -9,6 +13,8 @@ module LocalPac
9
13
  end
10
14
 
11
15
  get '/v1/pac/:name' do
16
+ content_type :proxy_pac_file
17
+
12
18
  manager = PacManager.new
13
19
  file = manager.find(params[:name])
14
20
 
@@ -1,4 +1,4 @@
1
1
  #main LocalPac
2
2
  module LocalPac
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
@@ -10,7 +10,7 @@ depends=(ruby)
10
10
  makedepends=(rubygems filegen)
11
11
  source=(http://gems.rubyforge.org/gems/$pkgname-$pkgver.gem)
12
12
  noextract=($pkgname-$pkgver.gem)
13
- sha256sums=('d3db443b922d70a451a16669613c778b4fa7939852baf2ffd62758af107dd0ed')
13
+ sha256sums=('2f49eb7aee0dcdc38a4b715cf889ce9303a9a50a367fbb4f304d4dff96f3bbc8')
14
14
 
15
15
  package() {
16
16
  cd "$srcdir"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: local_pac
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: