FeedToolsã§ã¨ã©ã¼
Rubyã§Feedã使ãã®ã«ä¾¿å©ãªã©ã¤ãã©ãªFeedToolsã使ã£ã¦ã¦ã
以ä¸ã®ãããªã¨ã©ã¼ãåºããã§ãã®å¯¾å¦ã¡ã¢ã
ã¨ã©ã¼
undefined method `to_uri_string'
ãã¡ã¤ã«ä¿®æ£
ãã®ã¨ã©ã¼ã¯ãfeed_toolsã«å ã®uri_helper.rbã¨ãããã¡ã¤ã«ã®220è¡ç®
# uri_helper.rb 203è¡ãã211è¡ # Converts a url into a urn:uuid: uri def self.build_urn_uri(url) unless url.kind_of? String raise ArgumentError, "Expected String, got #{url.class.name}" end normalized_url = normalize_url(url) require 'uuidtools' return UUID.sha1_create(UUID_URL_NAMESPACE, normalized_url).to_uri_stringã# ãã end
ããã¦ããã®è¡ã以ä¸ã®ããã«å¤æ´ãã¾ãã
# uri_helper.rb 203è¡ãã212è¡ # Converts a url into a urn:uuid: uri def self.build_urn_uri(url) unless url.kind_of? String raise ArgumentError, "Expected String, got #{url.class.name}" end normalized_url = normalize_url(url) require 'uuidtools' # return UUID.sha1_create(UUID_URL_NAMESPACE, normalized_url).to_uri_string return UUID.sha1_create(UUID_URL_NAMESPACE, normalized_url).to_uri end
ããã§ãä¸å¿åãããã«ãªãã¾ãã
詳ãããã¨ã¯ãã¾ããããããã¾ããã»ã»ã»æ±