teyvatdb 0.5.2.1 → 0.5.2.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94c854a4531c4fb0a7046731527bcdcc49f9e027956f93b3cda70293442a5983
4
- data.tar.gz: 42e7d7cdb1605538eedd9da531fc21ca482ecbd33f28564efd43841ae97b24e7
3
+ metadata.gz: 45a1a0364baeb5f0f027775e21c35368ff4d25b25c9503c80b0f0675871f4ee6
4
+ data.tar.gz: 8dc5df5571099bf2c312814db449d5bfad879230e4f5e1e2edb81305b8ac5499
5
5
  SHA512:
6
- metadata.gz: 02fcffed9bb3041caab9565dd5b8e288fa19b57897702c8049da86711eaaad9ec804434cf559fb9f39a284ce293fe97973be58794df39ff5a01dadb30ba8128b
7
- data.tar.gz: 2ed84222589b803d9334a74d21acc0e5518d811d57298c6193980d7e8f26b602fd9b2ca54b13c852c35f0cd89df255c3aa7e69635c415efd07fea81feddbf777
6
+ metadata.gz: 01f8fdf655ca62eeac1d85bbdbc7dfd5c0efa7501bcf283c133fc13a816b37984d83f012171fa9403e6b2625609d014405eec857046f3d60c08a88bdcd4b6c62
7
+ data.tar.gz: 0accee78f673f913540cafa6de5adbffbe7a4a4212bd9c64d6ea367c1be8f7ec6b89606bcb2750b3c4f5c6881ad9a03b30d41fa4c611832963fa2e4302289989
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [0.5.2.2] - 2024-11-23
2
+ - Fix typo in material
3
+ - Add missing cooking and gathering materials
4
+ - Add better test coverage to catch materials with bad names and keys
5
+
6
+ ## [0.5.2.2] - 2024-11-23
7
+ - Add missing talent books
8
+ - Add better test coverage to catch missing materials and errors in talent books
9
+
1
10
  ## [0.5.2.1] - 2024-11-23
2
11
  - Fix typo in Sword key
3
12
  - Add better test coverage to catche incorrect names and keys
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- teyvatdb (0.5.2)
4
+ teyvatdb (0.5.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -703,7 +703,7 @@ module GenshinData
703
703
  ).freeze
704
704
 
705
705
  SHEATH_OF_THE_SECRET_SOURCE = GenshinObject::Material.new(
706
- kamera_key: "SheathOfTheSecretSource ",
706
+ kamera_key: "SheathOfTheSecretSource",
707
707
  name: "Sheath of the Secret Source ",
708
708
  rarity: 2,
709
709
  family: :secret_source,
@@ -99,6 +99,16 @@ module GenshinData
99
99
  source_sub_category: nil
100
100
  ).freeze
101
101
 
102
+ WANDERERS_ADVICE = GenshinObject::Material.new(
103
+ kamera_key: "TheCornerstoneOfStarsAndFlames",
104
+ name: "The Cornerstone of Stars and Flames",
105
+ rarity: 5,
106
+ family: nil,
107
+ inventory_type: :development_material,
108
+ source_category: :general_reward,
109
+ source_sub_category: nil
110
+ ).freeze
111
+
102
112
  WANDERERS_ADVICE = GenshinObject::Material.new(
103
113
  kamera_key: "WanderersAdvice",
104
114
  name: "Wanderers Advice",
@@ -42,6 +42,28 @@ module GenshinData
42
42
  nation_name: :liyue
43
43
  ).freeze
44
44
 
45
+ GUIDE_TO_CONFLICT = GenshinObject::Material.new(
46
+ kamera_key: "GuideToConflict",
47
+ name: "Guide to Conflict",
48
+ rarity: 3,
49
+ family: :conflict,
50
+ inventory_type: :development_material,
51
+ source_category: :talent_book,
52
+ source_sub_category: nil,
53
+ nation_name: :natlan
54
+ ).freeze
55
+
56
+ GUIDE_TO_CONTENTION = GenshinObject::Material.new(
57
+ kamera_key: "GuideToContention",
58
+ name: "Guide to Contention",
59
+ rarity: 3,
60
+ family: :contention,
61
+ inventory_type: :development_material,
62
+ source_category: :talent_book,
63
+ source_sub_category: nil,
64
+ nation_name: :natlan
65
+ ).freeze
66
+
45
67
  GUIDE_TO_ELEGANCE = GenshinObject::Material.new(
46
68
  kamera_key: "GuideToElegance",
47
69
  name: "Guide to Elegance",
@@ -108,6 +130,17 @@ module GenshinData
108
130
  nation_name: :fontaine
109
131
  ).freeze
