hypermedia 1.0.8 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/api/document.rb +1 -1
  2. metadata +1 -1
data/lib/api/document.rb CHANGED
@@ -53,7 +53,7 @@ class HypermediaAPI::Document
53
53
  index_doc = index_link.click(basic_auth: @auth)
54
54
 
55
55
  data_name, value = kv_pair.first
56
- article_element = index_doc.instance_variable_get(:@document).xpath("//article[@class='#{klass.name.underscore}']/code[@data-name='#{data_name}' and text()='#{value}']/ancestor::article")
56
+ article_element = index_doc.instance_variable_get(:@document).at_xpath("//article[@class='#{klass.name.underscore}']/code[@data-name='#{data_name}' and text()='#{value}']/ancestor::article")
57
57
  return nil unless article_element
58
58
 
59
59
  bookmark_link_element = article_element.at_css('a[rel="bookmark"]')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hypermedia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: