lens_of_truth 0.1.0 → 0.1.1
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 +4 -4
- data/README.md +2 -2
- data/lib/lens_of_truth/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0d4227b01e682a23a39d63d6b4f6817a6962c3df
|
|
4
|
+
data.tar.gz: a4d51f01633123f96513b5d9294dfd45d42e3855
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 53c512eb6e9113877b3f3e412e16debc058bbd73bb2b1435c50200dfcf1c762b71a1fe98ff28a14ed69e8dd6241f4142bd5448dd67cd7feb76d6b2b44ecfc1ea
|
|
7
|
+
data.tar.gz: becb19db80657445df85300a3fdf9bd90f6f9d0f51122187f1dae5199dba8e131dfd90c37ef7e5cdb807221abfa76a1d4de9c52e732f7195a556e8621dda0825
|
data/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Operating on the assumption that related data tend to live reasonably close toge
|
|
|
6
6
|
|
|
7
7
|
### "Use cases"
|
|
8
8
|
|
|
9
|
-
Under the hood, `Enumerator` is implemented in terms of fibers so as to support suspension and resumption. CRuby does the right thing by not exposing this implementation detail directly, but maybe we want a reference to the underlying `Fiber` anyway. We
|
|
9
|
+
Under the hood, `Enumerator` is implemented in terms of fibers so as to support suspension and resumption. CRuby does the right thing by not exposing this implementation detail directly, but maybe we want a reference to the underlying `Fiber` anyway. We know its [approximate location](https://git.io/vzNsN), so let's see if the **Lens of Truth** can help us home in on it:
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
12
|
require 'fiber' # for Fiber#transfer
|
|
@@ -44,7 +44,7 @@ Finding the right `Proc` or `Array` is a little harder (read: non-deterministic)
|
|
|
44
44
|
|
|
45
45
|
### Usage
|
|
46
46
|
|
|
47
|
-
`Object#find_nearby` uses case equality (`===`) when performing the search, so you can scan around for nearby strings matching some regular expression or a numeric object within a given range. You can instead pass a block to be used as the predicate. There's also an optional keyword argument `limit` which specifies how far to search in
|
|
47
|
+
`Object#find_nearby` uses case equality (`===`) when performing the search, so you can scan around for nearby strings matching some regular expression or a numeric object within a given range. You can instead pass a block to be used as the predicate. There's also an optional keyword argument `limit` which specifies how far to search in either direction before bailing. Examples follow.
|
|
48
48
|
|
|
49
49
|
```ruby
|
|
50
50
|
p Object.find_nearby /^[A-Z]+$/
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lens_of_truth
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- D.E. Akers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: lens_of_truth adds Object#find_nearby to look around in proximal memory
|
|
14
14
|
for things of interest.
|
|
@@ -46,7 +46,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
46
46
|
version: '0'
|
|
47
47
|
requirements: []
|
|
48
48
|
rubyforge_project:
|
|
49
|
-
rubygems_version: 2.5.
|
|
49
|
+
rubygems_version: 2.5.2
|
|
50
50
|
signing_key:
|
|
51
51
|
specification_version: 4
|
|
52
52
|
summary: Use the Lens of Truth to find objects hidden nearby.
|