bcrypt-ruby 2.0.4 → 2.0.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of bcrypt-ruby might be problematic. Click here for more details.

Files changed (4) hide show
  1. data/CHANGELOG +4 -1
  2. data/Rakefile +1 -1
  3. data/ext/bcrypt_ext.c +6 -0
  4. metadata +2 -2
data/CHANGELOG CHANGED
@@ -22,4 +22,7 @@
22
22
 
23
23
  2.0.4 Mar 09 2009
24
24
  - Added Ruby 1.9 compatibility. [Genki Takiuchi]
25
- - Fixed segfaults on some different types of empty strings. [Mike Pomraning]
25
+ - Fixed segfaults on some different types of empty strings. [Mike Pomraning]
26
+
27
+ 2.0.5 Mar 11 2009
28
+ - Fixed Ruby 1.8.5 compatibility. [Mike Pomraning]
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/rdoctask'
7
7
  require "benchmark"
8
8
 
9
9
  PKG_NAME = "bcrypt-ruby"
10
- PKG_VERSION = "2.0.4"
10
+ PKG_VERSION = "2.0.5"
11
11
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
12
12
  PKG_FILES = FileList[
13
13
  '[A-Z]*',
@@ -7,6 +7,12 @@ char *bcrypt(const char *, const char *);
7
7
  VALUE mBCrypt;
8
8
  VALUE cBCryptEngine;
9
9
 
10
+ /* Define RSTRING_PTR for Ruby 1.8.5, ruby-core's idea of a point release is
11
+ insane. */
12
+ #ifndef RSTRING_PTR
13
+ # define RSTRING_PTR(s) (RSTRING(s)->ptr)
14
+ #endif
15
+
10
16
  /* Given a logarithmic cost parameter, generates a salt for use with +bc_crypt+.
11
17
  */
12
18
  static VALUE bc_salt(VALUE self, VALUE cost, VALUE seed) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcrypt-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.4
4
+ version: 2.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coda Hale
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-03-09 00:00:00 -07:00
12
+ date: 2009-03-11 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15