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 +4 -4
- data/README.md +1 -0
- data/Rakefile +2 -2
- data/lib/pokemon_tcg_sdk/card.rb +2 -1
- data/lib/pokemon_tcg_sdk/tcgplayer.rb +3 -1
- data/lib/pokemon_tcg_sdk/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c61f1b5ef5d8083b7915ca9d64e14e754fef3598bd1d58e3d5f4a4727f352b1
|
4
|
+
data.tar.gz: fdcb08c10a6c550ed4cc616871e2d9ab6b0122cbd5e8c301aa5c99eee2ce1685
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10315159ee4ff57a3f967732f35d6f0ed86e02cd4ef5c87fdd76b3523b6bac6095d8d6cdb1b6662072621187cb79476e7a337b895a9e097ef646f85e74777316
|
7
|
+
data.tar.gz: 90335d1a500062cb5961cdfa0758ded340909648de8e3ff2c2c88331ca0d32c1b8aba2a18213db02bd53aea1a7f8980f0a56a210eb722cbf0237c89beaccd274
|
data/README.md
CHANGED
data/Rakefile
CHANGED
data/lib/pokemon_tcg_sdk/card.rb
CHANGED
@@ -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
|
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.
|
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:
|
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.
|
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
|