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: 647e831c0040a72c6920692a1e84dd966c8038e5
4
- data.tar.gz: b3fc13a158b5b4e36289589d2b45d95245cf15ba
3
+ metadata.gz: 58ac9e884904a0cbb6837c82f989047ad8c01808
4
+ data.tar.gz: 3c1bceb5780ef447a84acdf2971f3ed7ec03c341
5
5
  SHA512:
6
- metadata.gz: cae18cf424f76396c69dceaee645c85f897049a47ab53b294a4d5027ec89725c0f7720f071099b785d962106765e86c2aa23c1e48b8447dd067138b0996dc52a
7
- data.tar.gz: 96187c3bff6ccce42e67d740852b114abbe481490967d0eceaf6e5a65a75dcddc74e94549484a7674f929db1fbe9843e3ea520ee2535726e3ac8700430f95a54
6
+ metadata.gz: 3ec727b715c2bbdeeb671e0a48f9f30ec72b853a98dce5a21276df212502ebe4573577bdabbadd46a13752d51dfa7588deb3e66e55e0595156b2fb9a81865a4b
7
+ data.tar.gz: ea927ed3492441da03c7e891671bb82ec52eb5d3ba2b07e0745626b4dd5ab39d4ce210e1f21aa2b722ee7a270ca9396217914d5238419dd47fc86e42b976fa1c
@@ -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
  #
@@ -5,6 +5,6 @@ module MTG
5
5
  include Roar::JSON
6
6
  include LegalityRepresenter
7
7
 
8
- attr_accessor :language, :name, :multiverse_id
8
+ attr_accessor :language, :name, :multiverse_id, :image_url
9
9
  end
10
10
  end
@@ -38,6 +38,7 @@ module MTG
38
38
  property :original_type, as: :originalType
39
39
  property :source
40
40
  property :set
41
+ property :set_name, as: :setName
41
42
  property :id
42
43
  property :image_url, as: :imageUrl
43
44
 
@@ -7,5 +7,6 @@ module MTG
7
7
  property :name
8
8
  property :language
9
9
  property :multiverse_id, as: :multiverseid
10
+ property :image_url, as: :imageUrl
10
11
  end
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module MTG
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.0"
3
3
  end
@@ -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.1.0
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-21 00:00:00.000000000 Z
11
+ date: 2016-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler