nutella_lib 0.4.12 → 0.4.13
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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/simple_mqtt_client/simple_mqtt_client.rb +3 -1
- data/nutella_lib.gemspec +3 -3
- 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: 95c7e2fcfcbb1424d3a5aa4b6e38d5c54ed6d4a7
|
|
4
|
+
data.tar.gz: 83f00cb1a49741b21c02abfe362a4dd68884986e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0f2e3cc4e2143129a98b94a65f12872b5ac10714ce71a96f088b68421250a016d6d78e602dbe64a9e7339d29412becd32422b811ba1b5a8e87940e50afae175a
|
|
7
|
+
data.tar.gz: becc3b1323c77f4c6596beee9c3ea0236acf36aabf618595d10c83456e50bc9cb67019c04493cc525028f718d537674621785529163a988c0d0b5afe6e7eaa14
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.13
|
|
@@ -123,7 +123,9 @@ class SimpleMQTTClient
|
|
|
123
123
|
# First we need to build a regex out of the pattern
|
|
124
124
|
regex = build_regex_from_pattern pattern
|
|
125
125
|
# Then we check if the regex matches the string
|
|
126
|
-
|
|
126
|
+
match_data = regex.match str
|
|
127
|
+
# and if the matched data is actually the whole string (avoid errors with channels with the same prefix)
|
|
128
|
+
!match_data.nil? && match_data[0] == str
|
|
127
129
|
end
|
|
128
130
|
|
|
129
131
|
# Escape '/'
|
data/nutella_lib.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: nutella_lib 0.4.
|
|
5
|
+
# stub: nutella_lib 0.4.13 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "nutella_lib"
|
|
9
|
-
s.version = "0.4.
|
|
9
|
+
s.version = "0.4.13"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Alessandro Gnoli"]
|
|
14
|
-
s.date = "2015-05-
|
|
14
|
+
s.date = "2015-05-17"
|
|
15
15
|
s.description = "Implements the nutella protocol and exposes it natively to ruby developers"
|
|
16
16
|
s.email = "tebemis@gmail.com"
|
|
17
17
|
s.extra_rdoc_files = [
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nutella_lib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.13
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alessandro Gnoli
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-05-
|
|
11
|
+
date: 2015-05-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mqtt
|