mtg_sdk 2.1.0 → 2.2.0
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58ac9e884904a0cbb6837c82f989047ad8c01808
|
4
|
+
data.tar.gz: 3c1bceb5780ef447a84acdf2971f3ed7ec03c341
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ec727b715c2bbdeeb671e0a48f9f30ec72b853a98dce5a21276df212502ebe4573577bdabbadd46a13752d51dfa7588deb3e66e55e0595156b2fb9a81865a4b
|
7
|
+
data.tar.gz: ea927ed3492441da03c7e891671bb82ec52eb5d3ba2b07e0745626b4dd5ab39d4ce210e1f21aa2b722ee7a270ca9396217914d5238419dd47fc86e42b976fa1c
|
data/lib/mtg_sdk/card.rb
CHANGED
@@ -9,7 +9,7 @@ module MTG
|
|
9
9
|
:rarity, :text, :flavor, :artist, :number, :power, :toughness, :loyalty, :multiverse_id, :variations,
|
10
10
|
:watermark, :border, :timeshifted, :hand, :life, :reserved, :release_date, :starter,
|
11
11
|
:rulings, :foreign_names, :printings, :original_text, :original_type, :legalities,
|
12
|
-
:source, :image_url, :set, :id
|
12
|
+
:source, :image_url, :set, :id, :set_name
|
13
13
|
|
14
14
|
# Get the resource string
|
15
15
|
#
|
data/lib/mtg_sdk/foreign_name.rb
CHANGED
data/lib/mtg_sdk/version.rb
CHANGED
data/test/card_test.rb
CHANGED
@@ -15,6 +15,7 @@ class CardTest < Minitest::Test
|
|
15
15
|
assert card.subtypes.any?{|subtype| subtype == 'Arcane'}
|
16
16
|
assert_equal 'Rare', card.rarity
|
17
17
|
assert_equal 'SOK', card.set
|
18
|
+
assert_equal 'Saviors of Kamigawa', card.set_name
|
18
19
|
assert_equal "Target opponent chooses a number. You may have that player lose that much life. If you don't, that player sacrifices all but that many permanents.", card.text
|
19
20
|
assert_equal "\"Life is a series of choices between bad and worse.\"\n—Toshiro Umezawa", card.flavor
|
20
21
|
assert_equal 'Tim Hildebrandt', card.artist
|
@@ -23,7 +24,7 @@ class CardTest < Minitest::Test
|
|
23
24
|
assert_equal 88803, card.multiverse_id
|
24
25
|
assert_equal 'http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=88803&type=card', card.image_url
|
25
26
|
assert card.rulings.any?{|ruling| ruling.date == Date.parse('2005-06-01')}
|
26
|
-
assert card.foreign_names.any?{|foreign_name| foreign_name.name == '破灭抉择'}
|
27
|
+
assert card.foreign_names.any?{|foreign_name| foreign_name.name == '破灭抉择' && foreign_name.image_url == 'http://gatherer.wizards.com/Handlers/Image.ashx?multiverseid=104898&type=card'}
|
27
28
|
assert card.printings.any?{|printing| printing == 'SOK'}
|
28
29
|
assert_equal "Target opponent chooses a number. You may have that player lose that much life. If you don't, that player sacrifices all but that many permanents.", card.original_text
|
29
30
|
assert_equal 'Sorcery — Arcane', card.original_type
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mtg_sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Backes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|