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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 765a0c2fc65382113a15ad839affeb87c4505145
4
- data.tar.gz: 7ba460e28b153b0fcbcebfcf877ba05cab1b3440
3
+ metadata.gz: 95c7e2fcfcbb1424d3a5aa4b6e38d5c54ed6d4a7
4
+ data.tar.gz: 83f00cb1a49741b21c02abfe362a4dd68884986e
5
5
  SHA512:
6
- metadata.gz: cdfb63346078769d289ce6c7474da8c880e05ba85d7f02c77ccac4eaef461b36cd7dc6c7b8b441da83f15478a466eaff7bebf4dfa76658d6fc46b7a5c8a8d34e
7
- data.tar.gz: 4e888d402be3de03a4a55d5fd223079fe2565347b40d64a2932084002496c635181836b2b5b4af9a4d6844652b6b2128b8fa7d7e2675768b9b8d1e9466976472
6
+ metadata.gz: 0f2e3cc4e2143129a98b94a65f12872b5ac10714ce71a96f088b68421250a016d6d78e602dbe64a9e7339d29412becd32422b811ba1b5a8e87940e50afae175a
7
+ data.tar.gz: becc3b1323c77f4c6596beee9c3ea0236acf36aabf618595d10c83456e50bc9cb67019c04493cc525028f718d537674621785529163a988c0d0b5afe6e7eaa14
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.12
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
- !!(regex =~ str)
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.12 ruby lib
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.12"
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-01"
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.12
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-01 00:00:00.000000000 Z
11
+ date: 2015-05-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mqtt