turboname 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +54 -16
- data/bin/turboname +2 -2
- data/lib/turboname.rb +2 -2
- data/lib/turboname/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2JhYTM1MzA2MWM5Mjg3ZmZkMmY0ODdmNjliNjdlMzc5MDViNGM3Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZThlNDE0YWY2MmRkYmRjOWEwMDk3NWE2YjdkNTE1MTI1ZWE0NGM5ZA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
N2RjNjQwZGMzYmFiNWQxOGUyMTc2MzM0YzAzOWY4ZDc0MDI0Njc5OWFhOTFl
|
10
|
+
ZGNmODc3YWQwZmNjMmQzNTU1YzdkYzE0MjNkNWUyZTFmYzhmZGIzMjJhYzRh
|
11
|
+
ZTg2N2RjNWI5ZTY2MmZhNzY3ZGM0OWRjYWVlN2QwNjUyY2M4Njk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YjIyYWU5YjFhYmUwYWVjNmRhNmVjZGFiYzIyMDQ0N2QzNGIwNTJmMTgzNjlj
|
14
|
+
ODk0YmEwY2I0M2M2ZGZkOTI2ODViZjFlNTk0YWQ5ZjM0Mzk3NjIzYmU5MzFi
|
15
|
+
Mjk5ODMzNWZiOWQ5ZDVmMDFkYWUyNWU2YTU0ZDk2YzUyODliMjc=
|
data/README.md
CHANGED
@@ -7,33 +7,71 @@ While most of the results aren't that exiting you can find a gem watching the re
|
|
7
7
|
|
8
8
|
Based on [Megoforce](https://github.com/megoforce/turboname)'s Turboname
|
9
9
|
|
10
|
-
## Installation
|
11
10
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
And then execute:
|
17
|
-
|
18
|
-
$ bundle
|
19
|
-
|
20
|
-
Or install it yourself as:
|
11
|
+
## From the command line
|
12
|
+
#### Installation
|
13
|
+
fire up your terminal and run:
|
21
14
|
|
22
15
|
$ gem install turboname
|
16
|
+
|
17
|
+
(if you're using OS X's default ruby install you will need to do ```sudo gem install turboname```
|
23
18
|
|
24
|
-
|
25
|
-
|
26
|
-
fire up your terminal and run:
|
19
|
+
#### Usage
|
20
|
+
put some turboname magic in your terminal and light it up by doing:
|
27
21
|
|
28
22
|
$ turboname
|
29
23
|
|
30
|
-
You
|
31
|
-
|
24
|
+
You will see something like
|
25
|
+
```
|
26
|
+
________ _____ ___ ____ _ _____ __ _______
|
27
|
+
/_ __/ / / / _ \/ _ )/ __ \/ |/ / _ | / |/ / __/
|
28
|
+
/ / / /_/ / , _/ _ / /_/ / / __ |/ /|_/ / _/
|
29
|
+
/_/ \____/_/|_/____/\____/_/|_/_/ |_/_/ /_/___/
|
30
|
+
finding a domain name for you since 1856
|
31
|
+
orgoits.com IS available
|
32
|
+
padianamas.com IS available
|
33
|
+
padianam.as is not available
|
34
|
+
cabazin.com IS available
|
35
|
+
cabaz.in IS available
|
36
|
+
stipad.com IS available
|
37
|
+
stip.ad is not available
|
38
|
+
corcarse.com IS available
|
39
|
+
corcar.se IS available
|
40
|
+
```
|
41
|
+
|
42
|
+
All the results are saved to a file called ```names.txt```.
|
43
|
+
To close the app just press ```ctrl + c```
|
44
|
+
|
45
|
+
#### You might also need
|
32
46
|
- Precious time
|
33
47
|
- Frustration tolerance.
|
34
48
|
- Water and Food
|
35
49
|
- Maybe a blanket.
|
36
50
|
|
51
|
+
## From your Ruby app
|
52
|
+
|
53
|
+
Add this line to your application's Gemfile:
|
54
|
+
|
55
|
+
gem 'turboname'
|
56
|
+
|
57
|
+
And then execute:
|
58
|
+
|
59
|
+
$ bundle
|
60
|
+
|
61
|
+
Now you should be able to run something like:
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
require 'turboname'
|
65
|
+
dictionary = Turboname::Random.new
|
66
|
+
|
67
|
+
100999032982389.times do
|
68
|
+
name = Turboname::Domain.new(:from => dictionary)
|
69
|
+
name.save if name.length < 15 and name.available?
|
70
|
+
tld = name.tldize
|
71
|
+
name.save(tld) if tld and name.length < 15 and name.available?(tld)
|
72
|
+
end
|
73
|
+
```
|
74
|
+
|
37
75
|
## Contributing
|
38
76
|
|
39
77
|
1. Fork it
|
@@ -42,4 +80,4 @@ You might also need:
|
|
42
80
|
4. Push to the branch (`git push origin my-new-feature`)
|
43
81
|
5. Create new Pull Request
|
44
82
|
|
45
|
-
![Commit](http://i.imgur.com/jQL14.png)
|
83
|
+
![Commit](http://i.imgur.com/jQL14.png)
|
data/bin/turboname
CHANGED
@@ -14,8 +14,8 @@ puts " finding a domain name for you since #{1800 + rand(100)}"
|
|
14
14
|
dictionary = Turboname::Random.new
|
15
15
|
|
16
16
|
100999032982389.times do
|
17
|
-
name = Turboname::Domain.new
|
17
|
+
name = Turboname::Domain.new(:from => dictionary)
|
18
18
|
name.save if name.length < 15 and name.available?
|
19
19
|
tld = name.tldize
|
20
|
-
name.save(tld) if tld and name.length < 15 and name.available?
|
20
|
+
name.save(tld) if tld and name.length < 15 and name.available?(tld)
|
21
21
|
end
|
data/lib/turboname.rb
CHANGED
@@ -60,10 +60,10 @@ module Turboname
|
|
60
60
|
|
61
61
|
class Random < Dictionary
|
62
62
|
def get
|
63
|
-
vowels=["a","e","i","o","u"]
|
63
|
+
vowels = ["a","e","i","o","u"]
|
64
64
|
line = File.readlines(File.join(Turboname::path, 'dictionary.txt'))[rand(435000)-1].gsub("\n","")
|
65
65
|
rand(20).times do
|
66
|
-
line=line.gsub(vowels.
|
66
|
+
line = line.gsub(vowels.shuffle.first, vowels.shuffle.first)
|
67
67
|
end
|
68
68
|
line
|
69
69
|
end
|
data/lib/turboname/version.rb
CHANGED