gpd-request 0.2.5 → 0.2.6

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: af8bac2792ed13957f9bce5ed6a6ff803d9e37dd
4
- data.tar.gz: 51b33905d0829995c7e37252eb7e79ea5d7154d3
3
+ metadata.gz: 406187fac015ba0e44080d5a63be3b163946654c
4
+ data.tar.gz: 407c54ba6c8896275219666d2b58e6ec4e61eda9
5
5
  SHA512:
6
- metadata.gz: bb241c455bf19eb6e5dedf6b94b33569151fd4b6b84e26e8f426976f3f177279777503662f629da498f955f229c51d43f75cb7c34cf51a15153b816241827c0b
7
- data.tar.gz: e1cccce7aec2f6c6765e047757713d52fc745c880d4a0f7aeb9028c9914731418380939467d5a6541bf418bc52097e14bf2e86f59d1af30a97fa43e572567c6e
6
+ metadata.gz: c1f316a3dac6ba47453fa1f96d041904d33d564995105be937cedabec9a9761e88577cbca3389fb53b9f5bc290bb1f652a9f1d1246c89966dca5a60e8d9cf49d
7
+ data.tar.gz: 65fb89e7b0405b06434ee8ffe1500f6711e8e59fa280d321e14a8fece0303355f8fb858677542605dacb9fef518b252ba55218f1b6027ac678d35de39bbcab46
checksums.yaml.gz.sig CHANGED
@@ -1 +1,3 @@
1
- ���s��M���|5S_F�,7eI15E��H-W3b��6q�3� �[�hdFS��Z�DVOax�?;��n���x�;����놢��iF�c�G%e���Om�<l�f$r�W�}�b�tj�d�ꦕ�C�]���]��X��8~��2�������
1
+ vr����&Oz��A��N�����k���2��� YlUk�ݍ�����TabV�'>I��z��[Jq����R�/�@#�\NLpAq~
2
+ ��oE���VP���I�ə�n�Pɳ�pi<h!㩖��O�ѐG������� V��s6
3
+ �ȱ�ąߍsn��K<� y��!�ؼc�\���FRw%����E`y����r������ Rr�/�̢5�[��3���X�e�f$o�yP����<JLt�
data.tar.gz.sig CHANGED
Binary file
data/lib/gpd-request.rb CHANGED
@@ -26,7 +26,12 @@ class GPDRequest
26
26
  end
27
27
 
28
28
  def get(uri)
29
- request(uri) {|url| Net::HTTP::Get.new url.path, @headers }
29
+
30
+ if uri =~ /^http:/ then
31
+ request(uri) {|url| Net::HTTP::Get.new url.path, @headers }
32
+ elsif uri =~ /^https:/
33
+ Net::HTTP.get_response(URI.parse(uri))
34
+ end
30
35
  end
31
36
 
32
37
  def post(uri, form_data={})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpd-request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -12,26 +12,26 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE0MDIxNzE2MzYzNVoXDTE1MDIxNzE2MzYzNVowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE1MDYxMTE0MDY0NFoXDTE2MDYxMDE0MDY0NFowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBANCQ9FracxG3R0tVAEJNF40AY9hhGFmgmouv2puoLMUwubDHzfzdxFR6Rop5
19
- eAQp0pAMkMT8H8bjYPfJt1MW8ZnJ5W45YjmOSV3tl1xC4A7FnPxOxr+s8jYRd8qN
20
- xt5qulma4/41P8Diw8pBUziQacgzNlk4HsKSlQ4hY3h1DjkWbmvXtM71timmZfio
21
- F4aiVeYspKcehemfzVFhWqRWXCIlMtbH9azs8iNf/c5bwgbmwSF/Rl6tdoCI7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9VzmCK2KBIPySx/8r5wMH15fEpTEAXN+po0Q4lHxuBjJdSmpiroJZVXh
31
- PoI/B1yMaXhhavQWGSTzINraRwk+XYJNDPM7fqMWPO8A7oKFr1r8V/1FMvGR/n3A
32
- tMlmg/7kJi8Gug==
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAHkEV8KCj
27
+ ZXnLe77aQLbOE9apx7pYqxL78dHMzqDGobRS0a7fgAX5V5C7RR+reRO0FO4iBw3n
28
+ xeAYZ77wKr65j/IudTmGZ9eYdfGebpqqbHVUbs6xrwfwV41ku8Wkegs7zqeIbS2f
29
+ ZVfZrbB4hfe/zjaINKrDYyA508c+IVZpDecD4jfnuaYurs0Lo76sMB0AWm07TBtQ
30
+ 84L1z/DJVp3MURE6NtQh7EtVXy7FHu41BZez+htNXu/UDJ3ohTR5EhMWH12LPpfb
31
+ 5kgV31ryhm+mzvSnIN8PPLwwIM5uEYTrHytfjeeXQkpmsteTsitHqtzKFEKTQ69m
32
+ ZZmiIrzZdraCEg==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-02-18 00:00:00.000000000 Z
34
+ date: 2015-06-11 00:00:00.000000000 Z
35
35
  dependencies: []
36
36
  description:
37
37
  email: james@r0bertson.co.uk
@@ -52,7 +52,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: 2.1.2
56
56
  required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - ">="
@@ -60,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
60
60
  version: '0'
61
61
  requirements: []
62
62
  rubyforge_project:
63
- rubygems_version: 2.1.11
63
+ rubygems_version: 2.4.6
64
64
  signing_key:
65
65
  specification_version: 4
66
66
  summary: GPD-Request is a convenient Net::HTTP wrapper
metadata.gz.sig CHANGED
Binary file