srl-api 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -1
- data/lib/srl.rb +1 -1
- data/lib/srl/race.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78e7bedc0640f9e4dcfa725d98ab77784762bc6f
|
4
|
+
data.tar.gz: 79f4830184d8765f49dce1e787e229df6a5bf5c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9090f10c5fe0f4ef58f024bae4313175d280d89dbe19eabfa5272a3c2317fa5084f4f4648c439bb3f08a98a8aebbf54a879141b36b91bd672c3db110511dbdc4
|
7
|
+
data.tar.gz: a9304770d7eca80625704a563839350e78bd059fa4efcb923d47d74a62ba451daf4df153d9c088aee737dbed662b6f4e1514030573e1809d44e2e649ab0b1ecd
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ it to your program's Gemfile and running `bundle install`.
|
|
16
16
|
`rdoc lib/` from the project root, or let RubyGems do it for you in $GEM_HOME.
|
17
17
|
|
18
18
|
|
19
|
-
## Usage
|
19
|
+
## Sample Usage
|
20
20
|
|
21
21
|
Short version:
|
22
22
|
|
@@ -31,6 +31,20 @@ Client code should focus on the `SRL` module, with its relevant functions
|
|
31
31
|
being found in `lib/srl/api.rb`.
|
32
32
|
|
33
33
|
|
34
|
+
### One-liners
|
35
|
+
|
36
|
+
Fetch a player's stream:
|
37
|
+
|
38
|
+
SRL.player('Foobar').stream
|
39
|
+
|
40
|
+
Get the leaderboard for a particular game:
|
41
|
+
|
42
|
+
SRL.leaderboard('alttphacks') # => array
|
43
|
+
|
44
|
+
Retrieve a game's total time played:
|
45
|
+
|
46
|
+
SRL.game('ffhacks').stats.total_time_played
|
47
|
+
|
34
48
|
## OS / Ruby Support
|
35
49
|
|
36
50
|
While the code probably runs on Ruby 2.1+, I have not yet tested it on
|
data/lib/srl.rb
CHANGED
data/lib/srl/race.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: srl-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian 'Artea' Edmonds
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|