demode 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,13 +5,13 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "demode"
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Christopher Gooley", "Eric Garcia"]
12
- s.date = "2013-06-18"
12
+ s.date = "2014-04-16"
13
13
  s.description = "Library to allow you to easily fake data during demos"
14
- s.email = "gooley@preact.io"
14
+ s.email = "gooley@preact.com"
15
15
  s.extra_rdoc_files = [
16
16
  "LICENSE.txt"
17
17
  ]
@@ -3,7 +3,9 @@ module Demode
3
3
  class << self
4
4
 
5
5
  def company_name(id)
6
- Fields.get(id,:company_names)
6
+ first_name = Fields.get(id,:company_names)
7
+ last_name = Fields.get(id,:company_suffixes)
8
+ [first_name, last_name].join(' ')
7
9
  end
8
10
 
9
11
  def company_domain(id)
@@ -34,6 +34,10 @@ module Demode
34
34
  %w(Ganzkix Y-plus Sancon Bamstreet Toughfix Zertech Fixcorporation Zotdox Technophase Highmedia Nimelectrics Technofax Zimlab X-zimkix Unazozap Tannix Solzoom Sumhouse Hexdom Howtechno Trustdrill Blackbase Qvo-dox Ronbase Randox Careace Single-dox Quadplanet Technodox Blackfix D-in Ontobam Hotholdings Anrunmedia Zamdexon Ganzdom Street-lux Silgreen Finzarkix Fasezim Lattrans Stanlane Retechi Isdomron Ranking Silverzim Zumcone Stanstreet Hat-job Matace Zapquote Ranlab Bigdrill Key-zim Tampsanity Yearfan Sonredit Quojob Hotlax Alphadax Namcare Techno-texon Kaycode Zendexon Consaolane Solocom Fasecity Openunadex Careex Finzumcare Groovelax Anlux Matredcon Trisplanet Doubletaxon Jobhouse Hotlab Kindox Donglane Treetexon Ishouse Grooveway Zapdrill Anace Dongdex Plus-quote Techity Rankcode Opengreen Kay-holdings Blackware Islux Supertex Plexjoyhow D-can Yearfind Ventola Yearcare Groovetax Zoncane Vilazoom Namsolotone Ton-zap Fasetone Zooholdings Sailzimity Indigolane Hextechno Codezattam Highzoom Finunocane Openzim Fasehex Duoice Flexlux Hexgreen Lexitouch Alphacone Sancon Tran-core Stanlane Ronflex Greenelectronics Donron Namphase Conlane Zumcity True-cone D-hex Canemedia Icephase Zoom-media Codeice Incity Quo-dax Lanedexon Zumis Zuncone Lablex Keytechnology Voltplanet Citycan Lexicon Conecode Haylax Fasesaokix Santechno Blueplanet Tempzocon Rondoron Linetouch Voyacane Donzone Scotin Ontolane Zathplanet Zoogeocity Plexplanet Zathfind Treeice Tresdox Vialatplus Qvodom Labvialam Vilatonin Waretechno Spanzim Damtaxon Techiholdings Freeaning Zummafase Yearhigh Finex Y-electronics Zammedia Stimmedia Acezap Tripplejob Konunatech Quadex Zooplex Linefix Zoomtax Uno-zoom Temptechno Ancan Scotcore Freshnix Lathouse Linebase Tamtinflex Voyatone Can-zim Lamkeyfind Opefan Superis Geosaofax Trisdom Zertamnix Sunjob Faxline Volcan Transfan Qvoron Tamtax Quotelax Ozerline Jobgreen Toughsilin Conlane Vilasailace Saosanline Techitex Canholding Retexon Overron Mathdax Stanlam Gold-drill Goldelectronics Citynix Newcone Duocode Laron Scotcare Movekix Daltkix Ronlane Volcanity Flexzone Howsunhex Yearity Kanholdings Transsunit Doublehex Vilaholding Indigodex Kon-lane Ventofind Tristechno Alphaex Donlax Ventodax Nimstrip Doubledom Tonzatzone Tanranbase Donway Ozerway Dingkix Kinfind Viaranfan Konkhigh Statsailcom Konkity Carelab Requote Canline Trustzoom Mathphase Saltzenin Zimtrax Unolux Temptrax Xxx-media Ontoin Faseis Daltphase Daltace Opentech Hotcon White-tech Indiware Domlane X-it Insailfan Techsiltam Medstrip Ranice Zoomtechi Vaiaelectrics Ozerdom Lamtechnology Betatech Tinholding Planet-how Indigogreen Newelectronics Tampflex Transdex Quadcare Techihigh Unafind Indigolab Inchfind Zath-ron Kayjotone Drillron Dentotrax Donline Sailline Canedax J-planet Overcare Zimtechnology Fasedrill Zoodax Basephase Howfix Lottam Indiit Salttouch Kondom Zon-electronics Tonstreet Latelectronics Ganjafax Saocity Toughron J-ity Plexin Graveace Sumfind Groovela Finbase Freshzim Whitedrill Voltdexon Donfase Scotdrill Ozercorporation Treshottom Trisuninix Newtechnology Saotech Ansilbase Hotity Trandamace Vivamedia Trueis Suntexon Plexlab Tree-is Treeway Zumtom Tamptechno Alphajob Lab-technology Haytraxhex Soloplus Matplex Indigonix Voyaelectrics Hotmedia Toughbase Hotholding E-kix Ozerstrip Singleplanet Stripkix Hotstrip Zonhow Mathcon Lanebam Y-lux Solofase Apzamlab Zun-tech Redsunkix Medron Roundzone Highcore Fasehouse Trustice High-lab Lamplanet Quote-ing Voyaholdings Tampzoom Vaiatexon Highdexon Qvozoex Daltjaylax Treegreen Movetaxon O-dex Golden-trax Voltkix Zumcity Funice Zimelectrics Kinnix Matcane Damfind Stronghouse K-technology J-jaygreen Ronjihex Highdox Ganja-ware Lamhex Fax-care Solholding Singleway Canlotity Zerplanet Ancare Cansontrax Can-job Dam-technology Cityplanet Haydax Drillcorporation Dinghigh Viahouse Hatcity Ronzim Superplex Kayice K-zone U-fase Tontex Nimcity Zoozim Freshtexon Hottrax Silvertaxon Jobcandox Matphase Zammedia Techiing D-dax Soloex Funlane Jobdexon Round-ing Isfind Trans-electrics E-canflex Hayvivatech Zertechi Tinzap Indigoway Howcane Kanway D-fintouch Dongstrip Cityfax Saobase K-biodex Ventoware Redace Opendomkix D-domquote Cityware Beta-lax Fixroning Y-dom Ranlux Daltlab Betahouse Ishouse Gravetex Statcare Danvolin Freenaming Highex Med-dax Tamptex Zotelectrics Icetechi Trusthex Goodzoom Solsilware Gravelux Plus-can Temptrax Tintechno Redtouch Sanozefase Plex-electronics K-quote Flexhex Saltzooron Cancore Lotdexon Templotbam Retax Ganztech Vaiatex Joyfase Runsailplus Apjoyhex Fase-trans Faseholdings Freeelectrics Pluscore Rankzone U-can Trescone Salttexon Hatity Kantrans Sunlax Runcode Damzoom Howtantech Bigflex Mediatexon Whitetech Saltstrip Flextam Linefind Truegreen Scotware Zimcane Hotsanlab Roundcone Viladexon Ontodex Silver-lex Y-planet Singlestrip Lazamtech Lambiocon Canware Bluenix Isfase Overtamcon Hexquote Plustrans Zotlex Villalam Mat-lab Tempzimcom Fasebase Bigtechnology Technolane Code-electronics D-hatlab Silverfind Goldendrill Lattrax Taning Basejob Kintrans Medialax O-trans Mathtrans Kintouch Basetex K-planet Hexdax Zuntechi Ganzdomity Apsuntam Volfind Anron Acedaming Qvomedia Zaam-lane Icedax Toughron Ozercare Transtechnology Zenjob Codedonron Careelectronics Silvertaxon Runtax Spanlab Zimfan Nimcon Gravenix Don-dox Domcity Superzap Roundlab Zenhatcare Transplus Zuntechi Dentoing Careelectrics Zimzim Danbam Translane Don-ity Geobam City-techno Zaamron Zapquadlab Iscare Striphouse Hexhouse Stimron Goldenit Newflex Zimice Apcare Greentechno Haytax Onto-find Tamis Zenhouse Gogocone Zoomron Lexidrill Konktrax Geodom Nimsaolax Flextechnology Conjayis Yearsolotam Keytam Siltom Techin Jaytechi Physfan Funbam Flexzim Linenix Sontanfase Unoplex U-planet Zapsancode J-way D-qvolane Faxzarhigh Icezumity Donquote Dalt-tam Dongcore Gogocan Singlelane Runsilzap Newmatfind J-can Zerholding Superdexon Trantaxon Ganztex Dentoace Lattone Movesildom Trantriptax Jobtexon Zathkayit J-ace Hatware Planethigh Greenhow Y-code Streetzone Donguniice Trancon Stripace Soltam U-lane Connix Trueflex Roundlux Quadway Voltex Zenmatware Pluselectronics Quotecan Dongla Gravenix Donelectrics J-tax Canesancom Kayfan Zerlab Ganztrax Faxlam D-code Saocone Keylex Newplanet Laneelectrics Quadex Zaamtrax Singleron Domplanet Canefind Trantech Fasesilex Jobnamtech Tristechi Lamcore Tempphase Zunnamline Damzim Vivatom Whiteelectronics Volt-dox Toughflex Greentechnology Kinsunhex Itcorporation Codetone Gogotom Zathtechi Ozer-nix Zamplus Sondom Finphase Biostreet Vilaelectrics Quaddom Saillane Greentax Fixtrax Zummais Doncorporation Hothouse Silquotech Streetfase Apelectrics Flexjayity Dripstreet Donis Stanway X-fix Namquote Kanfind Volzim Goldholding Strongcane Sailelectrics Stimstrip Hay-lane Gold-lux Tamp-lane Plex-lam E-com Tamlex O-high K-quadzim Tempzone Citytom Strongtex Anplex Unatech Domjifix Triomatlab Unoquote Lane-lane Linehow Biotom Icesaildex Villabam Lotelectronics Solozone Viaelectronics Ranfase Danplex Zapzone Movetechi Inditechnology Truenix Hotquadzoom Mattam Zapdex Sailcare Biotech Techtam Triotexon Transtechi Carecorporation Linedamfan San-zoom E-lam Contex Siltinline Haylex Overla Lotcity Zamlux Voyakeydex Physstreet Ranvivakix Kayjob Goldendox Hotfase Fixdexon Silvercorporation Citybam Donglex Kontax Solodonfix How-con Linekix Hexdom Itphase Redelectrics Flextom Hatzap Saltron Dripgreen Tran-media Stripis Faxhow Voyatom Openholding Villabam Lanetrans Tranhigh Strongace Doubledrill Blacktexon Keyjob Lattexon Zooozelab Inchstrip Zensanlane Latcorporation Moveace Dentoron Hayfan Dandax Spanlux Domline Bluetouch Opecom Ran-zoom Blacktechnology Zot-city Jobtechno Bighotfind Joycare Zoomline Trioplus Movetouch Dentolax Tampphase Lot-lane Yeartam Zumdex Toughit Gravecom Findrill Saotexon Opequote Overcon Betamedia Jobkeyhex Zummaplex Viadexon Latam Freebase Icetam Techifan Hatcone K-lax Tanity Lanestrip Planetace Scottamfix Haytechi U-taxon Jayway Toncorporation Ganjalab Transtreet J-how Stanflex Inchmedia Basecone Warefix Finfix Unizap Goodcode Lexiplus Tempplex Icezatla Duotom Viastrip Bamunaway Jay-dexon Basegreen Graveplanet Big-corporation Zammedia Labquote Tonway Zoom-phase Zon-kix Key-trax Ventotom Zimdrill Sundex Matlux Transcon Villagreen Striping Zonunodox Kinquote Zimla Damtech Dripgreen Medstreet Ganzhex Technotax Tintechnology Coneice Techtom Joystrip Trisnix Inch-holdings Stathotdom X-cane Tamtexon Zoomcane Zamdexon Freecan Vila-zone Donfan Goldfind Inzoom Plextrans Vaiastreet Dalttex K-electrics Transhouse Vivalane Unophase U-zoom Techicorporation Vaiahow Zimlex Zamdax Ranlab Y-high Lanetexon Dongcan Donzoomnix Drill-bam Alphacare Damla Runtechnology Dom-kix Labelectrics Plushow Unoplanet Dongtech Damelectrics Tranzoolex Hot-planet Kayice Planetphase Tempzim Hatlax Inditaxon Silverdrill Treszumfax Anholdings)
