faux_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.md +1 -1
- data/Rakefile +5 -5
- data/lib/faux_data.rb +2 -2
- data/lib/faux_data/person_generator.rb +3 -3
- data/test/test_national_id_generator.rb +1 -4
- data/test/test_person.rb +1 -4
- metadata +4 -4
data/README.md
CHANGED
@@ -7,7 +7,7 @@ Description
|
|
7
7
|
-----------
|
8
8
|
|
9
9
|
FauxData was created to quickly generate random employee demographic data
|
10
|
-
which is used for
|
10
|
+
which is used for demonstrating your application and application's reporting
|
11
11
|
features. Address data is pulled from US Census records, keeping the US city,
|
12
12
|
US state, and US zip code in sync, while street names are randomly pulled.
|
13
13
|
|
data/Rakefile
CHANGED
@@ -1,12 +1,7 @@
|
|
1
1
|
|
2
|
-
require "rubygems"
|
3
|
-
require "rake"
|
4
2
|
require "rake/testtask"
|
5
3
|
require "rake/clean"
|
6
4
|
|
7
|
-
#CLEAN.include('build/*.txt', 'SRA_*.*','texput.log') #remove generated files from process
|
8
|
-
#CLEAN.include(FileList['build/*'].exclude('.gitignore')) #remove generated files from process
|
9
|
-
#CLOBBER.include(FileList['data/*'].exclude('.gitignore')) #remove ER source files
|
10
5
|
CLEAN.include('*.gem')
|
11
6
|
CLOBBER.include(FileList['.yardoc/*','doc/*'].exclude('.gitignore'))
|
12
7
|
|
@@ -17,3 +12,8 @@ Rake::TestTask.new do |test|
|
|
17
12
|
test.test_files = Dir[ "test/test_*.rb" ]
|
18
13
|
test.verbose = true
|
19
14
|
end
|
15
|
+
|
16
|
+
desc "Build Gem"
|
17
|
+
task :build do
|
18
|
+
sh "gem build faux_data.gemspec"
|
19
|
+
end
|
data/lib/faux_data.rb
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
module FauxData
|
5
|
-
VERSION = "1.0.
|
5
|
+
VERSION = "1.0.1".freeze if not defined?(FauxData::VERSION)
|
6
6
|
end
|
7
7
|
|
8
|
-
require
|
8
|
+
require 'faux_data/person_generator'
|
9
9
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
require File.join(File.dirname(__FILE__),'personal_name_generator')
|
4
|
-
require File.join(File.dirname(__FILE__),'address_generator')
|
5
|
-
require File.join(File.dirname(__FILE__),'national_id_generator')
|
6
3
|
require 'date'
|
4
|
+
require 'faux_data/personal_name_generator'
|
5
|
+
require 'faux_data/address_generator'
|
6
|
+
require 'faux_data/national_id_generator'
|
7
7
|
|
8
8
|
|
9
9
|
|
data/test/test_person.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
|
2
|
-
require 'rubygems'
|
3
2
|
require 'test/unit'
|
4
3
|
require 'pp'
|
5
|
-
require 'awesome_print'
|
6
4
|
require 'date'
|
5
|
+
require 'faux_data'
|
7
6
|
|
8
|
-
require File.join(File.dirname(__FILE__),'..','lib','faux_data')
|
9
7
|
|
10
8
|
class Test_Person_Creation < Test::Unit::TestCase
|
11
9
|
|
@@ -34,6 +32,5 @@ class Test_Person_Creation < Test::Unit::TestCase
|
|
34
32
|
persons << person
|
35
33
|
end
|
36
34
|
assert_equal(100 , persons.size , "Both arrays should contain 100 elements ")
|
37
|
-
ap persons
|
38
35
|
end
|
39
36
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faux_data
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Stansbury
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-03-
|
18
|
+
date: 2012-03-12 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|