title: Ruby Env Variable not interpolated when parsed using Nokogiri xpath
body: <p>I have a private gitlab repo and I want to clone it. I have the password in an Environment variable. My gitlab repo URL with username and password variable is from the XML file.</p>
  <p>sample.xml</p>
  <pre><code>&lt;git&gt;
     &lt;name&gt;repo&lt;/name&gt;
     &lt;link&gt;https://user:#{ENV['password']}@gitlab.com/myrepo.git&lt;/link&gt;
  &lt;/git&gt;
  </code></pre>
  <p>Ruby code:</p>
  <pre><code>@sample = Nokogiri::XML(File.open(&quot;sample.xml&quot;)
  repo_link = @sample.xpath(&quot;/git/link/text()&quot;)
  Git.clone(repo_link, 'repodir').checkout('master')
  </code></pre>
  <p>When I try the above code, <strong>#{ENV['password']</strong> is not getting resolved and passed as it is to the GIT module.</p>
  <p>Current:
  https://user:#{ENV['password']}@gitlab.com/myrepo.git</p>
  <p>Expectation:
  https://user:&lt;actual_password&gt;@gitlab.com/myrepo.git</p>
  <p>Kindly help with a way to fix this..</p>
  <p>I can modify the XML file, Ruby code, or the GITLAB URL format. But the flow is fixed where the URL will be in XML and I have to parse it and clone the repo using Ruby.</p>
  <p>Thanks in advance !!</p>