yt 0.4.1 → 0.4.2

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: 597c8d1060669465155d5b6cdbf04682794ddf76
4
- data.tar.gz: f1e05002580e40cda83959e07596f8e795ef4463
3
+ metadata.gz: 12497c7eae18dd07b7eb7e1705247a7a5967dbfe
4
+ data.tar.gz: 2227ad4c629ed930fd4a6c3933d769492e1ab976
5
5
  SHA512:
6
- metadata.gz: 0ddb3a60ddd30f3b71ea52d61f2b05ca1931cc7a26d7ef033afdcc04eff90a2628fd0689ea9e078ae2d1377e6d00a654d7ce5925d2aa1f1a0cfb3b8492c475b1
7
- data.tar.gz: a65c07e1a208e1ed06cf7674980826fd0d4deacfb879a358fcee8adac80b85753778d8f0ae93af93c157489a880d0b87f2307621571a2901ec3331ccc1e9e589
6
+ metadata.gz: d0d13853322c80ae552827897d3878af7d7d9138c945d13bbf7a0e6e6ec3d398a5119dd5a4831c7ba646dc9d0bd6ad513c045793f38b47a29654ea2eb5aacb9c
7
+ data.tar.gz: b2eb5dea13cbf4044eaf99735e932243b60b5a310c7bd8066c202230ba2ba387b7b08276a14880f2be9291b1d0a6f3eef1212e52b503f13c830bd2d5e7a32ae0
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yt (0.4.1)
4
+ yt (0.4.2)
5
5
  activesupport
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -276,7 +276,7 @@ To install on your system, run
276
276
 
277
277
  To use inside a bundled Ruby project, add this line to the Gemfile:
278
278
 
279
- gem 'yt', '~> 0.4.1'
279
+ gem 'yt', '~> 0.4.2'
280
280
 
281
281
  Since the gem follows [Semantic Versioning](http://semver.org),
282
282
  indicating the full version in your Gemfile (~> *major*.*minor*.*patch*)
@@ -14,12 +14,12 @@ module Yt
14
14
  item.delete
15
15
  end.tap { @items = [] }
16
16
  end
17
-
17
+
18
18
  def where(params = {})
19
19
  list.find_all do |item|
20
20
  params.all? do |method, value|
21
21
  # TODO: could be symbol etc...
22
- item.respond_to?(method) && item.send(method) == value
22
+ item.respond_to?(method) && item.send(method) =~ value
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module Yt
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claudio Baccigalupo