dnsbl-client 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/bin/dnsbl-client +0 -1
  4. data/data/three-level-tlds +1989 -2215
  5. data/data/two-level-tlds +96 -2
  6. data/lib/dnsbl/client.rb +1 -1
  7. data/lib/dnsbl/client/version.rb +1 -1
  8. data/test/helper.rb +4 -2
  9. data/test/test_dnsbl-client.rb +2 -2
  10. metadata +3 -52
  11. data/html/DNSBL.html +0 -98
  12. data/html/DNSBL/Client.html +0 -646
  13. data/html/DNSBL/DNSBLResult.html +0 -114
  14. data/html/README_md.html +0 -141
  15. data/html/Resolv.html +0 -98
  16. data/html/Resolv/DNS.html +0 -98
  17. data/html/Resolv/DNS/Config.html +0 -169
  18. data/html/created.rid +0 -4
  19. data/html/fonts.css +0 -167
  20. data/html/fonts/Lato-Light.ttf +0 -0
  21. data/html/fonts/Lato-LightItalic.ttf +0 -0
  22. data/html/fonts/Lato-Regular.ttf +0 -0
  23. data/html/fonts/Lato-RegularItalic.ttf +0 -0
  24. data/html/fonts/SourceCodePro-Bold.ttf +0 -0
  25. data/html/fonts/SourceCodePro-Regular.ttf +0 -0
  26. data/html/images/add.png +0 -0
  27. data/html/images/arrow_up.png +0 -0
  28. data/html/images/brick.png +0 -0
  29. data/html/images/brick_link.png +0 -0
  30. data/html/images/bug.png +0 -0
  31. data/html/images/bullet_black.png +0 -0
  32. data/html/images/bullet_toggle_minus.png +0 -0
  33. data/html/images/bullet_toggle_plus.png +0 -0
  34. data/html/images/date.png +0 -0
  35. data/html/images/delete.png +0 -0
  36. data/html/images/find.png +0 -0
  37. data/html/images/loadingAnimation.gif +0 -0
  38. data/html/images/macFFBgHack.png +0 -0
  39. data/html/images/package.png +0 -0
  40. data/html/images/page_green.png +0 -0
  41. data/html/images/page_white_text.png +0 -0
  42. data/html/images/page_white_width.png +0 -0
  43. data/html/images/plugin.png +0 -0
  44. data/html/images/ruby.png +0 -0
  45. data/html/images/tag_blue.png +0 -0
  46. data/html/images/tag_green.png +0 -0
  47. data/html/images/transparent.png +0 -0
  48. data/html/images/wrench.png +0 -0
  49. data/html/images/wrench_orange.png +0 -0
  50. data/html/images/zoom.png +0 -0
  51. data/html/index.html +0 -98
  52. data/html/js/darkfish.js +0 -140
  53. data/html/js/jquery.js +0 -18
  54. data/html/js/navigation.js +0 -142
  55. data/html/js/search.js +0 -109
  56. data/html/js/search_index.js +0 -1
  57. data/html/js/searcher.js +0 -228
  58. data/html/rdoc.css +0 -580
  59. data/html/table_of_contents.html +0 -120
