mtg-db 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/mtg-db.rb +3 -3
  2. 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.1'
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', 'data')
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', 'data')
15
+ @sets ||= load_json File.expand_path('../../data/sets.json', __FILE__)
16
16
  end
17
17
 
18
18
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mtg-db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: