Permalink
Browse files

Updated changelog with full details of what's been changed.

Spec coverage now goes to /doc/coverage.
RDocs now go to /doc/rdoc.
Specs now go to /doc/specs.html.
Removed loadpath tinkering from bcrypt.rb.


git-svn-id: http://bcrypt-ruby.rubyforge.org/svn/trunk@20 b1e0f299-433e-4bb3-9895-84128a6cfb6a
  • Loading branch information...
1 parent 9c7450a commit 460036059ec11b39706019801d8744daa2998a69 codahale committed Mar 8, 2007
Showing with 16 additions and 13 deletions.
  1. +5 −3 CHANGELOG
  2. +9 −7 Rakefile
  3. +2 −3 lib/bcrypt.rb
View
@@ -1,6 +1,8 @@
1.0.0 Feb 27 2007
- - Initial release
+ - Initial release.
-2.0.0
- - Refactored out BCrypt::Internals into more useful BCrypt::Engine
+2.0.0 Mar 07 2007
+ - Removed BCrypt::Password#exactly_equals -- use BCrypt::Password#eql? instead.
+ - Added BCrypt::Password#is_password?.
+ - Refactored out BCrypt::Internals into more useful BCrypt::Engine.
- Added validation of secrets -- nil is not healthy.
View
@@ -23,7 +23,7 @@ CLEAN.include(
"ext/*.so"
)
CLOBBER.include(
- "doc"
+ "doc/coverage"
)
task :default => [:spec]
@@ -33,19 +33,21 @@ Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*_spec.rb']
t.spec_opts = ['--color','--backtrace','--diff']
t.rcov = true
- t.rcov_dir = 'doc/output/coverage'
+ t.rcov_dir = 'doc/coverage'
t.rcov_opts = ['--exclude', 'spec\/spec,spec\/.*_spec.rb']
end
-desc "Run all specs and store html output in doc/output/report.html"
-Spec::Rake::SpecTask.new('spec_html') do |t|
- t.spec_files = FileList['spec/**/*_spec.rb']
- t.spec_opts = ['--diff','--format html','--backtrace','--out doc/output/report.html']
+namespace :spec do
+ desc "Run all specs and store html output in doc/specs.html"
+ Spec::Rake::SpecTask.new('html') do |t|
+ t.spec_files = FileList['spec/**/*_spec.rb']
+ t.spec_opts = ['--diff','--format html','--backtrace','--out doc/specs.html']
+ end
end
desc 'Generate RDoc'
rd = Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'doc/output/rdoc'
+ rdoc.rdoc_dir = 'doc/rdoc'
rdoc.options << '--title' << 'bcrypt-ruby' << '--line-numbers' << '--inline-source' << '--main' << 'README'
rdoc.template = ENV['TEMPLATE'] if ENV['TEMPLATE']
rdoc.rdoc_files.include('README', 'COPYING', 'CHANGELOG', 'lib/**/*.rb')
View
@@ -1,12 +1,11 @@
# A wrapper for OpenBSD's bcrypt/crypt_blowfish password-hashing algorithm.
-$: << "ext"
-require "bcrypt_ext"
+require "ext/bcrypt_ext"
require "openssl"
# A Ruby library implementing OpenBSD's bcrypt()/crypt_blowfish algorithm for
# hashing passwords.
-module BCrypt
+module BCrypt
module Errors # :nodoc:
class InvalidSalt < Exception; end # The salt parameter provided to bcrypt() is invalid.
class InvalidHash < Exception; end # The hash parameter provided to bcrypt() is invalid.

0 comments on commit 4600360

Please sign in to comment.