teyvatdb 0.5.2 → 0.5.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 505df3d9e76aab71dab15c97961b46e277fcb64cf5879332646f5b3964470cc1
4
- data.tar.gz: fb65e538715290248f79214dfa6b41e8e12b6c1881c442efafed0c6bca4238fa
3
+ metadata.gz: b8c33185613834c1b545c00e5cb1e8166e152b52ba75733ea15d1a4c87a88c78
4
+ data.tar.gz: e13615d863da1630e3e016594c16d69dfaa2ba63989dcf60fd631e803b8601e6
5
5
  SHA512:
6
- metadata.gz: dea07d153744b8265ff9899f6ee8bdbe0f4a9b6f29a5f8038d14525a8a8514836d1ef87345a7144a8f0705640664a0baec74ff5964cad511c6351cd003209083
7
- data.tar.gz: 553879d3025902ffd17e13fc69f7a83e80943229e9683d8f5fcd5db5edb15f8d6a7829a20de76328092a1a2e26f3bcb645175853795753a546e3cc597459193f
6
+ metadata.gz: 6de94298035344b69af7cdbd13060f90dad2db80470bc37b6ba46f58640dd56045f2d1ac262b73a0e559dcdd50c17f1e67466af6b3436b6d9655d4c5d1e34537
7
+ data.tar.gz: 419cb7d7b0fca8fda9814976fd6661408e0ce265a13221791023f228ce9b26b102c332e5b06dfeaae720bf4c14f39684a0ad3932fde648871901327bbf9686c0
data/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
- ## [0.5.2] - 2024-11-13
1
+ ## [0.5.2.2] - 2024-11-23
2
+ - Add missing talent books
3
+ - Add better test coverage to catch missing materials and errors in talent books
4
+
5
+ ## [0.5.2.1] - 2024-11-23
6
+ - Fix typo in Sword key
7
+ - Add better test coverage to catche incorrect names and keys
8
+
9
+ ## [0.5.2] - 2024-11-23
2
10
  - Add Characters:
3
11
  - Chasca (5)
4
12
  - Ororon (4)
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.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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",
@@ -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
@@ -60,7 +60,7 @@ module GenshinData
60
60
  ).freeze
61
61
 
62
62
  CALAMITY_OF_ESHU = GenshinObject::Weapon.new(
63
- kamera_key: "Calamity of Eshu",
63
+ kamera_key: "CalamityOfEshu",
64
64
  name: "Calamity of Eshu",
65
65
  rarity: 4,
66
66
  weapon_type: :sword,
@@ -2,6 +2,9 @@
2
2
 
3
3
  # Module that handles higher constants and base classes and behavior
4
4
  module GenshinObject
5
+ KAMERA_KEY_REGEX = /\A[A-Za-z]+\z/
6
+ NAME_REGEX = /\A[A-Za-z\'\-\.\",\s]+\z/
7
+
5
8
  require_relative "genshin_object/artifact_set"
6
9
  require_relative "genshin_object/artifact_set_bonus"
7
10
  require_relative "genshin_object/boss"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TeyvatDB
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teyvatdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Haberer