pokegem 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/pokegem.rb +1 -1
- data/lib/pokegem/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31865ee7bfd332b7d13afbd76874e194a7a8a523
|
4
|
+
data.tar.gz: 2abed3e397c086b90759dce06473bfa3054ea081
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b68853262a66ad7189e167ddecfe21d6e610ac0f4e11402fbd341343aac19530b8e413acb34b1a9166477eb9515ed935743281bc09d796f49a9f8097261bb995
|
7
|
+
data.tar.gz: 4ed736cf6b5baa2fb7ab28d5e2719c286fe6bbafc8807237f480817b0620414a3ca407965d6e346a82d7cca888f7e7c03be835f0aac85119e703db36416108a3
|
data/README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1
1
|
# Pokegem
|
2
2
|
|
3
|
-
|
3
|
+
http://pokeapi.co/
|
4
|
+
|
5
|
+
Simple to use wrapper for the pokeapi, with basic caching
|
4
6
|
|
5
7
|
Resources:
|
6
8
|
```
|
7
|
-
|
9
|
+
pokedex, pokemon, pokemon, move, ability, type, egg, description, sprite, game
|
8
10
|
```
|
9
11
|
|
10
12
|
## Usage
|
data/lib/pokegem.rb
CHANGED
@@ -5,7 +5,7 @@ require 'json'
|
|
5
5
|
module Pokegem
|
6
6
|
class << self
|
7
7
|
BASE_URL = 'http://pokeapi.co/api/v1'
|
8
|
-
RESOURCES = %w(
|
8
|
+
RESOURCES = %w(pokedex pokemon pokemon move ability type egg description sprite game)
|
9
9
|
|
10
10
|
def init_hash; RESOURCES.reduce({}) { |h, r| h.merge! r => {} } end
|
11
11
|
|
data/lib/pokegem/version.rb
CHANGED