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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88f7010491b4c63cefbedfefa467df6d53b2c35b
4
- data.tar.gz: fd212393214ceb24e632c1521e7c85c4b983731c
3
+ metadata.gz: 585c05e47c5fbe9c2261417c2d73f8fa6c5d9033
4
+ data.tar.gz: 2cde20d384b96b7c6cc16e9f99704561e2a92f2e
5
5
  SHA512:
6
- metadata.gz: 51cda688d4ffb0f766a49ce12f63999446bb6e0e43e2d415a52f2f98d4f6612bb53e9d9fcb8c8457af71fa9c9b7cecff0de5ae912ad2f61d6678a423a4d24cb4
7
- data.tar.gz: 21d7346b5bf0348ad33b3c3745b84ac5fd9b89f337ceec5ccd4c98c5082624b0f181935e21a7b4b7895afc503f3d32aedb337c36adac2a90f5e5eef6eb0912d8
6
+ metadata.gz: 48037da1155fd5721bd4dc04bf0106f8e763525d705a009d16856892da149116adeb1b365685fd3593253efd33841c7088900dae003cd8f9a04ae05807a21925
7
+ data.tar.gz: 34145a497ae2396b17402ed0cb73ad08aea06771fbfa474cbd0dfcd1e1a888440cd893470c96dce9a4eec4503c58c5ab15caaf0983bdc376b5a95cbe714548b1
@@ -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
@@ -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]) : nil}",
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) }
@@ -1,3 +1,3 @@
1
1
  module Esi
2
- VERSION = "0.2.28"
2
+ VERSION = "0.2.29"
3
3
  end
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.28
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-05 00:00:00.000000000 Z
11
+ date: 2018-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2