pokemon_tcg_sdk 4.1.0 → 4.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pokemon_tcg_sdk/card.rb +3 -1
- data/lib/pokemon_tcg_sdk/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f12cf7ba81e0c3b566bb948861955378c57ab658a689f1257d70b33d706d2609
|
4
|
+
data.tar.gz: c504e366a60269890dbd19af6452260d5f8172d92a6334364c89bffe54fb9fd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec896b1aef63d500243c5d9ef05286cb15b5f46d6a509f47bb4c329871e2f7ae73506f90bc26776d7eeadbee5ee14cc51be8582ab507196b88a7409244936977
|
7
|
+
data.tar.gz: e66271ffcc62ffbcfdd16a7a306f7235f12eb4dc6cbb8e77e781ab36e23f2ae934bea598948d7fe9b82db2cebcb32495eb6d4033d7fff8be74f8bf9bb63b3a9e
|
data/lib/pokemon_tcg_sdk/card.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
require 'erb'
|
2
|
+
|
1
3
|
module Pokemon
|
2
4
|
class Card
|
3
5
|
attr_accessor :id, :name, :supertype, :subtypes, :level, :hp, :types, :evolves_from, :evolves_to, :rules, :ancient_trait,
|
@@ -47,7 +49,7 @@ module Pokemon
|
|
47
49
|
# @param id [String] the card id
|
48
50
|
# @return [Card] the Card object response
|
49
51
|
def self.find(id)
|
50
|
-
QueryBuilder.new(Card).find(id)
|
52
|
+
QueryBuilder.new(Card).find(ERB::Util.url_encode(id))
|
51
53
|
end
|
52
54
|
|
53
55
|
# Get all cards from a query by paging through data
|
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.1.
|
4
|
+
version: 4.1.1
|
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-02-
|
11
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|