random_data 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +9 -1
- data/config/hoe.rb +4 -1
- data/lib/random_data.rb +13 -14
- data/lib/random_data/array_randomizer.rb +11 -8
- data/lib/random_data/version.rb +1 -1
- data/tasks/website.rake +5 -5
- data/website/index.html +11 -228
- data/website/index.txt +11 -115
- data/website/stylesheets/screen.css +0 -3
- data/website/template.rhtml +1 -1
- metadata +1 -1
data/README.txt
CHANGED
@@ -1,11 +1,19 @@
|
|
1
1
|
= Random
|
2
2
|
|
3
|
-
This
|
3
|
+
This gem provides a Random singleton class with a series of methods for generating random test data including names, mailing addresses, dates, phone numbers, e-mail addresses, and text. Instead of:
|
4
|
+
|
5
|
+
<tt>foo.name = "John Doe"</tt>
|
6
|
+
|
7
|
+
You get:
|
8
|
+
|
9
|
+
<tt>foo.name = "#{Random.firstname} #{Random.initial} #{Random.lastname}"</tt>
|
4
10
|
|
5
11
|
== Installation
|
6
12
|
|
7
13
|
<tt>sudo gem install random_data</tt>
|
8
14
|
|
15
|
+
or get the gem manually from http://rubyforge.org/frs/?group_id=4458
|
16
|
+
|
9
17
|
== Methods
|
10
18
|
|
11
19
|
=== Contact Methods
|
data/config/hoe.rb
CHANGED
@@ -68,4 +68,7 @@ end
|
|
68
68
|
|
69
69
|
CHANGES = hoe.paragraphs_of('History.txt', 0..1).join("\\n\\n")
|
70
70
|
PATH = (RUBYFORGE_PROJECT == GEM_NAME) ? RUBYFORGE_PROJECT : "#{RUBYFORGE_PROJECT}/#{GEM_NAME}"
|
71
|
-
|
71
|
+
|
72
|
+
# hoe.remote_rdoc_dir = File.join(PATH.gsub(/^#{RUBYFORGE_PROJECT}\/?/,''), 'rdoc')
|
73
|
+
|
74
|
+
hoe.remote_rdoc_dir = ''
|
data/lib/random_data.rb
CHANGED
@@ -1,17 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
include RandomData::Text
|
10
|
-
end
|
11
|
-
|
12
|
-
# A Singleton class that provides all of RandomData's methods as class methods
|
1
|
+
$:.unshift File.dirname(__FILE__)
|
2
|
+
|
3
|
+
require 'lib/random_data/array_randomizer'
|
4
|
+
require 'lib/random_data/contact_info'
|
5
|
+
require 'lib/random_data/dates'
|
6
|
+
require 'lib/random_data/locations'
|
7
|
+
require 'lib/random_data/names'
|
8
|
+
require 'lib/random_data/text'
|
13
9
|
|
14
10
|
class Random
|
15
|
-
|
16
|
-
extend RandomData
|
11
|
+
extend RandomData::ContactInfo
|
12
|
+
extend RandomData::Dates
|
13
|
+
extend RandomData::Locations
|
14
|
+
extend RandomData::Names
|
15
|
+
extend RandomData::Text
|
17
16
|
end
|
@@ -1,18 +1,21 @@
|
|
1
1
|
# Extends the Array class with a function used to randomly choose elements. Note that if you are using Rails, ActiveSupport recently was updated to include a similar
|
2
2
|
# function. This code checks for the presence of that method and does not try to replace it. They work the same though so no worries.
|
3
|
-
|
4
|
-
module
|
3
|
+
|
4
|
+
module RandomData
|
5
|
+
module ArrayRandomizer
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
7
|
+
# Randomly chooses an element from an array
|
8
|
+
# >> [1,2,3].rand = 3
|
9
|
+
# [].rand = nil
|
10
|
+
|
11
|
+
def rand
|
12
|
+
return self[Kernel.rand(self.size)]
|
13
|
+
end
|
9
14
|
|
10
|
-
def rand
|
11
|
-
return self[Kernel.rand(self.size)]
|
12
15
|
end
|
13
16
|
|
14
17
|
end
|
15
18
|
|
16
19
|
unless Array.respond_to?(:rand)
|
17
|
-
Array.send :include, ArrayRandomizer
|
20
|
+
Array.send :include, RandomData::ArrayRandomizer
|
18
21
|
end
|
data/lib/random_data/version.rb
CHANGED
data/tasks/website.rake
CHANGED
data/website/index.html
CHANGED
@@ -1,228 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<
|
4
|
-
<
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
</style>
|
14
|
-
<script type="text/javascript">
|
15
|
-
window.onload = function() {
|
16
|
-
settings = {
|
17
|
-
tl: { radius: 10 },
|
18
|
-
tr: { radius: 10 },
|
19
|
-
bl: { radius: 10 },
|
20
|
-
br: { radius: 10 },
|
21
|
-
antiAlias: true,
|
22
|
-
autoPad: true,
|
23
|
-
validTags: ["div"]
|
24
|
-
}
|
25
|
-
var versionBox = new curvyCorners(settings, document.getElementById("version"));
|
26
|
-
versionBox.applyCornersToAll();
|
27
|
-
}
|
28
|
-
</script>
|
29
|
-
</head>
|
30
|
-
<body>
|
31
|
-
<div id="main">
|
32
|
-
|
33
|
-
<h1>random_data</h1>
|
34
|
-
<div id="version" class="clickable" onclick='document.location = "http://rubyforge.org/projects/random_data"; return false'>
|
35
|
-
<p>Get Version</p>
|
36
|
-
<a href="http://rubyforge.org/projects/random_data" class="numbers">1.0.0</a>
|
37
|
-
</div>
|
38
|
-
<h2>What</h2>
|
39
|
-
|
40
|
-
|
41
|
-
<p>This plugin defines a Random singleton class that has a bunch of class methods to quickly generate random test for testing and developmental use.</p>
|
42
|
-
|
43
|
-
|
44
|
-
<h3>Contact Methods</h3>
|
45
|
-
|
46
|
-
|
47
|
-
<p>Random.phone, Random.international_phone, Random.email</p>
|
48
|
-
|
49
|
-
|
50
|
-
<h3>Time/Date Methods</h3>
|
51
|
-
|
52
|
-
|
53
|
-
<p>Random.date</p>
|
54
|
-
|
55
|
-
|
56
|
-
<h3>Location Methods</h3>
|
57
|
-
|
58
|
-
|
59
|
-
<p>Random.address_line_1, Random.address_line_2, Random.zipcode, Random.state, Random.country, Random.city,</p>
|
60
|
-
|
61
|
-
|
62
|
-
<h3>Name Methods</h3>
|
63
|
-
|
64
|
-
|
65
|
-
<p>Random.firstname, Random.initial, Random.lastname,</p>
|
66
|
-
|
67
|
-
|
68
|
-
<h3>Text Methods</h3>
|
69
|
-
|
70
|
-
|
71
|
-
<p>Random.alphanumeric, Random.paragraphs</p>
|
72
|
-
|
73
|
-
|
74
|
-
<p>Note that some methods take parameters to bound or limit the amount of data returned. See RDocs for details.</p>
|
75
|
-
|
76
|
-
|
77
|
-
<h2>Installing</h2>
|
78
|
-
|
79
|
-
|
80
|
-
<p><pre class='syntax'><span class="ident">sudo</span> <span class="ident">gem</span> <span class="ident">install</span> <span class="ident">random_data</span></pre></p>
|
81
|
-
|
82
|
-
|
83
|
-
<p><pre class='syntax'><span class="ident">require</span> <span class="punct">'</span><span class="string">random_data</span><span class="punct">'</span></pre></p>
|
84
|
-
|
85
|
-
|
86
|
-
<h2>Demonstration of usage</h2>
|
87
|
-
|
88
|
-
|
89
|
-
<p><pre class='syntax'>
|
90
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">alphanumeric</span>
|
91
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">cfbutm3vYfhZXil0</span><span class="punct">"</span>
|
92
|
-
</pre></p>
|
93
|
-
|
94
|
-
|
95
|
-
<p><pre class='syntax'>
|
96
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">alphanumeric</span><span class="punct">(</span><span class="number">5</span><span class="punct">)</span>
|
97
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">XYVyn</span><span class="punct">"</span>
|
98
|
-
</pre></p>
|
99
|
-
|
100
|
-
|
101
|
-
<p><pre class='syntax'>
|
102
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">paragraphs</span>
|
103
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">Ulysses, fighting evil and tyranny with all his power and with all of his might. Ulysses, fighting evil and tyranny with all his power and with all of his
|
104
|
-
might. <span class="escape">\n\n</span>He's got style, a groovy style, and a car that just won't stop. <span class="escape">\n\n</span></span><span class="punct">"</span>
|
105
|
-
</pre></p>
|
106
|
-
|
107
|
-
|
108
|
-
<p><pre class='syntax'>
|
109
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">paragraphs</span><span class="punct">(</span><span class="number">3</span><span class="punct">)</span>
|
110
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum. Down the road that's where I'll always be. He's got style, a groovy style, and a car that just won't stop. I've gotten burned over Cheryl Tiegs and blown up for Raquel Welch, but when I end up in the hay it's only hay hey hey. Hey there where ya goin, not exactly knowin'. <span class="escape">\n\n</span>Lorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. I might jump an open drawbridge or Tarzan from a vine, beause I'm the unknown stuntman that makes Eastwood look so fine. He just keeps on movin' and ladies keep improvin'. Rolling down to Dallas - who is providin my palace?. Every stop I make I make a new friend; Can't stay for long just turn around and I'm gone again. <span class="escape">\n\n</span>Always fighting all the evil forces bringing peace and justice to all. <span class="escape">\n\n</span></span><span class="punct">"</span>
|
111
|
-
</pre></p>
|
112
|
-
|
113
|
-
|
114
|
-
<p><pre class='syntax'>
|
115
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">firstname</span>
|
116
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">Thomas</span><span class="punct">"</span>
|
117
|
-
</pre></p>
|
118
|
-
|
119
|
-
|
120
|
-
<p><pre class='syntax'>
|
121
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">initial</span>
|
122
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">E</span><span class="punct">"</span>
|
123
|
-
</pre></p>
|
124
|
-
|
125
|
-
|
126
|
-
<p><pre class='syntax'>
|
127
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">lastname</span>
|
128
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">Robinson</span><span class="punct">"</span>
|
129
|
-
</pre></p>
|
130
|
-
|
131
|
-
|
132
|
-
<p><pre class='syntax'>
|
133
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">date</span>
|
134
|
-
<span class="punct">=></span> <span class="constant">Sun</span><span class="punct">,</span> <span class="number">09</span> <span class="constant">Sep</span> <span class="number">2007</span>
|
135
|
-
</pre></p>
|
136
|
-
|
137
|
-
|
138
|
-
<p><pre class='syntax'>
|
139
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">date</span><span class="punct">(</span><span class="number">1000</span><span class="punct">)</span>
|
140
|
-
<span class="punct">=></span> <span class="constant">Sun</span><span class="punct">,</span> <span class="number">26</span> <span class="constant">Nov</span> <span class="number">2006</span>
|
141
|
-
</pre></p>
|
142
|
-
|
143
|
-
|
144
|
-
<p><pre class='syntax'>
|
145
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">email</span>
|
146
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">zrodriguez@example.com</span><span class="punct">"</span>
|
147
|
-
</pre></p>
|
148
|
-
|
149
|
-
|
150
|
-
<p><pre class='syntax'>
|
151
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">phone</span>
|
152
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">564-103-8353</span><span class="punct">"</span>
|
153
|
-
</pre></p>
|
154
|
-
|
155
|
-
|
156
|
-
<p><pre class='syntax'>
|
157
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">international_phone</span>
|
158
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">011-24-37-9704</span><span class="punct">"</span>
|
159
|
-
</pre></p>
|
160
|
-
|
161
|
-
|
162
|
-
<p><pre class='syntax'>
|
163
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">address_line_1</span>
|
164
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">38367 Adams Rd</span><span class="punct">"</span>
|
165
|
-
</pre></p>
|
166
|
-
|
167
|
-
|
168
|
-
<p><pre class='syntax'>
|
169
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">address_line_2</span>
|
170
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">Lot 247</span><span class="punct">"</span>
|
171
|
-
</pre></p>
|
172
|
-
|
173
|
-
|
174
|
-
<p><pre class='syntax'>
|
175
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">zipcode</span>
|
176
|
-
<span class="punct">=></span> <span class="number">22904</span>
|
177
|
-
<span class="punct">(</span><span class="ident">note</span> <span class="ident">that</span> <span class="ident">the</span> <span class="ident">zipcodes</span> <span class="ident">are</span> <span class="ident">totally</span> <span class="ident">random</span> <span class="keyword">and</span> <span class="ident">may</span> <span class="keyword">not</span> <span class="ident">be</span> <span class="ident">real</span> <span class="ident">zipcodes</span><span class="punct">)</span>
|
178
|
-
</pre></p>
|
179
|
-
|
180
|
-
|
181
|
-
<p><pre class='syntax'>
|
182
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">state</span>
|
183
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">MD</span><span class="punct">"</span>
|
184
|
-
</pre></p>
|
185
|
-
|
186
|
-
|
187
|
-
<p><pre class='syntax'>
|
188
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">state_full</span>
|
189
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">New Mexico</span><span class="punct">"</span>
|
190
|
-
</pre></p>
|
191
|
-
|
192
|
-
|
193
|
-
<p><pre class='syntax'>
|
194
|
-
<span class="punct">>></span> <span class="constant">Random</span><span class="punct">.</span><span class="ident">country</span>
|
195
|
-
<span class="punct">=></span> <span class="punct">"</span><span class="string">Philippines</span><span class="punct">"</span>
|
196
|
-
</pre></p>
|
197
|
-
|
198
|
-
|
199
|
-
<h2>How to submit patches</h2>
|
200
|
-
|
201
|
-
|
202
|
-
<p>Read the <a href="http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/">8 steps for fixing other people’s code</a> and e-mail the patch to me
|
203
|
-
at <a href="mailto:mike@subelsky.com">mike@subelsky.com</a>.</p>
|
204
|
-
|
205
|
-
|
206
|
-
<p>The trunk repository is <code>svn://rubyforge.org/var/svn/random_data/trunk</code> for anonymous access.</p>
|
207
|
-
|
208
|
-
|
209
|
-
<h2>License</h2>
|
210
|
-
|
211
|
-
|
212
|
-
<p>This code is free to use under the terms of the <span class="caps">MIT</span> license.</p>
|
213
|
-
|
214
|
-
|
215
|
-
<h2>Contact</h2>
|
216
|
-
|
217
|
-
|
218
|
-
<p>Comments are welcome. Send an email to <a href="mailto:mike@subelsky.com">mike@subelsky.com</a></p>
|
219
|
-
<p class="coda">
|
220
|
-
<a href="http://www.subelsky.com/">Mike Subelsky</a>, 20th September 2007<br>
|
221
|
-
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
222
|
-
</p>
|
223
|
-
</div>
|
224
|
-
|
225
|
-
<!-- insert site tracking codes here, like Google Urchin -->
|
226
|
-
|
227
|
-
</body>
|
228
|
-
</html>
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
4
|
+
<title>random_data</title>
|
5
|
+
|
6
|
+
</head>
|
7
|
+
<body id="body">
|
8
|
+
<p>This page has not yet been created for RubyGem <code>random_data</code></p>
|
9
|
+
<p>To the developer: To generate it, update website/index.txt and run the rake task <code>website</code> to generate this <code>index.html</code> file.</p>
|
10
|
+
</body>
|
11
|
+
</html>
|
data/website/index.txt
CHANGED
@@ -1,135 +1,31 @@
|
|
1
1
|
h1. random_data
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
This plugin defines a Random singleton class that has a bunch of class methods to quickly generate random test for testing and developmental use.
|
6
|
-
|
7
|
-
h3. Contact Methods
|
3
|
+
h1. → 'random_data'
|
8
4
|
|
9
|
-
Random.phone, Random.international_phone, Random.email
|
10
5
|
|
11
|
-
|
12
|
-
|
13
|
-
Random.date
|
6
|
+
h2. What
|
14
7
|
|
15
|
-
h3. Location Methods
|
16
8
|
|
17
|
-
|
18
|
-
|
19
|
-
h3. Name Methods
|
9
|
+
h2. Installing
|
20
10
|
|
21
|
-
|
11
|
+
<pre syntax="ruby">sudo gem install random_data</pre>
|
22
12
|
|
23
|
-
|
13
|
+
h2. The basics
|
24
14
|
|
25
|
-
Random.alphanumeric, Random.paragraphs
|
26
15
|
|
27
|
-
|
16
|
+
h2. Demonstration of usage
|
28
17
|
|
29
|
-
h2. Installing
|
30
18
|
|
31
|
-
<pre syntax="ruby">sudo gem install random_data</pre>
|
32
19
|
|
33
|
-
|
20
|
+
h2. Forum
|
34
21
|
|
35
|
-
|
22
|
+
"http://groups.google.com/group/random_data":http://groups.google.com/group/random_data
|
36
23
|
|
37
|
-
|
38
|
-
>> Random.alphanumeric
|
39
|
-
=> "cfbutm3vYfhZXil0"
|
40
|
-
</pre>
|
41
|
-
|
42
|
-
<pre syntax="ruby">
|
43
|
-
>> Random.alphanumeric(5)
|
44
|
-
=> "XYVyn"
|
45
|
-
</pre>
|
46
|
-
|
47
|
-
<pre class='wide' syntax="ruby">
|
48
|
-
>> Random.paragraphs
|
49
|
-
=> "Ulysses, fighting evil and tyranny with all his power and with all of his might. Ulysses, fighting evil and tyranny with all his power and with all of his
|
50
|
-
might. \n\nHe's got style, a groovy style, and a car that just won't stop. \n\n"
|
51
|
-
</pre>
|
52
|
-
|
53
|
-
<pre.wide syntax="ruby">
|
54
|
-
>> Random.paragraphs(3)
|
55
|
-
=> "Excepteur sint occaecat cupidatat non proident sunt in culpa qui officia deserunt mollit anim id est laborum. Down the road that's where I'll always be. He's got style, a groovy style, and a car that just won't stop. I've gotten burned over Cheryl Tiegs and blown up for Raquel Welch, but when I end up in the hay it's only hay hey hey. Hey there where ya goin, not exactly knowin'. \n\nLorem ipsum dolor sit amet consectetur adipisicing elit sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. I might jump an open drawbridge or Tarzan from a vine, beause I'm the unknown stuntman that makes Eastwood look so fine. He just keeps on movin' and ladies keep improvin'. Rolling down to Dallas - who is providin my palace?. Every stop I make I make a new friend; Can't stay for long just turn around and I'm gone again. \n\nAlways fighting all the evil forces bringing peace and justice to all. \n\n"
|
56
|
-
</pre>
|
57
|
-
|
58
|
-
<pre syntax="ruby">
|
59
|
-
>> Random.firstname
|
60
|
-
=> "Thomas"
|
61
|
-
</pre>
|
62
|
-
|
63
|
-
<pre syntax="ruby">
|
64
|
-
>> Random.initial
|
65
|
-
=> "E"
|
66
|
-
</pre>
|
67
|
-
|
68
|
-
<pre syntax="ruby">
|
69
|
-
>> Random.lastname
|
70
|
-
=> "Robinson"
|
71
|
-
</pre>
|
72
|
-
|
73
|
-
<pre syntax="ruby">
|
74
|
-
>> Random.date
|
75
|
-
=> Sun, 09 Sep 2007
|
76
|
-
</pre>
|
77
|
-
|
78
|
-
<pre syntax="ruby">
|
79
|
-
>> Random.date(1000)
|
80
|
-
=> Sun, 26 Nov 2006
|
81
|
-
</pre>
|
82
|
-
|
83
|
-
<pre syntax="ruby">
|
84
|
-
>> Random.email
|
85
|
-
=> "zrodriguez@example.com"
|
86
|
-
</pre>
|
87
|
-
|
88
|
-
<pre syntax="ruby">
|
89
|
-
>> Random.phone
|
90
|
-
=> "564-103-8353"
|
91
|
-
</pre>
|
92
|
-
|
93
|
-
<pre syntax="ruby">
|
94
|
-
>> Random.international_phone
|
95
|
-
=> "011-24-37-9704"
|
96
|
-
</pre>
|
97
|
-
|
98
|
-
<pre syntax="ruby">
|
99
|
-
>> Random.address_line_1
|
100
|
-
=> "38367 Adams Rd"
|
101
|
-
</pre>
|
102
|
-
|
103
|
-
<pre syntax="ruby">
|
104
|
-
>> Random.address_line_2
|
105
|
-
=> "Lot 247"
|
106
|
-
</pre>
|
107
|
-
|
108
|
-
<pre syntax="ruby">
|
109
|
-
>> Random.zipcode
|
110
|
-
=> 22904
|
111
|
-
(note that the zipcodes are totally random and may not be real zipcodes)
|
112
|
-
</pre>
|
113
|
-
|
114
|
-
<pre syntax="ruby">
|
115
|
-
>> Random.state
|
116
|
-
=> "MD"
|
117
|
-
</pre>
|
118
|
-
|
119
|
-
<pre syntax="ruby">
|
120
|
-
>> Random.state_full
|
121
|
-
=> "New Mexico"
|
122
|
-
</pre>
|
123
|
-
|
124
|
-
<pre syntax="ruby">
|
125
|
-
>> Random.country
|
126
|
-
=> "Philippines"
|
127
|
-
</pre>
|
24
|
+
TODO - create Google Group - random_data
|
128
25
|
|
129
26
|
h2. How to submit patches
|
130
27
|
|
131
|
-
Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and
|
132
|
-
at "mike@subelsky.com":mailto:mike@subelsky.com.
|
28
|
+
Read the "8 steps for fixing other people's code":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/ and for section "8b: Submit patch to Google Groups":http://drnicwilliams.com/2007/06/01/8-steps-for-fixing-other-peoples-code/#8b-google-groups, use the Google Group above.
|
133
29
|
|
134
30
|
The trunk repository is <code>svn://rubyforge.org/var/svn/random_data/trunk</code> for anonymous access.
|
135
31
|
|
@@ -139,5 +35,5 @@ This code is free to use under the terms of the MIT license.
|
|
139
35
|
|
140
36
|
h2. Contact
|
141
37
|
|
142
|
-
Comments are welcome. Send an email to "
|
38
|
+
Comments are welcome. Send an email to "FIXME full name":mailto:FIXME email via the "forum":http://groups.google.com/group/random_data
|
143
39
|
|
@@ -84,10 +84,7 @@ pre, code {
|
|
84
84
|
color: #ff8;
|
85
85
|
background-color: #111;
|
86
86
|
padding: 2px 10px 2px 10px;
|
87
|
-
overflow: scroll;
|
88
|
-
|
89
87
|
}
|
90
|
-
|
91
88
|
.comment { color: #aaa; font-style: italic; }
|
92
89
|
.keyword { color: #eff; font-weight: bold; }
|
93
90
|
.punct { color: #eee; font-weight: bold; }
|
data/website/template.rhtml
CHANGED
@@ -37,7 +37,7 @@
|
|
37
37
|
</div>
|
38
38
|
<%= body %>
|
39
39
|
<p class="coda">
|
40
|
-
<a href="
|
40
|
+
<a href="FIXME email">FIXME full name</a>, <%= modified.pretty %><br>
|
41
41
|
Theme extended from <a href="http://rb2js.rubyforge.org/">Paul Battley</a>
|
42
42
|
</p>
|
43
43
|
</div>
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: random_data
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.0.
|
6
|
+
version: 1.0.1
|
7
7
|
date: 2007-09-20 00:00:00 -04:00
|
8
8
|
summary: A Ruby gem that provides a Random singleton class with a series of methods for generating random test data including names, mailing addresses, dates, phone numbers, e-mail addresses, and text.
|
9
9
|
require_paths:
|