codebase 3.1.2 → 3.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/codebase/command.rb +5 -1
  2. metadata +1 -1
@@ -60,11 +60,15 @@ module Codebase
60
60
  else
61
61
  req = Net::HTTP::Get.new(uri.path)
62
62
  end
63
-
63
+
64
64
  req.basic_auth(username, password)
65
65
  req.add_field("Accept", "application/xml")
66
66
  req.add_field("Content-type", "application/xml")
67
67
  res = Net::HTTP.new(uri.host, uri.port)
68
+ if url.include?('https://')
69
+ res.use_ssl = true
70
+ res.verify_mode = OpenSSL::SSL::VERIFY_NONE
71
+ end
68
72
  res = res.request(req, data)
69
73
  case res
70
74
  when Net::HTTPSuccess
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke