manasimu 0.0.39 → 0.0.40

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: 9fe16394f29a9190d502c063076bc1a08d9da2880409d4572472347f1f79a1b0
4
- data.tar.gz: 4eae481a2d2e126e524c09b0dd4d5792a5457e7975a60497a46cdae0b71bcff5
3
+ metadata.gz: 4971c6f84870e3dff73f97d1249eab9b88951d2b02fa1a32f80eea3bc529a99f
4
+ data.tar.gz: 59e2053f448d051759d993ab3ba8fcfc96f10b1a2f1ecca349e3c081957370ec
5
5
  SHA512:
6
- metadata.gz: d36c4c95f78a000af39fb4148ec907c93452edbc8485fa6eb6e11850d6399b6a0cd5260fda29f0627d58120e7061fcaa6e75230faeaa394b67aa7f640602a8ec
7
- data.tar.gz: 6ac1e7f68d71f26df69088afc0659fa5f712b528b2ad0d99925159bf7a46c13048c69a587e3a01799bea7f7ca9a3d12d8890b9f2863760d5e0ff36035a4d7b54
6
+ metadata.gz: 9a31f10aea5c4bade06758a9fef064735c948df0bb18338ebc0353314fdc1fb7801d0fc475181e88524f43a22bf3c1ca802a0961a56a6bf110b756fcd263910b
7
+ data.tar.gz: 75600c76d69e066ea481b346aef33d486bdd9aa71146986b073c4864cee6902c854d92b379e262db5dec8958e537fa173efbab46fe83e7a41f015c7666fc0697
Binary file
data/lib/manasimu/data.rb CHANGED
@@ -87,7 +87,11 @@ class Deck
87
87
 
88
88
  def self.card_types
89
89
  path = File.expand_path( '../../../db/card_type_aggregate', __FILE__ )
90
- @@card_types ||= Marshal.load(File.open(path, 'r'))
90
+ if (File.exists?(path))
91
+ @@card_types ||= Marshal.load(File.open(path, 'r'))
92
+ else
93
+ @@card_types = CardTypeAggregate.new
94
+ end
91
95
  end
92
96
 
93
97
  def self.find_card_types(lines)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manasimu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.39
4
+ version: 0.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - so1itaryrove