eve_online 0.27.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +3 -3
- data/Gemfile.mutant.lock +2 -2
- data/README.md +54 -6
- data/lib/eve_online.rb +2 -0
- data/lib/eve_online/esi/alliance.rb +3 -3
- data/lib/eve_online/esi/alliance_corporations.rb +3 -3
- data/lib/eve_online/esi/alliance_icon.rb +3 -3
- data/lib/eve_online/esi/alliances.rb +3 -3
- data/lib/eve_online/esi/base.rb +27 -4
- data/lib/eve_online/esi/character.rb +3 -3
- data/lib/eve_online/esi/character_assets.rb +7 -3
- data/lib/eve_online/esi/character_assets_locations.rb +3 -3
- data/lib/eve_online/esi/character_assets_names.rb +3 -3
- data/lib/eve_online/esi/character_attributes.rb +3 -3
- data/lib/eve_online/esi/character_blueprints.rb +7 -3
- data/lib/eve_online/esi/character_bookmark_folders.rb +7 -3
- data/lib/eve_online/esi/character_bookmarks.rb +7 -3
- data/lib/eve_online/esi/character_calendar.rb +9 -6
- data/lib/eve_online/esi/character_calendar_event.rb +3 -3
- data/lib/eve_online/esi/character_clones.rb +3 -3
- data/lib/eve_online/esi/character_corporation_history.rb +3 -3
- data/lib/eve_online/esi/character_fatigue.rb +3 -3
- data/lib/eve_online/esi/character_implants.rb +3 -3
- data/lib/eve_online/esi/character_industry_jobs.rb +8 -4
- data/lib/eve_online/esi/character_killmails_recent.rb +7 -3
- data/lib/eve_online/esi/character_location.rb +3 -3
- data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
- data/lib/eve_online/esi/character_notifications.rb +3 -3
- data/lib/eve_online/esi/character_online.rb +3 -3
- data/lib/eve_online/esi/character_orders.rb +3 -3
- data/lib/eve_online/esi/character_portrait.rb +3 -3
- data/lib/eve_online/esi/character_ship.rb +3 -3
- data/lib/eve_online/esi/character_skill_queue.rb +3 -3
- data/lib/eve_online/esi/character_skills.rb +3 -3
- data/lib/eve_online/esi/character_standings.rb +3 -3
- data/lib/eve_online/esi/character_wallet.rb +3 -3
- data/lib/eve_online/esi/character_wallet_journal.rb +7 -3
- data/lib/eve_online/esi/corporation.rb +3 -3
- data/lib/eve_online/esi/corporation_alliance_history.rb +38 -0
- data/lib/eve_online/esi/corporation_assets.rb +7 -3
- data/lib/eve_online/esi/corporation_assets_locations.rb +3 -3
- data/lib/eve_online/esi/corporation_assets_names.rb +3 -3
- data/lib/eve_online/esi/corporation_blueprints.rb +7 -3
- data/lib/eve_online/esi/corporation_industry_jobs.rb +8 -4
- data/lib/eve_online/esi/corporation_killmails_recent.rb +7 -3
- data/lib/eve_online/esi/corporation_loyalty_store_offers.rb +3 -3
- data/lib/eve_online/esi/corporation_orders.rb +7 -3
- data/lib/eve_online/esi/dogma_attribute.rb +3 -3
- data/lib/eve_online/esi/dogma_attributes.rb +3 -3
- data/lib/eve_online/esi/dogma_effect.rb +3 -3
- data/lib/eve_online/esi/dogma_effects.rb +3 -3
- data/lib/eve_online/esi/market_history.rb +7 -3
- data/lib/eve_online/esi/models/corporation_alliance_history.rb +36 -0
- data/lib/eve_online/esi/server_status.rb +3 -3
- data/lib/eve_online/esi/universe_ancestries.rb +7 -3
- data/lib/eve_online/esi/universe_asteroid_belt.rb +3 -3
- data/lib/eve_online/esi/universe_bloodlines.rb +7 -3
- data/lib/eve_online/esi/universe_categories.rb +3 -3
- data/lib/eve_online/esi/universe_category.rb +7 -3
- data/lib/eve_online/esi/universe_constellation.rb +7 -3
- data/lib/eve_online/esi/universe_constellations.rb +3 -3
- data/lib/eve_online/esi/universe_factions.rb +7 -3
- data/lib/eve_online/esi/universe_graphic.rb +3 -3
- data/lib/eve_online/esi/universe_graphics.rb +3 -3
- data/lib/eve_online/esi/universe_group.rb +7 -3
- data/lib/eve_online/esi/universe_groups.rb +7 -3
- data/lib/eve_online/esi/universe_moon.rb +3 -3
- data/lib/eve_online/esi/universe_planet.rb +3 -3
- data/lib/eve_online/esi/universe_races.rb +7 -3
- data/lib/eve_online/esi/universe_region.rb +7 -3
- data/lib/eve_online/esi/universe_regions.rb +3 -3
- data/lib/eve_online/esi/universe_star.rb +3 -3
- data/lib/eve_online/esi/universe_stargate.rb +3 -3
- data/lib/eve_online/esi/universe_station.rb +3 -3
- data/lib/eve_online/esi/universe_structures.rb +15 -3
- data/lib/eve_online/esi/universe_system.rb +7 -3
- data/lib/eve_online/esi/universe_system_jumps.rb +3 -3
- data/lib/eve_online/esi/universe_system_kills.rb +3 -3
- data/lib/eve_online/esi/universe_systems.rb +3 -3
- data/lib/eve_online/esi/universe_type.rb +7 -3
- data/lib/eve_online/esi/universe_types.rb +7 -3
- data/lib/eve_online/esi/war_killmails.rb +7 -3
- data/lib/eve_online/esi/wars.rb +14 -7
- data/lib/eve_online/version.rb +1 -1
- metadata +4 -2
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterWalletJournal < Base
|
6
|
-
API_PATH = '/v6/characters/%<character_id>s/wallet/journal
|
6
|
+
API_PATH = '/v6/characters/%<character_id>s/wallet/journal/'
|
7
7
|
|
8
8
|
attr_reader :character_id, :page
|
9
9
|
|
@@ -29,8 +29,12 @@ module EveOnline
|
|
29
29
|
'esi-wallet.read_character_wallet.v1'
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
33
|
-
|
32
|
+
def additation_query_params
|
33
|
+
[:page]
|
34
|
+
end
|
35
|
+
|
36
|
+
def path
|
37
|
+
format("#{ API_PATH }", character_id: character_id)
|
34
38
|
end
|
35
39
|
end
|
36
40
|
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class Corporation < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH = '/v4/corporations/%<corporation_id>s
|
10
|
+
API_PATH = '/v4/corporations/%<corporation_id>s/'
|
11
11
|
|
12
12
|
attr_reader :corporation_id
|
13
13
|
|
@@ -28,8 +28,8 @@ module EveOnline
|
|
28
28
|
|
29
29
|
def scope; end
|
30
30
|
|
31
|
-
def
|
32
|
-
format("#{
|
31
|
+
def path
|
32
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
class CorporationAllianceHistory < Base
|
6
|
+
API_PATH = '/v2/corporations/%<corporation_id>s/alliancehistory/'
|
7
|
+
|
8
|
+
attr_reader :corporation_id
|
9
|
+
|
10
|
+
def initialize(options)
|
11
|
+
super
|
12
|
+
|
13
|
+
@corporation_id = options.fetch(:corporation_id)
|
14
|
+
end
|
15
|
+
|
16
|
+
def entries
|
17
|
+
@entries ||=
|
18
|
+
begin
|
19
|
+
output = []
|
20
|
+
response.each do |record|
|
21
|
+
output << Models::CorporationAllianceHistory.new(record)
|
22
|
+
end
|
23
|
+
output
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def scope; end
|
28
|
+
|
29
|
+
def roles
|
30
|
+
[]
|
31
|
+
end
|
32
|
+
|
33
|
+
def path
|
34
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationAssets < Base
|
6
|
-
API_PATH = '/v3/corporations/%<corporation_id>s/assets
|
6
|
+
API_PATH = '/v3/corporations/%<corporation_id>s/assets/'
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :page
|
9
9
|
|
@@ -33,8 +33,12 @@ module EveOnline
|
|
33
33
|
['Director']
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
37
|
-
|
36
|
+
def additation_query_params
|
37
|
+
[:page]
|
38
|
+
end
|
39
|
+
|
40
|
+
def path
|
41
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
38
42
|
end
|
39
43
|
end
|
40
44
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationAssetsLocations < Base
|
6
|
-
API_PATH = '/v2/corporations/%<corporation_id>s/assets/locations
|
6
|
+
API_PATH = '/v2/corporations/%<corporation_id>s/assets/locations/'
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :item_ids
|
9
9
|
|
@@ -45,8 +45,8 @@ module EveOnline
|
|
45
45
|
raise NotImplementedError
|
46
46
|
end
|
47
47
|
|
48
|
-
def
|
49
|
-
format("#{
|
48
|
+
def path
|
49
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationAssetsNames < Base
|
6
|
-
API_PATH = '/v1/corporations/%<corporation_id>s/assets/names
|
6
|
+
API_PATH = '/v1/corporations/%<corporation_id>s/assets/names/'
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :item_ids
|
9
9
|
|
@@ -45,8 +45,8 @@ module EveOnline
|
|
45
45
|
raise NotImplementedError
|
46
46
|
end
|
47
47
|
|
48
|
-
def
|
49
|
-
format("#{
|
48
|
+
def path
|
49
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationBlueprints < Base
|
6
|
-
API_PATH = '/v2/corporations/%<corporation_id>s/blueprints
|
6
|
+
API_PATH = '/v2/corporations/%<corporation_id>s/blueprints/'
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :page
|
9
9
|
|
@@ -33,8 +33,12 @@ module EveOnline
|
|
33
33
|
['Director']
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
37
|
-
|
36
|
+
def additation_query_params
|
37
|
+
[:page]
|
38
|
+
end
|
39
|
+
|
40
|
+
def path
|
41
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
38
42
|
end
|
39
43
|
end
|
40
44
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationIndustryJobs < Base
|
6
|
-
API_PATH = '/v1/corporations/%<corporation_id>s/industry/jobs
|
6
|
+
API_PATH = '/v1/corporations/%<corporation_id>s/industry/jobs/'
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :include_completed, :page
|
9
9
|
|
@@ -11,7 +11,7 @@ module EveOnline
|
|
11
11
|
super
|
12
12
|
|
13
13
|
@corporation_id = options.fetch(:corporation_id)
|
14
|
-
@include_completed = options.fetch(:include_completed,
|
14
|
+
@include_completed = options.fetch(:include_completed, nil)
|
15
15
|
@page = options.fetch(:page, 1)
|
16
16
|
end
|
17
17
|
|
@@ -34,8 +34,12 @@ module EveOnline
|
|
34
34
|
['Factory_Manager']
|
35
35
|
end
|
36
36
|
|
37
|
-
def
|
38
|
-
|
37
|
+
def additation_query_params
|
38
|
+
[:include_completed, :page]
|
39
|
+
end
|
40
|
+
|
41
|
+
def path
|
42
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
39
43
|
end
|
40
44
|
end
|
41
45
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationKillmailsRecent < Base
|
6
|
-
API_PATH = '/v1/corporations/%<corporation_id>s/killmails/recent
|
6
|
+
API_PATH = '/v1/corporations/%<corporation_id>s/killmails/recent/'
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :page
|
9
9
|
|
@@ -33,8 +33,12 @@ module EveOnline
|
|
33
33
|
['Director']
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
37
|
-
|
36
|
+
def additation_query_params
|
37
|
+
[:page]
|
38
|
+
end
|
39
|
+
|
40
|
+
def path
|
41
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
38
42
|
end
|
39
43
|
end
|
40
44
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationLoyaltyStoreOffers < Base
|
6
|
-
API_PATH = '/v1/loyalty/stores/%<corporation_id>s/offers
|
6
|
+
API_PATH = '/v1/loyalty/stores/%<corporation_id>s/offers/'
|
7
7
|
|
8
8
|
attr_reader :corporation_id
|
9
9
|
|
@@ -30,8 +30,8 @@ module EveOnline
|
|
30
30
|
[]
|
31
31
|
end
|
32
32
|
|
33
|
-
def
|
34
|
-
format("#{
|
33
|
+
def path
|
34
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationOrders < Base
|
6
|
-
API_PATH = '/v3/corporations/%<corporation_id>s/orders
|
6
|
+
API_PATH = '/v3/corporations/%<corporation_id>s/orders/'
|
7
7
|
|
8
8
|
attr_reader :corporation_id, :page
|
9
9
|
|
@@ -33,8 +33,12 @@ module EveOnline
|
|
33
33
|
['Accountant', 'Trader']
|
34
34
|
end
|
35
35
|
|
36
|
-
def
|
37
|
-
|
36
|
+
def additation_query_params
|
37
|
+
[:page]
|
38
|
+
end
|
39
|
+
|
40
|
+
def path
|
41
|
+
format("#{ API_PATH }", corporation_id: corporation_id)
|
38
42
|
end
|
39
43
|
end
|
40
44
|
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class DogmaAttribute < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH = '/v1/dogma/attributes/%<attribute_id>s
|
10
|
+
API_PATH = '/v1/dogma/attributes/%<attribute_id>s/'
|
11
11
|
|
12
12
|
attr_reader :id
|
13
13
|
|
@@ -27,8 +27,8 @@ module EveOnline
|
|
27
27
|
|
28
28
|
def scope; end
|
29
29
|
|
30
|
-
def
|
31
|
-
format("#{
|
30
|
+
def path
|
31
|
+
format("#{ API_PATH }", attribute_id: id)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class DogmaAttributes < Base
|
6
|
-
API_PATH = '/v1/dogma/attributes
|
6
|
+
API_PATH = '/v1/dogma/attributes/'
|
7
7
|
|
8
8
|
def attribute_ids
|
9
9
|
response
|
@@ -11,8 +11,8 @@ module EveOnline
|
|
11
11
|
|
12
12
|
def scope; end
|
13
13
|
|
14
|
-
def
|
15
|
-
|
14
|
+
def path
|
15
|
+
API_PATH
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class DogmaEffect < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH = '/v2/dogma/effects/%<effect_id>s
|
10
|
+
API_PATH = '/v2/dogma/effects/%<effect_id>s/'
|
11
11
|
|
12
12
|
attr_reader :id
|
13
13
|
|
@@ -32,8 +32,8 @@ module EveOnline
|
|
32
32
|
|
33
33
|
def scope; end
|
34
34
|
|
35
|
-
def
|
36
|
-
format("#{
|
35
|
+
def path
|
36
|
+
format("#{ API_PATH }", effect_id: id)
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class DogmaEffects < Base
|
6
|
-
API_PATH = '/v1/dogma/effects
|
6
|
+
API_PATH = '/v1/dogma/effects/'
|
7
7
|
|
8
8
|
def effect_ids
|
9
9
|
response
|
@@ -11,8 +11,8 @@ module EveOnline
|
|
11
11
|
|
12
12
|
def scope; end
|
13
13
|
|
14
|
-
def
|
15
|
-
|
14
|
+
def path
|
15
|
+
API_PATH
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class MarketHistory < Base
|
6
|
-
API_PATH = '/v1/markets/%<region_id>s/history
|
6
|
+
API_PATH = '/v1/markets/%<region_id>s/history/'
|
7
7
|
|
8
8
|
attr_reader :region_id, :type_id
|
9
9
|
|
@@ -27,8 +27,12 @@ module EveOnline
|
|
27
27
|
|
28
28
|
def scope; end
|
29
29
|
|
30
|
-
def
|
31
|
-
|
30
|
+
def additation_query_params
|
31
|
+
[:type_id]
|
32
|
+
end
|
33
|
+
|
34
|
+
def path
|
35
|
+
format("#{ API_PATH }", region_id: region_id)
|
32
36
|
end
|
33
37
|
end
|
34
38
|
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
module Models
|
6
|
+
class CorporationAllianceHistory < Base
|
7
|
+
def as_json
|
8
|
+
{
|
9
|
+
alliance_id: alliance_id,
|
10
|
+
is_deleted: is_deleted,
|
11
|
+
record_id: record_id,
|
12
|
+
start_date: start_date
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
def alliance_id
|
17
|
+
options['alliance_id']
|
18
|
+
end
|
19
|
+
|
20
|
+
def is_deleted
|
21
|
+
options['is_deleted']
|
22
|
+
end
|
23
|
+
|
24
|
+
def record_id
|
25
|
+
options['record_id']
|
26
|
+
end
|
27
|
+
|
28
|
+
def start_date
|
29
|
+
start_date = options['start_date']
|
30
|
+
|
31
|
+
parse_datetime_with_timezone(start_date) if start_date
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class ServerStatus < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_PATH = '/v1/status
|
10
|
+
API_PATH = '/v1/status/'
|
11
11
|
|
12
12
|
def_delegators :model, :as_json, :players, :server_version, :start_time, :vip
|
13
13
|
|
@@ -17,8 +17,8 @@ module EveOnline
|
|
17
17
|
|
18
18
|
def scope; end
|
19
19
|
|
20
|
-
def
|
21
|
-
|
20
|
+
def path
|
21
|
+
API_PATH
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class UniverseAncestries < Base
|
6
|
-
API_PATH = '/v1/universe/ancestries
|
6
|
+
API_PATH = '/v1/universe/ancestries/'
|
7
7
|
|
8
8
|
def ancestries
|
9
9
|
@ancestries ||=
|
@@ -18,8 +18,12 @@ module EveOnline
|
|
18
18
|
|
19
19
|
def scope; end
|
20
20
|
|
21
|
-
def
|
22
|
-
|
21
|
+
def additation_query_params
|
22
|
+
[:language]
|
23
|
+
end
|
24
|
+
|
25
|
+
def path
|
26
|
+
API_PATH
|
23
27
|
end
|
24
28
|
end
|
25
29
|
end
|