wideopenspaces-wicked 0.1.3 → 0.2.0

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.
Files changed (3) hide show
  1. data/VERSION.yml +2 -2
  2. data/lib/wicked.rb +14 -1
  3. metadata +2 -2
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :minor: 1
3
- :patch: 3
2
+ :minor: 2
3
+ :patch: 0
4
4
  :major: 0
data/lib/wicked.rb CHANGED
@@ -37,10 +37,23 @@ module Wicked
37
37
  # Don't be a doofus, use this wisely, on boolean methods only
38
38
  # if you know what's good for you.
39
39
 
40
- def aint (p = nil)
40
+ def aint(p = nil)
41
41
  NotReturningMe.new(self)
42
42
  end
43
43
 
44
+ # A funny byproduct of using aint...
45
+ # But before you get confused, read it as 'is not nothing, which should be true except for nil)
46
+ def aint_nothin?
47
+ self.aint.nil?
48
+ end
49
+ # See? You can laugh...
50
+ alias_method :aint_it_somethin?, :aint_nothin?
51
+
52
+ # Ok, so here goes - true if nothing, like nil
53
+ def is_nothin?
54
+ !self.is.nil?
55
+ end
56
+
44
57
  # A few stylistic variations on aint
45
58
  alias_method :isnt, :aint
46
59
  alias_method :is_not, :aint
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wideopenspaces-wicked
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacob Stetser
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-31 00:00:00 -08:00
12
+ date: 2009-02-01 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency