ponymizer 0.0.2 → 0.0.3
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.
- checksums.yaml +7 -0
- data/lib/ponymizer.rb +11 -5
- metadata +18 -44
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 2a9f7003cd0f149c619809c7d71bea8d3df98afe514a5cf64d03caca12fbb782
|
|
4
|
+
data.tar.gz: 916bba245578d921c487bf96f6bca03eaca0d5d8e97aded4895ebce23bc59914
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 23badcc55c62928af438e3c981f5951a23b895b5356fdd68923065c1d47645646e1883c52556ceeb3bc7ab8df2fd003bb584d87f6cfa76f3aa44d30da1852fee
|
|
7
|
+
data.tar.gz: 6083d75f44dec55cd423b41b1979981f2e745cf244d90288b40e37417e576a03c5eaa51dfb295b898740af43670be3a2cc46ac30f362e2827933e2b53bb12914
|
data/lib/ponymizer.rb
CHANGED
|
@@ -5,7 +5,7 @@ class Ponymizer
|
|
|
5
5
|
# go to http://mlp.wikia.com/wiki/List_of_ponies and run
|
|
6
6
|
# [].slice.apply(document.querySelectorAll('table.wikitable tr td:first-child'))
|
|
7
7
|
# .map(function(x){ return x.innerText }).join(', ')
|
|
8
|
-
NAMES = %Q(
|
|
8
|
+
@@NAMES = %Q(
|
|
9
9
|
Applejack, Pinkie Pie, Fluttershy, Rainbow Dash, Rarity, Twilight Sparkle, Apple Bloom,
|
|
10
10
|
Scootaloo, Sweetie Belle, Big McIntosh, Braeburn, Caramel, Mr. Carrot Cake, Mrs. Cup Cake,
|
|
11
11
|
Cheerilee, Filthy Rich, Granny Smith, Ms. Harshwhinny, Hoity Toity, Mayor Mare, Ms. Peachbottom,
|
|
@@ -59,7 +59,7 @@ class Ponymizer
|
|
|
59
59
|
Ivory, Jade, Long Jump, Night Knight, Paradise, Purple Polish, Quicksilver, Rapid Rush,
|
|
60
60
|
Rose Quartz, Rubinstein, Sapphire Rose, Sugar Glass, Sunshine Splash, Toastie, Winnow Wind,
|
|
61
61
|
Zirconic, Glass Slipper, Hope, Opal Bloom, Blaze, Fire Streak, Fleetfoot, High Winds,
|
|
62
|
-
Lightning Streak, Misty Fly, Rapidfire, Silver Lining, Surprise, Wave Chill, Crescent Pony
|
|
62
|
+
Lightning Streak, Misty Fly, Rapidfire, Silver Lining, Surprise, Wave Chill, Crescent Pony,
|
|
63
63
|
Crescent Moon, Manerick, Whiplash, Airheart, April Showers, Big Shot, Blossomforth,
|
|
64
64
|
Blue October, Blueberry Muffin, Blue Skies, Bluebell, Blueberry Cloud, Bluebird Happiness,
|
|
65
65
|
Bon Voyage, Brolly, Buddy, Candy Floss, Cappuccino, Luke, Chocolate Blueberry, Cinnamon Swirl,
|
|
@@ -73,7 +73,7 @@ class Ponymizer
|
|
|
73
73
|
Rainbow Drop, Rainbow Strike, Rainbowshine, Raindrops, Riverdance, Rivet, Rosewing, Sandstorm,
|
|
74
74
|
Sassaflash, Score, Serenity, Sightseer, Silver Script, Silverspeed, Silverwing, Skyra,
|
|
75
75
|
Slipstream, Snow Flight, Snowflake, Special Delivery, Spectrum, Spring Skies, Sprinkle Medley,
|
|
76
|
-
Star Hunter, Starburst, Stardancer, Starsong
|
|
76
|
+
Star Hunter, Starburst, Stardancer, Starsong, Sugar Apple, Strawberry Sunrise, Stormfeather,
|
|
77
77
|
Sunburst, Sunlight, Sunny Rays, Sunstone, Doctor Whooves, Thorn, Thunderlane, Tiger Lily,
|
|
78
78
|
Tin Tailor, Tracy Flash, Shutterfly, Tropical Storm, Vanilla Skies, Wild Fire, Wild Flower,
|
|
79
79
|
Wing Wishes, Yo-Yo, Gumdrop, Allie Way, Amethyst Star, Apple Polish, Apple Stars, Arpeggio,
|
|
@@ -106,7 +106,7 @@ class Ponymizer
|
|
|
106
106
|
Unicorn King, Apple Brioche, Apple Brown Betty, Apple Cinnamon Crisp, Apple Tart,
|
|
107
107
|
Babs Seed's big sis, Baked Apples, Bumpkin, Calamity Mane, Crystal Queen, Granny Pie,
|
|
108
108
|
Mr. Kingpin, Namby-Pamby, Nana Pinkie, Thornhoof, Wild Bull Hickok
|
|
109
|
-
).split(
|
|
109
|
+
).split(/[,\n]/).map(&:strip).reject(&:empty?).freeze
|
|
110
110
|
|
|
111
111
|
def initialize(options = {})
|
|
112
112
|
end
|
|
@@ -116,8 +116,14 @@ class Ponymizer
|
|
|
116
116
|
Array.new(options[:size]){ gimmie_a_pony! }
|
|
117
117
|
end
|
|
118
118
|
|
|
119
|
+
# Array#sample is not supported on Ruby 1.8 so let's
|
|
120
|
+
# "brute-force" our way to a random array item here
|
|
119
121
|
def gimmie_a_pony!
|
|
120
|
-
NAMES.
|
|
122
|
+
@@NAMES[Kernel.rand(@@NAMES.size)]
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def names
|
|
126
|
+
@@NAMES
|
|
121
127
|
end
|
|
122
128
|
|
|
123
129
|
end
|
metadata
CHANGED
|
@@ -1,65 +1,39 @@
|
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ponymizer
|
|
3
|
-
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
5
|
-
prerelease:
|
|
6
|
-
segments:
|
|
7
|
-
- 0
|
|
8
|
-
- 0
|
|
9
|
-
- 2
|
|
10
|
-
version: 0.0.2
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.3
|
|
11
5
|
platform: ruby
|
|
12
|
-
authors:
|
|
6
|
+
authors:
|
|
13
7
|
- Thomas Fuchs
|
|
14
|
-
autorequire:
|
|
15
8
|
bindir: bin
|
|
16
9
|
cert_chain: []
|
|
17
|
-
|
|
18
|
-
date: 2013-11-10 00:00:00 Z
|
|
10
|
+
date: 2026-04-28 00:00:00.000000000 Z
|
|
19
11
|
dependencies: []
|
|
20
|
-
|
|
21
12
|
description: Generator of random pony names to be used as friendly and fun test data.
|
|
22
13
|
email: thomas@slash7.com
|
|
23
14
|
executables: []
|
|
24
|
-
|
|
25
15
|
extensions: []
|
|
26
|
-
|
|
27
16
|
extra_rdoc_files: []
|
|
28
|
-
|
|
29
|
-
files:
|
|
17
|
+
files:
|
|
30
18
|
- lib/ponymizer.rb
|
|
31
19
|
homepage: http://github.com/madrobby/ponymizer
|
|
32
20
|
licenses: []
|
|
33
|
-
|
|
34
|
-
post_install_message:
|
|
21
|
+
metadata: {}
|
|
35
22
|
rdoc_options: []
|
|
36
|
-
|
|
37
|
-
require_paths:
|
|
23
|
+
require_paths:
|
|
38
24
|
- lib
|
|
39
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
|
40
|
-
|
|
41
|
-
requirements:
|
|
25
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
26
|
+
requirements:
|
|
42
27
|
- - ">="
|
|
43
|
-
- !ruby/object:Gem::Version
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
version: "0"
|
|
48
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
|
-
requirements:
|
|
28
|
+
- !ruby/object:Gem::Version
|
|
29
|
+
version: '0'
|
|
30
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
51
32
|
- - ">="
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
|
|
54
|
-
segments:
|
|
55
|
-
- 0
|
|
56
|
-
version: "0"
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
57
35
|
requirements: []
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
rubygems_version: 1.8.24
|
|
61
|
-
signing_key:
|
|
62
|
-
specification_version: 3
|
|
36
|
+
rubygems_version: 4.0.6
|
|
37
|
+
specification_version: 4
|
|
63
38
|
summary: Random pony names
|
|
64
39
|
test_files: []
|
|
65
|
-
|