Sha256: 18eb30211370ca25999768dad02a6baf9c652193e52ecf08d14c60e9543fbf4e

Contents?: true

Size: 455 Bytes

Versions: 9

Compression:

Stored size: 455 Bytes

Contents

# PivotalTracker has a bug in API v3 that breaks ActiveResource
# For more info, see http://community.pivotaltracker.com/pivotal/topics/activeresource_client_throws_error

class Hash
  class << self
    alias_method :from_xml_original, :from_xml
    def from_xml(xml)
      scrubbed = scrub_attributes(xml)
      from_xml_original(scrubbed)
    end
    def scrub_attributes(xml)
      xml.gsub(/<stories.*>/, "<stories type=\"array\">")
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
pivotal_to_pdf-1.6.0 lib/pivotal_to_pdf/pt-workarounds.rb
pivotal_to_pdf-1.4.0 lib/pivotal_to_pdf/pt-workarounds.rb
pivotal_to_pdf-1.3.4 lib/pivotal_to_pdf/pt-workarounds.rb
pivotal_to_pdf-1.3.3 lib/pivotal_to_pdf/pt-workarounds.rb
pivotal_to_pdf-1.3.2 lib/pivotal_to_pdf/pt-workarounds.rb
pivotal_to_pdf-1.3.1 lib/pivotal_to_pdf/pt-workarounds.rb
pivotal_to_pdf-1.3.0 lib/pivotal_to_pdf/pt-workarounds.rb
pivotal_to_pdf-1.2.0 lib/pivotal_to_pdf/pt-workarounds.rb
pivotal_to_pdf-1.1.0 lib/pivotal_to_pdf/pt-workarounds.rb