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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/pgp-word-list.rb +2 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d664dba4fcbf2786c8701fef0f63e0ded2bd58b
4
- data.tar.gz: 7da3b6e3dff16cdc5790e3dfc01738c2812e92a3
3
+ metadata.gz: 4e5002e05a53345b4812553aeb40e0d5102af781
4
+ data.tar.gz: 930b74883ac448e62832089c5e56a033cec171df
5
5
  SHA512:
6
- metadata.gz: 8d33a07a5fc92cd1db4ed631ee22ce0b2c3818fcaf1607399430ee3e0b83c5f768300f73f182e220da2953c94322b8564e18cec1ceb83336af18e36a36ec57da
7
- data.tar.gz: f4642a98fd6c06266a74cae0afb21685264d5323ebf25131b52d37cafcec6aeffdb59b68dfe7afa4c56ed3e0e18fad9cea8866850780a34898b3ec676285d35d
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
- words = []
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
- hex = []
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgp-word-list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Warren Guy