pgp-word-list 0.0.2 → 0.0.3
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/lib/pgp-word-list.rb +2 -10
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e5002e05a53345b4812553aeb40e0d5102af781
|
4
|
+
data.tar.gz: 930b74883ac448e62832089c5e56a033cec171df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94e294cdeae7d2335e3ec1cf99448ad317101406f25edadaac3c173855228c0a2388250c22405e4c1a54a1af4ebfc5ba719d3c721921ee1993eeb57b9f9a5b6f
|
7
|
+
data.tar.gz: f915d9f365ed707d3a7574693926f196f4eb9e70a832a929c908e5546e08409677d8a57cdc21e8854298950edf7afc8736f4d0e21e9cd1b1abfa9b26c53bd59b
|
data/lib/pgp-word-list.rb
CHANGED
@@ -10,19 +10,11 @@ end
|
|
10
10
|
|
11
11
|
class Array
|
12
12
|
def to_pgp_words
|
13
|
-
|
14
|
-
self.each_with_index do |hex, i|
|
15
|
-
words << PGPWordList.hex_to_word(hex, i)
|
16
|
-
end
|
17
|
-
return words
|
13
|
+
self.each_with_index.map{|hex, i| PGPWordList.hex_to_word(hex, i)}
|
18
14
|
end
|
19
15
|
|
20
16
|
def to_pgp_hex
|
21
|
-
|
22
|
-
self.each do |word|
|
23
|
-
hex << PGPWordList.word_to_hex(word)
|
24
|
-
end
|
25
|
-
return hex
|
17
|
+
self.map{|word| PGPWordList.word_to_hex(word)}
|
26
18
|
end
|
27
19
|
end
|
28
20
|
|