Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'each_with_object' passes the given object as last argument. #107

Closed
losadaem opened this issue Aug 24, 2015 · 0 comments
Closed

'each_with_object' passes the given object as last argument. #107

losadaem opened this issue Aug 24, 2015 · 0 comments

Comments

@losadaem
Copy link
Contributor

When calling MIME::Types::Columnar.friendly I'm getting the error

NoMethodError - undefined method `split' for {}:Hash:
  mime-types (2.6.1) lib/mime/types/columnar.rb:130:in `block in dict'

dict is using now each_with_objectand this method passes the given object as last argument unlike inject

jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Oct 4, 2015
== 2.6.2 / 2015-09-13

* Bugs:
  * Emilio Losada (@losadaem) fixed an error where +each_with_object+'s block
    parameters are the inverse of those used by +inject+. Resolves
    {#107}[mime-types/ruby-mime-types#107] with pull
    request {#108}[mime-types/ruby-mime-types#108].
  * Matt Beedle (@mattbeedle) fixed a typo in MIME::Type::Columnar negatively
    affecting people who use the +use_instead+ functionality. Resolved in
    {#109}[mime-types/ruby-mime-types#109].
* Documentation:
  * Juanito Fatas (@JuanitoFatas) fixed a documentation issue with the README
    not properly linking internally on the generated rdoc source. Resolved with
    {#105}[mime-types/ruby-mime-types#105].
* Development:
  * Fixed a minor issue in the IANA registry parser that would generate empty
    +text+ xrefs if the +text+ section was empty.
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Nov 6, 2015
== 2.6.2 / 2015-09-13

* Bugs:
  * Emilio Losada (@losadaem) fixed an error where +each_with_object+'s block
    parameters are the inverse of those used by +inject+. Resolves
    {#107}[mime-types/ruby-mime-types#107] with pull
    request {#108}[mime-types/ruby-mime-types#108].
  * Matt Beedle (@mattbeedle) fixed a typo in MIME::Type::Columnar negatively
    affecting people who use the +use_instead+ functionality. Resolved in
    {#109}[mime-types/ruby-mime-types#109].
* Documentation:
  * Juanito Fatas (@JuanitoFatas) fixed a documentation issue with the README
    not properly linking internally on the generated rdoc source. Resolved with
    {#105}[mime-types/ruby-mime-types#105].
* Development:
  * Fixed a minor issue in the IANA registry parser that would generate empty
    +text+ xrefs if the +text+ section was empty.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant