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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 884ffc2b45ba89915720304aaf0d187c5f381bda
4
- data.tar.gz: b9d6a1fe6b1d4ebfabfd6b376b0b3da2ad199377
3
+ metadata.gz: 6da3ad547ae0dd7b495ab303a1946d4e124181a9
4
+ data.tar.gz: 3dd84afa156e26d3b27f684d41522f134233ed9a
5
5
  SHA512:
6
- metadata.gz: 175d74c31b9a99d5720e505c1e335436ce40455a5f309db1f79ce20a9e166dc0b9d5e77d0a557166001ffa5adf50b425a48373ec2ef3fcac2d7f20bbf2447e01
7
- data.tar.gz: 2f04e5e5b96c858b38830532e348e9ebb2cfe2bd878bee4c7dd28c8c0b7254d04dd339dacc2c6721bd42de79b96f21c3073ad1244f2c6353aba9ac0ca45445b5
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
@@ -0,0 +1,10 @@
1
+ require_relative 'representers/ancient_trait_representer'
2
+
3
+ module Pokemon
4
+ class AncientTrait
5
+ include Roar::JSON
6
+ include AncientTraitRepresenter
7
+
8
+ attr_accessor :name, :text
9
+ end
10
+ end
@@ -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
  #
@@ -0,0 +1,10 @@
1
+ require 'roar/json'
2
+
3
+ module Pokemon
4
+ module AncientTraitRepresenter
5
+ include Roar::JSON
6
+
7
+ property :name
8
+ property :text
9
+ end
10
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Pokemon
2
- VERSION = "2.1.0"
2
+ VERSION = "2.2.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: 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: exe
10
10
  cert_chain: []
11
- date: 2016-07-21 00:00:00.000000000 Z
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