rbcm 0.0.5 → 0.0.6
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/app/lib/lib.rb +11 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64d207b634e0ea0dea136b1a4820fa19e33254699e896bc3eebf8a61a4eb1a04
|
4
|
+
data.tar.gz: 36436444ed968488cba4243f18a163b4573453794b1278ff0253b460cb2247ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b470619274cb34f5137ea472ba16f07c2e920cd4795b8ef38a5b9353a20343dd7c71892f38a21f7b0ac3e3f930bcc7836cce9652a765e22c8140775434826c26
|
7
|
+
data.tar.gz: 5e7d084273719ba5b2a25fdc54e295628f8890aab503f200dd00c81793768a17c04ac0976818838ba5bb294a37290bf77c15cf3ae5a840e7bc1043b6fbcddb00
|
data/app/lib/lib.rb
CHANGED
@@ -19,16 +19,24 @@ class Array
|
|
19
19
|
def include_one? array
|
20
20
|
(self & array).any?
|
21
21
|
end
|
22
|
-
end
|
23
22
|
|
24
|
-
|
25
|
-
|
23
|
+
# backport
|
24
|
+
unless defined? append
|
26
25
|
def append element
|
27
26
|
self << element
|
28
27
|
end
|
29
28
|
end
|
30
29
|
end
|
31
30
|
|
31
|
+
class Fixnum
|
32
|
+
# backport
|
33
|
+
unless defined? digits
|
34
|
+
def digits
|
35
|
+
self.to_s.chars.map(&:to_i)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
32
40
|
# a hash which keys are initiated as arrays
|
33
41
|
# default values via `Hash.new []` are inadequate for being volatile
|
34
42
|
|