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 +8 -8
- data/README.md +3 -1
- data/ext/curb/curb_multi.c +3 -3
- data/lib/rhack/curl/global.rb +2 -2
- data/lib/rhack/page.rb +1 -1
- data/lib/rhack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODEwYTk0NTdiOTg0MDRmMTA1YWU1NmYwNzNjMzBkNzk2ODYxY2FiMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzJmODZmY2QxYWVkYjJkZWFiN2RhODY4Y2Q0OTcyNTg3NGE0MzAzNw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MjI3NTZhODg3MGUxMGVlNzJhNGYwNWIyNTVmZGJhNjVjNzJjMjNmYjIyZjc5
|
10
|
+
ZTlhNjEwZjJkNGYxNDFhYjQ3ZGY0MjQ5MTcwMGFiNjcxZjYwOTI2NTIwNWIz
|
11
|
+
MDJjZWI4NjQzZTkyMGFmNWM2N2RmOWFhN2Y5MjU0Mjk2NWVjZWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
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.
|
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
|
|
data/ext/curb/curb_multi.c
CHANGED
@@ -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
|
-
|
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
|
181
|
+
return FIX2INT( rb_funcall(rbcm->requests, rb_intern("length"), 0) ) ? Qfalse : Qtrue;
|
182
182
|
}
|
183
183
|
|
184
184
|
/*
|
data/lib/rhack/curl/global.rb
CHANGED
@@ -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
data/lib/rhack/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2013-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|