proxy_pac_rb 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +17 -3
- data/lib/proxy_pac_rb/version.rb +1 -1
- data/tmp/sample.pac +3 -0
- metadata +2 -1
data/README.md
CHANGED
@@ -36,10 +36,24 @@ After installing the `proxy_pac_rb` gem you must install a JavaScript runtime. C
|
|
36
36
|
|
37
37
|
### Command Line
|
38
38
|
|
39
|
+
*Arguments*
|
40
|
+
|
41
|
+
* `-p|--proxy-pac FILE`: Path to proxy pac file
|
42
|
+
* `-t|--time YYYY-MM-DD HH:MM:SS`: Time to use in proxy.pac
|
43
|
+
* `-c|--client-ip x.x.x.x`: Client-IP to use in proxy.pac
|
44
|
+
* `-h|--help`: Show help
|
45
|
+
|
46
|
+
*Use*
|
47
|
+
|
39
48
|
```
|
40
|
-
|
41
|
-
|
42
|
-
|
49
|
+
# Download pac
|
50
|
+
curl -L -o sample.pac https://github.com/dg-vrnetze/proxy_pac_rb/raw/master/files/sample.pac
|
51
|
+
|
52
|
+
# Parse pac
|
53
|
+
parsepac -c 127.0.0.1 -t "2014-03-09 12:00:00" -p sample.pac https://github.com
|
54
|
+
|
55
|
+
# => url: result
|
56
|
+
# => https://github.com: DIRECT
|
43
57
|
```
|
44
58
|
|
45
59
|
### Ruby
|
data/lib/proxy_pac_rb/version.rb
CHANGED
data/tmp/sample.pac
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: proxy_pac_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -102,6 +102,7 @@ files:
|
|
102
102
|
- spec/support/string.rb
|
103
103
|
- tmp/functions.js
|
104
104
|
- tmp/functions.rb
|
105
|
+
- tmp/sample.pac
|
105
106
|
- tmp/script.rb
|
106
107
|
homepage: https://github.com/dg-vrnetze/ruby_pac_rb
|
107
108
|
licenses:
|