flapcore 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README +0 -0
- data/lib/dictionary.txt +48003 -0
- data/lib/flapcore.rb +22 -0
- metadata +55 -0
data/lib/flapcore.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
class FlapCore
|
2
|
+
class << self
|
3
|
+
def wordhunt
|
4
|
+
word = File.open(File.join(File.dirname(__FILE__),'dictionary.txt'), "r").read.split(/\n/)
|
5
|
+
word.select do |pear|
|
6
|
+
pear.size == 4
|
7
|
+
end
|
8
|
+
end
|
9
|
+
def selector(zoot)
|
10
|
+
index = rand(zoot.size)
|
11
|
+
return zoot[index]
|
12
|
+
end
|
13
|
+
def generate
|
14
|
+
fourletterwords = wordhunt
|
15
|
+
password_first = selector(fourletterwords)
|
16
|
+
password_second = rand(90)+10
|
17
|
+
password_third = selector(fourletterwords)
|
18
|
+
balla_shotcalla = password_first, password_second, password_third
|
19
|
+
balla_shotcalla.join
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: flapcore
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Devin Gaffney
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2008-08-11 00:00:00 -07:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: devin@weareinstrument.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README
|
24
|
+
files:
|
25
|
+
- lib/dictionary.txt
|
26
|
+
- lib/flapcore.rb
|
27
|
+
- README
|
28
|
+
has_rdoc: false
|
29
|
+
homepage: http://www.instrum3nt.com
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
|
33
|
+
require_paths:
|
34
|
+
- lib
|
35
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: "0"
|
40
|
+
version:
|
41
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
46
|
+
version:
|
47
|
+
requirements: []
|
48
|
+
|
49
|
+
rubyforge_project:
|
50
|
+
rubygems_version: 1.1.1
|
51
|
+
signing_key:
|
52
|
+
specification_version: 2
|
53
|
+
summary: Generate random memorable passwords
|
54
|
+
test_files: []
|
55
|
+
|