mosq 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/mosq/Rakefile +1 -1
- data/lib/mosq/util.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97ae637c67d2953c3121a5d7a4748c4f9f9efa9f
|
4
|
+
data.tar.gz: 7529bcc6420f2588dad4aad2d121563fd6050cad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60f70880e4eb12b253bbcfdc6ffe3328a890cb0498b57e287cee2ec993fb9d3616a70abc44fc05759915eb0c17bab0123ca382ec3eba181321c84093480ed098
|
7
|
+
data.tar.gz: 65d8bf8cde66fa9b4ca959eb2060027e767a78e66e4934e961357dd3e57c892c2dcf63ab7e4473bf407451a3fd760960568bc44486e4ce65f78a5d55c46db9db
|
data/ext/mosq/Rakefile
CHANGED
@@ -25,7 +25,7 @@ def cmd(string)
|
|
25
25
|
end
|
26
26
|
|
27
27
|
file_task 'mosquitto.tar.gz', :download_tarball do
|
28
|
-
version = "1.4.
|
28
|
+
version = "1.4.3"
|
29
29
|
release = "http://mosquitto.org/files/source/mosquitto-#{version}.tar.gz"
|
30
30
|
cmd "wget -O #{FILES[:download_tarball]} #{release}"
|
31
31
|
end
|
data/lib/mosq/util.rb
CHANGED
@@ -50,7 +50,7 @@ module Mosq
|
|
50
50
|
}
|
51
51
|
if uri
|
52
52
|
# TODO: support IPv6
|
53
|
-
pattern = %r{\A(?<schema>mqtts?)://((?<username>[
|
53
|
+
pattern = %r{\A(?<schema>mqtts?)://((?<username>[^:@]+)(:(?<password>[^@]+))?@)?(?<host>[^:]+)(:(?<port>\d+))?\Z}
|
54
54
|
match = pattern.match(uri)
|
55
55
|
if match
|
56
56
|
info[:ssl] = ("mqtts" == match[:schema])
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mosq
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe McIlvain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|