whynot 0.0.3 → 0.0.4
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 +8 -0
- data/lib/whynot.rb +6 -0
- data/lib/whynot/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: 23b0716c86e099af6196eff0260db5d26b831b80
|
|
4
|
+
data.tar.gz: c2ac663ca0837e07740e062e2b1990e70cddbe8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: af820a9bbf56c22a3f1a86e3d3711003f46915d7fa61ea50a9508dd561b02a4cc1af96bdfc4125f647876c561b050f15b3c87eb2ff1f1b9ae1805b6eb6c10f82
|
|
7
|
+
data.tar.gz: 9a72e98ed020c3a4968cf83abb6df3160ecec070fdbe0ad92afa4ffa0ecc22879b2ead3283698538ba0df539e1ca18923c44ad6a2f7fef6bff64b66196799c2b
|
data/README.md
CHANGED
|
@@ -22,6 +22,8 @@ Or install it yourself as:
|
|
|
22
22
|
|
|
23
23
|
`require 'whynot'`
|
|
24
24
|
|
|
25
|
+
#### Unconfident Code
|
|
26
|
+
|
|
25
27
|
Then you can become less confident about your code working. Whynot adds
|
|
26
28
|
`Kernel#maybe`, which takes a block, like so:
|
|
27
29
|
|
|
@@ -37,6 +39,12 @@ Sometimes it'll return 3, and sometimes `nil`. Because, why not?
|
|
|
37
39
|
If you would like your code to mostly or occasionally work, you use
|
|
38
40
|
`Kernel#mostly` and `Kernel#occasionally`, respectively.
|
|
39
41
|
|
|
42
|
+
#### Apathetic Code
|
|
43
|
+
|
|
44
|
+
Whynot also defines `Kernel#meh`, for when you really don't give a shit.
|
|
45
|
+
|
|
46
|
+
Sometimes it'll be `true`, sometimes `false`. But you don't care about that,
|
|
47
|
+
do you?
|
|
40
48
|
|
|
41
49
|
## Contributing
|
|
42
50
|
|
data/lib/whynot.rb
CHANGED
data/lib/whynot/version.rb
CHANGED