@@ -1,114 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>class DNSBL::DNSBLResult - RDoc Documentation</title>
8
-
9
- <link href="../fonts.css" rel="stylesheet">
10
- <link href="../rdoc.css" rel="stylesheet">
11
-
12
- <script type="text/javascript">
13
- var rdoc_rel_prefix = "../";
14
- </script>
15
-
16
- <script src="../js/jquery.js"></script>
17
- <script src="../js/navigation.js"></script>
18
- <script src="../js/search_index.js"></script>
19
- <script src="../js/search.js"></script>
20
- <script src="../js/searcher.js"></script>
21
- <script src="../js/darkfish.js"></script>
22
-
23
-
24
- <body id="top" role="document" class="class">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="../index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="../table_of_contents.html#pages">Pages</a>
34
- <a href="../table_of_contents.html#classes">Classes</a>
35
- <a href="../table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
-
58
- <div id="class-metadata">
59
-
60
- <div id="parent-class-section" class="nav-section">
61
- <h3>Parent</h3>
62
-
63
-
64
- <p class="link">Struct.new(:dnsbl,:item,:query,:result,:meaning,:timing);
65
-
66
- </div>
67
-
68
-
69
-
70
-
71
- </div>
72
- </nav>
73
-
74
- <main role="main" aria-labelledby="class-DNSBL::DNSBLResult">
75
- <h1 id="class-DNSBL::DNSBLResult" class="class">
76
- class DNSBL::DNSBLResult
77
- </h1>
78
-
79
- <section class="description">
80
-
81
- <p><a href="DNSBLResult.html">DNSBLResult</a> holds the result of a <a
82
- href="../DNSBL.html">DNSBL</a> lookup dnsbl: name of the <a
83
- href="../DNSBL.html">DNSBL</a> that returned the answer item: the item
84
- queried, an IP or a domain result: the result code, e.g., 127.0.0.2
85
- meaning: the mapping of the result code to the meaning from the
86
- configuration file timing: the time between starting to send queries to the
87
- DNSBLs and when the result from this <a href="../DNSBL.html">DNSBL</a>
88
- returned</p>
89
-
90
- </section>
91
-
92
-
93
-
94
-
95
- <section id="5Buntitled-5D" class="documentation-section">
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- </section>
106
- </main>
107
-
108
-
109
- <footer id="validator-badges" role="contentinfo">
110
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
111
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
112
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
113
- </footer>
114
-
data/html/README_md.html DELETED
@@ -1,141 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>README - RDoc Documentation</title>
8
-
9
- <link href="./fonts.css" rel="stylesheet">
10
- <link href="./rdoc.css" rel="stylesheet">
11
-
12
- <script type="text/javascript">
13
- var rdoc_rel_prefix = "./";
14
- </script>
15
-
16
- <script src="./js/jquery.js"></script>
17
- <script src="./js/navigation.js"></script>
18
- <script src="./js/search_index.js"></script>
19
- <script src="./js/search.js"></script>
20
- <script src="./js/searcher.js"></script>
21
- <script src="./js/darkfish.js"></script>
22
-
23
-
24
- <body id="top" role="document" class="file">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="./index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="./table_of_contents.html#pages">Pages</a>
34
- <a href="./table_of_contents.html#classes">Classes</a>
35
- <a href="./table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
- <div class="nav-section">
58
- <h3>Table of Contents</h3>
59
-
60
- <ul class="link-list" role="directory">
61
- <li><a href="#label-DNSBL%3A%3AClient">DNSBL::Client</a>
62
- <li><a href="#label-Installation">Installation</a>
63
- <li><a href="#label-Usage">Usage</a>
64
- <li><a href="#label-Contributing">Contributing</a>
65
- </ul>
66
- </div>
67
-
68
-
69
- <div id="project-metadata">
70
- <div id="fileindex-section" class="nav-section">
71
- <h3>Pages</h3>
72
-
73
- <ul class="link-list">
74
-
75
- <li><a href="./README_md.html">README</a>
76
-
77
- </ul>
78
- </div>
79
-
80
- </div>
81
- </nav>
82
-
83
- <main role="main" aria-label="Page README.md">
84
-
85
- <h1 id="label-DNSBL%3A%3AClient"><a href="DNSBL/Client.html">DNSBL::Client</a><span><a href="#label-DNSBL%3A%3AClient">&para;</a> <a href="#documentation">&uarr;</a></span></h1>
86
-
87
- <p>dnsbl-client queries DNS Blacklists for listings. Currently this only does
88
- IP lookups, but the next version will handle domains.</p>
89
-
90
- <h2 id="label-Installation">Installation<span><a href="#label-Installation">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
91
-
92
- <p>Add this line to your application&#39;s Gemfile:</p>
93
-
94
- <pre>gem &#39;dnsbl-client&#39;</pre>
95
-
96
- <p>And then execute:</p>
97
-
98
- <pre>$ bundle</pre>
99
-
100
- <p>Or install it yourself as:</p>
101
-
102
- <pre>$ gem install dnsbl-client</pre>
103
-
104
- <h2 id="label-Usage">Usage<span><a href="#label-Usage">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
105
-
106
- <pre class="ruby"> <span class="ruby-identifier">require</span> <span class="ruby-string">&quot;dnsbl/client&quot;</span>
107
- <span class="ruby-identifier">c</span> = <span class="ruby-constant">DNSBL</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>
108
- <span class="ruby-identifier">c</span>.<span class="ruby-identifier">lookup</span>(<span class="ruby-string">&quot;203.150.14.85&quot;</span>)
109
- =<span class="ruby-operator">&gt;</span> [<span class="ruby-comment">#&lt;struct DNSBL::DNSBLResult dnsbl=&quot;UCEPROTECT1&quot;, query=&quot;85.14.150.203.dnsbl-1.uceprotect.net&quot;, result=&quot;127.0.0.2&quot;, meaning=&quot;Blacklisted&quot;, timing=0.0247988700866699&gt;, #&lt;struct DNSBL::DNSBLResult dnsbl=&quot;BARRACUDA&quot;, query=&quot;85.14.150.203.b.barracudacentral.org&quot;, result=&quot;127.0.0.2&quot;, meaning=&quot;Listed&quot;, timing=0.0266849994659424&gt;]</span>
110
-
111
- <span class="ruby-identifier">c</span>.<span class="ruby-identifier">add_dnsbl</span>(<span class="ruby-string">&quot;superdnsbl&quot;</span>,<span class="ruby-string">&quot;super.dnsbl.com&quot;</span>,<span class="ruby-string">&#39;ip&#39;</span>,{<span class="ruby-string">&quot;0&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-string">&quot;OK&quot;</span>,<span class="ruby-string">&quot;127.0.0.2&quot;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-string">&quot;Blacklisted&quot;</span>})
112
- <span class="ruby-identifier">puts</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">dnsbls</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot; &quot;</span>)
113
- </pre>
114
-
115
- <h2 id="label-Contributing">Contributing<span><a href="#label-Contributing">&para;</a> <a href="#documentation">&uarr;</a></span></h2>
116
- <ol><li>
117
- <p>Fork it</p>
118
- </li><li>
119
- <p>Create your feature branch (<code>git checkout -b my-new-feature</code>)</p>
120
- </li><li>
121
- <p>Commit your changes (<code>git commit -am &#39;Add some
122
- feature&#39;</code>)</p>
123
- </li><li>
124
- <p>Push to the branch (<code>git push origin my-new-feature</code>)</p>
125
- </li><li>
126
- <p>Create new Pull Request</p>
127
- </li></ol>
128
-
129
- <p>&lt;a href=‘mailto:github@chrislee[dot]dhs[dot]org[stop
130
- here]xxx&#39;&gt;&lt;img src=&#39;<a
131
- href="http://chrisleephd.us/images/github-email.png?dnsbl-client'></a">chrisleephd.us/images/github-email.png?dnsbl-client’></a</a>&gt;</p>
132
- </main>
133
-
134
-
135
-
136
- <footer id="validator-badges" role="contentinfo">
137
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
138
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
139
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
140
- </footer>
141
-
data/html/Resolv.html DELETED
@@ -1,98 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>module Resolv - RDoc Documentation</title>
8
-
9
- <link href="./fonts.css" rel="stylesheet">
10
- <link href="./rdoc.css" rel="stylesheet">
11
-
12
- <script type="text/javascript">
13
- var rdoc_rel_prefix = "./";
14
- </script>
15
-
16
- <script src="./js/jquery.js"></script>
17
- <script src="./js/navigation.js"></script>
18
- <script src="./js/search_index.js"></script>
19
- <script src="./js/search.js"></script>
20
- <script src="./js/searcher.js"></script>
21
- <script src="./js/darkfish.js"></script>
22
-
23
-
24
- <body id="top" role="document" class="module">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="./index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="./table_of_contents.html#pages">Pages</a>
34
- <a href="./table_of_contents.html#classes">Classes</a>
35
- <a href="./table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
-
58
- <div id="class-metadata">
59
-
60
-
61
-
62
-
63
-
64
- </div>
65
- </nav>
66
-
67
- <main role="main" aria-labelledby="module-Resolv">
68
- <h1 id="module-Resolv" class="module">
69
- module Resolv
70
- </h1>
71
-
72
- <section class="description">
73
-
74
- </section>
75
-
76
-
77
-
78
-
79
- <section id="5Buntitled-5D" class="documentation-section">
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
- </section>
90
- </main>
91
-
92
-
93
- <footer id="validator-badges" role="contentinfo">
94
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
95
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
96
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
97
- </footer>
98
-
data/html/Resolv/DNS.html DELETED
@@ -1,98 +0,0 @@
1
- <!DOCTYPE html>
2
-
3
- <html>
4
- <head>
5
- <meta charset="UTF-8">
6
-
7
- <title>module Resolv::DNS - RDoc Documentation</title>
8
-
9
- <link href="../fonts.css" rel="stylesheet">
10
- <link href="../rdoc.css" rel="stylesheet">
11
-
12
- <script type="text/javascript">
13
- var rdoc_rel_prefix = "../";
14
- </script>
15
-
16
- <script src="../js/jquery.js"></script>
17
- <script src="../js/navigation.js"></script>
18
- <script src="../js/search_index.js"></script>
19
- <script src="../js/search.js"></script>
20
- <script src="../js/searcher.js"></script>
21
- <script src="../js/darkfish.js"></script>
22
-
23
-
24
- <body id="top" role="document" class="module">
25
- <nav role="navigation">
26
- <div id="project-navigation">
27
- <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
- <h2>
29
- <a href="../index.html" rel="home">Home</a>
30
- </h2>
31
-
32
- <div id="table-of-contents-navigation">
33
- <a href="../table_of_contents.html#pages">Pages</a>
34
- <a href="../table_of_contents.html#classes">Classes</a>
35
- <a href="../table_of_contents.html#methods">Methods</a>
36
- </div>
37
- </div>
38
-
39
- <div id="search-section" role="search" class="project-section initially-hidden">
40
- <form action="#" method="get" accept-charset="utf-8">
41
- <div id="search-field-wrapper">
42
- <input id="search-field" role="combobox" aria-label="Search"
43
- aria-autocomplete="list" aria-controls="search-results"
44
- type="text" name="search" placeholder="Search" spellcheck="false"
45
- title="Type to search, Up and Down to navigate, Enter to load">
46
- </div>
47
-
48
- <ul id="search-results" aria-label="Search Results"
49
- aria-busy="false" aria-expanded="false"
50
- aria-atomic="false" class="initially-hidden"></ul>
51
- </form>
52
- </div>
53
-
54
- </div>
55
-
56
-
57
-
58
- <div id="class-metadata">
59
-
60
-
61
-
62
-
63
-
64
- </div>
65
- </nav>
66
-
67
- <main role="main" aria-labelledby="module-Resolv::DNS">
68
- <h1 id="module-Resolv::DNS" class="module">
69
- module Resolv::DNS
70
- </h1>
71
-
72
- <section class="description">
73
-
74
- </section>
75
-
76
-
77
-
78
-
79
- <section id="5Buntitled-5D" class="documentation-section">
80
-
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
- </section>
90
- </main>
91
-
92
-
93
- <footer id="validator-badges" role="contentinfo">
94
- <p><a href="http://validator.w3.org/check/referer">Validate</a>
95
- <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.0.
96
- <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
97
- </footer>
98
-