net-dns 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. data/.gitignore +8 -6
  2. data/.travis.yml +14 -0
  3. data/CHANGELOG.md +79 -0
  4. data/Gemfile +4 -0
  5. data/Rakefile +56 -66
  6. data/demo/check_soa.rb +1 -1
  7. data/demo/threads.rb +1 -1
  8. data/lib/net/dns.rb +24 -22
  9. data/lib/net/dns/header.rb +77 -103
  10. data/lib/net/dns/{names/names.rb → names.rb} +19 -20
  11. data/lib/net/dns/packet.rb +231 -256
  12. data/lib/net/dns/question.rb +11 -40
  13. data/lib/net/dns/resolver.rb +248 -250
  14. data/lib/net/dns/resolver/socks.rb +6 -6
  15. data/lib/net/dns/resolver/timeouts.rb +1 -1
  16. data/lib/net/dns/rr.rb +112 -117
  17. data/lib/net/dns/rr/a.rb +98 -89
  18. data/lib/net/dns/rr/aaaa.rb +84 -68
  19. data/lib/net/dns/rr/classes.rb +91 -106
  20. data/lib/net/dns/rr/cname.rb +64 -45
  21. data/lib/net/dns/rr/hinfo.rb +90 -50
  22. data/lib/net/dns/rr/mr.rb +61 -44
  23. data/lib/net/dns/rr/mx.rb +73 -48
  24. data/lib/net/dns/rr/ns.rb +60 -46
  25. data/lib/net/dns/rr/null.rb +11 -12
  26. data/lib/net/dns/rr/ptr.rb +47 -34
  27. data/lib/net/dns/rr/soa.rb +5 -6
  28. data/lib/net/dns/rr/srv.rb +1 -4
  29. data/lib/net/dns/rr/txt.rb +14 -14
  30. data/lib/net/dns/rr/types.rb +13 -13
  31. data/lib/net/dns/version.rb +8 -14
  32. data/net-dns.gemspec +35 -0
  33. data/setup.rb +3 -2
  34. data/test/header_test.rb +18 -18
  35. data/test/names_test.rb +21 -0
  36. data/test/packet_test.rb +38 -31
  37. data/test/question_test.rb +23 -24
  38. data/test/resolver/timeouts_test.rb +13 -13
  39. data/test/resolver_test.rb +28 -20
  40. data/test/rr/a_test.rb +70 -23
  41. data/test/rr/aaaa_test.rb +109 -0
  42. data/test/rr/classes_test.rb +61 -49
  43. data/test/rr/cname_test.rb +97 -0
  44. data/test/rr/hinfo_test.rb +117 -0
  45. data/test/rr/mr_test.rb +105 -0
  46. data/test/rr/mx_test.rb +112 -0
  47. data/test/rr/ns_test.rb +34 -12
  48. data/test/rr/types_test.rb +4 -4
  49. data/test/rr_test.rb +1 -1
  50. metadata +77 -52
  51. data/AUTHORS.rdoc +0 -7
  52. data/CHANGELOG.rdoc +0 -46
  53. data/VERSION.yml +0 -5
@@ -1,7 +0,0 @@
1
- = Authors
2
-
3
- Net::DNS core development:
4
- Marco Ceresa <ceresa@ieee.org>
5
- Simone Carletti <weppos@weppos.net>
6
-
7
- Beta testing:
@@ -1,46 +0,0 @@
1
- = Changelog
2
-
3
-
4
- == Release 0.6.1
5
-
6
- * ADDED: Net::DNS::Packet#to_s method (alias of #inspect)
7
-
8
- * FIXED: typo in lib/net/dns/rr/ptr.rb [Thanks to Chris Lundquist]
9
-
10
- * FIXED: warning: method redefined; discarding old inspect [Thanks to Kevin Baker] (closes #3)
11
-
12
- * FIXED: issue with rescue ArgumentError (closes #5) and with IPAddr handling (closes #6)
13
-
14
-
15
- == Release 0.6.0
16
-
17
- *WARNING:* If you are upgrading from a previous minor release, check out the Compatibility issue list below.
18
-
19
- * FIXED: Added missing #to_s method to Net::DNS::Question.
20
-
21
- * FIXED: Compatibility with Ruby 1.9
22
-
23
- * FIXED: Types regexp order issue
24
-
25
- * CHANGED: Refactoring unit test to follow most used Ruby conventions
26
-
27
- * CHANGED: default timeout is now 5 seconds for both UDP and TCP
28
-
29
- * CHANGED: Moved main dns.rb file to lib/net folder as default for GEMs. In this way it can be autoloaded when the gem is required.
30
-
31
- === Compatibility issues
32
-
33
- * CHANGED: RR#set_stype scope is now private to prevent invalid usage.
34
-
35
- * CHANGED: DnsTimeout#timeout now raises LocalJumpError instead of DnsTimeoutArgumentError when block is missing.
36
-
37
- * CHANGED: Renamed Net::DNS::RR::Types::Types to Net::DNS::RR::Types::TYPES to follow Ruby coding standards.
38
-
39
-
40
- == Release 0.4
41
-
42
- * many bug fixes (thanks guys!)
43
- * a whole new class Net::DNS::Header::RCode
44
- * new methods in Net::DNS::Resolver class to do AXFR queries
45
- * a new SRV resource record written by Dan Janowski
46
- * more documentation written and corrected
@@ -1,5 +0,0 @@
1
- ---
2
- :major: 0
3
- :minor: 6
4
- :patch: 1
5
- :build: