git-semaphore 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git-semaphore/api.rb +2 -1
- data/lib/git-semaphore/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d2ced61b3a6d956e7de7b9f221ed5177ba694241
|
4
|
+
data.tar.gz: d0b8ff55740a0372c195df5e633f925ca9461030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22355eb12f01dc103d7def13e42ed9bf891fc089fd11de73bab19a2e5efcfe2ef7fda53dd183bb12bf8900dd4bb5469b67c5dfe5b963650f9305110500102966
|
7
|
+
data.tar.gz: 5a3d80cfeb1085db9cf5ce25458bc0c852cfe20ff9295430fe8b3b2ee1ada359dd8ed30392af4f7dbffcb75c9c51482ad36fcd89123f882e376a393b76a13678
|
data/lib/git-semaphore/api.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'uri'
|
2
2
|
require 'net/http'
|
3
|
+
require 'openssl'
|
3
4
|
|
4
5
|
module Git
|
5
6
|
module Semaphore
|
@@ -33,7 +34,7 @@ module Git
|
|
33
34
|
# helper functions
|
34
35
|
|
35
36
|
def self.get_response uri, action=:get
|
36
|
-
::Net::HTTP.start(uri.host, uri.port, :use_ssl => (uri.scheme == 'https'), :verify_mode => OpenSSL::SSL::VERIFY_NONE) do |net_http|
|
37
|
+
::Net::HTTP.start(uri.host, uri.port, :use_ssl => (uri.scheme == 'https'), :verify_mode => ::OpenSSL::SSL::VERIFY_NONE) do |net_http|
|
37
38
|
case action
|
38
39
|
when :get
|
39
40
|
net_http.get uri.request_uri
|