at_what_cost 1.0.0 → 1.0.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/Gemfile.lock +1 -1
- data/README.md +15 -2
- data/lib/at_what_cost.rb +1 -1
- data/lib/at_what_cost/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63e785ae370329de7e393202a49bb8b9ce53016a0de956a06850506b08d6373b
|
4
|
+
data.tar.gz: 2975a3cb99010d08ca5b5a6adf7531a3fb20efa81bb1bb25e46a345ad3706996
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7251beaaec263b3d238b712a10fc63d4969bf1934cfaa9be6366a6943bacbde541cb2cd5e25dd8b5cd0619d37be0a8e10d150cc3858a996e9ab5dde59aa8c912
|
7
|
+
data.tar.gz: 2f9a3da727172177e29ee3e2656fff31f60c9103737b5ef9b1a2656f6084b763a211969e845636b7118bd1d7621d783a5c94ae30c02bb25fc33d21f81d2fbc4b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,21 @@
|
|
1
1
|
# AtWhatCost
|
2
2
|
|
3
|
-
|
3
|
+
When you want to answer the question _at what cost_, simply put some code into a proc, and ask:
|
4
4
|
|
5
|
-
|
5
|
+
```ruby
|
6
|
+
require 'at_what_cost'
|
7
|
+
|
8
|
+
p = ->{ (1..9999).map{|n| n**2}}
|
9
|
+
|
10
|
+
p.at_what_cost?
|
11
|
+
```
|
12
|
+
|
13
|
+
And see the output (YMMV):
|
14
|
+
|
15
|
+
```
|
16
|
+
user system total real
|
17
|
+
0.002122 0.000151 0.002273 ( 0.002882)
|
18
|
+
```
|
6
19
|
|
7
20
|
## Installation
|
8
21
|
|
data/lib/at_what_cost.rb
CHANGED
data/lib/at_what_cost/version.rb
CHANGED