stupidedi 1.2.1 → 1.2.2

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: 1dc73ca111e43b38ae8715ff61a968a98a11fb37
4
- data.tar.gz: f65b0a26440dc252b2dc63d47eb986650009d1a0
3
+ metadata.gz: 9ff1d8f6beea22666b9a2951803ffa317f1e4751
4
+ data.tar.gz: 93a7f43ad7423f24bb1ea303b332adab7137d24b
5
5
  SHA512:
6
- metadata.gz: ae4fdaee26ab0872ad5b998b108690850eb709754a22d89cca2104d137d31c0de7beb8b599e03deff9c92fe8a697c069499a3203a27b8a53c484badee183405e
7
- data.tar.gz: 236d121428f8a7bc1f11a8d426e5335917b5d44cae3cb688a00c98f0e7f04e5e27f587608410656f89940137c9730a850ae38734dcf9323baf9047be534f16b8
6
+ metadata.gz: 4154b4e91f33438c147ee2be6c1839a783b16d34e123a8e8e04bee574908f2646ce459afad0a23c4630213a43c329a8c24e05a5fab1a801094485c3749a2915b
7
+ data.tar.gz: ce31dfd096d0b953289c0b56fa0ea08f158e1d143a219a9366ee34075ac856e3fb8020bfd793f7b9bebd1f48476ae3420bef328e178dc5d60b2141568d8164c3
@@ -1,5 +1,13 @@
1
1
  class Array
2
2
 
3
+ def blank?
4
+ empty?
5
+ end
6
+
7
+ def present?
8
+ not empty?
9
+ end
10
+
3
11
  # Return the first item. Raises an `IndexError` if the Array is `empty?`.
4
12
  #
5
13
  # @example
@@ -16,24 +16,24 @@ class String
16
16
  end
17
17
  end
18
18
 
19
- module Enumerable
20
-
21
- # True if the collection is `empty?`
22
- #
23
- # @example
24
- # [1,2].blank? #=> false
25
- # [].blank? #=> false
26
- #
27
- unless respond_to?(:blank?)
28
- def blank?
29
- empty?
30
- end
31
- end
32
-
33
- def present?
34
- not empty?
35
- end
36
- end
19
+ # module Enumerable
20
+ #
21
+ # # True if the collection is `empty?`
22
+ # #
23
+ # # @example
24
+ # # [1,2].blank? #=> false
25
+ # # [].blank? #=> false
26
+ # #
27
+ # unless respond_to?(:blank?)
28
+ #
29
+ # def blank?
30
+ # empty?
31
+ # end
32
+ #
33
+ # def present?
34
+ # not empty?
35
+ # end
36
+ # end
37
37
 
38
38
  class NilClass
39
39
 
@@ -1,3 +1,3 @@
1
1
  module Stupidedi
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stupidedi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Putnam