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 +1 -0
- data/lib/local_pac/file_server.rb +6 -0
- data/lib/local_pac/version.rb +1 -1
- data/share/archlinux/PKGBUILD +1 -1
- metadata +1 -1
data/.gitignore
CHANGED
|
@@ -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
|
|
data/lib/local_pac/version.rb
CHANGED
data/share/archlinux/PKGBUILD
CHANGED
|
@@ -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=('
|
|
13
|
+
sha256sums=('2f49eb7aee0dcdc38a4b715cf889ce9303a9a50a367fbb4f304d4dff96f3bbc8')
|
|
14
14
|
|
|
15
15
|
package() {
|
|
16
16
|
cd "$srcdir"
|