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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDNjZDgzZjUyMzAxYjEzZmQ5NDE2ZjdiZDE0NTRiODZiYWNhOGYyMA==
4
+ Y2JhYTM1MzA2MWM5Mjg3ZmZkMmY0ODdmNjliNjdlMzc5MDViNGM3Mw==
5
5
  data.tar.gz: !binary |-
6
- N2U3OWYzMTA0YzRmNjllZjE4YmI0NzIxNzFmYTc5MWRmOWRiMjc1Ng==
6
+ ZThlNDE0YWY2MmRkYmRjOWEwMDk3NWE2YjdkNTE1MTI1ZWE0NGM5ZA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZWVlMTdjZDFiMDdhMjFiZDc1MTE2OTk5Nzc1ZDA1NWY1MmI4YTUwMzJmY2Yx
10
- N2Y0MjI2ZDAyMWNiZTM0OTExZTUzNTdiMTk3NjhiZGU1ZjAwOWUyZGYwNWY3
11
- ZmViZjY5MjQ3ZDU0Nzc2ODYyZWU4MmI4ODJlNmI4NDdiNWMxNWE=
9
+ N2RjNjQwZGMzYmFiNWQxOGUyMTc2MzM0YzAzOWY4ZDc0MDI0Njc5OWFhOTFl
10
+ ZGNmODc3YWQwZmNjMmQzNTU1YzdkYzE0MjNkNWUyZTFmYzhmZGIzMjJhYzRh
11
+ ZTg2N2RjNWI5ZTY2MmZhNzY3ZGM0OWRjYWVlN2QwNjUyY2M4Njk=
12
12
  data.tar.gz: !binary |-
13
- YjVlOTFmZTBiZGNhODI2YWJhYjExMDI2YTAxYWU5NDQ0NDI4ZTVjN2I5OGY3
14
- MzBiNmEwMWUyN2ZmMjUyODFmZDVmNGU0NjI3M2MyMDM5ZDNhN2E5OWQ0MTRk
15
- YTNhNjhjOGUwNzU5ZDFlMmU1MGIxYjQ3ZjkzMDhiMTYwZTZlZDQ=
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
- Add this line to your application's Gemfile:
13
-
14
- gem 'turboname'
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
- ## Usage
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 might also need:
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 from: dictionary
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? tld
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.sample,vowels.sample)
66
+ line = line.gsub(vowels.shuffle.first, vowels.shuffle.first)
67
67
  end
68
68
  line
69
69
  end
@@ -1,3 +1,3 @@
1
1
  module Turboname
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turboname
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - José Tomás Albornoz