From 2a70ba2366e1601db95af1c599467a9bf9b69eb3 Mon Sep 17 00:00:00 2001 From: woody2shoes Date: Wed, 20 Oct 2010 13:00:50 -0600 Subject: [PATCH] basic structure Base class and Url class --- README.rdoc | 0 lib/project_honeypot.rb | 6 ++++++ lib/project_honeypot/base.rb | 10 ++++++++++ lib/project_honeypot/url.rb | 4 ++++ lib/spec/base_spec.rb | 0 lib/spec/url_spec.rb | 0 6 files changed, 20 insertions(+) create mode 100644 README.rdoc create mode 100644 lib/project_honeypot.rb create mode 100644 lib/project_honeypot/base.rb create mode 100644 lib/project_honeypot/url.rb create mode 100644 lib/spec/base_spec.rb create mode 100644 lib/spec/url_spec.rb diff --git a/README.rdoc b/README.rdoc new file mode 100644 index 0000000..e69de29 diff --git a/lib/project_honeypot.rb b/lib/project_honeypot.rb new file mode 100644 index 0000000..7f5f3fd --- /dev/null +++ b/lib/project_honeypot.rb @@ -0,0 +1,6 @@ +module ProjectHoneypot + def lookup(api_key, url) + searcher = Base.new(api_key) + searcher.lookup(url) + end +end diff --git a/lib/project_honeypot/base.rb b/lib/project_honeypot/base.rb new file mode 100644 index 0000000..d410e7f --- /dev/null +++ b/lib/project_honeypot/base.rb @@ -0,0 +1,10 @@ + class Base + def initialize(api_key) + @api_key = api_key + end + + def lookup(url) + + end + end + diff --git a/lib/project_honeypot/url.rb b/lib/project_honeypot/url.rb new file mode 100644 index 0000000..46d5e3d --- /dev/null +++ b/lib/project_honeypot/url.rb @@ -0,0 +1,4 @@ + class Url + + end + diff --git a/lib/spec/base_spec.rb b/lib/spec/base_spec.rb new file mode 100644 index 0000000..e69de29 diff --git a/lib/spec/url_spec.rb b/lib/spec/url_spec.rb new file mode 100644 index 0000000..e69de29