usernamegen 0.1.1 → 0.1.2
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.
- checksums.yaml +4 -4
- data/.travis.yml +9 -0
- data/README.md +11 -2
- data/Rakefile +8 -0
- data/lib/usernamegen/descriptions.txt +950 -21
- data/lib/usernamegen/things.txt +866 -0
- data/lib/usernamegen/version.rb +1 -1
- data/lib/usernamegen.rb +4 -2
- data/test/usernamegen_test.rb +17 -0
- data/usernamegen.gemspec +3 -0
- metadata +34 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6470180a69432a0dbe28897cffeb5e623c5d9709
|
4
|
+
data.tar.gz: 3885e1ed4209b76453d412fd8e9b16819126b3c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4320a755335eeb1ce9872eab670a0291c88e054248583eb3e1406d89de3c708922e1d1a814416e6121606a2a75a190f40959b289e974707033512ab5ae642367
|
7
|
+
data.tar.gz: b92cce25e590fcd6306b6151949cc003c9cc30fdd324d8896c77aab0e3ff00e3d5070277c390247eac70d31b3365e22b924d2a653d0a6371613dad4d83704bb4
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -1,11 +1,14 @@
|
|
1
1
|
# Usernamegen - a not so serious name generator
|
2
2
|
|
3
|
+
[](http://badge.fury.io/rb/usernamegen)
|
4
|
+
[](https://travis-ci.org/2called-chaos/usernamegen)
|
5
|
+
|
3
6
|
We thought our users should be able to comment even when they haven't choose a username yet.
|
4
7
|
To make it easier to follow conversations we didn't want to show "anonymous" or some boring incrementing name á la "guest 1234".
|
5
8
|
|
6
9
|
This gem uses two lists (descriptive words and nouns) and multiplies them with each and another resulting in a list of mostly meaningful and often silly name combinations.
|
7
10
|
|
8
|
-
**The current list generates
|
11
|
+
**The current list generates at least 1,367,631 unique usernames**. Please help increasing the size by providing more words.
|
9
12
|
|
10
13
|
## Example names
|
11
14
|
|
@@ -17,6 +20,8 @@ This gem uses two lists (descriptive words and nouns) and multiplies them with e
|
|
17
20
|
|
18
21
|
## Installation
|
19
22
|
|
23
|
+
Requires Ruby >= 1.9.3
|
24
|
+
|
20
25
|
Simple as:
|
21
26
|
|
22
27
|
$ gem install usernamegen
|
@@ -29,7 +34,7 @@ Or list in your Gemfile
|
|
29
34
|
|
30
35
|
You can use the generator class like so:
|
31
36
|
|
32
|
-
# load files and assembles list each time (
|
37
|
+
# load files and assembles list each time (yielding more than 1 million strings, cache them!)
|
33
38
|
Usernamegen.all
|
34
39
|
|
35
40
|
# same as #all but returns random entry
|
@@ -40,6 +45,10 @@ You can find an example ActiveRecord model + rake import tasks in the following
|
|
40
45
|
|
41
46
|
* [» ActiveRecord model example and rake import task](https://gist.github.com/2called-chaos/46705324d913e4f9cc6b)
|
42
47
|
|
48
|
+
## Testing
|
49
|
+
|
50
|
+
Just `bundle` and invoke `rake`.
|
51
|
+
|
43
52
|
## Contributing
|
44
53
|
|
45
54
|
1. Fork it ( http://github.com/2called-chaos/usernamegen/fork )
|