esi 0.2.28 → 0.2.29
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/lib/esi/calls.rb +9 -9
- data/lib/esi/client.rb +1 -1
- data/lib/esi/version.rb +1 -1
- 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: 585c05e47c5fbe9c2261417c2d73f8fa6c5d9033
|
|
4
|
+
data.tar.gz: 2cde20d384b96b7c6cc16e9f99704561e2a92f2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 48037da1155fd5721bd4dc04bf0106f8e763525d705a009d16856892da149116adeb1b365685fd3593253efd33841c7088900dae003cd8f9a04ae05807a21925
|
|
7
|
+
data.tar.gz: 34145a497ae2396b17402ed0cb73ad08aea06771fbfa474cbd0dfcd1e1a888440cd893470c96dce9a4eec4503c58c5ab15caaf0983bdc376b5a95cbe714548b1
|
data/lib/esi/calls.rb
CHANGED
|
@@ -371,15 +371,6 @@ module Esi
|
|
|
371
371
|
end
|
|
372
372
|
end
|
|
373
373
|
|
|
374
|
-
class CorporationWallet < Base
|
|
375
|
-
self.scope = 'esi-wallet.read_corporation_wallet.v1'
|
|
376
|
-
self.cache_duration = 120
|
|
377
|
-
|
|
378
|
-
def initialize(corporation_id)
|
|
379
|
-
@path = "/corporations/#{corporation_id}/wallets"
|
|
380
|
-
end
|
|
381
|
-
end
|
|
382
|
-
|
|
383
374
|
class CorporationStructures < Base
|
|
384
375
|
self.scope = 'esi-corporations.read_structures.v1'
|
|
385
376
|
self.cache_duration = 3600
|
|
@@ -417,6 +408,15 @@ module Esi
|
|
|
417
408
|
end
|
|
418
409
|
end
|
|
419
410
|
|
|
411
|
+
class CorporationWallet < Base
|
|
412
|
+
self.scope = 'esi-wallet.read_corporation_wallet.v1'
|
|
413
|
+
self.cache_duration = 120
|
|
414
|
+
|
|
415
|
+
def initialize(corporation_id)
|
|
416
|
+
@path = "/corporations/#{corporation_id}/wallets"
|
|
417
|
+
end
|
|
418
|
+
end
|
|
419
|
+
|
|
420
420
|
class CorporationWallets < Base
|
|
421
421
|
self.scope = 'esi-wallet.read_corporation_wallets.v1'
|
|
422
422
|
self.cache_duration = 300
|
data/lib/esi/client.rb
CHANGED
|
@@ -165,7 +165,7 @@ module Esi
|
|
|
165
165
|
'-'*60,
|
|
166
166
|
"#{klass}(#{response.error})",
|
|
167
167
|
"STATUS: #{response.status})",
|
|
168
|
-
"MESSAGE: #{response.data ? (response.data[:message].presence || response.data[:error]) :
|
|
168
|
+
"MESSAGE: #{response.respond_to?(:data) ? (response.data[:message].presence || response.data[:error]) : '-'}",
|
|
169
169
|
"URL: #{url}",
|
|
170
170
|
'-'*60,
|
|
171
171
|
].each { |msg| logger.error(msg) }
|
data/lib/esi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: esi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.29
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Hiemstra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-01-
|
|
11
|
+
date: 2018-01-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oauth2
|