password_dynamo 0.0.0001 → 0.0.00012
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/dynamo +2 -0
- data/lib/dynamo.rb +12 -0
- metadata +7 -4
data/bin/dynamo
ADDED
data/lib/dynamo.rb
CHANGED
@@ -0,0 +1,12 @@
|
|
1
|
+
class Dynamo
|
2
|
+
WORDS ||= IO.readlines("./lib/words.txt").map(&:chomp).uniq!
|
3
|
+
|
4
|
+
def initialize
|
5
|
+
end
|
6
|
+
|
7
|
+
def generate_password(words_in_password = 4)
|
8
|
+
word_array = []
|
9
|
+
words_in_password.times{ word_array << WORDS.sample }
|
10
|
+
word_array.join(' ')
|
11
|
+
end
|
12
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: password_dynamo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.00012
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,16 +9,19 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-01 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: ''
|
15
15
|
email: strand@bettermistak.es
|
16
|
-
executables:
|
16
|
+
executables:
|
17
|
+
- dynamo
|
17
18
|
extensions: []
|
18
19
|
extra_rdoc_files: []
|
19
20
|
files:
|
20
21
|
- lib/dynamo.rb
|
21
|
-
|
22
|
+
- !binary |-
|
23
|
+
YmluL2R5bmFtbw==
|
24
|
+
homepage: https://github.com/strand/password_dynamo_gem
|
22
25
|
licenses: []
|
23
26
|
post_install_message:
|
24
27
|
rdoc_options: []
|