rhack 1.2.1 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +13 -5
  2. data/README.md +21 -9
  3. data/ext/curb/curb.c +977 -977
  4. data/ext/curb/curb.h +52 -52
  5. data/ext/curb/curb_config.h +270 -270
  6. data/ext/curb/curb_easy.c +3437 -3434
  7. data/ext/curb/curb_easy.h +94 -94
  8. data/ext/curb/curb_errors.c +647 -647
  9. data/ext/curb/curb_errors.h +129 -129
  10. data/ext/curb/curb_macros.h +162 -162
  11. data/ext/curb/curb_multi.c +704 -702
  12. data/ext/curb/curb_multi.h +26 -26
  13. data/ext/curb/curb_postfield.c +523 -523
  14. data/ext/curb/curb_postfield.h +40 -40
  15. data/ext/curb/curb_upload.c +80 -80
  16. data/ext/curb/curb_upload.h +30 -30
  17. data/ext/curb-original/curb.c +977 -977
  18. data/ext/curb-original/curb.h +52 -52
  19. data/ext/curb-original/curb_config.h +238 -238
  20. data/ext/curb-original/curb_easy.c +3404 -3404
  21. data/ext/curb-original/curb_easy.h +90 -90
  22. data/ext/curb-original/curb_errors.c +647 -647
  23. data/ext/curb-original/curb_errors.h +129 -129
  24. data/ext/curb-original/curb_macros.h +159 -159
  25. data/ext/curb-original/curb_multi.c +633 -633
  26. data/ext/curb-original/curb_multi.h +26 -26
  27. data/ext/curb-original/curb_postfield.c +523 -523
  28. data/ext/curb-original/curb_postfield.h +40 -40
  29. data/ext/curb-original/curb_upload.c +80 -80
  30. data/ext/curb-original/curb_upload.h +30 -30
  31. data/lib/rhack/clients/base.rb +61 -10
  32. data/lib/rhack/clients/oauth.rb +4 -4
  33. data/lib/rhack/curl/easy.rb +1 -0
  34. data/lib/rhack/curl/global.rb +2 -0
  35. data/lib/rhack/curl/response.rb +4 -2
  36. data/lib/rhack/frame.rb +70 -32
  37. data/lib/rhack/js/browser/env.js +697 -697
  38. data/lib/rhack/js/browser/jquery.js +7180 -7180
  39. data/lib/rhack/js/browser/xmlsax.js +1564 -1564
  40. data/lib/rhack/js/browser/xmlw3cdom_1.js +1443 -1443
  41. data/lib/rhack/js/browser/xmlw3cdom_2.js +2744 -2744
  42. data/lib/rhack/page.rb +227 -68
  43. data/lib/rhack/scout.rb +52 -26
  44. data/lib/rhack/scout_squad.rb +10 -2
  45. data/lib/rhack/version.rb +1 -1
  46. data/rhack.gemspec +1 -1
  47. metadata +17 -17
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: c009239c6fbd460ac03d66f1d5c9120625bd444e
4
- data.tar.gz: 20a9a3b468d1cb046a5cc8f570e8e5bb4fe3538d
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ MDg3YTNjNmNlNzk5NTk1NDNkM2VkOGE4ZTVlZDkwZjQ2ODA3NTk3NA==
5
+ data.tar.gz: !binary |-
6
+ NTNjYjI2NzZjMTc2MDg4ZDEwYmMwYmNlMThhZWMwMjc5ODRkZDY3Mw==
5
7
  SHA512:
6
- metadata.gz: 765f9ad74e11d35c647498eb7e42e6a4a8ba8f15d0a11a1be8e2611b0fb26213b9f8265172c126b4dbeb69c9e26a194b84283f585e6faea1e49c23144164027a
7
- data.tar.gz: 08b87a49dde4b46bf372545a348f2f4dfa0d282c55e5c4a1589d9d4ff9a9105315193c1d5926558be1f33522536c0a37b11b74acf8eed3c3a02e252a4ae3922f
8
+ metadata.gz: !binary |-
9
+ NDA5ZGVkZjI5MWFkNTQyNjc1YzYxNDM2NjJmZTZiMjE3N2YwMjJkYTFiN2Iw
10
+ Yjc4ODQ5OGI2Y2Y4MzYxNWZmOWViN2Q0YzYxOTQ1MzEwYmIxOTBkNjY1NDUy
11
+ ZTJkZjA0ODNhZTJjODgxMTQ4ZmExMWNhNTljYzgwNDJjZGU1ZDk=
12
+ data.tar.gz: !binary |-
13
+ OWY3ODAzZmM0NDZmMjEwNGI3ODU2MWM3ZGE4OGE0ZDVmNWI5YzJkYWIwZjI0
14
+ ZDMwYTFkMzVhMjA3ZjYyMDNmOTdjNGFlNzdiZGY2ZGQ1MzExNzQzNGJjYjIz
15
+ MTI5MjNmNjM5MjliZWFjYTJlYzczMTM0YTU0MDNiNmM2ZDg4NGI=
data/README.md CHANGED
@@ -17,20 +17,32 @@ RHACK is Ruby Http ACcess Kit: curl-based web-client framework created for devel
17
17
 
18
18
  It's still randomly documented since it's just my working tool.
19
19
 
20
- #### Main goals for 1.x
21
-
22
- * More agile response postprocessing configuration. Instead of using :json, :hash etc as a flag, define some "before filters" in the Page and chain them.
23
- * Route :xhr option to the Scout; add some transparent control on user-agents: desktop, mobile, randomly predefined...
24
-
25
20
  #### Main goals for 2.0
26
- (if it would ever come)
27
21
 
28
- * Full javascript processing, including linked scripts; maybe support of other javascript engines gems.
29
- * Distributed proxified downloading of large files.
30
- * Console real-time speedometer for a downloader. Wait... for f--ks sake?
22
+ * Documented examples with Scout, Frame and Client
23
+ * Tests for Scout and Frame to interpret requests
24
+ * Tests for Scout, Page and Page subclasses to process fictive results
25
+ * Add some transparent control on user-agents: desktop, mobile, randomly predefined...
31
26
 
32
27
  ### CHANGES
33
28
 
29
+ ##### Version 1.2.5
30
+
31
+ * ::Scout
32
+ * Added #retry! method and fixed raise/retry workflow
33
+
34
+ * ::Page
35
+ * Added #retry? method to organize retry behaviour in subclasses
36
+ * RHACK#ReloadablePage is deprecated now
37
+
38
+ * Config
39
+ * rhack.yml generator: `rake rhack:config`
40
+ * Commented out "db" part and suppress require "rhack/storage" without Redis being loaded
41
+
42
+ * Curl
43
+ * 5xx HTTP response will call on_server_error callback instead of on_failure
44
+ * Fixed Segmentation Fault on `void curl_multi_free()'
45
+
34
46
  ##### Version 1.1.8
35
47
 
36
48
  * ::Page