password_dynamo 0.0.0001 → 0.0.00012

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. data/bin/dynamo +2 -0
  2. data/lib/dynamo.rb +12 -0
  3. metadata +7 -4
data/bin/dynamo ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env ruby
2
+
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.0001
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-11-13 00:00:00.000000000 Z
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
- homepage: https://rubygems.org/gems/password_dynamo
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: []