diff --git a/docs/Homebrew/Livecheck/Strategy/Sparkle.html b/docs/Homebrew/Livecheck/Strategy/Sparkle.html index 432a2bea7..1aab13d7c 100644 --- a/docs/Homebrew/Livecheck/Strategy/Sparkle.html +++ b/docs/Homebrew/Livecheck/Strategy/Sparkle.html @@ -758,16 +758,16 @@
Retrieves the stripped inner text of an REXML
element.
Retrieves the stripped inner text of an REXML
element. Returns
+nil
if the optional child element doesn’t exist or the text is
+blank.
+ + + +89 +90 +91 +92 +93 +94 +95 +96 +97+ |
+
+ # File 'livecheck/strategy/xml.rb', line 89 + +def self.element_text(element, child_path = nil) + element = element.get_elements(child_path).first if child_path.present? + return if element.nil? + + text = element.text + return if text.blank? + + text.strip +end+ |
+
-125 -126 -127 -128 -129 -130 -131 -132 -133 -134 -135 -136 -137 -138 -139 -140 -141 -142 -143 -144 -145+149 +150 +151 +152 +153 +154 +155 +156 +157 +158 +159 +160 +161 +162 +163 +164 +165 +166 +167 +168 +169
# File 'livecheck/strategy/xml.rb', line 125 +# File 'livecheck/strategy/xml.rb', line 149 def self.find_versions(url:, regex: nil, provided_content: nil, homebrew_curl: false, **_unused, &block) raise ArgumentError, "#{Utils.demodulize(T.must(name))} requires a `strategy` block" if block.blank? @@ -760,25 +887,25 @@
-89 -90 -91 -92 -93 -94 -95 -96 -97 -98 -99 -100 -101 -102 -103 -104+113 +114 +115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128
# File 'livecheck/strategy/xml.rb', line 89 +# File 'livecheck/strategy/xml.rb', line 113 def self.versions_from_content(content, regex = nil, &block) return [] if content.blank? || block.blank? diff --git a/docs/method_list.html b/docs/method_list.html index 4f9f3bf36..2057cf969 100644 --- a/docs/method_list.html +++ b/docs/method_list.html @@ -9357,6 +9357,14 @@Method List