├── Rakefile ├── lib ├── bazaar │ ├── version.rb │ ├── adj.txt │ ├── superitems.txt │ ├── superadj.txt │ └── items.txt └── bazaar.rb ├── Gemfile ├── .gitignore ├── bazaar.gemspec ├── LICENSE.txt └── README.md /Rakefile: -------------------------------------------------------------------------------- 1 | require "bundler/gem_tasks" 2 | -------------------------------------------------------------------------------- /lib/bazaar/version.rb: -------------------------------------------------------------------------------- 1 | module Bazaar 2 | VERSION = "0.0.2" 3 | end 4 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # Specify your gem's dependencies in bazaar.gemspec 4 | gemspec 5 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.gem 2 | *.rbc 3 | .bundle 4 | .config 5 | .yardoc 6 | Gemfile.lock 7 | InstalledFiles 8 | _yardoc 9 | coverage 10 | doc/ 11 | lib/bundler/man 12 | pkg 13 | rdoc 14 | spec/reports 15 | test/tmp 16 | test/version_tmp 17 | tmp 18 | -------------------------------------------------------------------------------- /lib/bazaar/adj.txt: -------------------------------------------------------------------------------- 1 | attractive 2 | average 3 | beautiful 4 | big 5 | broad 6 | broken 7 | bumpy 8 | chubby 9 | clean 10 | colorful 11 | colossal 12 | crooked 13 | curved 14 | cute 15 | damaged 16 | dark 17 | deep 18 | dirty 19 | dry 20 | dull 21 | dusty 22 | fancy 23 | fat 24 | filthy 25 | flat 26 | gigantic 27 | gorgeous 28 | graceful 29 | great 30 | grotesque 31 | high 32 | hollow 33 | huge 34 | large 35 | little 36 | long 37 | mammoth 38 | massive 39 | miniature 40 | misty 41 | muddy 42 | narrow 43 | petite 44 | plain 45 | precious 46 | prickly 47 | puny 48 | quaint 49 | round 50 | scrawny 51 | shallow 52 | shiny 53 | short 54 | skinny 55 | slimy 56 | slippery 57 | small 58 | smooth 59 | soft 60 | steep 61 | sticky 62 | straight 63 | strange 64 | tall 65 | teeny 66 | tiny 67 | ugly 68 | unusual 69 | wide -------------------------------------------------------------------------------- /lib/bazaar.rb: -------------------------------------------------------------------------------- 1 | require "bazaar/version" 2 | 3 | module Bazaar 4 | def self.item 5 | get_item("items").humanize 6 | end 7 | def self.adj 8 | get_item("adj").humanize 9 | end 10 | def self.object 11 | (get_item("adj") + ' ' + get_item("items")).humanize 12 | end 13 | def self.super_item 14 | get_item("superitems").humanize 15 | end 16 | def self.super_adj 17 | get_item("superadj").humanize 18 | end 19 | def self.super_object 20 | (get_item("superadj") + ' ' + get_item("superitems")).humanize 21 | end 22 | def self.heroku 23 | get_item("superadj") + '-' + get_item("superitems") + '-' + rand(0-9999).to_s 24 | end 25 | def self.get_item(filename) 26 | File.read(File.expand_path("../bazaar/#{filename}.txt", __FILE__)).split("\n").sample 27 | end 28 | end 29 | -------------------------------------------------------------------------------- /bazaar.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | lib = File.expand_path('../lib', __FILE__) 3 | $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) 4 | require 'bazaar/version' 5 | 6 | Gem::Specification.new do |gem| 7 | gem.name = "bazaar" 8 | gem.version = Bazaar::VERSION 9 | gem.authors = ["Raymond Chan"] 10 | gem.email = ["raycchan@gmail.com"] 11 | gem.description = %q{Random item and Heroku-ish name generator.} 12 | gem.summary = %q{Bazaar is a random item and Heroku-ish name generator.} 13 | gem.homepage = "https://github.com/raycchan/bazaar" 14 | 15 | gem.files = `git ls-files`.split($/) 16 | gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } 17 | gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) 18 | gem.require_paths = ["lib"] 19 | end 20 | -------------------------------------------------------------------------------- /lib/bazaar/superitems.txt: -------------------------------------------------------------------------------- 1 | abyss 2 | atoll 3 | aurora 4 | autumn 5 | badlands 6 | beach 7 | briars 8 | brook 9 | canopy 10 | canyon 11 | cavern 12 | chasm 13 | cliff 14 | cove 15 | crater 16 | creek 17 | darkness 18 | dawn 19 | desert 20 | dew 21 | dove 22 | drylands 23 | dusk 24 | farm 25 | fern 26 | firefly 27 | flowers 28 | fog 29 | foliage 30 | forest 31 | galaxy 32 | garden 33 | geyser 34 | grove 35 | hurricane 36 | iceberg 37 | lagoon 38 | lake 39 | leaves 40 | marsh 41 | meadow 42 | mist 43 | moss 44 | mountain 45 | oasis 46 | ocean 47 | peak 48 | pebble 49 | pine 50 | plateau 51 | pond 52 | reef 53 | reserve 54 | resonance 55 | sanctuary 56 | sands 57 | shelter 58 | silence 59 | smokescreen 60 | snowflake 61 | spring 62 | storm 63 | stream 64 | summer 65 | summit 66 | sunrise 67 | sunset 68 | sunshine 69 | surf 70 | swamp 71 | temple 72 | thorns 73 | tsunami 74 | tundra 75 | valley 76 | volcano 77 | waterfall 78 | willow 79 | winds 80 | winter -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Raymond Chan 2 | 3 | MIT License 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining 6 | a copy of this software and associated documentation files (the 7 | "Software"), to deal in the Software without restriction, including 8 | without limitation the rights to use, copy, modify, merge, publish, 9 | distribute, sublicense, and/or sell copies of the Software, and to 10 | permit persons to whom the Software is furnished to do so, subject to 11 | the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be 14 | included in all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 19 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 20 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 21 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 22 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /lib/bazaar/superadj.txt: -------------------------------------------------------------------------------- 1 | affectionate 2 | amiable 3 | arrogant 4 | balmy 5 | barren 6 | benevolent 7 | billowing 8 | blessed 9 | breezy 10 | calm 11 | celestial 12 | charming 13 | combative 14 | composed 15 | condemned 16 | divine 17 | dry 18 | energized 19 | enigmatic 20 | exuberant 21 | flowing 22 | fluffy 23 | fluttering 24 | frightened 25 | fuscia 26 | gentle 27 | greasy 28 | grieving 29 | harmonious 30 | hollow 31 | homeless 32 | icy 33 | indigo 34 | inquisitive 35 | itchy 36 | joyful 37 | jubilant 38 | juicy 39 | khaki 40 | limitless 41 | lush 42 | mellow 43 | merciful 44 | merry 45 | mirthful 46 | moonlit 47 | mysterious 48 | natural 49 | outrageous 50 | pacific 51 | parched 52 | placid 53 | pleasant 54 | poised 55 | purring 56 | radioactive 57 | resilient 58 | scenic 59 | screeching 60 | sensitive 61 | serene 62 | snowy 63 | solitary 64 | spacial 65 | squealing 66 | stark 67 | stunning 68 | sunset 69 | talented 70 | tasteless 71 | teal 72 | thoughtless 73 | thriving 74 | tranquil 75 | tropical 76 | undisturbed 77 | unsightly 78 | unwavering 79 | uplifting 80 | voiceless 81 | wandering 82 | warm 83 | wealthy 84 | whispering 85 | withered 86 | wooden 87 | zealous -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Bazaar 2 | 3 | Bazaar is a random item and Heroku-ish name generator. 4 | 5 | ## Installation 6 | 7 | Add this line to your application's Gemfile: 8 | 9 | gem 'bazaar' 10 | 11 | And then execute: 12 | 13 | $ bundle 14 | 15 | Or install it yourself as: 16 | 17 | $ gem install bazaar 18 | 19 | ## Usage 20 | 21 | Bazaar.object 22 | => "Dirty rubberband" 23 | => "Unusual pillow" 24 | => "Slippery toothpaste" 25 | 26 | Bazaar.super_object 27 | => "Unwavering foliage" 28 | => "Tranquil snowflake" 29 | => "Exuberant drylands" 30 | 31 | Bazaar.heroku 32 | => "inquisitive-cavern-6617" 33 | => "jubilant-sunset-9301" 34 | => "frightened-geyser-4542" 35 | 36 | Bazaar.adj 37 | => "Colossal" 38 | Bazaar.item 39 | => "Javelin" 40 | Bazaar.super_adj 41 | => "Limitless" 42 | Bazaar.super_item 43 | => "Lagoon" 44 | 45 | 46 | ## Contributing 47 | 48 | 1. Fork it 49 | 2. Create your feature branch (`git checkout -b my-new-feature`) 50 | 3. Commit your changes (`git commit -am 'Add some feature'`) 51 | 4. Push to the branch (`git push origin my-new-feature`) 52 | 5. Create new Pull Request 53 | -------------------------------------------------------------------------------- /lib/bazaar/items.txt: -------------------------------------------------------------------------------- 1 | anvil 2 | arrow 3 | axe 4 | balloon 5 | baseball 6 | bathtub 7 | bible 8 | bike 9 | bikini 10 | bleach 11 | blouse 12 | blowdryer 13 | book 14 | bookmark 15 | boombox 16 | bottle cap 17 | button 18 | candle 19 | candy wrapper 20 | canvas 21 | card 22 | CD 23 | cha 24 | chainmail 25 | chalk 26 | charger 27 | checkbook 28 | clarinet 29 | clay pot 30 | clock 31 | coffee maker 32 | comb 33 | cookie jar 34 | cork 35 | crayons 36 | credit card 37 | cushion 38 | deodorant 39 | detergent 40 | dice 41 | dollar bill 42 | drum 43 | eraser 44 | eye liner 45 | facewash 46 | flag 47 | flowers 48 | flute 49 | fork 50 | gel 51 | glasses 52 | glowstick 53 | grid paper 54 | hairtie 55 | hanger 56 | hat 57 | helmet 58 | icecube 59 | javelin 60 | keychain 61 | kilt 62 | kite 63 | knife 64 | lace 65 | lamp shade 66 | leg warmers 67 | lip gloss 68 | lotion 69 | mallet 70 | map 71 | microphone 72 | model car 73 | mousepad 74 | nail 75 | needle 76 | outlet 77 | paint brush 78 | passport 79 | pencil 80 | pepperspray 81 | photo album 82 | piano 83 | picture frame 84 | piggy bank 85 | pillow 86 | pool stick 87 | puddle 88 | quilt 89 | radio 90 | receipt 91 | remote control 92 | rock 93 | rope 94 | rubberband 95 | rubber duck 96 | rug 97 | sandpaper 98 | scissors 99 | scotchtape 100 | screw 101 | seatbelt 102 | sharpie 103 | shield 104 | shoelace 105 | shovel 106 | sketchpad 107 | slipper 108 | soap 109 | speakers 110 | spear 111 | sponge 112 | spoon 113 | sticky note 114 | stockings 115 | stone 116 | suitcase 117 | sunglasses 118 | thermometer 119 | thread 120 | tire 121 | tissuebox 122 | tobacco 123 | toothpaste 124 | toothpick 125 | vase 126 | wheelbarrow 127 | whiteout 128 | zipper --------------------------------------------------------------------------------