eve_online 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_rspec.yml +4 -0
- data/.ruby-version +1 -1
- data/.travis.yml +6 -8
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +7 -7
- data/Gemfile.mutant.lock +4 -4
- data/README.md +37 -33
- data/lib/eve_online.rb +1 -0
- data/lib/eve_online/esi/alliance.rb +2 -2
- data/lib/eve_online/esi/alliance_corporations.rb +2 -2
- data/lib/eve_online/esi/alliance_icon.rb +2 -2
- data/lib/eve_online/esi/alliances.rb +2 -2
- data/lib/eve_online/esi/base.rb +22 -0
- data/lib/eve_online/esi/character.rb +2 -2
- data/lib/eve_online/esi/character_assets.rb +2 -2
- data/lib/eve_online/esi/character_assets_locations.rb +2 -2
- data/lib/eve_online/esi/character_assets_names.rb +2 -2
- data/lib/eve_online/esi/character_attributes.rb +2 -2
- data/lib/eve_online/esi/character_blueprints.rb +2 -2
- data/lib/eve_online/esi/character_bookmark_folders.rb +2 -2
- data/lib/eve_online/esi/character_bookmarks.rb +2 -2
- data/lib/eve_online/esi/character_calendar.rb +4 -2
- data/lib/eve_online/esi/character_clones.rb +2 -2
- data/lib/eve_online/esi/character_fatigue.rb +2 -2
- data/lib/eve_online/esi/character_implants.rb +2 -2
- data/lib/eve_online/esi/character_industry_jobs.rb +2 -2
- data/lib/eve_online/esi/character_killmails_recent.rb +2 -2
- data/lib/eve_online/esi/character_location.rb +2 -2
- data/lib/eve_online/esi/character_loyalty_points.rb +2 -2
- data/lib/eve_online/esi/character_notifications.rb +2 -2
- data/lib/eve_online/esi/character_online.rb +2 -2
- data/lib/eve_online/esi/character_orders.rb +2 -2
- data/lib/eve_online/esi/character_portrait.rb +2 -2
- data/lib/eve_online/esi/character_ship.rb +2 -2
- data/lib/eve_online/esi/character_skill_queue.rb +2 -2
- data/lib/eve_online/esi/character_skills.rb +2 -2
- data/lib/eve_online/esi/character_standings.rb +2 -2
- data/lib/eve_online/esi/character_wallet.rb +2 -2
- data/lib/eve_online/esi/character_wallet_journal.rb +2 -2
- data/lib/eve_online/esi/corporation.rb +2 -2
- data/lib/eve_online/esi/corporation_blueprints.rb +2 -2
- data/lib/eve_online/esi/corporation_industry_jobs.rb +2 -2
- data/lib/eve_online/esi/corporation_killmails_recent.rb +2 -2
- data/lib/eve_online/esi/corporation_orders.rb +2 -2
- data/lib/eve_online/esi/dogma_attribute.rb +2 -2
- data/lib/eve_online/esi/dogma_attributes.rb +2 -2
- data/lib/eve_online/esi/dogma_effect.rb +2 -2
- data/lib/eve_online/esi/dogma_effects.rb +2 -2
- data/lib/eve_online/esi/market_history.rb +2 -2
- data/lib/eve_online/esi/models/bookmark.rb +5 -15
- data/lib/eve_online/esi/models/coordinates.rb +30 -0
- data/lib/eve_online/esi/models/jump_clone.rb +1 -2
- data/lib/eve_online/esi/server_status.rb +2 -2
- data/lib/eve_online/esi/universe_ancestries.rb +2 -2
- data/lib/eve_online/esi/universe_asteroid_belt.rb +2 -2
- data/lib/eve_online/esi/universe_bloodlines.rb +2 -2
- data/lib/eve_online/esi/universe_categories.rb +2 -2
- data/lib/eve_online/esi/universe_category.rb +2 -2
- data/lib/eve_online/esi/universe_constellation.rb +2 -2
- data/lib/eve_online/esi/universe_constellations.rb +2 -2
- data/lib/eve_online/esi/universe_factions.rb +2 -2
- data/lib/eve_online/esi/universe_graphic.rb +2 -2
- data/lib/eve_online/esi/universe_graphics.rb +2 -2
- data/lib/eve_online/esi/universe_group.rb +2 -2
- data/lib/eve_online/esi/universe_groups.rb +2 -2
- data/lib/eve_online/esi/universe_moon.rb +2 -2
- data/lib/eve_online/esi/universe_planet.rb +2 -2
- data/lib/eve_online/esi/universe_races.rb +2 -2
- data/lib/eve_online/esi/universe_region.rb +2 -2
- data/lib/eve_online/esi/universe_regions.rb +2 -2
- data/lib/eve_online/esi/universe_star.rb +2 -2
- data/lib/eve_online/esi/universe_stargate.rb +2 -2
- data/lib/eve_online/esi/universe_station.rb +2 -2
- data/lib/eve_online/esi/universe_structures.rb +2 -2
- data/lib/eve_online/esi/universe_system.rb +2 -2
- data/lib/eve_online/esi/universe_system_jumps.rb +2 -2
- data/lib/eve_online/esi/universe_system_kills.rb +2 -2
- data/lib/eve_online/esi/universe_systems.rb +2 -2
- data/lib/eve_online/esi/universe_type.rb +2 -2
- data/lib/eve_online/esi/universe_types.rb +2 -2
- data/lib/eve_online/esi/war_killmails.rb +2 -2
- data/lib/eve_online/esi/wars.rb +7 -2
- data/lib/eve_online/version.rb +1 -1
- metadata +3 -2
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class Character < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
|
10
|
+
API_PATH = '/v4/characters/%<character_id>s/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -28,7 +28,7 @@ module EveOnline
|
|
28
28
|
def scope; end
|
29
29
|
|
30
30
|
def url
|
31
|
-
format(
|
31
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterAssets < Base
|
6
|
-
|
6
|
+
API_PATH = '/v3/characters/%<character_id>s/assets/?datasource=%<datasource>s&page=%<page>s'
|
7
7
|
|
8
8
|
attr_reader :character_id, :page
|
9
9
|
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(
|
33
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterAssetsLocations < Base
|
6
|
-
|
6
|
+
API_PATH = '/v2/characters/%<character_id>s/assets/locations/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id, :item_ids
|
9
9
|
|
@@ -38,7 +38,7 @@ module EveOnline
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def url
|
41
|
-
format(
|
41
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterAssetsNames < Base
|
6
|
-
|
6
|
+
API_PATH = '/v1/characters/%<character_id>s/assets/names/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id, :item_ids
|
9
9
|
|
@@ -38,7 +38,7 @@ module EveOnline
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def url
|
41
|
-
format(
|
41
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class CharacterAttributes < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
|
10
|
+
API_PATH = '/v1/characters/%<character_id>s/attributes/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(
|
33
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterBlueprints < Base
|
6
|
-
|
6
|
+
API_PATH = '/v2/characters/%<character_id>s/blueprints/?datasource=%<datasource>s&page=%<page>s'
|
7
7
|
|
8
8
|
attr_reader :character_id, :page
|
9
9
|
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(
|
33
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterBookmarkFolders < Base
|
6
|
-
|
6
|
+
API_PATH = '/v2/characters/%<character_id>s/bookmarks/folders/?datasource=%<datasource>s&page=%<page>s'
|
7
7
|
|
8
8
|
attr_reader :character_id, :page
|
9
9
|
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(
|
33
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterBookmarks < Base
|
6
|
-
|
6
|
+
API_PATH = '/v2/characters/%<character_id>s/bookmarks/?datasource=%<datasource>s&page=%<page>s'
|
7
7
|
|
8
8
|
attr_reader :character_id, :page
|
9
9
|
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(
|
33
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterCalendar < Base
|
6
|
-
|
6
|
+
API_PATH = '/v1/characters/%<character_id>s/calendar/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -11,6 +11,8 @@ module EveOnline
|
|
11
11
|
super
|
12
12
|
|
13
13
|
@character_id = options.fetch(:character_id)
|
14
|
+
# TODO:
|
15
|
+
# @from_event =
|
14
16
|
end
|
15
17
|
|
16
18
|
def events
|
@@ -29,7 +31,7 @@ module EveOnline
|
|
29
31
|
end
|
30
32
|
|
31
33
|
def url
|
32
|
-
format(
|
34
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
33
35
|
end
|
34
36
|
end
|
35
37
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterClones < Base
|
6
|
-
|
6
|
+
API_PATH = '/v3/characters/%<character_id>s/clones/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -45,7 +45,7 @@ module EveOnline
|
|
45
45
|
end
|
46
46
|
|
47
47
|
def url
|
48
|
-
format(
|
48
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
49
49
|
end
|
50
50
|
end
|
51
51
|
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class CharacterFatigue < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
|
10
|
+
API_PATH = '/v1/characters/%<character_id>s/fatigue/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(
|
32
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterImplants < Base
|
6
|
-
|
6
|
+
API_PATH = '/v1/characters/%<character_id>s/implants/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -22,7 +22,7 @@ module EveOnline
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def url
|
25
|
-
format(
|
25
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterIndustryJobs < Base
|
6
|
-
|
6
|
+
API_PATH = '/v1/characters/%<character_id>s/industry/jobs/?datasource=%<datasource>s&include_completed=%<include_completed>s'
|
7
7
|
|
8
8
|
attr_reader :character_id, :include_completed
|
9
9
|
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(
|
33
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, include_completed: include_completed, datasource: datasource)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterKillmailsRecent < Base
|
6
|
-
|
6
|
+
API_PATH = '/v1/characters/%<character_id>s/killmails/recent/?datasource=%<datasource>s&page=%<page>s'
|
7
7
|
|
8
8
|
attr_reader :character_id, :page
|
9
9
|
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(
|
33
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class CharacterLocation < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
|
10
|
+
API_PATH = '/v1/characters/%<character_id>s/location/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(
|
32
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterLoyaltyPoints < Base
|
6
|
-
|
6
|
+
API_PATH = '/v1/characters/%<character_id>s/loyalty/points/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(
|
32
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterNotifications < Base
|
6
|
-
|
6
|
+
API_PATH = '/v4/characters/%<character_id>s/notifications/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(
|
32
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class CharacterOnline < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
|
10
|
+
API_PATH = '/v2/characters/%<character_id>s/online/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(
|
32
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterOrders < Base
|
6
|
-
|
6
|
+
API_PATH = '/v2/characters/%<character_id>s/orders/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(
|
32
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class CharacterPortrait < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
|
10
|
+
API_PATH = '/v2/characters/%<character_id>s/portrait/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -26,7 +26,7 @@ module EveOnline
|
|
26
26
|
def scope; end
|
27
27
|
|
28
28
|
def url
|
29
|
-
format(
|
29
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class CharacterShip < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
|
10
|
+
API_PATH = '/v1/characters/%<character_id>s/ship/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
attr_reader :character_id
|
13
13
|
|
@@ -28,7 +28,7 @@ module EveOnline
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def url
|
31
|
-
format(
|
31
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
32
32
|
end
|
33
33
|
end
|
34
34
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterSkillQueue < Base
|
6
|
-
|
6
|
+
API_PATH = '/v2/characters/%<character_id>s/skillqueue/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(
|
32
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterSkills < Base
|
6
|
-
|
6
|
+
API_PATH = '/v4/characters/%<character_id>s/skills/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -44,7 +44,7 @@ module EveOnline
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def url
|
47
|
-
format(
|
47
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
48
48
|
end
|
49
49
|
end
|
50
50
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CharacterStandings < Base
|
6
|
-
|
6
|
+
API_PATH = '/v1/characters/%<character_id>s/standings/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
attr_reader :character_id
|
9
9
|
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(
|
32
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|