mtg-db 0.0.1 → 0.0.2
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.
- data/lib/mtg-db.rb +3 -3
- metadata +1 -1
data/lib/mtg-db.rb
CHANGED
|
@@ -2,17 +2,17 @@ require 'json'
|
|
|
2
2
|
|
|
3
3
|
module Mtg
|
|
4
4
|
module Db
|
|
5
|
-
VERSION = '0.0.
|
|
5
|
+
VERSION = '0.0.2'
|
|
6
6
|
|
|
7
7
|
class << self
|
|
8
8
|
def cards(reload=false)
|
|
9
9
|
@cards = nil if reload
|
|
10
|
-
@cards ||= load_json File.expand_path('cards.json',
|
|
10
|
+
@cards ||= load_json File.expand_path('../../data/cards.json', __FILE__)
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
def sets(reload=false)
|
|
14
14
|
@sets = nil if reload
|
|
15
|
-
@sets ||= load_json File.expand_path('sets.json',
|
|
15
|
+
@sets ||= load_json File.expand_path('../../data/sets.json', __FILE__)
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
private
|