imposter 0.1.2

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.
@@ -0,0 +1,14 @@
1
+ module Imposter
2
+ # Based on Faker::Lorem
3
+ class Noun
4
+ Nouns = %w(alarm animal aunt bait balloon bath bead beam bean bedroom boot bread brick brother camp chicken children crook deer dock doctor downtown drum dust eye family father fight flesh food frog goose grade grandfather grandmother grape grass hook horse jail jam kiss kitten light loaf lock lunch lunchroom meal mother notebook owl pail parent park plot rabbit rake robin sack sail scale sea sister soap song spark space spoon spot spy summer tiger toad town trail tramp tray trick trip uncle vase winter water week wheel wish wool yard zebra)
5
+
6
+ def self.one(num = 1)
7
+ Nouns.shuffle[0, num]
8
+ end
9
+
10
+ def self.multiple(word_count = 2)
11
+ one(word_count).join(' ').capitalize
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ module Imposter
2
+ # Based on Faker::Lorem
3
+ class Noun
4
+ Nouns = %w(alarm animal aunt bait balloon bath bead beam bean bedroom boot bread brick brother camp chicken children crook deer dock doctor downtown drum dust eye family father fight flesh food frog goose grade grandfather grandmother grape grass hook horse jail jam kiss kitten light loaf lock lunch lunchroom meal mother notebook owl pail parent park plot rabbit rake robin sack sail scale sea sister soap song spark space spoon spot spy summer tiger toad town trail tramp tray trick trip uncle vase winter water week wheel wish wool yard zebra)
5
+
6
+ def self.one(num = 1)
7
+ Nouns.shuffle[0, num]
8
+ end
9
+
10
+ def self.multiple(word_count = 2)
11
+ one(word_count).join(' ').capitalize
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,18 @@
1
+ module Imposter
2
+ # Based on Faker::Lorem
3
+ class Vegtable
4
+ Vegtables = %w(Achoccha Amaranth Angelica Anise Arrowroot Arrugula Artichoke Asparagus Apple Balsam\sPear Bambara Bamboo Beans Beet Bok Choy Boniato Broccoli Brussels sprouts Burdock Cabbage Chinese Cabbage Kale Swamp Cabbage Calabaza Cantaloupes Capers Cardoon Carrot Cassava Celeriac Celery Celtuce Chard Chaya Chayote Chicory Chives Chrysanthemum Chufa Cilantro Citron Collards Comfrey Corn salad Corn Cuban Sweet Potato Cucmber Cushcush Daikon Dandelion Dasheen Dill Eggplant Endive Fennel Galia Muskmelon Garbanzo Garlic Gherkin Ginger Ginseng Gourds Guar Hanover Salad Horseradish Horseradish tree Huckleberry Ice Plant Jicama Jojoba Kale Kangkong Kohlrabi Leek Lentils Lettuce Lovage Luffa Gourd Malanga Martynia Casaba Melon Honeydew Melon Momordica Mushroom Cantaloupe Mustard collard Mustard potherb Naranjillo Nasturtium Okra Onion Orach Paprika Parsley Parsley root Parsnip Peas Peanut Pepper Pimiento Pokeweed Potato Sweet potato Pumpkin Purslane Radicchio Radish Radish Chinese Rakkyo Rampion Rape and Canola Rhubarb Romaine Lettuce Roselle Rutabaga Saffron Salsify Sarsaparilla Sassafrass Scorzonera Sea kale Shallot Skirret Smallage Sorrel garden Southern pea Soybeans Spinach Spinach Squash Strawberries Swamp Cabbage Sweet Basil Sweet Corn Sweet potato Swiss Chard Tomatillo Tomato Tomato husk Tomato tree Truffles Upland cress Water celery Waterchestnut Watercress Watermelon Yams)
5
+
6
+ def self.one(num = 1)
7
+ Vegtables.shuffle[0, num]
8
+ end
9
+
10
+ def self.multiple(word_count = 2)
11
+ one(word_count).join( ).capitalize
12
+ end
13
+
14
+ def self.at(num=0)
15
+ Vegtables[num]
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,14 @@
1
+ module Imposter
2
+ # Based on Faker::Lorem
3
+ class Verb
4
+ Verbs = %w(add address administer admire admit adopt advise afford agree alert alight allow altered amuse analyze announce annoy answer anticipate apologize appear applaud applied appoint appraise appreciate approve arbitrate argue arise arrange arrest arrive ascertain ask assemble assess assist assure attach attack attain attempt attend attract audited avoid awake back bake balance ban bang bare bat bathe battle be beam bear beat become beg begin behave behold belong bend beset bet bid bind bite bleach bleed bless blind blink blot blow blush boast boil bolt bomb book bore borrow bounce bow box brake branch break breathe breed brief bring broadcast bruise brush bubble budget build bump burn burst bury bust buy buzz calculate call camp care carry carve cast catalog catch cause challenge change charge chart chase cheat check cheer chew choke choose chop claim clap clarify classify clean clear cling clip close clothe coach coil collect color comb come command communicate compare compete compile complain complete compose compute conceive concentrate conceptualize concern conclude conduct confess confront confuse connect conserve consider consist consolidate construct consult contain continue contract control convert coordinate copy correct correlate cost cough counsel count cover crack crash crawl create creep critique cross crush cry cure curl curve cut cycle dam damage dance dare deal decay deceive decide decorate define delay delegate delight deliver demonstrate depend describe desert deserve design destroy detail detect determine develop devise diagnose dig direct disagree disappear disapprove disarm discover dislike dispense display disprove dissect distribute dive divert divide do double doubt draft drag drain dramatize draw dream dress drink drip drive drop drown drum dry dust dwell earn eat edited educate eliminate embarrass employ empty enacted encourage end endure enforce engineer enhance enjoy enlist ensure enter entertain escape establish estimate evaluate examine exceed excite excuse execute exercise exhibit exist expand expect expedite experiment explain explode express extend extract face facilitate fade fail fancy fasten fax fear feed feel fence fetch fight file fill film finalize finance find fire fit fix flap flash flee fling float flood flow flower fly fold follow fool forbid force forecast forego foresee foretell forget forgive form formulate forsake frame freeze frighten fry gather gaze generate get give glow glue go govern grab graduate grate grease greet grin grind grip groan grow guarantee guard guess guide hammer hand handle handwrite hang happen harass harm hate haunt head heal heap hear heat help hide hit hold hook hop hope hover hug hum hunt hurry hurt hypothesize)
5
+
6
+ def self.one(num = 1)
7
+ Verbs.shuffle[0, num]
8
+ end
9
+
10
+ def self.multiple(word_count = 2)
11
+ one(word_count).join(' ').capitalize
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,14 @@
1
+ module Imposter
2
+ # Based on Faker::Lorem
3
+ class Verb
4
+ Verbs = %w(add address administer admire admit adopt advise afford agree alert alight allow altered amuse analyze announce annoy answer anticipate apologize appear applaud applied appoint appraise appreciate approve arbitrate argue arise arrange arrest arrive ascertain ask assemble assess assist assure attach attack attain attempt attend attract audited avoid awake back bake balance ban bang bare bat bathe battle be beam bear beat become beg begin behave behold belong bend beset bet bid bind bite bleach bleed bless blind blink blot blow blush boast boil bolt bomb book bore borrow bounce bow box brake branch break breathe breed brief bring broadcast bruise brush bubble budget build bump burn burst bury bust buy buzz calculate call camp care carry carve cast catalog catch cause challenge change charge chart chase cheat check cheer chew choke choose chop claim clap clarify classify clean clear cling clip close clothe coach coil collect color comb come command communicate compare compete compile complain complete compose compute conceive concentrate conceptualize concern conclude conduct confess confront confuse connect conserve consider consist consolidate construct consult contain continue contract control convert coordinate copy correct correlate cost cough counsel count cover crack crash crawl create creep critique cross crush cry cure curl curve cut cycle dam damage dance dare deal decay deceive decide decorate define delay delegate delight deliver demonstrate depend describe desert deserve design destroy detail detect determine develop devise diagnose dig direct disagree disappear disapprove disarm discover dislike dispense display disprove dissect distribute dive divert divide do double doubt draft drag drain dramatize draw dream dress drink drip drive drop drown drum dry dust dwell earn eat edited educate eliminate embarrass employ empty enacted encourage end endure enforce engineer enhance enjoy enlist ensure enter entertain escape establish estimate evaluate examine exceed excite excuse execute exercise exhibit exist expand expect expedite experiment explain explode express extend extract face facilitate fade fail fancy fasten fax fear feed feel fence fetch fight file fill film finalize finance find fire fit fix flap flash flee fling float flood flow flower fly fold follow fool forbid force forecast forego foresee foretell forget forgive form formulate forsake frame freeze frighten fry gather gaze generate get give glow glue go govern grab graduate grate grease greet grin grind grip groan grow guarantee guard guess guide hammer hand handle handwrite hang happen harass harm hate haunt head heal heap hear heat help hide hit hold hook hop hope hover hug hum hunt hurry hurt hypothesize)
5
+
6
+ def self.one(num = 1)
7
+ Verbs.shuffle[0, num]
8
+ end
9
+
10
+ def self.multiple(word_count = 2)
11
+ one(word_count).join(' ').capitalize
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,9 @@
1
+ module Imposter #:nodoc:
2
+ module VERSION #:nodoc:
3
+ MAJOR = 0
4
+ MINOR = 0
5
+ TINY = 1
6
+
7
+ STRING = [MAJOR, MINOR, TINY].join('.')
8
+ end
9
+ end
@@ -0,0 +1,8 @@
1
+ namespace :db do
2
+ namespace :imposter do
3
+ desc "Build imposters into Fixtures. Load specific Imposters using Imposters=x,y."
4
+ task :load do
5
+ Imposter::genimposters
6
+ end
7
+ end
8
+ end
data/test/helper.rb ADDED
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'test/unit'
3
+ require 'shoulda'
4
+
5
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
6
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
7
+ require 'imposter'
8
+
9
+ class Test::Unit::TestCase
10
+ end
@@ -0,0 +1,7 @@
1
+ require 'helper'
2
+
3
+ class TestImposter < Test::Unit::TestCase
4
+ should "probably rename this file and start testing for real" do
5
+ flunk "hey buddy, you should probably rename this file and start testing for real"
6
+ end
7
+ end
metadata ADDED
@@ -0,0 +1,129 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: imposter
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: ruby
6
+ authors:
7
+ - Robert Hall
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-12-09 00:00:00 -05:00
13
+ default_executable:
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: thoughtbot-shoulda
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: sqlite3-ruby
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 1.2.5
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: faker
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: "0"
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: fastercsv
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: "0"
54
+ version:
55
+ - !ruby/object:Gem::Dependency
56
+ name: thoughtbot-shoulda
57
+ type: :development
58
+ version_requirement:
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: "0"
64
+ version:
65
+ description: Add generator and rake tasks via YAML based imposters for schema level data faking
66
+ email: robert.hall@itatc.com
67
+ executables: []
68
+
69
+ extensions: []
70
+
71
+ extra_rdoc_files:
72
+ - LICENSE
73
+ - README.rdoc
74
+ files:
75
+ - .document
76
+ - .gitignore
77
+ - LICENSE
78
+ - README.rdoc
79
+ - Rakefile
80
+ - VERSION
81
+ - generators/imposter_generator.rb
82
+ - id_rsa.pub
83
+ - imposter.gemspec
84
+ - lib/imposter.rb
85
+ - lib/imposter/animal.rb
86
+ - lib/imposter/csz.db
87
+ - lib/imposter/csz.rb
88
+ - lib/imposter/mineral.rb
89
+ - lib/imposter/minerals_short.lst
90
+ - lib/imposter/noun.rb
91
+ - lib/imposter/noun.xx
92
+ - lib/imposter/vegtable.rb
93
+ - lib/imposter/verb.rb
94
+ - lib/imposter/verb.xx
95
+ - lib/imposter/version.rb
96
+ - lib/tasks/databases.rake
97
+ - test/helper.rb
98
+ - test/test_imposter.rb
99
+ has_rdoc: true
100
+ homepage: http://github.com/golsombe/imposter
101
+ licenses: []
102
+
103
+ post_install_message:
104
+ rdoc_options:
105
+ - --charset=UTF-8
106
+ require_paths:
107
+ - lib
108
+ required_ruby_version: !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: "0"
113
+ version:
114
+ required_rubygems_version: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: "0"
119
+ version:
120
+ requirements: []
121
+
122
+ rubyforge_project:
123
+ rubygems_version: 1.3.5
124
+ signing_key:
125
+ specification_version: 3
126
+ summary: Real fake data
127
+ test_files:
128
+ - test/test_imposter.rb
129
+ - test/helper.rb