zombie_battleground-api 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +5 -4
- data/lib/zombie_battleground/api/version.rb +1 -1
- data/zombie_battleground-api.gemspec +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: 7cfbd42e3ee6fc99aaa29e852a65df1ce64d76e495d4fd7c7c43c59e6fb52623
|
4
|
+
data.tar.gz: c9070372412198f6585622d88e939f6fdcf5e7071db27304ec3d03fe3f0ad157
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 252c4bd69e05f8b14b4fc549acf1bc180eb463337aa4c9b3ca630b2d257aa13e394eae5fe607481c8e164f47f170c891544f52dcb34d7b85df8e27852f3a0031
|
7
|
+
data.tar.gz: bbe4745ca75119c2d676e64c16d0b268864cf950088db549f0ce98ae1c02bbb62252309bbf00cde579450ef4f2b7ae43339d516c88145cca0a9b2bab19d78b17
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -20,13 +20,16 @@ Or install it yourself as:
|
|
20
20
|
|
21
21
|
## Usage
|
22
22
|
|
23
|
+
See the [API documentation](https://www.rubydoc.info/gems/zombie_battleground-api).
|
24
|
+
Every API call returns a response object that contains a complete modeled Ruby object of the response.
|
25
|
+
|
23
26
|
Use the singleton class `ZombieBattleground::Api`
|
24
27
|
|
25
28
|
```ruby
|
26
29
|
require 'zombie_battleground-api/api'
|
27
30
|
|
28
31
|
ZombieBattleground::Api.decks(limit: 1)
|
29
|
-
# => ZombieBattleground::Api::GetDecksResponse
|
32
|
+
# => ZombieBattleground::Api::Responses::GetDecksResponse
|
30
33
|
```
|
31
34
|
|
32
35
|
Use the API client directly
|
@@ -35,11 +38,9 @@ Use the API client directly
|
|
35
38
|
require 'zombie_battleground-api/api/client'
|
36
39
|
|
37
40
|
client = ZombieBattleground::Api::Client.new
|
38
|
-
client.decks(limit: 1) # => ZombieBattleground::Api::GetDecksResponse
|
41
|
+
client.decks(limit: 1) # => ZombieBattleground::Api::Responses::GetDecksResponse
|
39
42
|
```
|
40
43
|
|
41
|
-
Every API call returns a response object that contains a complete modeled Ruby object of the response. See the API documentation (once I write it) on rubygems.org
|
42
|
-
|
43
44
|
## Development
|
44
45
|
|
45
46
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.email = ['john@shields.wtf']
|
12
12
|
|
13
13
|
spec.summary = 'An implemenetation of the ZombieBattleground public API'
|
14
|
-
spec.homepage = 'https://
|
14
|
+
spec.homepage = 'https://github.com/watmin/zombie_battleground-api'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zombie_battleground-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Shields
|
@@ -238,7 +238,7 @@ files:
|
|
238
238
|
- lib/zombie_battleground/api/validation_helper.rb
|
239
239
|
- lib/zombie_battleground/api/version.rb
|
240
240
|
- zombie_battleground-api.gemspec
|
241
|
-
homepage: https://
|
241
|
+
homepage: https://github.com/watmin/zombie_battleground-api
|
242
242
|
licenses:
|
243
243
|
- MIT
|
244
244
|
metadata:
|