whynot 0.0.3 → 0.0.4

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: 2b2259292c6faa07e864c8217f8069b59957853a
4
- data.tar.gz: f9aef8c2147ed334d9656b488ba425ee49e0f76b
3
+ metadata.gz: 23b0716c86e099af6196eff0260db5d26b831b80
4
+ data.tar.gz: c2ac663ca0837e07740e062e2b1990e70cddbe8f
5
5
  SHA512:
6
- metadata.gz: 72ad222d0f8a7c66da949173314ed9341abc55967df7f49f8b1dd9f766fb24627662e45da5c8c5fe22bfe7f5247ff3e198d2c2d02b4c39c8d6fcb50853b7c720
7
- data.tar.gz: c99881a5c61b05d78bf988abb280c6e579fe33dd31129afb223d84da715dd506781125e6afed0e684e6aed79fdf6870887219ed3703480c31e3dd8812fdda73a
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
 
@@ -21,4 +21,10 @@ module Kernel
21
21
  yield
22
22
  end
23
23
  end
24
+
25
+ ##
26
+ # For when we really don't care
27
+ def meh
28
+ rand(2) == 1 ? true : false
29
+ end
24
30
  end
@@ -1,3 +1,3 @@
1
1
  module Whynot
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whynot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Lewis