pokemon_tcg_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 +4 -4
- data/README.md +8 -0
- data/lib/pokemon_tcg_sdk/ancient_trait.rb +10 -0
- data/lib/pokemon_tcg_sdk/card.rb +1 -1
- data/lib/pokemon_tcg_sdk/representers/ancient_trait_representer.rb +10 -0
- data/lib/pokemon_tcg_sdk/representers/card_representer.rb +3 -0
- data/lib/pokemon_tcg_sdk/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6da3ad547ae0dd7b495ab303a1946d4e124181a9
|
4
|
+
data.tar.gz: 3dd84afa156e26d3b27f684d41522f134233ed9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ac39c73470b653a96ba73293103961a25684f31906084bbc7c68a44c2389f99b24e26ed3c8a52825a8abc50f0aed1ccf73931fb0d686af1aba6a69c643d2ad2
|
7
|
+
data.tar.gz: 18fd85d70436f5f5e84beb010a688c630ab53b559362aa45f19f9892a92328ecbce551fb5453e4d816d710853c1ed10b12225f20b1cf9fd3153873a860e8e17d
|
data/README.md
CHANGED
@@ -38,6 +38,7 @@ To change the API version (currently defaults to version 1)
|
|
38
38
|
Supertype
|
39
39
|
Subtype
|
40
40
|
Ability
|
41
|
+
AncientTrait
|
41
42
|
Attack
|
42
43
|
TypeValue
|
43
44
|
|
@@ -47,10 +48,12 @@ To change the API version (currently defaults to version 1)
|
|
47
48
|
|
48
49
|
id
|
49
50
|
name
|
51
|
+
national_pokedex_number
|
50
52
|
image_url
|
51
53
|
subtype
|
52
54
|
supertype
|
53
55
|
ability
|
56
|
+
ancient_trait
|
54
57
|
hp
|
55
58
|
number
|
56
59
|
artist
|
@@ -79,6 +82,11 @@ To change the API version (currently defaults to version 1)
|
|
79
82
|
name
|
80
83
|
text
|
81
84
|
|
85
|
+
#### AncientTrait
|
86
|
+
|
87
|
+
name
|
88
|
+
text
|
89
|
+
|
82
90
|
#### Attack
|
83
91
|
|
84
92
|
cost
|
data/lib/pokemon_tcg_sdk/card.rb
CHANGED
@@ -8,7 +8,7 @@ module Pokemon
|
|
8
8
|
attr_accessor :id, :name, :image_url, :subtype, :supertype, :ability,
|
9
9
|
:hp, :number, :artist, :rarity, :series, :set, :set_code,
|
10
10
|
:retreat_cost, :text, :types, :attacks, :weaknesses, :resistances,
|
11
|
-
:national_pokedex_number
|
11
|
+
:national_pokedex_number, :ancient_trait
|
12
12
|
|
13
13
|
# Get the resource string
|
14
14
|
#
|
@@ -2,9 +2,11 @@ require 'roar/json'
|
|
2
2
|
require_relative 'attack_representer'
|
3
3
|
require_relative 'type_value_representer'
|
4
4
|
require_relative 'ability_representer'
|
5
|
+
require_relative 'ancient_trait_representer'
|
5
6
|
require_relative '../attack'
|
6
7
|
require_relative '../type_value'
|
7
8
|
require_relative '../ability'
|
9
|
+
require_relative '../ancient_trait'
|
8
10
|
|
9
11
|
module Pokemon
|
10
12
|
module CardRepresenter
|
@@ -16,6 +18,7 @@ module Pokemon
|
|
16
18
|
property :subtype
|
17
19
|
property :supertype
|
18
20
|
property :ability, extend: AbilityRepresenter, class: Ability
|
21
|
+
property :ancient_trait, as: :ancientTrait, extend: AncientTraitRepresenter, class: AncientTrait
|
19
22
|
property :hp
|
20
23
|
property :number
|
21
24
|
property :artist
|
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: 2.
|
4
|
+
version: 2.2.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: 2016-
|
11
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -208,11 +208,13 @@ files:
|
|
208
208
|
- Rakefile
|
209
209
|
- lib/pokemon_tcg_sdk.rb
|
210
210
|
- lib/pokemon_tcg_sdk/ability.rb
|
211
|
+
- lib/pokemon_tcg_sdk/ancient_trait.rb
|
211
212
|
- lib/pokemon_tcg_sdk/attack.rb
|
212
213
|
- lib/pokemon_tcg_sdk/card.rb
|
213
214
|
- lib/pokemon_tcg_sdk/configuration.rb
|
214
215
|
- lib/pokemon_tcg_sdk/query_builder.rb
|
215
216
|
- lib/pokemon_tcg_sdk/representers/ability_representer.rb
|
217
|
+
- lib/pokemon_tcg_sdk/representers/ancient_trait_representer.rb
|
216
218
|
- lib/pokemon_tcg_sdk/representers/attack_representer.rb
|
217
219
|
- lib/pokemon_tcg_sdk/representers/card_representer.rb
|
218
220
|
- lib/pokemon_tcg_sdk/representers/set_representer.rb
|