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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3e826b96ac902207ad690a3ea90a49acc266eb0
4
- data.tar.gz: b0208ffc9b595687d936b704c15ce3dd0b06b864
3
+ metadata.gz: 77871424981b16bc758d319dbabbb63958f96d61
4
+ data.tar.gz: e61adcdefbc1238c1df36e54ca6e6f6b3dfba294
5
5
  SHA512:
6
- metadata.gz: 7b605dbc96e3bd96b3c75fe2d9ed1f20c8ff187c2e752e1f2ae77ea5971bb1621100ade4a59f1f8fe82a74edff215d5779be7449ed417c91fb170cf79a1eef27
7
- data.tar.gz: 00d94526260cb7ba5313125ddbfa3aa5e742db6853f072fe52b23b03297885ba334d6f8443c12d8768f6c975280c36028c80bf7cf5b969a315035b162cf49318
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`
@@ -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
- cmd "/usr/bin/env sh -c 'cd #{FILES[:download]} && env CFLAGS=-g make'"
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
 
@@ -23,10 +23,13 @@ module Mosq
23
23
  type: :connect,
24
24
  status: status,
25
25
  message: case status
26
- when 0; "success"
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2015-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi