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

    timfel committed Dec 21, 2010
    * 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
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. rename copied functions with ruby prefix so they don't conflict with

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

    tmm1 committed Dec 20, 2010
  4. Switch to rspec2

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

    tmm1 committed Dec 18, 2010
    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
Commits on Apr 23, 2010
  1. Only append ../ext/ path if bcrypt_ext require fails and ../ext exists

    josh authored and codahale committed Apr 23, 2010
    Signed-off-by: Coda Hale <coda.hale@gmail.com>
Commits on Sep 16, 2009
  1. Standardized on stdint's uint_* types; cleanup.

    codahale committed Sep 16, 2009
    Removed a fair bit of #if 0'd debug code which we don't need.
Commits on Aug 14, 2009
  1. Ensure that BCrypt.class is compiled with the right compatibility flags.

    FooBarWidget authored and codahale committed Aug 14, 2009
    Signed-off-by: Coda Hale <coda.hale@gmail.com>
Commits on Aug 13, 2009
Commits on Aug 12, 2009
  1. Fixed license.

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

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

    FooBarWidget authored and codahale committed Aug 5, 2009
    …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>
  4. When on Ruby 1.9, unlock the global interpreter lock while calculatin…

    FooBarWidget authored and codahale committed Aug 5, 2009
    …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>
  5. Finish JRuby support.

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

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

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

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

    FooBarWidget authored and codahale committed Aug 5, 2009
    '.' 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>
  10. When running the coverage test, correctly ignore non-bcrypt-ruby sour…

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

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

    FooBarWidget authored and codahale committed Aug 4, 2009
    - 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>
  13. Fix the unit tests.

    FooBarWidget authored and codahale committed Aug 4, 2009
    - 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>