watobo 0.9.17 → 0.9.18

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,18 @@
1
+ Version 0.9.18
2
+ ===
3
+ News
4
+ ---
5
+
6
+ Fixes
7
+ ---
8
+ **Crawler**
9
+
10
+ * excluded path definitions are now handled correctly
11
+
12
+ ***SSLChecker***
13
+
14
+ * unsupported ciphers are now recognized
15
+
1
16
  Version 0.9.17
2
17
  ===
3
18
  News
@@ -8,6 +23,8 @@ News
8
23
  * changed parameter parsing for better handling
9
24
  * Boolean-SQL check now also takes xml parameters for testing
10
25
  * new appearance of CA certificates
26
+ * new custom response viewer; now you can code your own handler, e.g. `lambda{ |response| return response.content_type }`
27
+ * added table view on request viewer
11
28
 
12
29
  **Manual Request Editor**
13
30
 
@@ -20,9 +37,7 @@ Fixes
20
37
  * request line removed on `remove_header` regex match
21
38
  * double insert of Content-Length header
22
39
  * bad markdown format of CHANGELOG
23
- * wrong parameter parsing if value contains '=' sign
24
- * new custom response viewer; now you can code your own handler, e.g. `lambda{ |response| return response.content_type }`
25
- * added table view on request viewer
40
+ * wrong parameter parsing if value contains '=' sign
26
41
 
27
42
  Version 0.9.16
28
43
  ===
data/lib/watobo.rb CHANGED
@@ -62,7 +62,7 @@ dont_know_why_REQUIRE_hangs = Mechanize.new
62
62
  # @private
63
63
  module Watobo#:nodoc: all #:nodoc: all
64
64
 
65
- VERSION = "0.9.17"
65
+ VERSION = "0.9.18"
66
66
 
67
67
  def self.base_directory
68
68
  @base_directory ||= ""
@@ -196,6 +196,8 @@ module Watobo#:nodoc: all
196
196
  ssl_prefs[:client_certificate] = client_cert
197
197
  end
198
198
  socket = sslConnect(tcp_socket, ssl_prefs)
199
+ # puts "SSLSocket " + (socket.nil? ? "NO" : "OK")
200
+ return nil, request, [] if socket.nil?
199
201
  end
200
202
  #puts socket.class
201
203
  # remove URI before sending request but cache it for restoring request
@@ -273,7 +275,7 @@ module Watobo#:nodoc: all
273
275
  puts bang
274
276
  puts bang.backtrace if $DEBUG
275
277
  end
276
- puts response
278
+ #puts response
277
279
  return socket, request, response
278
280
  end
279
281
 
@@ -333,6 +335,7 @@ module Watobo#:nodoc: all
333
335
 
334
336
  if socket.nil?
335
337
  return request, response
338
+ #return request, nil
336
339
  end
337
340
 
338
341
  @sid_cache.update_sids(request.site, response.headers) if @session[:update_sids] == true
@@ -688,6 +691,11 @@ end
688
691
  #socket.setsockopt( Socket::SOL_SOCKET, Socket::SO_KEEPALIVE, 1)
689
692
  puts "[SSLconnect]: #{socket.state}" if $DEBUG
690
693
  return socket
694
+ rescue OpenSSL::SSL::SSLError => e
695
+ # puts "[SSLconnect] Failure"
696
+ # puts e
697
+ raise e
698
+ #return nil
691
699
  rescue => bang
692
700
  if current_prefs[:ssl_cipher].nil?
693
701
  puts "[SSLconnect] ... gr#!..*peep*.. "
@@ -191,6 +191,9 @@ module Watobo#:nodoc: all
191
191
 
192
192
  def load_handler(file)
193
193
  @handler = nil
194
+ @handler_status_lbl.text = "No handler!"
195
+ @handler_status_lbl.textColor = "red"
196
+
194
197
  return false if file.nil?
195
198
  return false unless File.exist? file
196
199
  begin
@@ -413,11 +413,11 @@ end
413
413
  def url_allowed?(uri)
414
414
  # puts "* excluded_urls"
415
415
  # puts exluded_urls
416
- return false if excluded_urls.select{ |url| uri.path_ext =~ /#{url}/ }.length > 0
416
+ return false if excluded_urls.select{ |url| uri.path =~ /#{url}/ }.length > 0
417
417
  # puts "* allowed_urls"
418
418
  # puts allowed_urls
419
419
  return true if allowed_urls.empty?
420
- return true if allowed_urls.select{ |url| uri.path_ext =~ /#{url}/ }.length > 0
420
+ return true if allowed_urls.select{ |url| uri.path =~ /#{url}/ }.length > 0
421
421
  # puts "> URL is NOT allowed"
422
422
  return false
423
423
  end
@@ -103,7 +103,7 @@ module Watobo#:nodoc: all
103
103
  :support => true
104
104
  }
105
105
 
106
- if test_request and test_response
106
+ unless test_response.status =~ /555/
107
107
 
108
108
 
109
109
  notify( :cipher_checked, result)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watobo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.17
4
+ version: 0.9.18
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: 2013-10-24 00:00:00.000000000 Z
12
+ date: 2013-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json