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 +4 -4
- data/lib/esi/calls.rb +1 -0
- data/lib/esi/calls/sovereignty.rb +29 -0
- data/lib/esi/o_auth.rb +1 -1
- data/lib/esi/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5b33d8ae67547c173e0887b96458fcb2e80683cb7d192797c03c4263d06b4dd4
|
|
4
|
+
data.tar.gz: 93e60e80daa2297e86a9f3d2b9ce57beeafe2d3f901f4ab51017a7bf8358b181
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eb1488cebfe108f0185a9ecd257557d9fcc9b361b6b3e05d126da58b8a8555dccd1e3abedf9f8ad1ce21f4c9f721213d5d74b359cb2db6522530c141ebd08ad4
|
|
7
|
+
data.tar.gz: db711689340ad1695c78d935ace7ad185c968fb7b0d659f879da9fe72201d14cfbc4ce9232320666e8eb88f5b2933b36344f19a1a76675930f24df00d72db13a
|
data/lib/esi/calls.rb
CHANGED
|
@@ -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
|
data/lib/esi/o_auth.rb
CHANGED
|
@@ -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)
|
data/lib/esi/version.rb
CHANGED
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.
|
|
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
|
|
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
|