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 +4 -4
- data/lib/parliament/request/open_search_request.rb +8 -4
- data/lib/parliament/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85abecdcd5ffc39c4d3d886aa558bfad25e84ef1
|
4
|
+
data.tar.gz: cdc28cf4ab1ee9fae3a19214d95fe16e2aa9565c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
45
|
-
|
46
|
-
|
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
|
-
|
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
|
|
data/lib/parliament/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: feedjira
|