Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Fixed array to hash conversion for Ruby 1.9. #2

Open
wants to merge 1 commit into from

1 participant

Ruben Verborgh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Sep 22, 2012
Ruben Verborgh RubenVerborgh Fixed array to hash conversion for Ruby 1.9. 70253f3
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/h5-min.rb
2  lib/h5-min.rb
@@ -99,7 +99,7 @@ def normalise_name name
99 99
100 100 def format_attributes attrs, element
101 101 return '' if attrs.empty?
102   - Hash[*attrs].map do |name, value|
  102 + Hash[attrs].map do |name, value|
103 103 [normalise_name(name), format_attribute_value(value)]
104 104 end.sort_by do |name, value|
105 105 name

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.