sparql-client 1.1.3 → 1.1.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/CREDITS +1 -0
  3. data/README +1 -0
  4. data/VERSION +1 -1
  5. data/lib/sparql/client.rb +8 -4
  6. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04a17f253c88990873cd961f8d53c71c3634e5e7
4
- data.tar.gz: 6c8734ce71831639979568cc2a82738f25dc0039
3
+ metadata.gz: dc30780970896aa3335259e0ff2e6d957a021620
4
+ data.tar.gz: 503ea698a4471c3d724b70a8f877727e0f1d4aed
5
5
  SHA512:
6
- metadata.gz: 5e45a58edc5c8165e948938e82e6653fb19d9f0ec28f954bc8deba8e299ff816f9c167f344f71a436702273f1daadc703e5edaccf2ba9e57b9d52127a914b9b9
7
- data.tar.gz: 0b80f8de6e6926d3535b9ed0bbbb63fe86d33e826526f0ffbbdbe4e47337b48e7882f205186f3dfe00c367afae6cbfdfaf147b6213d93950c4c8d55fd29b3fbe
6
+ metadata.gz: e5f7bcde8d7215cd9557979ef5960f5514c5a593fb5f0607201bcb6256dc0ea40120eca17737fd0b488e8a01df9882df366512d62fc31443f4ad2d4705624726
7
+ data.tar.gz: 92886ab2902fd1c5cefc23052a3033c394224c0bb7e3c4419233b99c5bed80dc2f31c94932b5164545bd854fef97e8032aad309ffe8d0e9eef64f7d04ad689a5
data/CREDITS CHANGED
@@ -9,3 +9,4 @@
9
9
  * Michael Sokol <mikaa123@gmail.com>
10
10
  * Yves Raimond <yves.raimond@bbc.co.uk>
11
11
  * Danny Tran <dannybtran@gmail.com>
12
+ * Nick Gottlieb <ngottlieb@gmail.com>
data/README CHANGED
@@ -120,6 +120,7 @@ follows:
120
120
  * [Michael Sokol](http://github.com/mikaa123) - <http://sokolmichael.com/>
121
121
  * [Yves Raimond](http://github.com/moustaki) - <http://moustaki.org/>
122
122
  * [Thomas Feron](http://github.com/thoferon) - <http://github.com/thoferon>
123
+ * [Nick Gottlieb](http://github.com/ngottlieb) - <http://www.nicholasgottlieb.com>
123
124
 
124
125
  ##Contributing
125
126
  This repository uses [Git Flow](https://github.com/nvie/gitflow) to mange development and release activity. All submissions _must_ be on a feature branch based on the _develop_ branch to ease staging and integration.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 1.1.3.1
@@ -675,11 +675,15 @@ module SPARQL
675
675
  request.basic_auth(url.user, url.password) if url.user && !url.user.empty?
676
676
 
677
677
  response = @http.request(url, request)
678
- if block_given?
679
- block.call(response)
680
- else
681
- response
678
+
679
+ 10.times do
680
+ if response.kind_of? Net::HTTPRedirection
681
+ response = @http.request(RDF::URI(response['location']), request)
682
+ else
683
+ return block_given? ? block.call(response) : response
684
+ end
682
685
  end
686
+ raise ServerError, "Infinite redirect at #{url}. Redirected more than 10 times."
683
687
  end
684
688
 
685
689
  ##
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sparql-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arto Bendiken
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-08-25 00:00:00.000000000 Z
13
+ date: 2014-10-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '1.4'
35
+ version: '2.9'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '1.4'
42
+ version: '2.9'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: sparql
45
45
  requirement: !ruby/object:Gem::Requirement