110
132
 
133
+ GUIDE_TO_KINDLING = GenshinObject::Material.new(
134
+ kamera_key: "GuideToKindling",
135
+ name: "Guide to Kindling",
136
+ rarity: 3,
137
+ family: :kindling,
138
+ inventory_type: :development_material,
139
+ source_category: :talent_book,
140
+ source_sub_category: nil,
141
+ nation_name: :natlan
142
+ ).freeze
143
+
111
144
  GUIDE_TO_LIGHT = GenshinObject::Material.new(
112
145
  kamera_key: "GuideToLight",
113
146
  name: "Guide to Light",
@@ -196,6 +229,28 @@ module GenshinData
196
229
  nation_name: :mondstadt
197
230
  ).freeze
198
231
 
232
+ PHILOSOPHIES_OF_CONFLICT = GenshinObject::Material.new(
233
+ kamera_key: "PhilosophiesOfConflict",
234
+ name: "Philosophies of Conflict",
235
+ rarity: 4,
236
+ family: :conflict,
237
+ inventory_type: :development_material,
238
+ source_category: :talent_book,
239
+ source_sub_category: nil,
240
+ nation_name: :natlan
241
+ ).freeze
242
+
243
+ PHILOSOPHIES_OF_CONTENTION = GenshinObject::Material.new(
244
+ kamera_key: "PhilosophiesOfContention",
245
+ name: "Philosophies of Contention",
246
+ rarity: 4,
247
+ family: :contention,
248
+ inventory_type: :development_material,
249
+ source_category: :talent_book,
250
+ source_sub_category: nil,
251
+ nation_name: :natlan
252
+ ).freeze
253
+
199
254
  PHILOSOPHIES_OF_DILIGENCE = GenshinObject::Material.new(
200
255
  kamera_key: "PhilosophiesOfDiligence",
201
256
  name: "Philosophies of Diligence",
@@ -273,6 +328,17 @@ module GenshinData
273
328
  nation_name: :fontaine
274
329
  ).freeze
275
330
 
331
+ PHILOSOPHIES_OF_KINDLING = GenshinObject::Material.new(
332
+ kamera_key: "PhilosophiesOfKindling",
333
+ name: "Philosophies of Kindling",
334
+ rarity: 4,
335
+ family: :kindling,
336
+ inventory_type: :development_material,
337
+ source_category: :talent_book,
338
+ source_sub_category: nil,
339
+ nation_name: :natlan
340
+ ).freeze
341
+
276
342
  PHILOSOPHIES_OF_LIGHT = GenshinObject::Material.new(
277
343
  kamera_key: "PhilosophiesOfLight",
278
344
  name: "Philosophies of Light",
@@ -361,6 +427,28 @@ module GenshinData
361
427
  nation_name: :mondstadt
362
428
  ).freeze
363
429
 
430
+ TEACHINGS_OF_CONFLICT = GenshinObject::Material.new(
431
+ kamera_key: "TeachingsOfConflict",
432
+ name: "Teachings of Conflict",
433
+ rarity: 2,
434
+ family: :conflict,
435
+ inventory_type: :development_material,
436
+ source_category: :talent_book,
437
+ source_sub_category: nil,
438
+ nation_name: :natlan
439
+ ).freeze
440
+
441
+ TEACHINGS_OF_CONTENTION = GenshinObject::Material.new(
442
+ kamera_key: "TeachingsOfContention",
443
+ name: "Teachings of Contention",
444
+ rarity: 2,
445
+ family: :contention,
446
+ inventory_type: :development_material,
447
+ source_category: :talent_book,
448
+ source_sub_category: nil,
449
+ nation_name: :natlan
450
+ ).freeze
451
+
364
452
  TEACHINGS_OF_DILIGENCE = GenshinObject::Material.new(
365
453
  kamera_key: "TeachingsOfDiligence",
366
454
  name: "Teachings of Diligence",
@@ -438,6 +526,17 @@ module GenshinData
438
526
  nation_name: :fontaine
439
527
  ).freeze
