rgn 0.1.0 → 0.1.1

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -2
  3. data/lib/rgn.rb +7 -5
  4. data/lib/rgn/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcc8983649e8963b0a4d36dfd6fd11c05736ffda
4
- data.tar.gz: d229ba3738ecd719a2e618b249007a1284b3f617
3
+ metadata.gz: 9feeaf70d81afb8127798d4833a90c684c4fcdae
4
+ data.tar.gz: 969087bded532e59b2f36009c6a1a516974d07ee
5
5
  SHA512:
6
- metadata.gz: 14d2a8c39846dd8bbbae90acfeab571253764bf85e238546d23fa158bdfd860ad4827d0ea63f7a1dbadf96b2dac19af3123f06527d2cc315d68a9f33a0ffe897
7
- data.tar.gz: f17fee684609d130bc345924f5e2cc41d2aa7f72464c64717395a9bd65717c5071cbf0f9b4bcca8cef7ece3f1488e57e98ee0bb6401a51e5827d1d20e390cb7a
6
+ metadata.gz: e473fbe15ed246ee9229d3a8986a4a2788c5d0a2b8d4757e7b47a205aef4613f66c385882b2de532588aaa74c6dc6233f0d08c3203b25a0bfb6b8d5592985373
7
+ data.tar.gz: aa5a88b5ffce7fb5fae305b4a7997e860491e726980ad8b566f19617567d76f41a1f6b3b87d5a2a56519766b236d497ee0fef83930e2976db85452a2efaf912e
data/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ https://rubygems.org/gems/rgn
2
+
1
3
  # Rgn
2
4
 
3
5
  RGN short for Random generated name, is a ruby gem to allows users to automate random strings in their ruby apps.
@@ -14,7 +16,7 @@ gem 'rgn'
14
16
 
15
17
  And then execute:
16
18
 
17
- $ bundle
19
+ $ bundle install
18
20
 
19
21
  Or install it yourself as:
20
22
 
@@ -24,7 +26,16 @@ Or install it yourself as:
24
26
 
25
27
  If you're just developing a non-rails app in ruby, then just import the following code inside your file: <b><i><code> require 'rgn' </code></i></b>
26
28
 
29
+ ## How to use
27
30
 
31
+ <ul>
32
+ <li>Input <b><i><code>require 'rgn'</code></i></b> at the beginning of the ruby file.</li>
33
+ <li>Input <b><i><code>include Rgn</code></i></b> after the require statement.</li>
34
+ <li>Next, declare a variable to contain generator function. For example, <b><i><code>randomStr = generateName </code></i></b>
35
+ <br>
36
+ Then enter: <b><i><code>puts #{randomStr} or puts randomStr</code></i></b> to generate random string.
37
+ </li>
38
+ </ul>
28
39
  ## Contributing
29
40
 
30
- 1. Fork it ( https://github.com/kiratuchi/rgn/fork )
41
+ More features coming soon. Any help towards the project is appreciated. <b>:)</b>
data/lib/rgn.rb CHANGED
@@ -26,12 +26,14 @@ module Rgn
26
26
 
27
27
  # this method allows you to blacklist specific names
28
28
  def blacklist
29
+ print "Specify the name you want blacklisted: \n"
30
+ bannedNames = gets.chomp.to_s
29
31
 
32
+ if(return randomName == bannedNames)
33
+ randomName = "default"
34
+ return randomName
35
+ end
30
36
  end
31
37
 
32
-
33
- # algorithm used to generate random name based off gender
34
- def gend
35
-
36
- end
38
+
37
39
  end
@@ -1,3 +1,3 @@
1
1
  module Rgn
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joseph P Bourne
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-27 00:00:00.000000000 Z
11
+ date: 2016-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler