modlr 0.0.4.4 → 0.0.4.5

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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Modlr
3
- require File.join(File.expand_path(File.dirname(__FILE__)), "modlr", "fnames")
3
+ require File.join(File.expand_path(File.dirname(__FILE__)), "modlr", "names")
4
4
 
5
5
  ##
6
6
  # modlr :class, number_of_records, {:field => :type, :field => type}
@@ -25,9 +25,7 @@ module Modlr
25
25
  end
26
26
 
27
27
 
28
- def self.rand_first_name
29
- Name::FNAMES[rand(Name::FNAMES.count)]
30
- end
28
+
31
29
 
32
30
 
33
31
 
@@ -1,5 +1,14 @@
1
1
  module Modlr
2
- module Name
2
+ module Name
3
+ def self.rand_name
4
+ self.rand_first_name + " " + self.rand_last_name
5
+ end
6
+ def self.rand_first_name
7
+ FNAMES[rand(FNAMES.count)]
8
+ end
9
+ def self.rand_last_name
10
+ LNAMES[rand(LNAMES.count)]
11
+ end
3
12
  FNAMES = ["JAMES", "JOHN", "ROBERT", "MICHAEL", "WILLIAM",
4
13
  "DAVID", "RICHARD", "CHARLES", "JOSEPH", "THOMAS",
5
14
  "CHRISTOPHER", "DANIEL", "PAUL", "MARK", "DONALD",
@@ -39,6 +48,8 @@ module Modlr
39
48
  "KATHRYN", "LOUISE", "SARA", "ANNE", "JACQUELINE",
40
49
  "WANDA", "BONNIE", "JULIA", "RUBY", "LOIS",
41
50
  "TINA", "PHYLLIS", "NORMA", "PAULA", "DIANA",
42
- "ANNIE", "LILLIAN", "EMILY", "ROBIN", "SANDRA"]
51
+ "ANNIE", "LILLIAN", "EMILY", "ROBIN", "SANDRA"]
43
52
  end
53
+
54
+
44
55
  end
@@ -1,3 +1,3 @@
1
1
  module Modlr
2
- VERSION = "0.0.4.4"
2
+ VERSION = "0.0.4.5"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: modlr
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.4.4
5
+ version: 0.0.4.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Nick Radford
@@ -29,7 +29,7 @@ files:
29
29
  - README.textile
30
30
  - Rakefile
31
31
  - lib/modlr.rb
32
- - lib/modlr/fnames.rb
32
+ - lib/modlr/names.rb
33
33
  - lib/modlr/version.rb
34
34
  - modlr.gemspec
35
35
  has_rdoc: true