malvestuto_random_data 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,6 +9,7 @@ require "#{dir}/names"
9
9
  require "#{dir}/numbers"
10
10
  require "#{dir}/text"
11
11
  require "#{dir}/papers"
12
+ require "#{dir}/uri"
12
13
  require "#{dir}/markov"
13
14
  require "#{dir}/grammar"
14
15
  require "#{dir}/version"
@@ -23,6 +24,7 @@ class Random
23
24
  extend RandomData::Numbers
24
25
  extend RandomData::Text
25
26
  extend RandomData::Papers
27
+ extend RandomData::URI
26
28
 
27
29
  # Looks for a file in the load path with the name methodname.dat, reads the lines from that file, then gives you a random line from that file.
28
30
  # Raises an error if it can't find the file. For example, given a file named "horse.dat" in your load path:
@@ -0,0 +1,11 @@
1
+ module RandomData
2
+
3
+ # Defines methods for random uri generation
4
+
5
+ module URI
6
+ def http
7
+ domains = %w(yahoo.com gmail.com privacy.net webmail.com msn.com hotmail.com example.com privacy.net)
8
+ "http://www.#{domains.rand}"
9
+ end
10
+ end
11
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: malvestuto_random_data
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 1
10
- version: 1.5.1
9
+ - 2
10
+ version: 1.5.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Subelsky
@@ -42,6 +42,7 @@ files:
42
42
  - lib/random_data/booleans.rb
43
43
  - lib/random_data/contact_info.rb
44
44
  - lib/random_data/dates.rb
45
+ - lib/random_data/uri.rb
45
46
  - lib/random_data/grammar.rb
46
47
  - lib/random_data/locations.rb
47
48
  - lib/random_data/markov.rb