rhack 1.1.5 → 1.1.6

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
- NzNmNWZmNGI4ZGFkMDQ0M2VlNjVlN2M3MDU2MWY0NDU2N2NjMmZhOQ==
4
+ NWNkY2FhMDI2NTg4YWMyOTNkNGRkMzJhYjc1NWFhYTU2Yzc3NzAzYg==
5
5
  data.tar.gz: !binary |-
6
- YTNlYzdjZjk3NDc4MjRjMTg3OWJmZWQxYjlkMWM3NTUxMmE4NWJiYg==
6
+ ODM0MDBmYmYyNjQxY2Q1M2YzYjhmYjFmNDY2N2QzNTRkZDQxNDA1Ng==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZjFkMTFhZDc2ZmJmODM3NjdlZjU5YjViNTYyMWQ2ZDQwOGMyMTQ3NThjM2Mw
10
- NTUzMTdhYjUwOGZkYWMwMGE3NTBiMWM0Y2Q5OGNkOTVlMzhmYzFiM2QwZjc5
11
- M2ExNWZjY2IyNzM1OTdlMTk2Njg2OWRjMTBmMjAwOTMwYWRkNjg=
9
+ ZGEyMzYxYzY0Y2U0Y2JhZjA5NjMzNDQ1NWU3YzA5NDllNWU3NWNiODU2ZTNl
10
+ OTZmNGQ1ZWIzZTdiOTUyNGM3N2U4ZTJiMDBkMzY2MDA5N2VmNDBjNGI5NDE4
11
+ Mjk4NWM0NTE3MzViNTlkYzQ3YzE2ZTdiMzVmNjA1YWI0ZDhjZDY=
12
12
  data.tar.gz: !binary |-
13
- OTI5OGViMzJlNjcyNjQyOGRjMzZiZDY2OWU5NTI5MjExMzY3MjVkMjA0MjFl
14
- MzRjMjBiYTc0YTI5OTMxZWNhYjE5ZTViOTczZTE3MGVkNmQ2ZjA3MTJkODdl
15
- MjE1ZDY0OTg1MWQzZmU2MTlmZmUyYTkxMmIyOGYyYzlkZmI0NzQ=
13
+ ODVhN2NlNDQzMzFmNzhiZGI5MDY3YWRmOTAyZWM0MDdkOTU0NjQ1MTc5ZmIw
14
+ YzcxM2M0Y2U5NTkxYWRkNGYxZDU0YTZjNTEyNmJiMjA1YjI2NjI3YmQ3NjM4
15
+ ODRmYWUzMTFiOGM1YmJlOWQzYTMwM2M3OTQyNjVkNjlmYTU1ZWM=
data/README.md CHANGED
@@ -31,7 +31,7 @@ It's still randomly documented since it's just my working tool.
31
31
 
32
32
  ### CHANGES
33
33
 
34
- ##### Version 1.1.5
34
+ ##### Version 1.1.6
35
35
 
36
36
  * ::Frame
37
37
  * Moved `Curl.execute` from *initialize* to *on after request added*
@@ -39,8 +39,6 @@ It's still randomly documented since it's just my working tool.
39
39
 
40
40
  * ::ScoutSquad
41
41
  * Finally stabilized #next and #rand time management for parallel recursive execution
42
-
43
- * Fixed freeing of Curl::Easy handlers in `curl_multi_free'
44
42
 
45
43
  ##### Version 1.1.3
46
44
 
@@ -71,8 +71,12 @@ 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) {
75
+ ruby_log((!rbcm->requests == Qnil) ? "true" : "false");
76
+ ruby_log_obj(rbcm->requests);
77
+ }
78
+ if (rbcm && !rbcm->requests == Qnil && rb_type(rbcm->requests) == T_HASH && RHASH_LEN(rbcm->requests) > 0) {
79
+ //if (rbcm && rb_type(rbcm->requests) == T_HASH && RHASH_LEN(rbcm->requests) > 0) {
76
80
  rb_hash_foreach( rbcm->requests, (int (*)())curl_multi_flush_easy, (VALUE)rbcm );
77
81
  rb_hash_foreach(rbcm->requests, rb_hash_clear_i, 0); //rb_hash_clear(rbcm->requests);
78
82
  rbcm->requests = Qnil;
@@ -637,7 +641,8 @@ static void rb_curl_multi_idle_perform(VALUE self, ruby_curl_multi *rbcm) {
637
641
  if (rc == -1)
638
642
  rb_raise(rb_eRuntimeError, "select(): %s", strerror(errno));
639
643
 
640
- } while (!RHASH_LEN(rbcm->requests));
644
+ //} while (!RHASH_LEN(rbcm->requests));
645
+ } while (!(RHASH_TBL(rbcm->requests)->num_entries));
641
646
 
642
647
  #ifdef _WIN32
643
648
  cleanup_crt_fd(&fdread, &crt_fdread);
data/lib/rhack/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RHACK
2
- VERSION = '1.1.5'
2
+ VERSION = '1.1.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rhack
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Baev