35
35
  end
36
36
 
37
+ def company_suffixes
38
+ %w(Technology Corp Group LLC Inc Tech)
39
+ end
40
+
37
41
  def domain_suffixes
38
42
  %w(com com com com com com co.uk net uk ca biz io org)
39
43
  end
@@ -1,3 +1,3 @@
1
1
  module Demode
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
data/readme.md CHANGED
@@ -2,7 +2,11 @@ Demode Gem
2
2
  ===
3
3
  Allow your app to easily display fake, consistant data from your models when in demo mode.
4
4
 
5
- Randomness inspired by the faker gem (https://github.com/btelles/faker).
5
+ Randomness idea and person names inspired by the [faker gem](https://github.com/btelles/faker). Random company names from [online-generator.com](http://online-generator.com/name-generator/company-name-generator.php).
6
+
7
+ The whole point of this gem is to be able to generate valid-looking demoable data from your dev or prod database. It uses the Id of the model to ensure that every time you generate a fake name, it's the same fake name for the same model. This ensures that things are consistant across page loads and deploys, it also improves the face-validity of the data by making sure that the name matches the email, for instance.
8
+
9
+ The class on which you're faking fields should respond to an :id call, so it should work seamlessly with ActiveModel, Mongoid, or other ORMs. You can also optionally specify the id field to use, if :id isn't appropriate for your use case.
6
10
 
7
11
  Installation
8
12
  ---
@@ -32,7 +36,7 @@ Demode.configure do |config|
32
36
  end
33
37
  ```
34
38
 
35
- You should provide an array of Class, method to replace, random generation method for each method on each class that you'd like to mask.
39
+ You should provide an array of Model/Class, method to replace, random generation method for each method on each class that you'd like to mask.
36
40
 
37
41
  License
38
42
  ---
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: demode
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-18 00:00:00.000000000 Z
13
+ date: 2014-04-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
@@ -77,7 +77,7 @@ dependencies:
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  description: Library to allow you to easily fake data during demos
80
- email: gooley@preact.io
80
+ email: gooley@preact.com
81
81
  executables: []
82
82
  extensions: []
83
83
  extra_rdoc_files:
@@ -115,9 +115,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
115
115
  - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
- segments:
119
- - 0
120
- hash: -2048939736258044635
121
118
  required_rubygems_version: !ruby/object:Gem::Requirement
122
119
  none: false
123
120
  requirements: