proxy_pac_rb 0.2.1 → 0.2.2
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/.travis.yml +7 -0
- data/README.md +5 -0
- data/features/.keep +0 -0
- data/lib/proxy_pac_rb/environment.rb +1 -1
- data/lib/proxy_pac_rb/version.rb +1 -1
- metadata +11 -2
data/.travis.yml
ADDED
data/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Proxy Pac Rb
|
|
2
2
|
|
|
3
|
+
[](https://travis-ci.org/dg-vrnetze/proxy_pac_rb)
|
|
4
|
+
[](https://codeclimate.com/github/dg-vrnetze/proxy_pac_rb)
|
|
5
|
+
[](https://coveralls.io/r/dg-vrnetze/proxy_pac_rb?branch=master)
|
|
6
|
+
[](http://badge.fury.io/rb/proxy_pac_rb)
|
|
7
|
+
|
|
3
8
|
`proxy_pac_rb` is a gem to parse [proxy auto-config](http://en.wikipedia.org/wiki/Proxy_auto-config) files.
|
|
4
9
|
`proxy_pac_rb` uses a JavaScript runtime to evaulate a proxy auto-config file the same way a browser does to determine what proxy (if
|
|
5
10
|
any at all) should a program use to connect to a server. You must install on of the supported JavaScript runtimes:
|
data/features/.keep
ADDED
|
File without changes
|
|
@@ -14,7 +14,7 @@ module ProxyPacRb
|
|
|
14
14
|
@days = { "MON" => 1, "TUE" => 2, "WED" => 3, "THU" => 4, "FRI" => 5, "SAT" => 6, "SUN" => 0 }
|
|
15
15
|
@months = { "JAN" => 1, "FEB" => 2, "MAR" => 3, "APR" => 4, "MAY" => 5, "JUN" => 6, "JUL" => 7, "AUG" => 8, "SEP" => 9, "OCT" => 10, "NOV" => 11, "DEC" => 12 }
|
|
16
16
|
|
|
17
|
-
@client_ip
|
|
17
|
+
@client_ip = options.fetch(:client_ip, '127.0.0.1')
|
|
18
18
|
@time = options.fetch(:time, Time.now)
|
|
19
19
|
@io = options.fetch(:io, $stderr)
|
|
20
20
|
|
data/lib/proxy_pac_rb/version.rb
CHANGED
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.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-03-
|
|
12
|
+
date: 2014-03-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: addressable
|
|
@@ -63,12 +63,14 @@ files:
|
|
|
63
63
|
- .rdebugrc
|
|
64
64
|
- .rspec
|
|
65
65
|
- .simplecov
|
|
66
|
+
- .travis.yml
|
|
66
67
|
- .yardopts
|
|
67
68
|
- Gemfile
|
|
68
69
|
- LICENSE.md
|
|
69
70
|
- README.md
|
|
70
71
|
- Rakefile
|
|
71
72
|
- bin/parsepac
|
|
73
|
+
- features/.keep
|
|
72
74
|
- files/sample.pac
|
|
73
75
|
- files/sample2.pac
|
|
74
76
|
- files/sample3.pac
|
|
@@ -117,12 +119,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
117
119
|
- - ! '>='
|
|
118
120
|
- !ruby/object:Gem::Version
|
|
119
121
|
version: '0'
|
|
122
|
+
segments:
|
|
123
|
+
- 0
|
|
124
|
+
hash: 2656522529819863019
|
|
120
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
126
|
none: false
|
|
122
127
|
requirements:
|
|
123
128
|
- - ! '>='
|
|
124
129
|
- !ruby/object:Gem::Version
|
|
125
130
|
version: '0'
|
|
131
|
+
segments:
|
|
132
|
+
- 0
|
|
133
|
+
hash: 2656522529819863019
|
|
126
134
|
requirements: []
|
|
127
135
|
rubyforge_project:
|
|
128
136
|
rubygems_version: 1.8.23
|
|
@@ -130,6 +138,7 @@ signing_key:
|
|
|
130
138
|
specification_version: 3
|
|
131
139
|
summary: gem to parse proxy auto-config files.
|
|
132
140
|
test_files:
|
|
141
|
+
- features/.keep
|
|
133
142
|
- spec/environment_spec.rb
|
|
134
143
|
- spec/file_spec.rb
|
|
135
144
|
- spec/parser_spec.rb
|