From 9b614bee0e0a53de7c68bd23c8f6e33439fe902e Mon Sep 17 00:00:00 2001 From: Kaspar Schiess Date: Fri, 12 Feb 2010 15:12:52 +0100 Subject: [PATCH] . fixes the Rakefile to generate a real package --- .gitignore | 2 ++ Rakefile | 10 +++++----- net-ldap.gemspec | 25 ------------------------- 3 files changed, 7 insertions(+), 30 deletions(-) create mode 100644 .gitignore delete mode 100644 net-ldap.gemspec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7606b84 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +pkg/ +*.gemspec diff --git a/Rakefile b/Rakefile index c8ecc35..f73ef87 100644 --- a/Rakefile +++ b/Rakefile @@ -25,10 +25,10 @@ spec = Gem::Specification.new do |s| s.name = "net-ldap" s.version = "0.1.0" s.summary = "What this thing does" - s.author = "Francis Cianfrocca", 'garbagecat10@gmail.com' - s.author = 'Emiel van de Laar', 'gemiel@gmail.com' - s.author = "Rory O'Connell", 'rory.ocon@gmail.com' - s.author = "Kaspar Schiess", 'kaspar.schiess@absurd.li' + s.author = "Francis Cianfrocca" + s.author = 'Emiel van de Laar' + s.author = "Rory O'Connell" + s.author = "Kaspar Schiess" s.description = "Pure Ruby LDAP library" @@ -37,7 +37,7 @@ spec = Gem::Specification.new do |s| # s.rdoc_options = %w(--main README.txt) # Add any extra files to include in the gem - s.files = %w(COPYING History.txt LICENSE Manifest.txt pre-setup.rb Rakefile README.txt Release-Announcement setup.rb) + Dir.glob("{test,lib/**/*}") + s.files = %w(COPYING History.txt LICENSE Rakefile README.txt) + Dir.glob("{spec,test,lib/**/*}") s.require_paths = ["lib"] end diff --git a/net-ldap.gemspec b/net-ldap.gemspec deleted file mode 100644 index a3f2c74..0000000 --- a/net-ldap.gemspec +++ /dev/null @@ -1,25 +0,0 @@ -# -*- encoding: utf-8 -*- - -Gem::Specification.new do |s| - s.name = %q{net-ldap} - s.version = "0.1.0" - - s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= - s.authors = [["Kaspar Schiess", "kaspar.schiess@absurd.li"]] - s.date = %q{2010-02-12} - s.description = %q{Pure Ruby LDAP library} - s.files = ["COPYING", "History.txt", "LICENSE", "Manifest.txt", "pre-setup.rb", "Rakefile", "README.txt", "Release-Announcement", "setup.rb", "test", "lib/net", "lib/net/ber", "lib/net/ber/ber_parser.rb", "lib/net/ber.rb", "lib/net/ldap", "lib/net/ldap/core_ext", "lib/net/ldap/core_ext/all.rb", "lib/net/ldap/core_ext/array.rb", "lib/net/ldap/core_ext/bignum.rb", "lib/net/ldap/core_ext/false_class.rb", "lib/net/ldap/core_ext/fixnum.rb", "lib/net/ldap/core_ext/string.rb", "lib/net/ldap/core_ext/true_class.rb", "lib/net/ldap/dataset.rb", "lib/net/ldap/entry.rb", "lib/net/ldap/filter.rb", "lib/net/ldap/pdu.rb", "lib/net/ldap/psw.rb", "lib/net/ldap.rb", "lib/net/ldif.rb", "lib/net/snmp.rb", "lib/net.rb"] - s.require_paths = ["lib"] - s.rubygems_version = %q{1.3.5} - s.summary = %q{What this thing does} - - if s.respond_to? :specification_version then - current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION - s.specification_version = 3 - - if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then - else - end - else - end -end