titlegen 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/Gemfile +8 -0
- data/LICENSE.txt +21 -0
- data/README.md +37 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/titlegen/dictionary.rb +160 -0
- data/lib/titlegen/version.rb +3 -0
- data/lib/titlegen.rb +45 -0
- data/tasks/rspec.rake +3 -0
- data/titlegen.gemspec +35 -0
- metadata +115 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9a7263a3ce5dd3f99250915ccf8ef8ad0a708cf7
|
4
|
+
data.tar.gz: 10da6e817fc7198828b41015957b89e94404a49d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9cbc4d5cc23e22ccdd65b4795342083d7f917ff4e0dad42446626bae94b06b034f4265d22320a065fcbf32648c897be895b6d3003b91438c07b7fa4322ac4a5a
|
7
|
+
data.tar.gz: 96f020f68dfcbb4b33099dbc559057c52b560b9930eb76fe896a953233cbd4515ca5b7fb985e38aecd3f077ab4ef9a7d3d1a06516977cf064a6ac4207ad8ee20
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 SophieDeBenedetto
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# Titlegen
|
2
|
+
|
3
|
+
A simple gem to generate a random title.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'titlegen'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install titlegen
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
TODO: Write usage instructions here
|
24
|
+
|
25
|
+
## Development
|
26
|
+
|
27
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
28
|
+
|
29
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
30
|
+
|
31
|
+
## Contributing
|
32
|
+
|
33
|
+
1. Fork it ( https://github.com/[my-github-username]/titlegen/fork )
|
34
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
35
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
36
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
37
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "titlegen"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,160 @@
|
|
1
|
+
module Dictionary
|
2
|
+
|
3
|
+
DICTIONARY = {
|
4
|
+
|
5
|
+
:adjectives => ["adorable", "beautiful", "clean", "drab", "elegant",
|
6
|
+
"fancy", "glamorous", "handsome", "long", "magnificent", "old-fashioned",
|
7
|
+
"plain", "quaint", "sparkling", "ugliest", "unsightly", "wide-eyed",
|
8
|
+
"red", "orange", "yellow", "green", "blue", "purple", "gray",
|
9
|
+
"black", "white", "alive", "better", "careful", "clever", "dead", "easy",
|
10
|
+
"famous", "gifted", "helpful", "important", "inexpensive", "mushy", "odd",
|
11
|
+
"powerful", "rich", "shy", "tender", "uninterested", "vast", "wrong",
|
12
|
+
"angry", "bewildered", "clumsy", "defeated", "embarrassed", "fierce", "grumpy",
|
13
|
+
"helpless", "itchy", "jealous", "lazy", "mysterious", "nervous", "obnoxious",
|
14
|
+
"panicky", "repulsive", "scary", "thoughtless", "uptight", "worried",
|
15
|
+
"agreeable", "brave", "calm", "delightful", "eager", "faithful", "gentle", "happy",
|
16
|
+
"jolly", "kind", "lively", "nice", "obedient", "proud", "relieved", "silly",
|
17
|
+
"thankful", "victorious", "witty", "zealous",
|
18
|
+
"broad", "chubby", "crooked", "curved", "deep", "flat", "high", "hollow" "low", "narrow",
|
19
|
+
"round", "shallow" "skinny", "square", "steep", "wide",
|
20
|
+
"big", "colossal", "fat", "gigantic", "great", "huge", "immense", "large",
|
21
|
+
"little", "mammoth", "massive", "miniature", "petite", "puny",
|
22
|
+
"scrawny", "short", "small", "tall", "tiny", "cooing", "deafening", "faint", "hissing",
|
23
|
+
"loud", "melodic", "noisy", "purring", "quiet", "raspy", "screeching",
|
24
|
+
"thundering", "voiceless", "whispering",
|
25
|
+
"ancient", "brief", "early", "fast", "late", "long", "modern", "old", "old-fashioned",
|
26
|
+
"quick", "rapid", "short", "slow", "swift", "young"],
|
27
|
+
|
28
|
+
:nouns => ["account", "achiever", "acoustics", "act", "action", "activity", "actor", "addition",
|
29
|
+
"adjustment", "advertisement", "advice", "aftermath", "afternoon", "afterthought", "agreement",
|
30
|
+
"air", "airplane", "airport", "alarm", "amount", "amusement", "anger", "angle", "animal", "answer",
|
31
|
+
"ant", "ants", "apparatus", "apparel", "apple", "apples", "appliance", "approval", "arch",
|
32
|
+
"argument", "arithmetic", "arm", "army", "art", "attack", "attempt", "attention", "attraction",
|
33
|
+
"aunt", "authority", "bells", "berry", "bike", "bikes", "bird", "birds", "birth", "birthday",
|
34
|
+
"bit", "bite", "blade", "blood", "blow", "board", "boat", "boats", "body", "bomb", "bone",
|
35
|
+
"book", "books", "boot", "border", "bottle", "boundary", "box", "boy", "boys", "brain",
|
36
|
+
"brake", "branch", "brass", "bread", "breakfast", "breath", "brick", "bridge", "brother",
|
37
|
+
"brothers", "brush", "bubble", "bucket", "building", "bulb", "bun", "burn", "burst",
|
38
|
+
"bushes", "business", "butter", "button", "cabbage", "cable", "cactus", "cake",
|
39
|
+
"cakes", "calculator", "calendar", "camera", "camp", "can", "cannon", "canvas",
|
40
|
+
"cap", "caption", "car", "card", "care", "carpenter", "carriage", "cars", "cart",
|
41
|
+
"cast", "cat", "cats", "cattle", "cause", "cave", "celery", "cellar", "cemetery",
|
42
|
+
"cent", "chain", "chair", "chairs", "chalk", "chance", "change", "channel",
|
43
|
+
"cheese", "cherries", "cherry", "chess", "chicken", "chickens", "children",
|
44
|
+
"chin", "church", "circle", "clam", "class", "clock", "clocks", "cloth", "cloud",
|
45
|
+
"clouds", "clover", "club", "coach", "coal", "coast", "coat", "cobweb", "coil",
|
46
|
+
"collar", "color", "comb", "comfort", "committee", "company", "comparison",
|
47
|
+
"competition", "condition", "connection", "control", "cook", "copper", "copy",
|
48
|
+
"cord", "cork", "corn", "cough", "country", "cover", "cow", "cows", "crack",
|
49
|
+
"cracker", "crate", "crayon", "cream", "creator", "creature", "credit", "crib",
|
50
|
+
"crime", "crook", "crow", "crowd", "crown", "crush", "cry", "cub", "cup",
|
51
|
+
"current", "curtain", "curve", "cushion", "dad", "daughter", "day", "death",
|
52
|
+
"debt", "decision", "deer", "degree", "design", "desire", "desk", "destruction",
|
53
|
+
"detail", "development", "digestion", "dime", "dinner", "dinosaurs", "direction",
|
54
|
+
"dirt", "discovery", "discussion", "disease", "disgust", "distance",
|
55
|
+
"distribution", "division", "dock", "doctor", "dog", "dogs", "doll",
|
56
|
+
"dolls", "donkey", "door", "downtown", "drain", "drawer", "dress",
|
57
|
+
"drink", "driving", "drop", "drug", "drum", "duck", "ducks", "dust",
|
58
|
+
"ear", "earth", "earthquake", "edge", "education", "effect", "egg",
|
59
|
+
"eggnog", "eggs", "elbow", "end", "engine", "error", "event", "example",
|
60
|
+
"exchange", "existence", "expansion", "experience", "expert", "eye", "eyes",
|
61
|
+
"face", "fact", "fairies", "fall", "family", "fan", "fang", "farm", "farmer",
|
62
|
+
"father", "father", "faucet", "fear", "feast", "feather", "feeling", "feet",
|
63
|
+
"fiction", "field", "fifth", "fight", "finger", "finger", "fire", "fireman",
|
64
|
+
"fish", "flag", "flame", "flavor", "flesh", "flight", "flock", "floor", "flower",
|
65
|
+
"flowers", "fly", "fog", "fold", "food", "foot", "force", "fork", "form", "fowl",
|
66
|
+
"frame", "friction", "friend", "friends", "frog", "frogs", "front", "fruit",
|
67
|
+
"fuel", "furniture", "alley", "game", "garden", "gate", "geese", "ghost",
|
68
|
+
"giants", "giraffe", "girl", "girls", "glass", "glove", "glue", "goat",
|
69
|
+
"gold", "goldfish", "good-bye", "goose", "government", "governor", "grade",
|
70
|
+
"grain", "grandfather", "grandmother", "grape", "grass", "grip", "ground",
|
71
|
+
"group", "growth", "guide", "guitar", "gun", "hair", "haircut", "hall",
|
72
|
+
"hammer", "hand", "hands", "harbor", "harmony", "hat", "hate", "head",
|
73
|
+
"health", "hearing", "heart", "heat", "help", "hen", "hill", "history",
|
74
|
+
"hobbies", "hole", "holiday", "home", "honey", "hook", "hope", "horn",
|
75
|
+
"horse", "horses", "hose", "hospital", "hot", "hour", "house", "houses",
|
76
|
+
"humor", "hydrant", "ice", "icicle", "idea", "impulse", "income", "increase",
|
77
|
+
"industry", "ink", "insect", "instrument", "insurance", "interest", "invention",
|
78
|
+
"iron", "island", "jail", "jam", "jar", "jeans", "jelly", "jellyfish", "jewel",
|
79
|
+
"join", "joke", "journey", "judge", "juice", "jump", "kettle", "key", "kick",
|
80
|
+
"kiss", "kite", "kitten", "kittens", "kitty", "knee", "knife", "knot", "knowledge",
|
81
|
+
"laborer", "lace", "ladybug", "lake", "lamp", "land", "language", "laugh",
|
82
|
+
"lawyer", "lead", "leaf", "learning", "leather", "leg", "legs", "letter",
|
83
|
+
"letters", "lettuce", "level", "library", "lift", "light", "limit", "line",
|
84
|
+
"linen", "lip", "liquid", "list", "lizards", "loaf", "lock", "locket", "look",
|
85
|
+
"loss", "love", "low", "lumber", "lunch", "lunchroom", "machine", "magic",
|
86
|
+
"maid", "mailbox", "man", "manager", "map", "marble", "mark", "market",
|
87
|
+
"mask", "mass", "match", "meal", "measure", "meat", "meeting", "memory",
|
88
|
+
"men", "metal", "mice", "middle", "milk", "mind", "mine", "minister", "mint",
|
89
|
+
"minute", "mist", "mitten", "mom", "money", "monkey", "month", "moon", "morning",
|
90
|
+
"mother", "motion", "mountain", "mouth", "move", "muscle", "music", "nail", "name",
|
91
|
+
"nation", "neck", "need", "needle", "nerve", "nest", "net", "news", "night", "noise",
|
92
|
+
"north", "nose", "note", "notebook", "number", "nut", "oatmeal", "observation",
|
93
|
+
"ocean", "offer", "office", "oil", "operation", "opinion", "orange", "oranges",
|
94
|
+
"order", "organization", "ornament", "oven", "owl", "owner", "page", "pail",
|
95
|
+
"pain", "paint", "pan", "pancake", "paper", "parcel", "parent", "park", "part",
|
96
|
+
"partner", "party", "passenger", "paste", "patch", "payment", "peace", "pear",
|
97
|
+
"pen", "pencil", "person", "pest", "pet", "pets", "pickle", "picture", "pie",
|
98
|
+
"pies", "pig", "pigs", "pin", "pipe", "pizzas", "place", "plane", "planes",
|
99
|
+
"plant", "plantation", "plants", "plastic", "plate", "play", "playground",
|
100
|
+
"pleasure", "plot", "plough", "pocket", "point", "poison", "police", "polish",
|
101
|
+
"pollution", "popcorn", "porter", "position", "pot", "potato", "powder", "power",
|
102
|
+
"price", "print", "prison", "process", "produce", "profit", "property", "prose",
|
103
|
+
"protest", "pull", "pump", "punishment", "purpose", "push", "quarter", "quartz",
|
104
|
+
"queen", "question", "quicksand", "quiet", "quill", "quilt", "quince", "quiver",
|
105
|
+
"rabbit", "rabbits", "rail", "railway", "rain", "rainstorm", "rake", "range",
|
106
|
+
"rat", "rate", "ray", "reaction", "reading", "reason", "receipt", "recess",
|
107
|
+
"record", "regret", "relation", "religion", "representative", "request",
|
108
|
+
"respect", "rest", "reward", "rhythm", "rice", "riddle", "rifle", "ring",
|
109
|
+
"rings", "river", "road", "robin", "rock", "rod", "roll", "roof", "room",
|
110
|
+
"root", "rose", "route", "rub", "rule", "run", "sack", "sail", "salt",
|
111
|
+
"sand", "scale", "scarecrow", "scarf", "scene", "scent", "school", "science",
|
112
|
+
"scissors", "screw", "sea", "seashore", "seat", "secretary", "seed", "selection",
|
113
|
+
"self", "sense", "servant", "shade", "shake", "shame", "shape", "sheep", "sheet",
|
114
|
+
"shelf", "ship", "shirt", "shock", "shoe", "shoes", "shop", "show", "side",
|
115
|
+
"sidewalk", "sign", "silk", "silver", "sink", "sister", "sisters", "size",
|
116
|
+
"skate", "skin", "skirt", "sky", "slave", "sleep", "sleet", "slip", "slope",
|
117
|
+
"smash", "smell", "smile", "smoke", "snail", "snails", "snake", "snakes",
|
118
|
+
"sneeze", "snow", "soap", "society", "sock", "soda", "sofa", "son", "song",
|
119
|
+
"songs", "sort", "sound", "soup", "space", "spade", "spark", "spiders",
|
120
|
+
"sponge", "spoon", "spot", "spring", "spy", "square", "squirrel", "stage",
|
121
|
+
"stamp", "star", "start", "statement", "station", "steam", "steel", "stem",
|
122
|
+
"step", "stew", "stick", "sticks", "stitch", "stocking", "stomach", "stone",
|
123
|
+
"stop", "store", "story", "stove", "stranger", "straw", "stream", "street",
|
124
|
+
"stretch", "string", "structure", "substance", "sugar", "suggestion", "suit",
|
125
|
+
"summer", "sun", "support", "surprise", "sweater", "swim", "swing", "system",
|
126
|
+
"table", "tail", "talk", "tank", "taste", "tax", "teaching", "team", "teeth",
|
127
|
+
"temper", "tendency", "tent", "territory", "test", "texture", "theory", "thing",
|
128
|
+
"things", "thought", "thread", "thrill", "throat", "throne", "thumb", "thunder",
|
129
|
+
"ticket", "tiger", "time", "tin", "title", "toad", "toe", "toes", "tomatoes",
|
130
|
+
"tongue", "tooth", "toothbrush", "toothpaste", "top", "touch", "town", "toy",
|
131
|
+
"toys", "trade", "trail", "train", "trains", "tramp", "transport", "tray",
|
132
|
+
"treatment", "tree", "trees", "trick", "trip", "trouble", "trousers", "truck",
|
133
|
+
"trucks", "tub", "turkey", "turn", "twig", "twist", "umbrella", "uncle",
|
134
|
+
"underwear", "unit", "use", "vacation", "value", "van", "vase", "vegetable",
|
135
|
+
"veil", "vein", "verse", "vessel", "vest", "view", "visitor", "voice",
|
136
|
+
"volcano", "volleyball", "voyage", "walk", "wall", "war", "wash", "waste",
|
137
|
+
"watch", "water", "wave", "waves", "wax", "way", "wealth", "weather", "week",
|
138
|
+
"weight", "wheel", "whip", "whistle", "wilderness", "wind", "window", "wine",
|
139
|
+
"wing", "winter", "wire", "wish", "woman", "women", "wood", "wool", "word",
|
140
|
+
"work", "worm", "wound", "wren", "wrench", "wrist", "writer", "writing", "yak",
|
141
|
+
"yam", "yard", "yarn", "year", "yoke", "zebra", "zephyr", "zinc", "zipper", "zoo"],
|
142
|
+
|
143
|
+
:pronouns => ["A", "The", "His", "Her", "Their", "Some", "A Few", "No"]
|
144
|
+
}
|
145
|
+
|
146
|
+
def Dictionary.pronoun
|
147
|
+
DICTIONARY[:pronouns].sample
|
148
|
+
end
|
149
|
+
|
150
|
+
def Dictionary.adjective
|
151
|
+
DICTIONARY[:adjectives].sample
|
152
|
+
end
|
153
|
+
|
154
|
+
def Dictionary.noun
|
155
|
+
DICTIONARY[:nouns].sample
|
156
|
+
end
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
end
|
data/lib/titlegen.rb
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
require "titlegen/version"
|
2
|
+
require "titlegen/dictionary"
|
3
|
+
require 'active_support/inflector'
|
4
|
+
|
5
|
+
class Titlegen
|
6
|
+
|
7
|
+
|
8
|
+
include Dictionary
|
9
|
+
|
10
|
+
def self.generate_title
|
11
|
+
adjective = Dictionary.adjective
|
12
|
+
pronoun = self.correctly_voweled_pronoun(adjective)
|
13
|
+
noun = self.correctly_pluralized_noun(pronoun)
|
14
|
+
self.make_title(pronoun, adjective, noun)
|
15
|
+
end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def self.correctly_voweled_pronoun(adjective)
|
20
|
+
pronoun = Dictionary.pronoun
|
21
|
+
if vowel?(adjective) && vowel?(pronoun)
|
22
|
+
pronoun = "An"
|
23
|
+
end
|
24
|
+
pronoun
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.vowel?(word)
|
28
|
+
word.start_with?("a", "e", "i", "o", "u")
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.correctly_pluralized_noun(pronoun)
|
32
|
+
if pronoun = "Some" || "A Few" || "No"
|
33
|
+
Dictionary.noun.pluralize
|
34
|
+
else
|
35
|
+
Dictionary.noun.singularize
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def self.make_title(pronoun, adjective, noun)
|
40
|
+
"#{pronoun} #{adjective} #{noun}".titleize
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
|
45
|
+
|
data/tasks/rspec.rake
ADDED
data/titlegen.gemspec
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
#titlegen: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'titlegen/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "titlegen"
|
8
|
+
spec.version = Titlegen::VERSION
|
9
|
+
spec.authors = ["SophieDeBenedetto"]
|
10
|
+
spec.email = ["sophie.debenedetto@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{generate a random movie or book title}
|
13
|
+
spec.description = %q{generate a random movie or book title.}
|
14
|
+
spec.homepage = "https://github.com/SophieDeBenedetto/titlegen"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
18
|
+
# delete this section to allow pushing this gem to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
21
|
+
else
|
22
|
+
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
26
|
+
spec.bindir = "exe"
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ["lib"]
|
29
|
+
|
30
|
+
spec.add_development_dependency "bundler", "~> 1.9"
|
31
|
+
spec.add_development_dependency "rspec", "~> 1.9"
|
32
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
33
|
+
spec.add_runtime_dependency "activesupport-inflector", ['~> 0.1.0']
|
34
|
+
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: titlegen
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- SophieDeBenedetto
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.9'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.9'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.9'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: activesupport-inflector
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.1.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.1.0
|
69
|
+
description: generate a random movie or book title.
|
70
|
+
email:
|
71
|
+
- sophie.debenedetto@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rspec"
|
78
|
+
- ".travis.yml"
|
79
|
+
- Gemfile
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.md
|
82
|
+
- Rakefile
|
83
|
+
- bin/console
|
84
|
+
- bin/setup
|
85
|
+
- lib/titlegen.rb
|
86
|
+
- lib/titlegen/dictionary.rb
|
87
|
+
- lib/titlegen/version.rb
|
88
|
+
- tasks/rspec.rake
|
89
|
+
- titlegen.gemspec
|
90
|
+
homepage: https://github.com/SophieDeBenedetto/titlegen
|
91
|
+
licenses:
|
92
|
+
- MIT
|
93
|
+
metadata:
|
94
|
+
allowed_push_host: https://rubygems.org
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - ">="
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '0'
|
109
|
+
requirements: []
|
110
|
+
rubyforge_project:
|
111
|
+
rubygems_version: 2.4.5
|
112
|
+
signing_key:
|
113
|
+
specification_version: 4
|
114
|
+
summary: generate a random movie or book title
|
115
|
+
test_files: []
|