440
528
 
529
+ TEACHINGS_OF_KINDLING = GenshinObject::Material.new(
530
+ kamera_key: "TeachingsOfKindling",
531
+ name: "Teachings of Kindling",
532
+ rarity: 2,
533
+ family: :kindling,
534
+ inventory_type: :development_material,
535
+ source_category: :talent_book,
536
+ source_sub_category: nil,
537
+ nation_name: :natlan
538
+ ).freeze
539
+
441
540
  TEACHINGS_OF_LIGHT = GenshinObject::Material.new(
442
541
  kamera_key: "TeachingsOfLight",
443
542
  name: "Teachings of Light",
@@ -99,6 +99,16 @@ module GenshinData
99
99
  source_sub_category: :cooking
100
100
  ).freeze
101
101
 
102
+ CACAHUATL = GenshinObject::Material.new(
103
+ kamera_key: "Cacahuatl",
104
+ name: "Cacahuatl",
105
+ rarity: 1,
106
+ family: nil,
107
+ inventory_type: :standard_material,
108
+ source_category: :gathering,
109
+ source_sub_category: :cooking
110
+ ).freeze
111
+
102
112
  CARROT = GenshinObject::Material.new(
103
113
  kamera_key: "Carrot",
104
114
  name: "Carrot",
@@ -189,6 +199,16 @@ module GenshinData
189
199
  source_sub_category: :cooking
190
200
  ).freeze
191
201
 
202
+ EMBERCORE_FLOWER = GenshinObject::Material.new(
203
+ kamera_key: "EmbercoreFlower",
204
+ name: "Embercore Flower",
205
+ rarity: 1,
206
+ family: nil,
207
+ inventory_type: :standard_material,
208
+ source_category: :gathering,
209
+ source_sub_category: :cooking
210
+ ).freeze
211
+
192
212
  FERMENTED_JUICE = GenshinObject::Material.new(
193
213
  kamera_key: "FermentedJuice",
194
214
  name: "Fermented Juice",
@@ -239,6 +259,16 @@ module GenshinData
239
259
  source_sub_category: :cooking
240
260
  ).freeze
241
261
 
262
+ GRAINFRUIT = GenshinObject::Material.new(
263
+ kamera_key: "Grainfruit",
264
+ name: "Grainfruit",
265
+ rarity: 1,
266
+ family: nil,
267
+ inventory_type: :standard_material,
268
+ source_category: :gathering,
269
+ source_sub_category: :cooking
270
+ ).freeze
271
+
242
272
  HAM = GenshinObject::Material.new(
243
273
  kamera_key: "Ham",
244
274
  name: "Ham",
@@ -469,6 +499,16 @@ module GenshinData
469
499
  source_sub_category: :cooking
470
500
  ).freeze
471
501
 
502
+ SPINAL_FRUIT = GenshinObject::Material.new(
503
+ kamera_key: "SpinalFruit",
504
+ name: "Spinal Fruit",
505
+ rarity: 1,
506
+ family: nil,
507
+ inventory_type: :standard_material,
508
+ source_category: :cooking,
509
+ source_sub_category: :cooking
510
+ ).freeze
511
+
472
512
  SHRIMP_MEAT = GenshinObject::Material.new(
473
513
  kamera_key: "ShrimpMeat",
474
514
  name: "Shrimp Meat",
@@ -19,6 +19,56 @@ module GenshinData
19
19
  source_sub_category: :forging_material
20
20
  ).freeze
21
21
 
