yt 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/yt/actions/delete_all.rb +2 -2
- data/lib/yt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12497c7eae18dd07b7eb7e1705247a7a5967dbfe
|
4
|
+
data.tar.gz: 2227ad4c629ed930fd4a6c3933d769492e1ab976
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0d13853322c80ae552827897d3878af7d7d9138c945d13bbf7a0e6e6ec3d398a5119dd5a4831c7ba646dc9d0bd6ad513c045793f38b47a29654ea2eb5aacb9c
|
7
|
+
data.tar.gz: b2eb5dea13cbf4044eaf99735e932243b60b5a310c7bd8066c202230ba2ba387b7b08276a14880f2be9291b1d0a6f3eef1212e52b503f13c830bd2d5e7a32ae0
|
data/Gemfile.lock
CHANGED
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.
|
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)
|
22
|
+
item.respond_to?(method) && item.send(method) =~ value
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/lib/yt/version.rb
CHANGED