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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f4acb80261d0912128a3f2737fc844bff9d18b8e487a2a69f9399a74428b7477
4
- data.tar.gz: 788d3f4f57b9051fe34b96a0ad678c8f9a9c913c7b907caea7f845d3efcc2f5f
3
+ metadata.gz: 3d0f85363cf5bcf73177e4907d62969f5b011161c84ad4be2b784ba3eac3033e
4
+ data.tar.gz: 49e49920927d7e49c1bbc28142afac789ea5bcf538180a6fe9ddfb7df81cf42b
5
5
  SHA512:
6
- metadata.gz: 89aad8bf5b94071432964ef10efb983b82517292ac80071449ea7892264728f976568bdf1e83620c999692d0cd6ca94d313946d4e2ad16d297910bd47b34d006
7
- data.tar.gz: 5b10a0956c5dd57f01d413c7568f74164f6964894ba381b9683e547d205be44380c479786035d85105cb451904b5ced8f2bff6e54b5f6560d2ae910351d22e47
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MixinBot
4
- VERSION = '0.3.11'
4
+ VERSION = '0.3.12'
5
5
  end
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.11
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-02-26 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: awesome_print