parliament-ruby 0.7.2.pre → 0.7.3.pre

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5cbaf92616a5f7be63295c0d2d9faf987bae7fec
4
- data.tar.gz: c4aa094bb3fb09fd0b1493f6639906a49fe12cfd
3
+ metadata.gz: 85abecdcd5ffc39c4d3d886aa558bfad25e84ef1
4
+ data.tar.gz: cdc28cf4ab1ee9fae3a19214d95fe16e2aa9565c
5
5
  SHA512:
6
- metadata.gz: d27ef1f884148d00f283c2dc6e689beda7f46e812587955777abf95b678d4b2b88fbc04e35aac8a1897d586cb83a64e97434b2df7ccc3d122d2f939c83042937
7
- data.tar.gz: 22eb809abea00acc4d585d3002275a47bd04085fd1dda0c286a41764e8304cc8d4f9cefa93fe7120eeb55efe9297661d2e6475abd68521a02b5ba7127da6f244
6
+ metadata.gz: 50b1146fe2b6908239916bb5fc6b7e5365a05d0a151068531375a82bfa85e45221fb457295f36c38f7335c796c74c6061461bc5d3a78b0adb990cd3b8ec5d895
7
+ data.tar.gz: eb032db60e9364d06c772401e16251b52afe89222f309db76c9ba28e73f0bc8be835b3320eef09d0f56d2dc66fede8e3761656034fbbbf2600fcc7d30dd22eb1
@@ -41,12 +41,16 @@ module Parliament
41
41
  def get_description(url)
42
42
  return if url.nil?
43
43
 
44
- request = Parliament::Request::BaseRequest.new(base_url: url,
45
- headers: { 'Accept' => 'application/opensearchdescription+xml' })
46
- xml_response = request.get
44
+ # Make a straight Net::HTTP request to get our description file
45
+ xml_response = Parliament::Request::BaseRequest.new(
46
+ base_url: url,
47
+ headers: { 'Accept' => 'application/opensearchdescription+xml' }
48
+ ).get
47
49
 
50
+ # Load the description as XML
48
51
  xml_root = REXML::Document.new(xml_response.body).root
49
- xml_root.elements['Url'].attributes['template']
52
+ # TODO: Check for multiple 'Url' entries.
53
+ xml_root.elements['Url'].attributes['template'] # Get the URL
50
54
  end
51
55
  end
52
56
 
@@ -1,3 +1,3 @@
1
1
  module Parliament
2
- VERSION = '0.7.2.pre'.freeze
2
+ VERSION = '0.7.3.pre'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parliament-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2.pre
4
+ version: 0.7.3.pre
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Rayner
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-04-07 00:00:00.000000000 Z
11
+ date: 2017-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: feedjira