mixin_bot 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mixin_bot/api/snapshot.rb +6 -5
- data/lib/mixin_bot/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: 3d0f85363cf5bcf73177e4907d62969f5b011161c84ad4be2b784ba3eac3033e
|
4
|
+
data.tar.gz: 49e49920927d7e49c1bbc28142afac789ea5bcf538180a6fe9ddfb7df81cf42b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cb54d94f570833f2f64b4eaef485dd5caecd16c9ffa6fc5bc379d71cef2e4f305ccbdbe0620d82e36eb2a110d7ddb0d23888c429857ef49ca193d4b3527ddd7
|
7
|
+
data.tar.gz: bd4b56118e2bd182b896668734a0b70379dbf2695caa25afa2be40cea869cf6404bf16f4e439643a94f6766ad67895a770f3596aca6afe0d71831b433120dd30
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module MixinBot
|
4
4
|
class API
|
5
5
|
module Snapshot
|
6
|
-
def network_snapshots(options
|
6
|
+
def network_snapshots(**options)
|
7
7
|
path = format(
|
8
8
|
'/network/snapshots?limit=%<limit>s&offset=%<offset>s&asset=%<asset>s&order=%<order>s',
|
9
9
|
limit: options[:limit],
|
@@ -18,12 +18,13 @@ module MixinBot
|
|
18
18
|
end
|
19
19
|
alias read_network_snapshots network_snapshots
|
20
20
|
|
21
|
-
def snapshots(options
|
21
|
+
def snapshots(**options)
|
22
22
|
path = format(
|
23
|
-
'/snapshots?limit=%<limit>s&offset=%<offset>s&asset=%<asset>s',
|
23
|
+
'/snapshots?limit=%<limit>s&offset=%<offset>s&asset=%<asset>s&opponent=%<opponent>s',
|
24
24
|
limit: options[:limit],
|
25
25
|
offset: options[:offset],
|
26
|
-
asset: options[:asset]
|
26
|
+
asset: options[:asset],
|
27
|
+
opponent: options[:opponent]
|
27
28
|
)
|
28
29
|
|
29
30
|
access_token = options[:access_token] || access_token('GET', path)
|
@@ -32,7 +33,7 @@ module MixinBot
|
|
32
33
|
end
|
33
34
|
alias read_snapshots snapshots
|
34
35
|
|
35
|
-
def network_snapshot(snapshot_id, options
|
36
|
+
def network_snapshot(snapshot_id, **options)
|
36
37
|
path = format('/network/snapshots/%<snapshot_id>s', snapshot_id: snapshot_id)
|
37
38
|
|
38
39
|
access_token = options[:access_token] || access_token('GET', path)
|
data/lib/mixin_bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mixin_bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- an-lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: awesome_print
|