suggest_rb 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/suggest.rb +6 -0
- data/lib/suggest/version.rb +1 -1
- 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: 2fe9b5c13b9b76cdc4d850091cfb954788ae0ad3
|
4
|
+
data.tar.gz: 43b1dfbc6077ec1b031f58573579e985fc83d986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6dd9f922b0bd51563b46ed087ab840a4eecf4b36f575d603778afdbe5fbd38092cdc0aa4e8cf8a9630297117f23f6856d802ba9fa7e33f5fa579778893516ef
|
7
|
+
data.tar.gz: 54bc88ffb9424e635da9e016ae70096b7f24ca36bcf07f56d7080d4f20b480a32e7c77aee5cf772d320e41a519739e19f436780d7b83ce9aaaf18b3c3b56be41
|
data/README.md
CHANGED
@@ -60,6 +60,10 @@ require 'suggest'
|
|
60
60
|
[1,2,3,4].what_mutates? [2,4] { |n| n % 2 == 0 }
|
61
61
|
=> [:select!, :keep_if]
|
62
62
|
|
63
|
+
# You can use a lambda as an expected
|
64
|
+
[1,2,3,4].what_returns? -> (something_that) { something_that.to_i == 4 }
|
65
|
+
=> [:count, :length, :size, :last, :max]
|
66
|
+
|
63
67
|
# It respects the ruby version
|
64
68
|
# ruby 2.4.3
|
65
69
|
{a: 1, b: 2}.what_returns?({})
|
data/lib/suggest.rb
CHANGED
@@ -45,6 +45,12 @@ module Suggest
|
|
45
45
|
[Numeric, :singleton_method_added],
|
46
46
|
[Numeric, :clone],
|
47
47
|
[Numeric, :dup],
|
48
|
+
[BasicObject, :instance_eval],
|
49
|
+
[BasicObject, :instance_exec],
|
50
|
+
[BasicObject, :__send__],
|
51
|
+
[BasicObject, :singleton_method_added],
|
52
|
+
[BasicObject, :singleton_method_removed],
|
53
|
+
[BasicObject, :singleton_method_undefined]
|
48
54
|
])
|
49
55
|
|
50
56
|
SELECTOR = ->(m) do
|
data/lib/suggest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: suggest_rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Bodah
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|