Commit 460036059ec11b39706019801d8744daa2998a69
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-84128a6cfb6acodahale committed on 3/8/2007, 4:05:15 AM
Parent: 9c7450a176ba89178fdf1581fd7c98cd693fd993
Files changed
CHANGELOG | changed |
Rakefile | changed |
lib/bcrypt.rb | changed |
CHANGELOG | ||
---|---|---|
@@ -1,6 +1,8 @@ | ||
1 | 1 … | 1.0.0 Feb 27 2007 |
2 | - - Initial release | |
2 … | + - Initial release. | |
3 | 3 … | |
4 | -2.0.0 | |
5 | - - Refactored out BCrypt::Internals into more useful BCrypt::Engine | |
4 … | +2.0.0 Mar 07 2007 | |
5 … | + - Removed BCrypt::Password#exactly_equals -- use BCrypt::Password#eql? instead. | |
6 … | + - Added BCrypt::Password#is_password?. | |
7 … | + - Refactored out BCrypt::Internals into more useful BCrypt::Engine. | |
6 | 8 … | - Added validation of secrets -- nil is not healthy. |
Rakefile | ||
---|---|---|
@@ -22,9 +22,9 @@ | ||
22 | 22 … | "ext/*.bundle", |
23 | 23 … | "ext/*.so" |
24 | 24 … | ) |
25 | 25 … | CLOBBER.include( |
26 | - "doc" | |
26 … | + "doc/coverage" | |
27 | 27 … | ) |
28 | 28 … | |
29 | 29 … | task :default => [:spec] |
30 | 30 … | |
@@ -32,21 +32,23 @@ | ||
32 | 32 … | Spec::Rake::SpecTask.new do |t| |
33 | 33 … | t.spec_files = FileList['spec/**/*_spec.rb'] |
34 | 34 … | t.spec_opts = ['--color','--backtrace','--diff'] |
35 | 35 … | t.rcov = true |
36 | - t.rcov_dir = 'doc/output/coverage' | |
36 … | + t.rcov_dir = 'doc/coverage' | |
37 | 37 … | t.rcov_opts = ['--exclude', 'spec\/spec,spec\/.*_spec.rb'] |
38 | 38 … | end |
39 | 39 … | |
40 | -desc "Run all specs and store html output in doc/output/report.html" | |
41 | -Spec::Rake::SpecTask.new('spec_html') do |t| | |
42 | - t.spec_files = FileList['spec/**/*_spec.rb'] | |
43 | - t.spec_opts = ['--diff','--format html','--backtrace','--out doc/output/report.html'] | |
40 … | +namespace :spec do | |
41 … | + desc "Run all specs and store html output in doc/specs.html" | |
42 … | + Spec::Rake::SpecTask.new('html') do |t| | |
43 … | + t.spec_files = FileList['spec/**/*_spec.rb'] | |
44 … | + t.spec_opts = ['--diff','--format html','--backtrace','--out doc/specs.html'] | |
45 … | + end | |
44 | 46 … | end |
45 | 47 … | |
46 | 48 … | desc 'Generate RDoc' |
47 | 49 … | rd = Rake::RDocTask.new do |rdoc| |
48 | - rdoc.rdoc_dir = 'doc/output/rdoc' | |
50 … | + rdoc.rdoc_dir = 'doc/rdoc' | |
49 | 51 … | rdoc.options << '--title' << 'bcrypt-ruby' << '--line-numbers' << '--inline-source' << '--main' << 'README' |
50 | 52 … | rdoc.template = ENV['TEMPLATE'] if ENV['TEMPLATE'] |
51 | 53 … | rdoc.rdoc_files.include('README', 'COPYING', 'CHANGELOG', 'lib/**/*.rb') |
52 | 54 … | end |
lib/bcrypt.rb | ||
---|---|---|
@@ -1,13 +1,12 @@ | ||
1 | 1 … | # A wrapper for OpenBSD's bcrypt/crypt_blowfish password-hashing algorithm. |
2 | 2 … | |
3 | -$: << "ext" | |
4 | -require "bcrypt_ext" | |
3 … | +require "ext/bcrypt_ext" | |
5 | 4 … | require "openssl" |
6 | 5 … | |
7 | 6 … | # A Ruby library implementing OpenBSD's bcrypt()/crypt_blowfish algorithm for |
8 | 7 … | # hashing passwords. |
9 | -module BCrypt | |
8 … | +module BCrypt | |
10 | 9 … | module Errors # :nodoc: |
11 | 10 … | class InvalidSalt < Exception; end # The salt parameter provided to bcrypt() is invalid. |
12 | 11 … | class InvalidHash < Exception; end # The hash parameter provided to bcrypt() is invalid. |
13 | 12 … | class InvalidCost < Exception; end # The cost parameter provided to bcrypt() is invalid. |
Built with git-ssb-web