mosq 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/mosq/Rakefile +2 -1
- data/lib/mosq/client/bucket.rb +4 -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: 77871424981b16bc758d319dbabbb63958f96d61
|
4
|
+
data.tar.gz: e61adcdefbc1238c1df36e54ca6e6f6b3dfba294
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8348f60d1caf81225fd7c7ae9b75f5e0030d514a6c0986ac4eef21ea036dad1fefc5977e1ae34d0d6d058092ce0d5c588a59bfa5807a5874edbbd2a81f48a820
|
7
|
+
data.tar.gz: 3e7d5d2ddd4b732905ae73f43bd94bae371a537007065df1d0a1c753692c7731325e49a2dd837b962defa4d5443d5624c1cec9b7ce11ef11dddf791c673cf44d
|
data/README.md
CHANGED
@@ -4,6 +4,6 @@
|
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/mosq.png)](http://badge.fury.io/rb/mosq)
|
5
5
|
[![Join the chat at https://gitter.im/jemc/ruby-mosq](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/jemc/ruby-mosq?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
6
6
|
|
7
|
-
[MQTT](http://mqtt.org/) client library based on [FFI](https://github.com/ffi/ffi/wiki) bindings for [libmosquitto](http://mosquitto.org/man/libmosquitto-3.html).
|
7
|
+
A Ruby [MQTT](http://mqtt.org/) client library based on [FFI](https://github.com/ffi/ffi/wiki) bindings for [libmosquitto](http://mosquitto.org/man/libmosquitto-3.html).
|
8
8
|
|
9
9
|
##### `$ gem install mosq`
|
data/ext/mosq/Rakefile
CHANGED
@@ -36,7 +36,8 @@ file_task 'mosquitto', :download => :download_tarball do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
file_task "libmosquitto.#{::FFI::Platform::LIBSUFFIX}", :build => :download do
|
39
|
-
|
39
|
+
mkflags = "WITH_THREADING=no WITH_SRV=no WITH_UUID=false"
|
40
|
+
cmd "/usr/bin/env sh -c 'cd #{FILES[:download]} && make #{mkflags}'"
|
40
41
|
cmd "cp #{FILES[:download]}/lib/#{FILES[:build]}* ./#{FILES[:build]}"
|
41
42
|
end
|
42
43
|
|
data/lib/mosq/client/bucket.rb
CHANGED
@@ -23,10 +23,13 @@ module Mosq
|
|
23
23
|
type: :connect,
|
24
24
|
status: status,
|
25
25
|
message: case status
|
26
|
-
when 0; "
|
26
|
+
when 0; "connection accepted"
|
27
27
|
when 1; "connection refused (unacceptable protocol version)"
|
28
28
|
when 2; "connection refused (identifier rejected)"
|
29
29
|
when 3; "connection refused (broker unavailable)"
|
30
|
+
when 4; "connection refused (bad user name or password)"
|
31
|
+
when 5; "connection refused (not authorised)"
|
32
|
+
when 6; "connection refused (unknown reason)"
|
30
33
|
else "unknown connection failure"
|
31
34
|
end,
|
32
35
|
}
|
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.0.
|
4
|
+
version: 0.0.2
|
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-08-
|
11
|
+
date: 2015-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|