releaseable 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/releaseable/extensions.rb +1 -0
- data/lib/releaseable/github.rb +2 -12
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
data/lib/releaseable/github.rb
CHANGED
@@ -10,17 +10,7 @@ module Releaseable
|
|
10
10
|
OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
|
11
11
|
|
12
12
|
def self.post address, data
|
13
|
-
|
14
|
-
|
15
|
-
#Net::HTTP.start(uri.host, uri.port,
|
16
|
-
# :use_ssl => uri.scheme == 'https',
|
17
|
-
# :ssl_verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|
|
18
|
-
# #request = Net::HTTP::Get.new uri.request_uri
|
19
|
-
# request = Net::HTTP::Post.new uri.path
|
20
|
-
# request.set_form_data(data)
|
21
|
-
#
|
22
|
-
# p response = http.request(request) # Net::HTTPResponse object
|
23
|
-
#end
|
13
|
+
uri = URI(address)
|
24
14
|
|
25
15
|
server = Net::HTTP.new(uri.host, uri.port)
|
26
16
|
server.use_ssl = (uri.scheme == 'https')
|
@@ -137,7 +127,7 @@ module Releaseable
|
|
137
127
|
end
|
138
128
|
|
139
129
|
def self.analyze_aws_response response
|
140
|
-
|
130
|
+
message = XmlSimple.xml_in(response.body)
|
141
131
|
if response.code.to_i == 201
|
142
132
|
message['PostResponse']['Location']
|
143
133
|
else
|