usernamegen 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8819bc20fd330b8b13ab13b074e19c2bcbf123b9
4
- data.tar.gz: 3d2bd3c4b9d4a01427b3fed20694af4f5aa7b6ad
3
+ metadata.gz: 6470180a69432a0dbe28897cffeb5e623c5d9709
4
+ data.tar.gz: 3885e1ed4209b76453d412fd8e9b16819126b3c5
5
5
  SHA512:
6
- metadata.gz: 6f11be8975d756033be0935ade9ab2be998fcfcf930852eec9efa27ef4194d8dc3e4ea525f30812fec6601e2703677ca4c2bb9560672b147d73d1eda8d66b258
7
- data.tar.gz: 240e75393c0e4cdcc77762b0ecceac7022ec444ac5be8c9a943894873050ece1c503554f6f0f597f811563adee3a1649a61ef1500cee0d2034e400610a28934c
6
+ metadata.gz: 4320a755335eeb1ce9872eab670a0291c88e054248583eb3e1406d89de3c708922e1d1a814416e6121606a2a75a190f40959b289e974707033512ab5ae642367
7
+ data.tar.gz: b92cce25e590fcd6306b6151949cc003c9cc30fdd324d8896c77aab0e3ff00e3d5070277c390247eac70d31b3365e22b924d2a653d0a6371613dad4d83704bb4
data/.travis.yml ADDED
@@ -0,0 +1,9 @@
1
+ language: ruby
2
+ rvm:
3
+ - "1.9.3"
4
+ - "2.0.0"
5
+ - "2.1.1"
6
+ - jruby-19mode # JRuby in 1.9 mode
7
+ - rbx
8
+ # uncomment this line if your project needs to run something other than `rake`:
9
+ # script: bundle exec rspec spec
data/README.md CHANGED
@@ -1,11 +1,14 @@
1
1
  # Usernamegen - a not so serious name generator
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/usernamegen.svg)](http://badge.fury.io/rb/usernamegen)
4
+ [![Build Status](https://travis-ci.org/2called-chaos/usernamegen.svg?branch=master)](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 about 50k unique usernames**. Please help increasing the size by providing more words.
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 (not that efficient)
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 )
data/Rakefile CHANGED
@@ -1 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
+
3
+ require 'rake/testtask'
4
+
5
+ Rake::TestTask.new do |t|
6
+ t.pattern = "test/*_test.rb"
7
+ end
8
+
9
+ task :default => [:test]