From d6820f35271ad5d9e5b17b04054a39b9a2bc6c68 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Wed, 19 Dec 2012 15:04:40 +0100 Subject: [PATCH] Update Gemfile and gemspec file --- Gemfile | 6 ++---- lib/project_honeypot/version.rb | 3 +++ project-honeypot.gemspec | 29 ++++++++++++++++++----------- 3 files changed, 23 insertions(+), 15 deletions(-) create mode 100644 lib/project_honeypot/version.rb diff --git a/Gemfile b/Gemfile index 0389026..b955dbe 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,4 @@ -# A sample Gemfile source "http://rubygems.org" -gem "rspec" -gem "flexmock" -gem "net-dns" \ No newline at end of file +# Specify your gem's dependencies in project-honeypot.gemspec +gemspec diff --git a/lib/project_honeypot/version.rb b/lib/project_honeypot/version.rb new file mode 100644 index 0000000..6094e04 --- /dev/null +++ b/lib/project_honeypot/version.rb @@ -0,0 +1,3 @@ +module ProjectHoneypot + VERSION = "0.1.1" +end diff --git a/project-honeypot.gemspec b/project-honeypot.gemspec index 0bc0baf..9df0468 100644 --- a/project-honeypot.gemspec +++ b/project-honeypot.gemspec @@ -1,16 +1,23 @@ +# -*- encoding: utf-8 -*- +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'project_honeypot/version' + Gem::Specification.new do |s| s.name = %q{project-honeypot} - s.version = "0.1.1" - s.date = %q{2010-10-22} - s.authors = ["Charles Max Wood"] - s.email = %q{chuck@teachmetocode.com} + s.version = ProjectHoneypot::VERSION + s.authors = ["Charles Max Wood", "Guillaume DOTT"] + s.email = ["chuck@teachmetocode.com", "guillaume+github@dott.fr"] s.summary = %q{Project-Honeypot provides a programatic interface to the Project Honeypot services.} - s.homepage = %q{http://teachmetocode.com/} s.description = %q{Project-Honeypot provides a programatic interface to the Project Honeypot services. It can be used to identify spammers, bogus commenters, and harvesters. You will need a FREE api key from http://projecthoneypot.org} - s.add_dependency('net-dns') - s.files = [ "README.rdoc", - "MIT-LICENSE", - "lib/project-honeypot.rb", - "lib/project_honeypot/url.rb", - "lib/project_honeypot/base.rb"] + s.homepage = "" + + s.files = `git ls-files`.split($/) + s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) } + s.test_files = s.files.grep(%r{^(test|spec|features)/}) + + s.add_development_dependency 'rspec' + s.add_development_dependency 'flexmock' + + s.add_runtime_dependency 'net-dns' end