in_array 0.0.1 → 0.1.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 +8 -8
- data/lib/in_array.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
OTkxMGJhMjQ3MWRjMGVlZWQ4ZTA0ZGUyZjZkMzI5NzBmMDljYTdiMQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
Yjc1NmM3MGQyYTc2ZDJjYzBhMGU4N2JjNTBjMThhNmUxZGNiZDI3MQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YzcwMTVlNGQ2ZmU4M2Q0NGQ3NDA0NGJiNmNhMzUxM2IyOWQxNGE4NDE1OTk2
|
|
10
|
+
YWM5OTk2N2U1MmEyZGU1OWJjMzA5NGEwYWFmOGU1N2VhYzQ4OWYzN2YwMzRl
|
|
11
|
+
MzBiNWY5NzEzZjcwYjM5NDVhMmJmOTMzNmFhMjY3OGVmN2M3YWQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NjkyMmE1MDc2ZDEzNTk1NWM1NzAzYTdmZmVhMDliNWJmZmFkMWFlOWVmY2Zl
|
|
14
|
+
NGE5ZjMwOTM5MTE4NzUxNmY3OGYxNDEyNjEwYjQyMzkzY2JiMmIxZTIwNzNm
|
|
15
|
+
MDgwNWM5OWQwMGE0OWUwMTMzNDJlNzEzZmQ2YzBjY2I2NTczMjc=
|
data/lib/in_array.rb
CHANGED
|
@@ -8,8 +8,8 @@ class BasicObject
|
|
|
8
8
|
end
|
|
9
9
|
end
|
|
10
10
|
|
|
11
|
-
#A
|
|
12
|
-
module
|
|
11
|
+
#A mixin module to be included in any class that already holds data in_array.
|
|
12
|
+
module InArrayAlready
|
|
13
13
|
#Return the object in an array. Already is!
|
|
14
14
|
def in_array
|
|
15
15
|
self
|
|
@@ -18,5 +18,5 @@ end
|
|
|
18
18
|
|
|
19
19
|
#Arrays already have their data in_array.
|
|
20
20
|
class Array
|
|
21
|
-
include
|
|
21
|
+
include InArrayAlready
|
|
22
22
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: in_array
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Peter Camilleri
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-01-
|
|
11
|
+
date: 2014-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|