project-honeypot 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,4 +71,8 @@ Given an api key of "abcdefghijkl"
71
71
  @listing.harvester?
72
72
  # => false
73
73
 
74
+ = To Do Items
74
75
 
76
+ - Cache Responses from Project Honeypot
77
+ - Allow 'safe?' to be configurable (algorithm based on recency and severity(score))
78
+ - A .yml config file
@@ -1,10 +1,4 @@
1
- require 'net/dns/resolver'
2
1
  require File.dirname(__FILE__) + "/project_honeypot/url.rb"
3
2
  require File.dirname(__FILE__) + "/project_honeypot/base.rb"
3
+ require File.dirname(__FILE__) + "/project_honeypot/project_honeypot.rb"
4
4
 
5
- module ProjectHoneypot
6
- def self.lookup(api_key, url)
7
- searcher = Base.new(api_key)
8
- searcher.lookup(url)
9
- end
10
- end
@@ -1,3 +1,5 @@
1
+ require 'net/dns/resolver'
2
+
1
3
  module ProjectHoneypot
2
4
  class Base
3
5
  def initialize(api_key)
@@ -0,0 +1,6 @@
1
+ module ProjectHoneypot
2
+ def self.lookup(api_key, url)
3
+ searcher = Base.new(api_key)
4
+ searcher.lookup(url)
5
+ end
6
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: project-honeypot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Charles Max Wood
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-10-22 00:00:00 -06:00
18
+ date: 2010-11-19 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -46,6 +46,7 @@ files:
46
46
  - lib/project-honeypot.rb
47
47
  - lib/project_honeypot/url.rb
48
48
  - lib/project_honeypot/base.rb
49
+ - lib/project_honeypot/project_honeypot.rb
49
50
  has_rdoc: true
50
51
  homepage: http://teachmetocode.com/
51
52
  licenses: []