22
+ BORDERLAND_BOW_BILLET = GenshinObject::Material.new(
23
+ kamera_key: "BorderlandBowBillet",
24
+ name: "Borderland Bow Billet",
25
+ rarity: 4,
26
+ family: nil,
27
+ inventory_type: :development_material,
28
+ source_category: :boss_loot,
29
+ source_sub_category: :forging_material
30
+ ).freeze
31
+
32
+ BORDERLAND_CATALYST_BILLET = GenshinObject::Material.new(
33
+ kamera_key: "BorderlandCatalystBillet",
34
+ name: "Borderland Cataylst Billet",
35
+ rarity: 4,
36
+ family: nil,
37
+ inventory_type: :development_material,
38
+ source_category: :boss_loot,
39
+ source_sub_category: :forging_material
40
+ ).freeze
41
+
42
+ BORDERLAND_CLAYMORE_BILLET = GenshinObject::Material.new(
43
+ kamera_key: "BorderlandClaymoreBillet",
44
+ name: "Borderland Claymore Billet",
45
+ rarity: 4,
46
+ family: nil,
47
+ inventory_type: :development_material,
48
+ source_category: :boss_loot,
49
+ source_sub_category: :forging_material
50
+ ).freeze
51
+
52
+ BORDERLAND_SWORD_BILLET = GenshinObject::Material.new(
53
+ kamera_key: "BorderlandSwordBillet",
54
+ name: "Borderland Sword Billet",
55
+ rarity: 4,
56
+ family: nil,
57
+ inventory_type: :development_material,
58
+ source_category: :boss_loot,
59
+ source_sub_category: :forging_material
60
+ ).freeze
61
+
62
+ BORDERLAND_POLEARM_BILLET = GenshinObject::Material.new(
63
+ kamera_key: "BorderlandPolearmBillet",
64
+ name: "Borderland Polearm Billet",
65
+ rarity: 4,
66
+ family: nil,
67
+ inventory_type: :development_material,
68
+ source_category: :boss_loot,
69
+ source_sub_category: :forging_material
70
+ ).freeze
71
+
22
72
  CONDESSENCE_CRYSTAL = GenshinObject::Material.new(
23
73
  kamera_key: "CondessenceCrystal",
24
74
  name: "Condessence Crystal",
@@ -129,6 +129,16 @@ module GenshinData
129
129
  source_sub_category: :furniture_material
130
130
  ).freeze
131
131
 
132
+ FLAMMABOMB_WOOD = GenshinObject::Material.new(
133
+ kamera_key: "FlammabombWood",
134
+ name: "Flammabomb Wood",
135
+ rarity: 1,
136
+ family: nil,
137
+ inventory_type: :standard_material,
138
+ source_category: :gathering,
139
+ source_sub_category: :furniture_material
140
+ ).freeze
141
+
132
142
  FRAGRANT_CEDAR_WOOD = GenshinObject::Material.new(
133
143
  kamera_key: "FragrantCedarWood",
134
144
  name: "Fragrant Cedar Wood",
@@ -229,6 +239,16 @@ module GenshinData
229
239
  source_sub_category: :furniture_material
230
240
  ).freeze
231
241
 
242
+ WHITE_CHESTNUT_OAK_WOOD = GenshinObject::Material.new(
243
+ kamera_key: "WhiteChestnutOakWood",
244
+ name: "White Chestnut Oak Wood",
245
+ rarity: 1,
246
+ family: nil,
247
+ inventory_type: :standard_material,
248
+ source_category: :gathering,
249
+ source_sub_category: :furniture_material
250
+ ).freeze
251
+
232
252
  YELLOW_DYE = GenshinObject::Material.new(
233
253
  kamera_key: "YellowDye",
234
254
  name: "Yellow Dye",
@@ -18,6 +18,10 @@ module GenshinData
18
18
  def for_kamera_key(key)
19
19
  all.select { |m| m.kamera_key == key }
20
20
  end
21
+
22
+ def for_name(name)
23
+ all.select { |m| m.name == name }
24
+ end
21
25
  end
22
26
  end
23
27
  end
@@ -154,7 +154,7 @@ module GenshinData
154
154
 
155
155
  RESISTANCE = GenshinObject::TalentBook.new(
156
156
  family: :resistance,
157
- name: "resistance",
157
+ name: "Resistance",
158
158
  nation_name: :mondstadt,
159
159
  schedule: GenshinObject::Schedule.new(
160
160
  tues_fri: true
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TeyvatDB
4
- VERSION = "0.5.2.1"
4
+ VERSION = "0.5.2.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teyvatdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2.1
4
+ version: 0.5.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Haberer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-23 00:00:00.000000000 Z
11
+ date: 2024-11-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Gem to provide basic genshin data to my other projects
14
14
  email: