prismicio/ruby-kit — pull request #4 by rudyrigot (2013-11-20 03:05:15+00:00)
Title: Views objects stored in a Hash and not an array

Within an Image object, the Views were stored in an array instead of a hash, therefore:
* their view name was actually not stored anywhere in memory
* the method Prismic::Fragments::Image::get_view(name) did not work, throwing a NoMethodError `undefined method has_key? for #`

I fixed it and fixed the test, but now the way it is stored is quite changed, so it could break previous developments that might have been made with Ruby (I checked, it does not break the Rails starter kit, which only ever displays the main image). Should we merge it anyway?