proxy_pac_rb 0.2.0 → 0.2.1

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/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
- parsepac https://github.com/dg-vrnetze/proxy_pac_rb/raw/master/files/sample.pac https://github.com
41
- parsepac https://github.com/dg-vrnetze/proxy_pac_rb/raw/master/files/sample.pac http://ruby-lang.com
42
- parsepac https://github.com/dg-vrnetze/proxy_pac_rb/raw/master/files/sample.pac http://samuel.kadolph.com
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
@@ -1,4 +1,4 @@
1
1
  #main ProxyPacRb
2
2
  module ProxyPacRb
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
data/tmp/sample.pac ADDED
@@ -0,0 +1,3 @@
1
+ function FindProxyForURL(url, host) {
2
+ return "DIRECT";
3
+ }
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.0
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: