esi 0.4.19 → 0.4.20

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
  SHA256:
3
- metadata.gz: 38e011ecbdc1b6af8224223c66cdfc0237cf5290ce2dfa6bec5bf16d876aa926
4
- data.tar.gz: a24769d40c843cf6e3638dc47ff2ed9069b8c0178477b61a7df16be5c76da62a
3
+ metadata.gz: 5b33d8ae67547c173e0887b96458fcb2e80683cb7d192797c03c4263d06b4dd4
4
+ data.tar.gz: 93e60e80daa2297e86a9f3d2b9ce57beeafe2d3f901f4ab51017a7bf8358b181
5
5
  SHA512:
6
- metadata.gz: 69dae9a8c32a2d3fd9c4c4d6044ed9b0c19c1d9d41792c29e37f9d164f77346d58eab5a63af1bb43dcae1b96d247b66089c8e35fddd6ff9724784c404d3aa506
7
- data.tar.gz: 12177814f1ed3f06178ae5294984128b06e42b21dde88fc132d578c82981a183dc3ff757b7ed26b485ed59e384135addca6742c8a784fe3eebe7a55ce9b7cd2d
6
+ metadata.gz: eb1488cebfe108f0185a9ecd257557d9fcc9b361b6b3e05d126da58b8a8555dccd1e3abedf9f8ad1ce21f4c9f721213d5d74b359cb2db6522530c141ebd08ad4
7
+ data.tar.gz: db711689340ad1695c78d935ace7ad185c968fb7b0d659f879da9fe72201d14cfbc4ce9232320666e8eb88f5b2933b36344f19a1a76675930f24df00d72db13a
@@ -14,6 +14,7 @@ require 'esi/calls/killmails'
14
14
  require 'esi/calls/markets'
15
15
  require 'esi/calls/route'
16
16
  require 'esi/calls/search'
17
+ require 'esi/calls/sovereignty'
17
18
  require 'esi/calls/ui'
18
19
  require 'esi/calls/universe'
19
20
 
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Esi
4
+ class Calls
5
+ class SovereigntyCampaigns < Base
6
+ self.cache_duration = 5
7
+
8
+ def initialize
9
+ @path = '/sovereignty/campaigns'
10
+ end
11
+ end
12
+
13
+ class SovereigntyMap < Base
14
+ self.cache_duration = 5
15
+
16
+ def initialize
17
+ @path = '/sovereignty/map'
18
+ end
19
+ end
20
+
21
+ class SovereigntyStructures < Base
22
+ self.cache_duration = 120
23
+
24
+ def initialize
25
+ @path = '/sovereignty/structures'
26
+ end
27
+ end
28
+ end
29
+ end
@@ -10,7 +10,7 @@ module Esi
10
10
  class << self
11
11
  def authorize_url(redirect_uri:, scopes: nil)
12
12
  scopes ||= Esi.config.scopes
13
- client.auth_code.authorize_url(scope: scopes.join(' '), redirect_uri: redirect_uri)
13
+ client.auth_code.authorize_url(scope: Array[scopes].flatten.join(' '), redirect_uri: redirect_uri)
14
14
  end
15
15
 
16
16
  def obtain_token(code)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Esi
4
- VERSION = '0.4.19'
4
+ VERSION = '0.4.20'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.19
4
+ version: 0.4.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danny Hiemstra
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-04-03 00:00:00.000000000 Z
12
+ date: 2018-05-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -165,6 +165,7 @@ files:
165
165
  - lib/esi/calls/markets.rb
166
166
  - lib/esi/calls/route.rb
167
167
  - lib/esi/calls/search.rb
168
+ - lib/esi/calls/sovereignty.rb
168
169
  - lib/esi/calls/ui.rb
169
170
  - lib/esi/calls/universe.rb
170
171
  - lib/esi/client.rb