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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6237fd6995151a2f3a715639d9e0518340b52032
4
- data.tar.gz: e35122c4e1959e093ce9d476d24c4b31a9c937c7
3
+ metadata.gz: 2fe9b5c13b9b76cdc4d850091cfb954788ae0ad3
4
+ data.tar.gz: 43b1dfbc6077ec1b031f58573579e985fc83d986
5
5
  SHA512:
6
- metadata.gz: 8b8d618865cb9263990c49cb350ce12b688b08f93db07f3151772855a2fbd0c23e352fa6fd6466a4fccdb50d1f157761fe8fb6a9304d644dff582a366fe7625b
7
- data.tar.gz: 26518129586fe19ef9e19d404a2204030fe11212517836301c2eb51148a6a81ebcd09af08f3b350e1e26bb9c3bbad2a66ed5ca818354f649e856ece29a2fff36
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?({})
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Suggest
2
- VERSION = "0.5.1"
2
+ VERSION = "0.5.2"
3
3
  end
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.1
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-03-20 00:00:00.000000000 Z
11
+ date: 2019-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler