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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36bb6d1773bb0d3157b93d5b1470d7038a791ebf
4
- data.tar.gz: 3998947ff6c98ed1ca1ffb3111b5e2ed704b82af
3
+ metadata.gz: ee0f3661d5a46528c934aba1fc00a04bcdf35d26
4
+ data.tar.gz: dd5287fd0d6580234eb685816d6a9e37050ee182
5
5
  SHA512:
6
- metadata.gz: b4dbe1dc80d2e67639a3776f3309c31231116bc6da21aab1f6ba0fab8f520c5136cadfbc00e33675809bb2946807a3afc97b840a467d0fffdf9883e57eeda600
7
- data.tar.gz: bc4f39000543d576b6bb27fe0172c03d243024520483305ea6a433f3fdd19e17e61852261e4c8a10a6b74d55418ba76f9280a7ba7fb9d501db0d3cbdddde9ffe
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.
@@ -1,5 +1,5 @@
1
1
  require 'digest'
2
- require './lib/namazing/wordup.rb'
2
+ require_relative 'wordup'
3
3
 
4
4
  module Namazing
5
5
 
@@ -7,7 +7,7 @@ module Namazing
7
7
  WORDLIST_SIZE = WORDLIST.size
8
8
 
9
9
  def self.version
10
- "0.0.2"
10
+ "0.0.3"
11
11
  end
12
12
 
13
13
  def self.random
data/lib/namazing.rb CHANGED
@@ -1,4 +1,4 @@
1
- require './lib/namazing/namazing.rb'
1
+ require 'namazing/namazing'
2
2
 
3
3
  module Namazing
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: namazing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Harper