Skip to content

Commit

Permalink
Add gemspec suitable for github
Browse files Browse the repository at this point in the history
Remove useless init.rb, install.rb, task, and test files
Update Rakefile
  • Loading branch information
jeremyevans committed Jul 7, 2008
1 parent 2e148a1 commit e680819
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 31 deletions.
26 changes: 10 additions & 16 deletions Rakefile
@@ -1,22 +1,16 @@
require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rake/rdoctask'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the simple_ldap_authenticator plugin.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = "rdoc"
rdoc.options += ["--quiet", "--line-numbers", "--inline-source"]
rdoc.main = "README"
rdoc.title = "simple_ldap_authenticator: Easy authentication to an LDAP server(s)"
rdoc.rdoc_files.add ["README", "LICENSE", "lib/simple_ldap_authenticator.rb"]
end

desc 'Generate documentation for the simple_ldap_authenticator plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_dir = 'rdoc'
rdoc.title = 'SimpleLdapAuthenticator'
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb')
desc "Package simple_ldap_authenticator"
task :package do
sh %{gem build simple_ldap_authenticator.gemspec}
end
2 changes: 0 additions & 2 deletions init.rb

This file was deleted.

1 change: 0 additions & 1 deletion install.rb

This file was deleted.

13 changes: 13 additions & 0 deletions simple_ldap_authenticator.gemspec
@@ -0,0 +1,13 @@
spec = Gem::Specification.new do |s|
s.name = "simple_ldap_authenticator"
s.version = "1.0.0"
s.author = "Jeremy Evans"
s.email = "code@jeremyevans.net"
s.platform = Gem::Platform::RUBY
s.summary = "Easy authentication to an LDAP server(s)"
s.files = ["README", "LICENSE", "lib/simple_ldap_authenticator.rb"]
s.extra_rdoc_files = ["LICENSE"]
s.require_paths = ["lib"]
s.has_rdoc = true
s.rdoc_options = %w'--inline-source --line-numbers README lib'
end
4 changes: 0 additions & 4 deletions tasks/simple_ldap_authenticator_tasks.rake

This file was deleted.

8 changes: 0 additions & 8 deletions test/simple_ldap_authenticator_test.rb

This file was deleted.

0 comments on commit e680819

Please sign in to comment.