pokemon_tcg_sdk 3.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.editorconfig +3 -0
- data/.gitignore +23 -24
- data/.travis.yml +15 -15
- data/CODE_OF_CONDUCT.md +48 -48
- data/Gemfile +4 -4
- data/LICENSE.txt +21 -21
- data/README.md +186 -159
- data/Rakefile +20 -10
- data/lib/pokemon_tcg_sdk.rb +38 -31
- data/lib/pokemon_tcg_sdk/ability.rb +14 -10
- data/lib/pokemon_tcg_sdk/ancient_trait.rb +13 -10
- data/lib/pokemon_tcg_sdk/attack.rb +16 -10
- data/lib/pokemon_tcg_sdk/card.rb +66 -42
- data/lib/pokemon_tcg_sdk/card_images.rb +13 -0
- data/lib/pokemon_tcg_sdk/configuration.rb +8 -8
- data/lib/pokemon_tcg_sdk/legalities.rb +14 -0
- data/lib/pokemon_tcg_sdk/query_builder.rb +63 -67
- data/lib/pokemon_tcg_sdk/rarity.rb +12 -0
- data/lib/pokemon_tcg_sdk/resistance.rb +14 -0
- data/lib/pokemon_tcg_sdk/rest_client.rb +43 -31
- data/lib/pokemon_tcg_sdk/set.rb +50 -40
- data/lib/pokemon_tcg_sdk/set_images.rb +13 -0
- data/lib/pokemon_tcg_sdk/subtype.rb +11 -11
- data/lib/pokemon_tcg_sdk/supertype.rb +11 -11
- data/lib/pokemon_tcg_sdk/tcgplayer.rb +44 -0
- data/lib/pokemon_tcg_sdk/type.rb +11 -11
- data/lib/pokemon_tcg_sdk/version.rb +3 -3
- data/lib/pokemon_tcg_sdk/weakness.rb +13 -0
- data/pokemon_tcg_sdk.gemspec +32 -33
- metadata +33 -47
- data/lib/pokemon_tcg_sdk/representers/ability_representer.rb +0 -11
- data/lib/pokemon_tcg_sdk/representers/ancient_trait_representer.rb +0 -10
- data/lib/pokemon_tcg_sdk/representers/attack_representer.rb +0 -13
- data/lib/pokemon_tcg_sdk/representers/card_representer.rb +0 -41
- data/lib/pokemon_tcg_sdk/representers/set_representer.rb +0 -19
- data/lib/pokemon_tcg_sdk/representers/type_value_representer.rb +0 -10
- data/lib/pokemon_tcg_sdk/type_value.rb +0 -10
@@ -1,32 +1,44 @@
|
|
1
|
-
require 'faraday'
|
2
|
-
require 'faraday_middleware'
|
3
|
-
require 'erb'
|
4
|
-
|
5
|
-
module Pokemon
|
6
|
-
module RestClient
|
7
|
-
|
8
|
-
def self.get(endpoint, params=nil)
|
9
|
-
if params.nil?
|
10
|
-
query = endpoint
|
11
|
-
else
|
12
|
-
query = "#{endpoint}?#{params_to_query(params)}"
|
13
|
-
end
|
14
|
-
|
15
|
-
client.get(query)
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
1
|
+
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
3
|
+
require 'erb'
|
4
|
+
|
5
|
+
module Pokemon
|
6
|
+
module RestClient
|
7
|
+
|
8
|
+
def self.get(endpoint, params=nil)
|
9
|
+
if params.nil?
|
10
|
+
query = endpoint
|
11
|
+
else
|
12
|
+
query = "#{endpoint}?#{params_to_query(params)}"
|
13
|
+
end
|
14
|
+
|
15
|
+
response = client.get(query)
|
16
|
+
|
17
|
+
case response.status
|
18
|
+
when 200
|
19
|
+
JSON.parse(response.body)
|
20
|
+
when 429
|
21
|
+
raise 'You have hit your rate limit.'
|
22
|
+
when 404
|
23
|
+
raise ArgumentError, 'Resource not found'
|
24
|
+
when 403
|
25
|
+
raise 'You are not authorized to access this endpoint. Please make sure you have a valid API Key. Go to https://dev.pokemontcg.io for more info.'
|
26
|
+
else
|
27
|
+
raise 'Something went wrong...please try again later.'
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
protected
|
32
|
+
|
33
|
+
def self.client
|
34
|
+
@client = Faraday.new(
|
35
|
+
url: "#{API_URL}/v2",
|
36
|
+
headers: {'Content-Type' => 'application/json', 'X-Api-Key' => Pokemon.configuration.api_key}
|
37
|
+
)
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.params_to_query(params)
|
41
|
+
params.map {|p, v| "#{p}=#{ERB::Util.url_encode(v.to_s)}"}.join('&')
|
42
|
+
end
|
43
|
+
end
|
32
44
|
end
|
data/lib/pokemon_tcg_sdk/set.rb
CHANGED
@@ -1,41 +1,51 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
#
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
#
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
#
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
1
|
+
module Pokemon
|
2
|
+
class Set
|
3
|
+
attr_accessor :id, :name, :series, :printed_total, :total, :legalities, :ptcgo_code, :release_date, :updated_at, :images
|
4
|
+
|
5
|
+
def self.from_json(json)
|
6
|
+
set = Set.new
|
7
|
+
set.id = json['id']
|
8
|
+
set.name = json['name']
|
9
|
+
set.series = json['series']
|
10
|
+
set.printed_total = json['printedTotal']
|
11
|
+
set.total = json['total']
|
12
|
+
set.legalities = Legalities.from_json(json['legalities']) if !json['legalities'].nil?
|
13
|
+
set.ptcgo_code = json['ptcgoCode']
|
14
|
+
set.release_date = json['releaseDate']
|
15
|
+
set.updated_at = json['updatedAt']
|
16
|
+
set.images = SetImages.from_json(json['images']) if !json['images'].nil?
|
17
|
+
|
18
|
+
set
|
19
|
+
end
|
20
|
+
|
21
|
+
# Get the resource string
|
22
|
+
#
|
23
|
+
# @return [String] The API resource string
|
24
|
+
def self.Resource
|
25
|
+
"sets"
|
26
|
+
end
|
27
|
+
|
28
|
+
# Find a single set by the set code
|
29
|
+
#
|
30
|
+
# @param id [String] the set code
|
31
|
+
# @return [Set] the Set object response
|
32
|
+
def self.find(id)
|
33
|
+
QueryBuilder.new(Set).find(id)
|
34
|
+
end
|
35
|
+
|
36
|
+
# Get all sets from a query by paging through data
|
37
|
+
#
|
38
|
+
# @return [Array<Set>] Array of Set objects
|
39
|
+
def self.all
|
40
|
+
QueryBuilder.new(Set).all
|
41
|
+
end
|
42
|
+
|
43
|
+
# Adds a parameter to the hash of query parameters
|
44
|
+
#
|
45
|
+
# @param args [Hash] the query parameter
|
46
|
+
# @return [Array<Set>] Array of Set objects
|
47
|
+
def self.where(args)
|
48
|
+
QueryBuilder.new(Set).where(args)
|
49
|
+
end
|
50
|
+
end
|
41
51
|
end
|
@@ -1,12 +1,12 @@
|
|
1
|
-
module Pokemon
|
2
|
-
class Subtype
|
3
|
-
include RestClient
|
4
|
-
|
5
|
-
# Get all subtypes
|
6
|
-
#
|
7
|
-
# @return [Array<String>] All subtypes
|
8
|
-
def self.all
|
9
|
-
RestClient.get('subtypes')
|
10
|
-
end
|
11
|
-
end
|
1
|
+
module Pokemon
|
2
|
+
class Subtype
|
3
|
+
include RestClient
|
4
|
+
|
5
|
+
# Get all subtypes
|
6
|
+
#
|
7
|
+
# @return [Array<String>] All subtypes
|
8
|
+
def self.all
|
9
|
+
RestClient.get('subtypes')['data']
|
10
|
+
end
|
11
|
+
end
|
12
12
|
end
|
@@ -1,12 +1,12 @@
|
|
1
|
-
module Pokemon
|
2
|
-
class Supertype
|
3
|
-
include RestClient
|
4
|
-
|
5
|
-
# Get all supertypes
|
6
|
-
#
|
7
|
-
# @return [Array<String>] All supertypes
|
8
|
-
def self.all
|
9
|
-
RestClient.get('supertypes')
|
10
|
-
end
|
11
|
-
end
|
1
|
+
module Pokemon
|
2
|
+
class Supertype
|
3
|
+
include RestClient
|
4
|
+
|
5
|
+
# Get all supertypes
|
6
|
+
#
|
7
|
+
# @return [Array<String>] All supertypes
|
8
|
+
def self.all
|
9
|
+
RestClient.get('supertypes')['data']
|
10
|
+
end
|
11
|
+
end
|
12
12
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module Pokemon
|
2
|
+
class Tcgplayer
|
3
|
+
attr_accessor :url, :prices, :updated_at
|
4
|
+
|
5
|
+
def self.from_json(json)
|
6
|
+
tcgplayer = Tcgplayer.new
|
7
|
+
tcgplayer.url = json['url']
|
8
|
+
tcgplayer.updated_at = json['updatedAt']
|
9
|
+
tcgplayer.prices = TcgPlayerPrices.from_json(json['prices']) if !json['prices'].nil?
|
10
|
+
|
11
|
+
tcgplayer
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
class TcgPlayerPrices
|
16
|
+
attr_accessor :normal, :holofoil, :reverse_holofoil, :first_edition_holofoil, :first_edition_normal
|
17
|
+
|
18
|
+
def self.from_json(json)
|
19
|
+
price = TcgPlayerPrices.new
|
20
|
+
price.normal = TcgPlayerPriceValues.from_json(json['normal']) if json.key? 'normal'
|
21
|
+
price.holofoil = TcgPlayerPriceValues.from_json(json['holofoil']) if !json['holofoil'].nil?
|
22
|
+
price.reverse_holofoil = TcgPlayerPriceValues.from_json(json['reverseHolofoil']) if !json['reverseHolofoil'].nil?
|
23
|
+
price.first_edition_holofoil = TcgPlayerPriceValues.from_json(json['1stEditionHolofoil']) if !json['1stEditionHolofoil'].nil?
|
24
|
+
price.first_edition_normal = TcgPlayerPriceValues.from_json(json['1stEditionNormal']) if !json['1stEditionNormal'].nil?
|
25
|
+
|
26
|
+
price
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
class TcgPlayerPriceValues
|
31
|
+
attr_accessor :low, :mid, :high, :market, :direct
|
32
|
+
|
33
|
+
def self.from_json(json)
|
34
|
+
values = TcgPlayerPriceValues.new
|
35
|
+
values.low = json['low']
|
36
|
+
values.mid = json['mid']
|
37
|
+
values.high = json['high']
|
38
|
+
values.market = json['market']
|
39
|
+
values.direct = json['direct']
|
40
|
+
|
41
|
+
values
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
data/lib/pokemon_tcg_sdk/type.rb
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
module Pokemon
|
2
|
-
class Type
|
3
|
-
include RestClient
|
4
|
-
|
5
|
-
# Get all types
|
6
|
-
#
|
7
|
-
# @return [Array<String>] All types
|
8
|
-
def self.all
|
9
|
-
RestClient.get('types')
|
10
|
-
end
|
11
|
-
end
|
1
|
+
module Pokemon
|
2
|
+
class Type
|
3
|
+
include RestClient
|
4
|
+
|
5
|
+
# Get all types
|
6
|
+
#
|
7
|
+
# @return [Array<String>] All types
|
8
|
+
def self.all
|
9
|
+
RestClient.get('types')['data']
|
10
|
+
end
|
11
|
+
end
|
12
12
|
end
|
@@ -1,3 +1,3 @@
|
|
1
|
-
module Pokemon
|
2
|
-
VERSION = "
|
3
|
-
end
|
1
|
+
module Pokemon
|
2
|
+
VERSION = "4.0.0"
|
3
|
+
end
|
data/pokemon_tcg_sdk.gemspec
CHANGED
@@ -1,33 +1,32 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'pokemon_tcg_sdk/version'
|
5
|
-
|
6
|
-
Gem::Specification.new do |spec|
|
7
|
-
spec.name = "pokemon_tcg_sdk"
|
8
|
-
spec.version = Pokemon::VERSION
|
9
|
-
spec.authors = ["Andrew Backes"]
|
10
|
-
spec.email = ["backes.andrew@gmail.com"]
|
11
|
-
spec.summary = "Pokémon TCG SDK for pokemontcg.io"
|
12
|
-
spec.description = "Pokémon TCG SDK is a wrapper around the Pokémon TCG API located at pokemontcg.io"
|
13
|
-
spec.homepage = "https://pokemontcg.io"
|
14
|
-
spec.license = "MIT"
|
15
|
-
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
-
spec.bindir = "exe"
|
17
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
-
spec.require_paths = ["lib"]
|
19
|
-
|
20
|
-
spec.add_development_dependency "bundler", "~> 1.
|
21
|
-
spec.add_development_dependency "rake", "~>
|
22
|
-
spec.add_development_dependency "minitest", "~> 5.
|
23
|
-
spec.add_development_dependency "vcr", "~>
|
24
|
-
spec.add_development_dependency "webmock", "~>
|
25
|
-
spec.add_development_dependency "simplecov", "~> 0.
|
26
|
-
|
27
|
-
|
28
|
-
spec.add_dependency "
|
29
|
-
spec.add_dependency "
|
30
|
-
spec.add_dependency "
|
31
|
-
spec.add_dependency "
|
32
|
-
|
33
|
-
end
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'pokemon_tcg_sdk/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "pokemon_tcg_sdk"
|
8
|
+
spec.version = Pokemon::VERSION
|
9
|
+
spec.authors = ["Andrew Backes"]
|
10
|
+
spec.email = ["backes.andrew@gmail.com"]
|
11
|
+
spec.summary = "Pokémon TCG SDK for pokemontcg.io"
|
12
|
+
spec.description = "Pokémon TCG SDK is a wrapper around the Pokémon TCG API located at pokemontcg.io"
|
13
|
+
spec.homepage = "https://pokemontcg.io"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
+
spec.bindir = "exe"
|
17
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 2.1.4"
|
21
|
+
spec.add_development_dependency "rake", "~> 13.0"
|
22
|
+
spec.add_development_dependency "minitest", "~> 5.14.2"
|
23
|
+
spec.add_development_dependency "vcr", "~> 6.0"
|
24
|
+
spec.add_development_dependency "webmock", "~> 3.9"
|
25
|
+
spec.add_development_dependency "simplecov", "~> 0.19"
|
26
|
+
|
27
|
+
spec.add_dependency "roar", "~> 1.1"
|
28
|
+
spec.add_dependency "json", "~> 2.3"
|
29
|
+
spec.add_dependency "multi_json", "~> 1.15"
|
30
|
+
spec.add_dependency "multi_xml", "~> 0.6"
|
31
|
+
spec.add_dependency "faraday_middleware", "~> 1.0"
|
32
|
+
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
|
+
version: 4.0.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: 2021-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,168 +16,154 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.1.4
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.1.4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '13.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 5.14.2
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 5.14.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: vcr
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '6.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '6.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: webmock
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '3.9'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '3.9'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: simplecov
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
89
|
+
version: '0.19'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0.
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: codeclimate-test-reporter
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0.6'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0.6'
|
96
|
+
version: '0.19'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: roar
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
101
|
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: '1.
|
103
|
+
version: '1.1'
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
108
|
- - "~>"
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version: '1.
|
110
|
+
version: '1.1'
|
125
111
|
- !ruby/object:Gem::Dependency
|
126
112
|
name: json
|
127
113
|
requirement: !ruby/object:Gem::Requirement
|
128
114
|
requirements:
|
129
115
|
- - "~>"
|
130
116
|
- !ruby/object:Gem::Version
|
131
|
-
version: '2.
|
117
|
+
version: '2.3'
|
132
118
|
type: :runtime
|
133
119
|
prerelease: false
|
134
120
|
version_requirements: !ruby/object:Gem::Requirement
|
135
121
|
requirements:
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version: '2.
|
124
|
+
version: '2.3'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: multi_json
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
129
|
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: '1.
|
131
|
+
version: '1.15'
|
146
132
|
type: :runtime
|
147
133
|
prerelease: false
|
148
134
|
version_requirements: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: '1.
|
138
|
+
version: '1.15'
|
153
139
|
- !ruby/object:Gem::Dependency
|
154
140
|
name: multi_xml
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: '0.
|
145
|
+
version: '0.6'
|
160
146
|
type: :runtime
|
161
147
|
prerelease: false
|
162
148
|
version_requirements: !ruby/object:Gem::Requirement
|
163
149
|
requirements:
|
164
150
|
- - "~>"
|
165
151
|
- !ruby/object:Gem::Version
|
166
|
-
version: '0.
|
152
|
+
version: '0.6'
|
167
153
|
- !ruby/object:Gem::Dependency
|
168
154
|
name: faraday_middleware
|
169
155
|
requirement: !ruby/object:Gem::Requirement
|
170
156
|
requirements:
|
171
157
|
- - "~>"
|
172
158
|
- !ruby/object:Gem::Version
|
173
|
-
version: '0
|
159
|
+
version: '1.0'
|
174
160
|
type: :runtime
|
175
161
|
prerelease: false
|
176
162
|
version_requirements: !ruby/object:Gem::Requirement
|
177
163
|
requirements:
|
178
164
|
- - "~>"
|
179
165
|
- !ruby/object:Gem::Version
|
180
|
-
version: '0
|
166
|
+
version: '1.0'
|
181
167
|
description: Pokémon TCG SDK is a wrapper around the Pokémon TCG API located at pokemontcg.io
|
182
168
|
email:
|
183
169
|
- backes.andrew@gmail.com
|
@@ -185,6 +171,7 @@ executables: []
|
|
185
171
|
extensions: []
|
186
172
|
extra_rdoc_files: []
|
187
173
|
files:
|
174
|
+
- ".editorconfig"
|
188
175
|
- ".gitignore"
|
189
176
|
- ".travis.yml"
|
190
177
|
- CODE_OF_CONDUCT.md
|
@@ -197,21 +184,21 @@ files:
|
|
197
184
|
- lib/pokemon_tcg_sdk/ancient_trait.rb
|
198
185
|
- lib/pokemon_tcg_sdk/attack.rb
|
199
186
|
- lib/pokemon_tcg_sdk/card.rb
|
187
|
+
- lib/pokemon_tcg_sdk/card_images.rb
|
200
188
|
- lib/pokemon_tcg_sdk/configuration.rb
|
189
|
+
- lib/pokemon_tcg_sdk/legalities.rb
|
201
190
|
- lib/pokemon_tcg_sdk/query_builder.rb
|
202
|
-
- lib/pokemon_tcg_sdk/
|
203
|
-
- lib/pokemon_tcg_sdk/
|
204
|
-
- lib/pokemon_tcg_sdk/representers/attack_representer.rb
|
205
|
-
- lib/pokemon_tcg_sdk/representers/card_representer.rb
|
206
|
-
- lib/pokemon_tcg_sdk/representers/set_representer.rb
|
207
|
-
- lib/pokemon_tcg_sdk/representers/type_value_representer.rb
|
191
|
+
- lib/pokemon_tcg_sdk/rarity.rb
|
192
|
+
- lib/pokemon_tcg_sdk/resistance.rb
|
208
193
|
- lib/pokemon_tcg_sdk/rest_client.rb
|
209
194
|
- lib/pokemon_tcg_sdk/set.rb
|
195
|
+
- lib/pokemon_tcg_sdk/set_images.rb
|
210
196
|
- lib/pokemon_tcg_sdk/subtype.rb
|
211
197
|
- lib/pokemon_tcg_sdk/supertype.rb
|
198
|
+
- lib/pokemon_tcg_sdk/tcgplayer.rb
|
212
199
|
- lib/pokemon_tcg_sdk/type.rb
|
213
|
-
- lib/pokemon_tcg_sdk/type_value.rb
|
214
200
|
- lib/pokemon_tcg_sdk/version.rb
|
201
|
+
- lib/pokemon_tcg_sdk/weakness.rb
|
215
202
|
- pokemon_tcg_sdk.gemspec
|
216
203
|
homepage: https://pokemontcg.io
|
217
204
|
licenses:
|
@@ -232,8 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
232
219
|
- !ruby/object:Gem::Version
|
233
220
|
version: '0'
|
234
221
|
requirements: []
|
235
|
-
|
236
|
-
rubygems_version: 2.6.10
|
222
|
+
rubygems_version: 3.1.4
|
237
223
|
signing_key:
|
238
224
|
specification_version: 4
|
239
225
|
summary: Pokémon TCG SDK for pokemontcg.io
|