rhack 1.1.7 → 1.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YzliZTlhMjBjZjM2MzE4ZjNkZDc0MDQzYjg3MDM5NGZmZjdmMjUwMA==
4
+ ODEwYTk0NTdiOTg0MDRmMTA1YWU1NmYwNzNjMzBkNzk2ODYxY2FiMA==
5
5
  data.tar.gz: !binary |-
6
- OGFmNGYyN2Y0MTRkODYzNGRlNzc3NDY1ZTg3MTU5ZTBhZTdiN2FjZQ==
6
+ YzJmODZmY2QxYWVkYjJkZWFiN2RhODY4Y2Q0OTcyNTg3NGE0MzAzNw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NGQyMjRiNDZmZjRhMWMzZGUwZGE3NjhlMmE2ODYzOGM2NTBkN2JhYThjMDMw
10
- ZmZmODg3OThhMzFlNjU1ZjQ2MzI3ZjliY2ZlN2IyNDNiMGE0OTgxZTQxMDU2
11
- OGRhYzlhNzgxYzY5ZGEyN2Y1MmZkNjVlZTA0OWJjMThjMGMyNTQ=
9
+ MjI3NTZhODg3MGUxMGVlNzJhNGYwNWIyNTVmZGJhNjVjNzJjMjNmYjIyZjc5
10
+ ZTlhNjEwZjJkNGYxNDFhYjQ3ZGY0MjQ5MTcwMGFiNjcxZjYwOTI2NTIwNWIz
11
+ MDJjZWI4NjQzZTkyMGFmNWM2N2RmOWFhN2Y5MjU0Mjk2NWVjZWQ=
12
12
  data.tar.gz: !binary |-
13
- NTQ1ODZhMWY1NTIwZjcxZDM3YzVlY2ZiNTE3NDE2YmVkZDI1M2M4ODYyZjY3
14
- OGM0OTM4NjNjZjU5NzNhMTJjYzMyODA0YTNiOWE1NjFiMmM3MWUyN2MxNTY1
15
- NzU2OWE2YTU0M2RmM2VhM2FkMGE0YjhjMzU3ZDNkYWEyN2M5MmY=
13
+ MWNhNzJmZDI4OTRhYTgwZDJkNjQzODk2ZDYyNzQ4NTZlNTY4YjUyNTRiNGY0
14
+ MGQ1NWUxOTQyNTNiODBhOTYyYjRjOWQwMWE3ZjY5MTI5YWUwYTk5NTJhMTdl
15
+ YTIxNWQyZGJkMzhhNGJhMWU0MzMxMjE4ZjYxODZhYmI1YmU4NGQ=
data/README.md CHANGED
@@ -31,10 +31,12 @@ It's still randomly documented since it's just my working tool.
31
31
 
32
32
  ### CHANGES
33
33
 
34
- ##### Version 1.1.7
34
+ ##### Version 1.1.8
35
35
 
36
36
  * ::Page
37
37
  * Fixed #expand_link for partial links
38
+
39
+ * Make Curl.status catch any Exception subclass
38
40
 
39
41
  ##### Version 1.1.6
40
42
 
@@ -71,8 +71,8 @@ rb_hash_clear_i(VALUE key, VALUE value, VALUE dummy) {
71
71
  }
72
72
 
73
73
  static void curl_multi_free(ruby_curl_multi *rbcm) {
74
- //if (rbcm && !rbcm->requests == Qnil && rb_type(rbcm->requests) == T_HASH && RHASH_LEN(rbcm->requests) > 0) {
75
- if (rbcm && rb_type(rbcm->requests) == T_HASH && RHASH_LEN(rbcm->requests) > 0) {
74
+ if (rbcm && !rbcm->requests == Qnil && rb_type(rbcm->requests) == T_HASH && RHASH_LEN(rbcm->requests) > 0) {
75
+ //if (rbcm && rb_type(rbcm->requests) == T_HASH && RHASH_LEN(rbcm->requests) > 0) {
76
76
  rb_hash_foreach( rbcm->requests, (int (*)())curl_multi_flush_easy, (VALUE)rbcm );
77
77
  rb_hash_foreach(rbcm->requests, rb_hash_clear_i, 0); //rb_hash_clear(rbcm->requests);
78
78
  rbcm->requests = Qnil;
@@ -178,7 +178,7 @@ static VALUE ruby_curl_multi_idle(VALUE self) {
178
178
 
179
179
  Data_Get_Struct(self, ruby_curl_multi, rbcm);
180
180
 
181
- return RHASH_LEN(rbcm->requests) ? Qfalse : Qtrue;
181
+ return FIX2INT( rb_funcall(rbcm->requests, rb_intern("length"), 0) ) ? Qfalse : Qtrue;
182
182
  }
183
183
 
184
184
  /*
@@ -153,7 +153,7 @@ module Curl
153
153
  begin
154
154
  # status = nil
155
155
  error = @@carier_thread.value
156
- rescue => error
156
+ rescue Exception => error
157
157
  L.warn "Carier Thread has raised an exception"
158
158
  if raise_error
159
159
  recall!
@@ -172,5 +172,5 @@ module Curl
172
172
  end
173
173
  alias :st :status
174
174
 
175
- end\
175
+ end
176
176
  end
data/lib/rhack/page.rb CHANGED
@@ -307,7 +307,7 @@ module RHACK
307
307
  if src = node.src
308
308
  expand_link src
309
309
  end
310
- })) {|href| onfound && src ? onfound.call(src) : src}
310
+ })) {|src| onfound && src ? onfound.call(src) : src}
311
311
  end
312
312
  alias :src :get_src
313
313
 
data/lib/rhack/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RHACK
2
- VERSION = '1.1.7'
2
+ VERSION = '1.1.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Baev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-14 00:00:00.000000000 Z
11
+ date: 2013-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport