kittyverse 0.2.0 → 0.3.0
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 +4 -4
- data/Manifest.txt +3 -0
- data/README.md +110 -19
- data/lib/kittyverse.rb +22 -5
- data/lib/kittyverse/catalog.rb +9 -15
- data/lib/kittyverse/cattributes.rb +116 -0
- data/lib/kittyverse/fancies.rb +489 -151
- data/lib/kittyverse/purrstige.rb +200 -0
- data/lib/kittyverse/traits.rb +9 -9
- data/lib/kittyverse/version.rb +1 -1
- data/test/test_cattributes.rb +56 -0
- metadata +5 -2
@@ -0,0 +1,200 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
###########################################
|
4
|
+
## Purrstige Traits / Cattributes
|
5
|
+
|
6
|
+
|
7
|
+
## note: totesbasic has three traits / genes
|
8
|
+
TOTESBASIC = ['totesbasic 1', 'totesbasic 2', 'totesbasic 3'] ## was: ['PA14', 'PA15', 'PA23']
|
9
|
+
ANY_TOTESBASIC = ALL_TOTESBASIC = TOTESBASIC
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
PRESTIGES = PURRSTIGES =
|
14
|
+
{
|
15
|
+
###
|
16
|
+
# May 1, 2019
|
17
|
+
# 7 Robokitty Purrstiges
|
18
|
+
bionic: { name: 'Bionic',
|
19
|
+
recipe: {
|
20
|
+
time: { start: '2019-05-01', end: '2019-08-31' },
|
21
|
+
traits: ['ragdoll', 'WE05', TOTESBASIC, 'PU30'] }
|
22
|
+
},
|
23
|
+
fileshare: { name: 'Fileshare',
|
24
|
+
recipe: {
|
25
|
+
time: { start: '2019-05-01', end: '2019-08-31' },
|
26
|
+
traits: ['ragdoll', 'WE05', TOTESBASIC, 'PU29'] }
|
27
|
+
},
|
28
|
+
pawsfree: { name: 'Pawsfree',
|
29
|
+
recipe: {
|
30
|
+
time: { start: '2019-05-01', end: '2019-08-31' },
|
31
|
+
traits: ['ragdoll', 'WE05', TOTESBASIC, 'PU28'] }
|
32
|
+
},
|
33
|
+
uplink: { name: 'Uplink',
|
34
|
+
recipe: {
|
35
|
+
time: { start: '2019-05-01', end: '2019-08-31' },
|
36
|
+
traits: ['ragdoll', 'WE05', TOTESBASIC, 'PU27'] }
|
37
|
+
},
|
38
|
+
gaunlet: { name: 'Gauntlet',
|
39
|
+
recipe: {
|
40
|
+
time: { start: '2019-05-01', end: '2019-08-31' },
|
41
|
+
traits: ['ragdoll', 'WE05', TOTESBASIC, 'PU26'] }
|
42
|
+
},
|
43
|
+
catterypack: { name: 'Catterypack',
|
44
|
+
recipe: {
|
45
|
+
time: { start: '2019-05-01', end: '2019-08-31' },
|
46
|
+
traits: ['ragdoll', 'WE05', TOTESBASIC, 'PU25'] }
|
47
|
+
},
|
48
|
+
squelch: { name: 'Squelch',
|
49
|
+
recipe: {
|
50
|
+
time: { start: '2019-05-01', end: '2019-08-31' },
|
51
|
+
traits: ['ragdoll', 'WE05', TOTESBASIC, 'PU24'] }
|
52
|
+
},
|
53
|
+
|
54
|
+
##
|
55
|
+
# Apr 13, 2019
|
56
|
+
# 7 Pirate Purrstiges
|
57
|
+
# Scratchingpost trait is discovered. Purrstige
|
58
|
+
scratchingpost: { name: 'Scratchingpost',
|
59
|
+
recipe: {
|
60
|
+
time: { start: '2019-04-13', end: '2019-05-10' },
|
61
|
+
traits: ['WE10', 'PU26'] }
|
62
|
+
},
|
63
|
+
# Hooked trait is discovered. Purrstige
|
64
|
+
hooked: { name: 'Hooked',
|
65
|
+
recipe: {
|
66
|
+
time: { start: '2019-04-13', end: '2019-05-10' },
|
67
|
+
traits: ['WE10', 'PU27'] }
|
68
|
+
},
|
69
|
+
# Landlubber trait is discovered. Purrstige
|
70
|
+
landlubber: { name: 'Landlubber',
|
71
|
+
recipe: {
|
72
|
+
time: { start: '2019-04-13', end: '2019-05-10' },
|
73
|
+
traits: ['WE10', 'PU29'] }
|
74
|
+
},
|
75
|
+
# Wrecked trait is discovered. Purrstige
|
76
|
+
wrecked: { name: 'Wrecked',
|
77
|
+
recipe: {
|
78
|
+
time: { start: '2019-04-13', end: '2019-05-10' },
|
79
|
+
traits: ['EN00', 'PU26'] }
|
80
|
+
},
|
81
|
+
# Purrbados trait is discovered. Purrstige
|
82
|
+
purrbados: { name: 'Purrbados',
|
83
|
+
recipe: {
|
84
|
+
time: { start: '2019-04-13', end: '2019-05-10' },
|
85
|
+
traits: ['EN01', 'PU26'] }
|
86
|
+
},
|
87
|
+
# Timbers trait is discovered. Purrstige
|
88
|
+
timbers: { name: 'Timbers',
|
89
|
+
recipe: {
|
90
|
+
time: { start: '2019-04-13', end: '2019-05-10' },
|
91
|
+
traits: ['WE10', 'EN00', 'PU26'] }
|
92
|
+
},
|
93
|
+
# Maraud trait is discovered. Purrstige
|
94
|
+
maraud: { name: 'Maraud',
|
95
|
+
recipe: {
|
96
|
+
time: { start: '2019-04-13', end: '2019-05-10' },
|
97
|
+
traits: ['WE10', 'EN01', 'PU26'] }
|
98
|
+
},
|
99
|
+
|
100
|
+
##
|
101
|
+
# Mar 15, 2019
|
102
|
+
# Oohshiny trait is discovered. Purrstige
|
103
|
+
oohshiny: { name: 'Oohshiny',
|
104
|
+
recipe: {
|
105
|
+
time: { start: '2019-03-15', end: '2019-03-28'}, count: 2484,
|
106
|
+
traits: ['roadtogold', 'PU27'] }
|
107
|
+
},
|
108
|
+
|
109
|
+
##
|
110
|
+
# Feb 21, 2019
|
111
|
+
# 7 Alpacat purrstiges
|
112
|
+
# Dreamcloud trait is discovered. Purrstige
|
113
|
+
dreamcloud: { name: 'Dreamcloud',
|
114
|
+
recipe: {
|
115
|
+
time: { start: '2019-02-22', end: '2019-03-25' }, count: 1246,
|
116
|
+
traits: ['munchkin', 'WE10', 'PU24'] }
|
117
|
+
},
|
118
|
+
# Alpunka trait is discovered. Purrstige
|
119
|
+
alpunka: { name: 'Alpunka',
|
120
|
+
recipe: {
|
121
|
+
time: { start: '2019-02-22', end: '2019-03-25' }, count: 926,
|
122
|
+
traits: ['munchkin', 'WE10', 'PU28'] }
|
123
|
+
},
|
124
|
+
# Cindylou trait is discovered. Purrstige
|
125
|
+
cindylou: { name: 'Cindylou',
|
126
|
+
recipe: {
|
127
|
+
time: { start: '2019-02-22', end: '2019-03-25' }, count: 905,
|
128
|
+
traits: ['munchkin', 'WE10', 'PU30'] }
|
129
|
+
},
|
130
|
+
# Alpacacino trait is discovered. Purrstige
|
131
|
+
alpacacino: { name: 'Alpacacino',
|
132
|
+
recipe: {
|
133
|
+
time: { start: '2019-02-22', end: '2019-03-25' }, count: 1220,
|
134
|
+
traits: ['munchkin', 'WE10', 'PU27'] }
|
135
|
+
},
|
136
|
+
# Beatlesque trait is discovered. Purrstige
|
137
|
+
beatlesque: { name: 'Beatlesque',
|
138
|
+
recipe: {
|
139
|
+
time: { start: '2019-02-22', end: '2019-03-25' }, count: 783,
|
140
|
+
traits: ['munchkin', 'WE10', 'PU29'] }
|
141
|
+
},
|
142
|
+
# Huacool trait is discovered. Purrstige
|
143
|
+
huacool: { name: 'Huacool',
|
144
|
+
recipe: {
|
145
|
+
time: { start: '2019-02-22', end: '2019-03-25' }, count: 837,
|
146
|
+
traits: ['munchkin', 'WE10', 'PU25'] }
|
147
|
+
},
|
148
|
+
# Inaband trait is discovered. Purrstige
|
149
|
+
inaband: { name: 'Inaband',
|
150
|
+
recipe: {
|
151
|
+
time: { start: '2019-02-22', end: '2019-03-25' }, count: 1048,
|
152
|
+
traits: ['munchkin', 'WE10', 'PU26'] }
|
153
|
+
},
|
154
|
+
|
155
|
+
## 2018
|
156
|
+
## December
|
157
|
+
|
158
|
+
reindeer: { name: 'Reindeer',
|
159
|
+
recipe: {
|
160
|
+
time: { start: '2018-12-14', end: '2019-01-07' }, count: 854,
|
161
|
+
traits: ['elk', ['PU24','PU25','PU26','PU27']] }
|
162
|
+
},
|
163
|
+
holidaycheer: { name: 'Holidaycheer',
|
164
|
+
recipe: {
|
165
|
+
time: { start: '2018-12-14', end: '2019-01-07' }, count: 759,
|
166
|
+
traits: ['elk', ['PU28','PU29']] }
|
167
|
+
},
|
168
|
+
lit: { name: 'Lit',
|
169
|
+
recipe: {
|
170
|
+
time: { start: '2018-12-14', end: '2019-01-07' }, count: 1006,
|
171
|
+
traits: ['elk', 'PU30'] }
|
172
|
+
},
|
173
|
+
|
174
|
+
## October
|
175
|
+
## date: '2018-10-21' ??
|
176
|
+
thatsawrap: { name: 'Thatsawrap',
|
177
|
+
recipe: {
|
178
|
+
time: { start: '2018-10-20', end: '2018-11-06' }, count: 615,
|
179
|
+
traits: ['bobtail','WE00','PU28'] }
|
180
|
+
},
|
181
|
+
## date: '2018-10-19' ??
|
182
|
+
duckduckcat: { name: 'Duckduckcat',
|
183
|
+
recipe: {
|
184
|
+
time: { start: '2018-10-20', end: '2018-11-15' }, count: 1249,
|
185
|
+
traits: ['neckbeard',['PU24','PU25','PU26']] }
|
186
|
+
},
|
187
|
+
|
188
|
+
## September
|
189
|
+
## date: '2018-09-19' ??
|
190
|
+
prune: { name: 'Prune',
|
191
|
+
recipe: {
|
192
|
+
time: { start: '2018-09-18', end: '2018-09-30' }, count: 921,
|
193
|
+
traits: ['norwegianforest', TOTESBASIC, 'PU25'] }
|
194
|
+
},
|
195
|
+
furball: { name: 'Furball',
|
196
|
+
recipe: {
|
197
|
+
time: { start: '2018-09-19', end: '2018-09-30' }, count: 998,
|
198
|
+
traits: ['norwegianforest', TOTESBASIC, 'PU26'] }
|
199
|
+
}
|
200
|
+
}
|
data/lib/kittyverse/traits.rb
CHANGED
@@ -71,8 +71,8 @@ TRAITS =
|
|
71
71
|
'c' => 'jaguar',
|
72
72
|
'd' => 'spock',
|
73
73
|
'e' => 'mittens',
|
74
|
-
'f' => '
|
75
|
-
'g' => '
|
74
|
+
'f' => 'totesbasic 1', ## use totesbasic_f or totesbasic (14) - why? why not?
|
75
|
+
'g' => 'totesbasic 2', ## use totesbasic_g or totesbasic (15)
|
76
76
|
'h' => 'splat',
|
77
77
|
'i' => 'thunderstruck',
|
78
78
|
'j' => 'dippedcone',
|
@@ -80,7 +80,7 @@ TRAITS =
|
|
80
80
|
'm' => 'tigerpunk',
|
81
81
|
'n' => 'henna',
|
82
82
|
'o' => 'arcreactor',
|
83
|
-
'p' => '
|
83
|
+
'p' => 'totesbasic 3', ## use totesbasic_p or totesbasic (23) - why? why not?
|
84
84
|
'q' => 'scorpius',
|
85
85
|
'r' => 'razzledazzle',
|
86
86
|
's' => 'hotrod',
|
@@ -167,9 +167,9 @@ TRAITS =
|
|
167
167
|
'x' => ''
|
168
168
|
}
|
169
169
|
},
|
170
|
-
|
170
|
+
colorprimary: {
|
171
171
|
genes: '16-19',
|
172
|
-
name: 'Base Color', code: 'BC', ## colorprimary / body color
|
172
|
+
name: 'Base Color', code: 'BC', ## color1 / colorprimary / body color
|
173
173
|
kai: {
|
174
174
|
'1' => 'shadowgrey',
|
175
175
|
'2' => 'salmon',
|
@@ -205,9 +205,9 @@ TRAITS =
|
|
205
205
|
'x' => ''
|
206
206
|
}
|
207
207
|
},
|
208
|
-
|
208
|
+
colorsecondary: {
|
209
209
|
genes: '20-23',
|
210
|
-
name: 'Highlight Color', code: 'HC', ## colorsecondary / sec color / pattern color
|
210
|
+
name: 'Highlight Color', code: 'HC', ## color2 / colorsecondary / sec color / pattern color
|
211
211
|
kai: {
|
212
212
|
'1' => 'cyborg',
|
213
213
|
'2' => 'springcrocus',
|
@@ -243,9 +243,9 @@ TRAITS =
|
|
243
243
|
'x' => ''
|
244
244
|
}
|
245
245
|
},
|
246
|
-
|
246
|
+
colortertiary: {
|
247
247
|
genes: '24-27',
|
248
|
-
name: 'Accent Color', code: 'AC', ## colortertiary
|
248
|
+
name: 'Accent Color', code: 'AC', ## color3 / colortertiary
|
249
249
|
kai: {
|
250
250
|
'1' => 'belleblue',
|
251
251
|
'2' => 'sandalwood',
|
data/lib/kittyverse/version.rb
CHANGED
@@ -0,0 +1,56 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
###
|
4
|
+
# to run use
|
5
|
+
# ruby -I ./lib -I ./test test/test_cattributes.rb
|
6
|
+
|
7
|
+
|
8
|
+
require 'helper'
|
9
|
+
|
10
|
+
|
11
|
+
class TestCattributes < MiniTest::Test
|
12
|
+
|
13
|
+
def test_savannah
|
14
|
+
c = Cattribute.find_by_name( 'savannah' )
|
15
|
+
assert_equal 'savannah', c.name
|
16
|
+
assert_equal 'Fur', c.type.name
|
17
|
+
assert_equal 1, c.traits.size
|
18
|
+
|
19
|
+
c = Cattribute.find_by( name: 'savannah' )
|
20
|
+
assert_equal 'savannah', c.name
|
21
|
+
assert_equal 'Fur', c.type.name
|
22
|
+
assert_equal 1, c.traits.size
|
23
|
+
|
24
|
+
c = Cattribute[ 'savannah' ]
|
25
|
+
assert_equal 'savannah', c.name
|
26
|
+
assert_equal 'Fur', c.type.name
|
27
|
+
assert_equal 1, c.traits.size
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_totesbasic
|
31
|
+
c = Cattribute.find_by_name( :totesbasic )
|
32
|
+
assert_equal 'totesbasic', c.name
|
33
|
+
assert_equal 'Pattern', c.type.name
|
34
|
+
assert_equal 3, c.traits.size
|
35
|
+
|
36
|
+
c = Cattribute[ 'totesbasic' ]
|
37
|
+
assert_equal 'totesbasic', c.name
|
38
|
+
assert_equal 'Pattern', c.type.name
|
39
|
+
assert_equal 3, c.traits.size
|
40
|
+
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_bionic
|
44
|
+
c = Cattribute.find_by_name( 'bionic' )
|
45
|
+
assert_equal 'bionic', c.name
|
46
|
+
assert_equal 'Purrstige', c.type.name
|
47
|
+
assert_equal 0, c.traits.size
|
48
|
+
pp c.recipe
|
49
|
+
|
50
|
+
c = Cattribute[ 'bionic' ]
|
51
|
+
assert_equal 'bionic', c.name
|
52
|
+
assert_equal 'Purrstige', c.type.name
|
53
|
+
assert_equal 0, c.traits.size
|
54
|
+
end
|
55
|
+
|
56
|
+
end # class TestCattributes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kittyverse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base32-alphabets
|
@@ -70,14 +70,17 @@ files:
|
|
70
70
|
- Rakefile
|
71
71
|
- lib/kittyverse.rb
|
72
72
|
- lib/kittyverse/catalog.rb
|
73
|
+
- lib/kittyverse/cattributes.rb
|
73
74
|
- lib/kittyverse/fancies.rb
|
74
75
|
- lib/kittyverse/links.rb
|
75
76
|
- lib/kittyverse/mewtations.rb
|
76
77
|
- lib/kittyverse/pages/genes.rb
|
78
|
+
- lib/kittyverse/purrstige.rb
|
77
79
|
- lib/kittyverse/traits.rb
|
78
80
|
- lib/kittyverse/traits_timeline.rb
|
79
81
|
- lib/kittyverse/version.rb
|
80
82
|
- test/helper.rb
|
83
|
+
- test/test_cattributes.rb
|
81
84
|
- test/test_traits.rb
|
82
85
|
homepage: https://github.com/cryptocopycats/kittyverse
|
83
86
|
licenses:
|