Skip to content

Commit

Permalink
add require rexml/encoding before call REXML::Source
Browse files Browse the repository at this point in the history
  • Loading branch information
tdtds committed Jan 15, 2016
1 parent a0e8190 commit 7f4b3b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc/plugin/amazon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ def amazon_get( asin, with_image = true, label = nil, pos = 'amazon' )
File::open( "#{cache}/#{country}#{asin}.xml", 'wb' ) {|f| f.write( xml )}
end
begin
require 'rexml/encoding'
rexml_src = REXML::Source::new(StringIO.new xml)
rexml_document = REXML::Document::new(rexml_src)
doc = rexml_document.root
Expand Down

0 comments on commit 7f4b3b7

Please sign in to comment.