namazing 0.0.2 → 0.0.3
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/.gitignore +1 -0
- data/README.md +57 -2
- data/lib/namazing/namazing.rb +2 -2
- data/lib/namazing.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee0f3661d5a46528c934aba1fc00a04bcdf35d26
|
4
|
+
data.tar.gz: dd5287fd0d6580234eb685816d6a9e37050ee182
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7062a74916426f669b8162f665e2207972f11c517698e0bed2a548335cb18afbaab03c7135ca4519a608ee91053b7641e5bef6e6c5436f82942f7e6d651de16
|
7
|
+
data.tar.gz: d823727aef71ef2796ebccb2bd913af71a112198d70f37804eeae31b74136baabf847bc8bf40f842c2c6c285e82b8df4446abfabdec3f5eb23b15bfa8174e2e4
|
data/.gitignore
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
*.gem
|
data/README.md
CHANGED
@@ -1,7 +1,62 @@
|
|
1
|
-
Namazing
|
2
|
-
===================
|
1
|
+
# Namazing
|
3
2
|
|
4
3
|
Name things with more awesome.
|
5
4
|
|
5
|
+
## Installation
|
6
6
|
|
7
|
+
Installing directly via Rubygems:
|
7
8
|
|
9
|
+
gem install namazing
|
10
|
+
|
11
|
+
If you're using bundler, add this line to your Gemfile:
|
12
|
+
|
13
|
+
gem 'namazing'
|
14
|
+
|
15
|
+
|
16
|
+
## Usage
|
17
|
+
|
18
|
+
There are two main use cases for Namazing:
|
19
|
+
|
20
|
+
1. Generating a random awesome word:
|
21
|
+
|
22
|
+
Namazing.random
|
23
|
+
|
24
|
+
2. Making an existing word or string awesome:
|
25
|
+
|
26
|
+
Namazing.to_awesome "boring_word"
|
27
|
+
|
28
|
+
|
29
|
+
## Persistance
|
30
|
+
|
31
|
+
When using ````Namazing.to_awesome````, the awesome name that
|
32
|
+
Namazing generates will be persistant. This means that you
|
33
|
+
can call the function as many times as you wish and you
|
34
|
+
will always get the same result.
|
35
|
+
|
36
|
+
This persistance will apply when using multiple words. Namazing
|
37
|
+
will split your words and will treat each word separately.
|
38
|
+
|
39
|
+
### Example
|
40
|
+
|
41
|
+
Namazing.to_awesome "boring_yawn"
|
42
|
+
=> "walkyrie_codetta"
|
43
|
+
|
44
|
+
Namazing.to_awesome "yawn_boring"
|
45
|
+
=> "codetta_walkyrie"
|
46
|
+
|
47
|
+
Namazing.to_awesome "very_boring"
|
48
|
+
=> "exaggerated_walkyrie"
|
49
|
+
|
50
|
+
|
51
|
+
## Case
|
52
|
+
|
53
|
+
Namazing understands case variations, particularly around
|
54
|
+
camelCase, PascalCase and under_score. The result that
|
55
|
+
Namazing will return will match the case that you provide.
|
56
|
+
|
57
|
+
|
58
|
+
## Contributions
|
59
|
+
|
60
|
+
Please feel free to create pull requests. I'm particularly
|
61
|
+
interested in requests that improve the wordlist to maintain
|
62
|
+
a high level of awesome and remove boring words.
|
data/lib/namazing/namazing.rb
CHANGED
data/lib/namazing.rb
CHANGED