nginx_stream_pusher 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/nginx_stream_pusher.rb +2 -2
- data/nginx_stream_pusher.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.2
|
data/lib/nginx_stream_pusher.rb
CHANGED
|
@@ -55,7 +55,7 @@ module NginxStreamPusher
|
|
|
55
55
|
|
|
56
56
|
def post_url(url, data)
|
|
57
57
|
http = Net::HTTP.new(url.host, url.port)
|
|
58
|
-
http.use_ssl =
|
|
58
|
+
http.use_ssl = url.scheme == 'https'
|
|
59
59
|
http.read_timeout = timeout
|
|
60
60
|
if File.directory? RootCA
|
|
61
61
|
http.ca_path = RootCA
|
|
@@ -65,7 +65,7 @@ module NginxStreamPusher
|
|
|
65
65
|
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
|
|
66
66
|
end
|
|
67
67
|
|
|
68
|
-
req = Net::HTTP::Post.new(
|
|
68
|
+
req = Net::HTTP::Post.new(url.request_uri, 'User-agent' => 'NginxStreamPusher Ruby Client')
|
|
69
69
|
req.basic_auth user, pass if user || pass
|
|
70
70
|
req.body = data
|
|
71
71
|
|
data/nginx_stream_pusher.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nginx_stream_pusher
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -190,7 +190,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
190
190
|
version: '0'
|
|
191
191
|
segments:
|
|
192
192
|
- 0
|
|
193
|
-
hash:
|
|
193
|
+
hash: 4552201893967027377
|
|
194
194
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
195
195
|
none: false
|
|
196
196
|
requirements:
|