def parse_heading(heading)
      captures = { "version" => nil, "url" => nil, "date" => nil }

      @heading_structures.each do |regexp|
        matches = Regexp.new(regexp).match(heading)
        if matches
          captures.merge!(Hash[matches.names.zip(matches.captures)])
          break
        end
      end

      captures
    end
def parse_heading(heading)
      captures = { "version" => nil, "url" => nil, "date" => nil }

      @heading_structures.each do |regexp|
        matches = Regexp.new(regexp).match(heading)
        if matches
          captures.merge!(Hash[matches.names.zip(matches.captures)])
          break
        end
      end

      captures
    end
Parse a single heading and return a Hash

 The following heading structures are currently valid:
 - ## [v1.0.2](https://github.com/zanui/chef-thumbor/tree/v1.0.1) (2015-03-24)
 - ## [v1.0.2](https://github.com/zanui/chef-thumbor/tree/v1.0.1)
 - ## v1.0.2 (2015-03-24)
 - ## v1.0.2

 @param [String] heading Heading from the ChangeLog File
 @return [Hash] Returns a structured Hash with version, url and date