proxy_pac_rb 0.6.5 → 0.6.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d9bb18259daca8c2feefd6459826d9d945d3f2e
4
- data.tar.gz: cb3a974f126f15416b9e56c01de8cbe2b942a217
3
+ metadata.gz: fb1ec4f7794855c660497d33d932f2407156fbe3
4
+ data.tar.gz: 8e5794f77ee9ed2d29779a2204fec78653e31a0d
5
5
  SHA512:
6
- metadata.gz: 6ab244421982027297aa0613571faf892b90d73c25bf31108425b63746ba5dccb433838597848ddda9f71adf9d2fd3f9fbe4cce80d57152f9adff396feaed8e9
7
- data.tar.gz: 247249c304c7920cd53a91d4b853f1b75d6ed55ecc4b1df03682d802dc686e506074511e7c44beb4868379d883dd0fec64722f83a82d43966954136eb26a8957
6
+ metadata.gz: be7fb69f0156511ae205abdfafe3737f9dfa9ecf196401594e320c5d457d7de1072747ba1024633710876fb5df022447fad9dd2a9e5a4d11301f7c7a5d8b3a30
7
+ data.tar.gz: 4203bd90a368922fbf75bd01881a1b9671cf06d8107d8f4daee1e0ba5ce5ea6d71b706c86c867721d3e2ad8c723d9d36db032bd1fc09b2649537fff00dafe7b1
data/.gitignore CHANGED
@@ -3,3 +3,4 @@
3
3
  pkg/*
4
4
  coverage
5
5
  tmp/
6
+ Gemfile.lock
data/.travis.yml CHANGED
@@ -5,4 +5,4 @@ bundler_args: --without development debug profile
5
5
  rvm:
6
6
  - 2.1.5
7
7
  - 2.2.1
8
- script: script/ci
8
+ script: script/test
data/Gemfile CHANGED
@@ -20,9 +20,9 @@ group :development, :test do
20
20
  gem 'bundler', '~> 1.3', require: false
21
21
  gem 'command_exec', require: false
22
22
  gem 'coveralls', require: false
23
- gem 'cucumber', require: false, git: 'https://github.com/cucumber/cucumber'
23
+ gem 'cucumber', require: false
24
24
  gem 'erubis'
25
- gem 'fedux_org-stdlib', '~>0.11.16', require: false
25
+ gem 'fedux_org-stdlib', '~>0.11.17', require: false
26
26
  gem 'filegen'
27
27
  gem 'foreman', require: false
28
28
  gem 'fuubar', require: false
data/README.md CHANGED
@@ -533,8 +533,9 @@ end
533
533
 
534
534
  ## Developers
535
535
 
536
- After checking out the repo, run `script/bootstrap` to install dependencies. Then, run
537
- `script/console` for an interactive prompt that will allow you to experiment.
536
+ After checking out the repo, run `script/bootstrap` to install dependencies.
537
+ Then, run `script/console` for an interactive prompt that will allow you to
538
+ experiment. To run tests execute `script/test`.
538
539
 
539
540
  To install this gem onto your local machine, run `bundle exec rake gem:install`. To
540
541
  release a new version, update the version number in `version.rb`, and then run
data/Rakefile CHANGED
@@ -9,6 +9,8 @@ require 'fedux_org_stdlib/rake_tasks'
9
9
  require 'coveralls/rake/task'
10
10
  Coveralls::RakeTask.new
11
11
 
12
+ task default: :test
13
+
12
14
  desc 'Run test suite'
13
15
  task :test do
14
16
  Rake::Task['test:before'].execute
@@ -53,7 +53,7 @@ module ProxyPacRb
53
53
 
54
54
  def find(url, fail_safe: true)
55
55
  if fail_safe == true
56
- fail ProxyPacInvalidError, "The proxy.pac \"#{source}\" is not readable. Stopping here." unless readable?
56
+ fail ProxyPacInvalidError, "The proxy.pac \"#{source}\" is not readable: #{message}. Stopping here." unless readable?
57
57
  fail ProxyPacInvalidError, "The proxy.pac \"#{source}\" is not valid: #{message}. Stopping here." unless valid?
58
58
  fail ProxyPacInvalidError, "The proxy.pac \"#{source}\" is could not be parsed. There's no compiled javascript to use to lookup a url: #{message}. Stopping here." unless javascript?
59
59
  end
@@ -21,6 +21,8 @@ module ProxyPacRb
21
21
  # @param [#source] proxy_pac
22
22
  # The proxy.pac
23
23
  def lint(proxy_pac)
24
+ return unless proxy_pac.readable?
25
+
24
26
  rules.each { |r| r.lint(proxy_pac) }
25
27
 
26
28
  proxy_pac.valid = true
@@ -79,7 +79,9 @@ module ProxyPacRb
79
79
  private
80
80
 
81
81
  def lock
82
- result, exception = nil, nil
82
+ result = nil
83
+ exception = nil
84
+
83
85
  V8::C::Locker() do
84
86
  begin
85
87
  result = yield
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # ProxyPacRb
3
3
  module ProxyPacRb
4
- VERSION = '0.6.5'
4
+ VERSION = '0.6.7'
5
5
  end
data/lib/proxy_pac_rb.rb CHANGED
@@ -12,6 +12,7 @@ require 'resolv'
12
12
  require 'net/http'
13
13
  require 'time'
14
14
  require 'timeout'
15
+ require 'pathname'
15
16
 
16
17
  require 'proxy_pac_rb/version'
17
18
  require 'proxy_pac_rb/main'
data/script/{ci → test} RENAMED
File without changes
@@ -24,6 +24,7 @@ RSpec.describe ProxyPacLinter do
24
24
  allow(proxy_pac).to receive(:content).and_return(content)
25
25
  allow(proxy_pac).to receive(:valid).and_return(true)
26
26
  allow(proxy_pac).to receive(:type?).with(:string).and_return(true)
27
+ allow(proxy_pac).to receive(:readable?).and_return(true)
27
28
  end
28
29
 
29
30
  describe '#lint' do
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.6.5
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Günnewig
@@ -72,7 +72,6 @@ files:
72
72
  - ".yardopts"
73
73
  - CONTRIBUTING.md
74
74
  - Gemfile
75
- - Gemfile.lock
76
75
  - LICENSE.md
77
76
  - README.md
78
77
  - Rakefile
@@ -139,10 +138,10 @@ files:
139
138
  - proxy_pac_rb.gemspec
140
139
  - script/acceptance_test
141
140
  - script/bootstrap
142
- - script/ci
143
141
  - script/config.ru
144
142
  - script/console
145
143
  - script/release
144
+ - script/test
146
145
  - script/unit_test
147
146
  - spec/api/proxy_pac_compressor_spec.rb
148
147
  - spec/api/proxy_pac_dumper_spec.rb
data/Gemfile.lock DELETED
@@ -1,250 +0,0 @@
1
- GIT
2
- remote: https://github.com/cucumber/aruba
3
- revision: 4618398821ba290a17351121ac0571e53037bcab
4
- specs:
5
- aruba (0.6.2)
6
- childprocess (>= 0.3.6)
7
- cucumber (>= 1.1.1)
8
- rspec-expectations (>= 2.7.0)
9
-
10
- GIT
11
- remote: https://github.com/cucumber/cucumber
12
- revision: 09b0ae424233e5c429bdeb0b9d29f34846d52e09
13
- specs:
14
- cucumber (2.0.0)
15
- builder (>= 2.1.2)
16
- cucumber-core (~> 1.1.3)
17
- diff-lcs (>= 1.1.3)
18
- gherkin (~> 2.12)
19
- multi_json (>= 1.7.5, < 2.0)
20
- multi_test (>= 0.1.2)
21
-
22
- PATH
23
- remote: .
24
- specs:
25
- proxy_pac_rb (0.6.4)
26
- activesupport (~> 4.1)
27
- addressable (~> 2.3.8)
28
- uglifier (~> 2.7.1)
29
-
30
- GEM
31
- remote: https://rubygems.org/
32
- specs:
33
- activesupport (4.2.1)
34
- i18n (~> 0.7)
35
- json (~> 1.7, >= 1.7.7)
36
- minitest (~> 5.1)
37
- thread_safe (~> 0.3, >= 0.3.4)
38
- tzinfo (~> 1.1)
39
- addressable (2.3.8)
40
- ast (2.0.0)
41
- astrolabe (1.3.0)
42
- parser (>= 2.2.0.pre.3, < 3.0)
43
- awesome_print (1.6.1)
44
- binding_of_caller (0.7.2)
45
- debug_inspector (>= 0.0.1)
46
- blockenspiel (0.4.5)
47
- builder (3.2.2)
48
- byebug (4.0.5)
49
- columnize (= 0.9.0)
50
- childprocess (0.5.6)
51
- ffi (~> 1.0, >= 1.0.11)
52
- coderay (1.1.0)
53
- columnize (0.9.0)
54
- command_exec (0.2.0)
55
- activesupport
56
- smart_colored
57
- xml-simple
58
- coveralls (0.8.1)
59
- json (~> 1.8)
60
- rest-client (>= 1.6.8, < 2)
61
- simplecov (~> 0.10.0)
62
- term-ansicolor (~> 1.3)
63
- thor (~> 0.19.1)
64
- crack (0.4.2)
65
- safe_yaml (~> 1.0.0)
66
- cucumber-core (1.1.3)
67
- gherkin (~> 2.12.0)
68
- debug_inspector (0.0.2)
69
- diff-lcs (1.2.5)
70
- docile (1.1.5)
71
- domain_name (0.5.24)
72
- unf (>= 0.0.5, < 1.0.0)
73
- erubis (2.7.0)
74
- execjs (2.5.2)
75
- fedux_org-stdlib (0.11.16)
76
- activesupport
77
- ffi (1.9.8)
78
- filegen (0.4.3)
79
- activesupport
80
- foreman (0.78.0)
81
- thor (~> 0.19.1)
82
- fuubar (2.0.0)
83
- rspec (~> 3.0)
84
- ruby-progressbar (~> 1.4)
85
- gherkin (2.12.2)
86
- multi_json (~> 1.3)
87
- github-markup (1.3.3)
88
- http-cookie (1.0.2)
89
- domain_name (~> 0.5)
90
- httparty (0.13.4)
91
- json (~> 1.8)
92
- multi_xml (>= 0.5.2)
93
- i18n (0.7.0)
94
- inch (0.6.2)
95
- pry
96
- sparkr (>= 0.2.0)
97
- term-ansicolor
98
- yard (~> 0.8.7.5)
99
- json (1.8.2)
100
- launchy (2.4.3)
101
- addressable (~> 2.3)
102
- libv8 (3.16.14.7)
103
- license_finder (2.0.4)
104
- bundler
105
- httparty
106
- thor
107
- xml-simple
108
- method_source (0.8.2)
109
- mime-types (2.5)
110
- minitest (5.6.1)
111
- multi_json (1.11.0)
112
- multi_test (0.1.2)
113
- multi_xml (0.5.5)
114
- netrc (0.10.3)
115
- parser (2.2.2.3)
116
- ast (>= 1.1, < 3.0)
117
- powerpack (0.1.1)
118
- pry (0.10.1)
119
- coderay (~> 1.1.0)
120
- method_source (~> 0.8.1)
121
- slop (~> 3.4)
122
- pry-byebug (3.1.0)
123
- byebug (~> 4.0)
124
- pry (~> 0.10)
125
- pry-doc (0.6.0)
126
- pry (~> 0.9)
127
- yard (~> 0.8)
128
- pry-stack_explorer (0.4.9.2)
129
- binding_of_caller (>= 0.7)
130
- pry (>= 0.9.11)
131
- rack (1.6.1)
132
- rack-protection (1.5.3)
133
- rack
134
- rack-test (0.6.3)
135
- rack (>= 1.0)
136
- rainbow (2.0.0)
137
- rake (10.4.2)
138
- redcarpet (3.2.3)
139
- ref (1.0.5)
140
- rest-client (1.8.0)
141
- http-cookie (>= 1.0.2, < 2.0)
142
- mime-types (>= 1.16, < 3.0)
143
- netrc (~> 0.7)
144
- rspec (3.2.0)
145
- rspec-core (~> 3.2.0)
146
- rspec-expectations (~> 3.2.0)
147
- rspec-mocks (~> 3.2.0)
148
- rspec-core (3.2.3)
149
- rspec-support (~> 3.2.0)
150
- rspec-expectations (3.2.1)
151
- diff-lcs (>= 1.2.0, < 2.0)
152
- rspec-support (~> 3.2.0)
153
- rspec-mocks (3.2.1)
154
- diff-lcs (>= 1.2.0, < 2.0)
155
- rspec-support (~> 3.2.0)
156
- rspec-support (3.2.2)
157
- rubocop (0.31.0)
158
- astrolabe (~> 1.3)
159
- parser (>= 2.2.2.1, < 3.0)
160
- powerpack (~> 0.1)
161
- rainbow (>= 1.99.1, < 3.0)
162
- ruby-progressbar (~> 1.4)
163
- ruby-prof (0.15.8)
164
- ruby-progressbar (1.7.5)
165
- safe_yaml (1.0.4)
166
- simplecov (0.10.0)
167
- docile (~> 1.1.0)
168
- json (~> 1.8)
169
- simplecov-html (~> 0.10.0)
170
- simplecov-html (0.10.0)
171
- sinatra (1.4.6)
172
- rack (~> 1.4)
173
- rack-protection (~> 1.4)
174
- tilt (>= 1.3, < 3)
175
- slop (3.6.0)
176
- smart_colored (1.1.1)
177
- sparkr (0.4.1)
178
- term-ansicolor (1.3.0)
179
- tins (~> 1.0)
180
- therubyracer (0.12.2)
181
- libv8 (~> 3.16.14.0)
182
- ref
183
- therubyrhino (2.0.4)
184
- therubyrhino_jar (>= 1.7.3)
185
- therubyrhino_jar (1.7.6)
186
- thor (0.19.1)
187
- thread_safe (0.3.5)
188
- tilt (2.0.1)
189
- tins (1.5.1)
190
- tmrb (1.2.7)
191
- thor
192
- travis-lint (2.0.0)
193
- json
194
- tzinfo (1.2.2)
195
- thread_safe (~> 0.1)
196
- uglifier (2.7.1)
197
- execjs (>= 0.3.0)
198
- json (>= 1.8.0)
199
- unf (0.1.4)
200
- unf_ext
201
- unf_ext (0.0.7.1)
202
- versionomy (0.4.4)
203
- blockenspiel (>= 0.4.5)
204
- webmock (1.21.0)
205
- addressable (>= 2.3.6)
206
- crack (>= 0.3.2)
207
- xml-simple (1.1.5)
208
- yard (0.8.7.6)
209
-
210
- PLATFORMS
211
- ruby
212
-
213
- DEPENDENCIES
214
- aruba!
215
- awesome_print
216
- bundler (~> 1.3)
217
- byebug
218
- command_exec
219
- coveralls
220
- cucumber!
221
- erubis
222
- fedux_org-stdlib (~> 0.11.16)
223
- filegen
224
- foreman
225
- fuubar
226
- github-markup
227
- inch
228
- launchy
229
- license_finder
230
- proxy_pac_rb!
231
- pry
232
- pry-byebug
233
- pry-doc
234
- pry-stack_explorer
235
- rack
236
- rack-test
237
- rake
238
- redcarpet
239
- rspec
240
- rubocop
241
- ruby-prof
242
- simplecov
243
- sinatra
244
- therubyracer
245
- therubyrhino
246
- tmrb
247
- travis-lint
248
- versionomy
249
- webmock
250
- yard