It looks like the 'Binary' property type is broken.  It only works if I assign 
UTF-8 strings to it:

  def password=(password)
    self.password_salt = Random.new.bytes(3)
    self.password_hash = hash_password(password)
  end

#password_salt is a Binary field.

ArgumentError:
       invalid byte sequence in UTF-8

If I change the password salt to ensure it is UTF-8 compatible, everything 
works, but I can't do that unfortunately.  I'll delve into the source once I've 
resolved other bugs (I'm also moving to Rails 3.1).


On 2011/09/10, at 14:30, Dan Kubb (dkubb) wrote:

> Piotr,
> 
>> I'm happy to announce that we have released DataMapper 1.2.0.rc1.
> 
> BTW thanks for doing this RC release!
> 
> Just for everyone on the mailing list: this is the first release we've
> done in several years where I didn't manage the gem release process
> because we are trying to get more people involved so that I'm not a
> bottleneck. Ideally we would like to have at least 3 people who can
> release DataMapper if needed.
> 
> It might not seem very difficult, but coordinating the release of a
> couple dozen gems all at one time is quite time consuming and complex.
> I'm hoping that by having a few other people do the release we can
> find ways to automate the process even further. The ultimate goal is
> to be able to release every gem with a single command, but we're still
> a little way from that.
> 
> For this RC I would highly encourage everyone in the community to try
> to upgrade their apps and run the specs with these gems. It's always
> been a requirement in 1.x that DataMapper.finalize is called before
> using resource objects, but up until this release the system would
> still somewhat function if you forgot. With this release lots of stuff
> is probably going to break if you forget to finalize. I would
> encourage you to run your specs so you can identify these problems in
> the specs sooner rather than a few months from now when you forget
> about this message and wonder why DM is blowing up on you.
> 
> --
> 
> Thanks,
> 
> Dan
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "DataMapper" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/datamapper?hl=en.
> 

-- 
You received this message because you are subscribed to the Google Groups 
"DataMapper" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/datamapper?hl=en.

Reply via email to