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 +4 -4
- checksums.yaml.gz.sig +3 -1
- data.tar.gz.sig +0 -0
- data/lib/gpd-request.rb +6 -1
- metadata +19 -19
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 406187fac015ba0e44080d5a63be3b163946654c
|
4
|
+
data.tar.gz: 407c54ba6c8896275219666d2b58e6ec4e61eda9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1f316a3dac6ba47453fa1f96d041904d33d564995105be937cedabec9a9761e88577cbca3389fb53b9f5bc290bb1f652a9f1d1246c89966dca5a60e8d9cf49d
|
7
|
+
data.tar.gz: 65fb89e7b0405b06434ee8ffe1500f6711e8e59fa280d321e14a8fece0303355f8fb858677542605dacb9fef518b252ba55218f1b6027ac678d35de39bbcab46
|
checksums.yaml.gz.sig
CHANGED
@@ -1 +1,3 @@
|
|
1
|
-
���
|
1
|
+
vr����&Oz��A��N�����k���2��� YlUk�ݍ�����T�a�b�V�'>I��z��[J�q����R�/�@#�\N�L�pAq~
|
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
|
-
|
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.
|
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
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE1MDYxMTE0MDY0NFoXDTE2MDYxMDE0MDY0NFowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAOBm+KbLAlIRgkLgBuRLN+Z3GaWKD6U6APtAvvxl9ayhFjY8Gs5lXcBl+iMP
|
19
|
+
g8QAZfvjblwWjeUwfo4QtMZyUdgD2PQLBtL5BNbxyQUGnXGJLOFOQMDwvqY01DmJ
|
20
|
+
Bg4IVLkEq0moUw30dvXiq6htxCJ6fZCKiYdsftrgkqbCHK+nqrgcrGqCzwYqMV0h
|
21
|
+
1oEbYGKNfZH9+0irOTEqFdyqtbRneFKh1+RBxQEqN3obEE+i+r7CguS1m9YuvoHL
|
22
|
+
aKg6fSGbjkOBK4GgoZHZrk1SU5LB6Mn5QEAOW9MjcxzS3L88YNmCgNUPWjNKpGtC
|
23
|
+
AJKEM6Qf1L2pQgoQclhDKxrnzFkCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQU85jG9f1iOaeMqFkBesz2lul7mF0wJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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:
|
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:
|
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.
|
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
|