pokemon_tcg_sdk 4.3.0 → 4.5.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
  SHA256:
3
- metadata.gz: aab3c78852df990809caa512be8d861807b375ae8f5095315fc59f95ffed902b
4
- data.tar.gz: 44c3ceff997cbe4ea9c1fa790824bd799723e1ecccf054ae3d7f3906a8946de2
3
+ metadata.gz: 7c61f1b5ef5d8083b7915ca9d64e14e754fef3598bd1d58e3d5f4a4727f352b1
4
+ data.tar.gz: fdcb08c10a6c550ed4cc616871e2d9ab6b0122cbd5e8c301aa5c99eee2ce1685
5
5
  SHA512:
6
- metadata.gz: 81d54bc9ab6487ad9d0a2289c0dadc020dafd587e1f35f7a980931f24064e48a3e525f4e15af63c1b381f5201e6cb58ca35acd1e219cc3ef9e5341a65ebe857a
7
- data.tar.gz: c63fd7383e56cc26021a30b26c8392b93aab405262d632701bad62a6bda1ea0e6280fb966c0e55021768f552b524189b0a1d19c4c0951421d930cd5f3ac6e972
6
+ metadata.gz: 10315159ee4ff57a3f967732f35d6f0ed86e02cd4ef5c87fdd76b3523b6bac6095d8d6cdb1b6662072621187cb79476e7a337b895a9e097ef646f85e74777316
7
+ data.tar.gz: 90335d1a500062cb5961cdfa0758ded340909648de8e3ff2c2c88331ca0d32c1b8aba2a18213db02bd53aea1a7f8980f0a56a210eb722cbf0237c89beaccd274
data/README.md CHANGED
@@ -73,6 +73,7 @@ To configure your API Key:
73
73
  rarity
74
74
  national_pokedex_numbers
75
75
  legalities
76
+ regulation_mark
76
77
  tcgplayer
77
78
  cardmarket
78
79
  images
data/Rakefile CHANGED
@@ -16,6 +16,6 @@ Pokemon.configure do |config|
16
16
  end
17
17
 
18
18
  task :card do
19
- card = Pokemon::Card.find('xy1-1')
20
- puts card.tcgplayer.updated_at
19
+ card = Pokemon::Card.find('base2-17')
20
+ puts card.tcgplayer.prices.first_edition.market
21
21
  end
@@ -4,7 +4,7 @@ module Pokemon
4
4
  class Card
5
5
  attr_accessor :id, :name, :supertype, :subtypes, :level, :hp, :types, :evolves_from, :evolves_to, :rules, :ancient_trait,
6
6
  :abilities, :attacks, :weaknesses, :resistances, :retreat_cost, :converted_retreat_cost, :set, :number, :artist, :rarity, :national_pokedex_numbers,
7
- :legalities, :tcgplayer, :images, :flavor_text, :cardmarket
7
+ :legalities, :regulation_mark, :tcgplayer, :images, :flavor_text, :cardmarket
8
8
 
9
9
  def self.from_json(json)
10
10
  card = Card.new
@@ -32,6 +32,7 @@ module Pokemon
32
32
  card.flavor_text = json['flavorText']
33
33
  card.national_pokedex_numbers = json['nationalPokedexNumbers']
34
34
  card.legalities = Legalities.from_json(json['legalities']) if !json['legalities'].nil?
35
+ card.regulation_mark = json['regulationMark']
35
36
  card.tcgplayer = Tcgplayer.from_json(json['tcgplayer']) if !json['tcgplayer'].nil?
36
37
  card.cardmarket = Cardmarket.from_json(json['cardmarket']) if !json['cardmarket'].nil?
37
38
  card.images = CardImages.from_json(json['images']) if !json['images'].nil?
@@ -13,7 +13,7 @@ module Pokemon
13
13
  end
14
14
 
15
15
  class TcgPlayerPrices
16
- attr_accessor :normal, :holofoil, :reverse_holofoil, :first_edition_holofoil, :first_edition_normal
16
+ attr_accessor :normal, :holofoil, :reverse_holofoil, :first_edition_holofoil, :first_edition_normal, :first_edition, :unlimited
17
17
 
18
18
  def self.from_json(json)
19
19
  price = TcgPlayerPrices.new
@@ -22,6 +22,8 @@ module Pokemon
22
22
  price.reverse_holofoil = TcgPlayerPriceValues.from_json(json['reverseHolofoil']) if !json['reverseHolofoil'].nil?
23
23
  price.first_edition_holofoil = TcgPlayerPriceValues.from_json(json['1stEditionHolofoil']) if !json['1stEditionHolofoil'].nil?
24
24
  price.first_edition_normal = TcgPlayerPriceValues.from_json(json['1stEditionNormal']) if !json['1stEditionNormal'].nil?
25
+ price.first_edition = TcgPlayerPriceValues.from_json(json['1stEdition']) if !json['1stEdition'].nil?
26
+ price.unlimited = TcgPlayerPriceValues.from_json(json['unlimited']) if !json['unlimited'].nil?
25
27
 
26
28
  price
27
29
  end
@@ -1,3 +1,3 @@
1
1
  module Pokemon
2
- VERSION = "4.3.0"
2
+ VERSION = "4.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pokemon_tcg_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Backes
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-05 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -220,7 +220,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
220
220
  - !ruby/object:Gem::Version
221
221
  version: '0'
222
222
  requirements: []
223
- rubygems_version: 3.1.4
223
+ rubygems_version: 3.2.22
224
224
  signing_key:
225
225
  specification_version: 4
226
226
  summary: Pokémon TCG SDK for pokemontcg.io