Permalink
Commits on Feb 10, 2011
Commits on Jan 9, 2011
  1. FFI Wrapper to run bcrypt-ruby on Maglev

    * compiles to shared object using a custom Makefile
    * loads bcrypt_engine which wraps the shared object using FFI to
      offer the same interface as the plain C extension
    timfel committed Dec 21, 2010
Commits on Jan 8, 2011
  1. Version bump: 2.1.4

    tmm1 committed Jan 8, 2011
Commits on Dec 20, 2010
  1. Fix compile warnings

    tmm1 committed Dec 20, 2010
  2. Make `bundle install` actually work

    tmm1 committed Dec 20, 2010
  3. rename copied functions with ruby prefix so they don't conflict with

    native versions where available.
    
    Signed-off-by: Aman Gupta <aman@tmm1.net>
    Ted Unangst committed with tmm1 Dec 16, 2010
  4. Remove trailing whitespace

    tmm1 committed Dec 20, 2010
  5. Switch to rspec2

    tmm1 committed Dec 20, 2010
Commits on Dec 18, 2010
  1. Switch to rake-compiler for building binary win32/java gems.

    To build java gems:
      $ rvm use jruby
      $ rake java gem
      cp tmp/java/bcrypt_ext/bcrypt_ext.jar lib/bcrypt_ext.jar
      Successfully built RubyGem
      File: bcrypt-ruby-2.1.2-java.gem
    
    To build win32 fat 1.8/1.9 binary gems:
      $ rake cross native gem RUBY_CC_VERSION=1.8.6:1.9.2
      cp tmp/x86-mswin32-60/bcrypt_ext/1.8.6/bcrypt_ext.so lib/1.8/bcrypt_ext.so
      cp tmp/x86-mswin32-60/bcrypt_ext/1.9.2/bcrypt_ext.so lib/1.9/bcrypt_ext.so
      Successfully built RubyGem
      File: bcrypt-ruby-2.1.2-x86-mingw32.gem
    
    Note, to build win32 gems you will need to setup a cross-compilation environment:
    
      1. Download and run "MinGW 4.3.0" installer from
         http://crossgcc.rts-software.org/doku.php
      2. Add "/usr/local/i386-mingw32-4.3.0/" to your PATH
      3. gem install rake-compiler
      4. rake-compiler cross-ruby # to cross-compile 1.8.6
      5. rake-compiler cross-ruby RUBY_VERSION=1.9.2-p0
    tmm1 committed Dec 18, 2010
Commits on Apr 23, 2010
  1. Only append ../ext/ path if bcrypt_ext require fails and ../ext exists

    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    josh committed with codahale Apr 23, 2010
Commits on Sep 16, 2009
  1. Prepare for the 2.1.2 release.

    codahale committed Sep 16, 2009
  2. Standardized on stdint's uint_* types; cleanup.

    Removed a fair bit of #if 0'd debug code which we don't need.
    codahale committed Sep 16, 2009
Commits on Aug 14, 2009
  1. Prepare for the 2.1.1 release.

    codahale committed Aug 14, 2009
  2. Ensure that BCrypt.class is compiled with the right compatibility flags.

    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 14, 2009
Commits on Aug 13, 2009
Commits on Aug 12, 2009
  1. Prepare for the 2.1.0 release.

    codahale committed Aug 12, 2009
  2. Fixed license.

    codahale committed Aug 12, 2009
  3. Move MRI C extension into 'mri' subdirectory.

    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 12, 2009
  4. Ruby 1.9: do not unlock the GIL unless the bcrypt cost is sufficientl…

    …y high.
    
    Locking/unlocking the GIL incurs some overhead as well so we want to avoid
    that for cheap operations.
    
    (merged with JRuby changes)
    
    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 5, 2009
  5. When on Ruby 1.9, unlock the global interpreter lock while calculatin…

    …g bcrypt hashes, for greater concurrency.
    
    The bcrypt sources have been modified and made reentrant so that they
    don't cause any problems when accessed by multiple threads concurrently.
    
    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 5, 2009
  6. Finish JRuby support.

    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 4, 2009
  7. Put BCrypt.java in a package in order to avoid namespace clashes.

    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 4, 2009
  8. Import jBCrypt 0.2 (April 23, 2008)

    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 4, 2009
  9. Fix the calibration test when run on Ruby 1.9: the timing can fluctua…

    …te a bit more.
    
    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 5, 2009
  10. Fix Ruby 1.9 compatibility.

    '.' is no longer in the default $LOAD_PATH, so we need to expand
    file paths when requiring local source files.
    
    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 5, 2009
  11. When running the coverage test, correctly ignore non-bcrypt-ruby sour…

    …ce files.
    
    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 4, 2009
  12. Increase test coverage. We now have 100% C0 coverage.

    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 4, 2009
  13. Improve 'compile' Rake task.

    - Use the 'ruby' method to run extconf.rb, instead of calling the ruby
      command directly. This allows Rake to run extconf.rb in the same Ruby
      interpreter that was used to invoke Rake. This is useful if there are
      multiple Ruby installations, and not all of them are called 'ruby'.
    - Use 'sh' instead of 'system' to run commands so that failed commands will
      properly abort the Rake task.
    
    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 4, 2009
  14. Fix the unit tests.

    - The 'setup' method is no longer supported by rspec.
    - The '--out' command line argument is no longer supported by rspec.
    - The 'spec' task has been modified to run without rcov; rcov is still a
      bit buggy on Ruby 1.9. The 'rcov' task can be used to run the specs
      with rcov.
    
    Signed-off-by: Coda Hale <coda.hale@gmail.com>
    FooBarWidget committed with codahale Aug 4, 2009