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.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -0
  3. data/Gemfile.lock +3 -3
  4. data/Gemfile.mutant.lock +2 -2
  5. data/README.md +54 -6
  6. data/lib/eve_online.rb +2 -0
  7. data/lib/eve_online/esi/alliance.rb +3 -3
  8. data/lib/eve_online/esi/alliance_corporations.rb +3 -3
  9. data/lib/eve_online/esi/alliance_icon.rb +3 -3
  10. data/lib/eve_online/esi/alliances.rb +3 -3
  11. data/lib/eve_online/esi/base.rb +27 -4
  12. data/lib/eve_online/esi/character.rb +3 -3
  13. data/lib/eve_online/esi/character_assets.rb +7 -3
  14. data/lib/eve_online/esi/character_assets_locations.rb +3 -3
  15. data/lib/eve_online/esi/character_assets_names.rb +3 -3
  16. data/lib/eve_online/esi/character_attributes.rb +3 -3
  17. data/lib/eve_online/esi/character_blueprints.rb +7 -3
  18. data/lib/eve_online/esi/character_bookmark_folders.rb +7 -3
  19. data/lib/eve_online/esi/character_bookmarks.rb +7 -3
  20. data/lib/eve_online/esi/character_calendar.rb +9 -6
  21. data/lib/eve_online/esi/character_calendar_event.rb +3 -3
  22. data/lib/eve_online/esi/character_clones.rb +3 -3
  23. data/lib/eve_online/esi/character_corporation_history.rb +3 -3
  24. data/lib/eve_online/esi/character_fatigue.rb +3 -3
  25. data/lib/eve_online/esi/character_implants.rb +3 -3
  26. data/lib/eve_online/esi/character_industry_jobs.rb +8 -4
  27. data/lib/eve_online/esi/character_killmails_recent.rb +7 -3
  28. data/lib/eve_online/esi/character_location.rb +3 -3
  29. data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
  30. data/lib/eve_online/esi/character_notifications.rb +3 -3
  31. data/lib/eve_online/esi/character_online.rb +3 -3
  32. data/lib/eve_online/esi/character_orders.rb +3 -3
  33. data/lib/eve_online/esi/character_portrait.rb +3 -3
  34. data/lib/eve_online/esi/character_ship.rb +3 -3
  35. data/lib/eve_online/esi/character_skill_queue.rb +3 -3
  36. data/lib/eve_online/esi/character_skills.rb +3 -3
  37. data/lib/eve_online/esi/character_standings.rb +3 -3
  38. data/lib/eve_online/esi/character_wallet.rb +3 -3
  39. data/lib/eve_online/esi/character_wallet_journal.rb +7 -3
  40. data/lib/eve_online/esi/corporation.rb +3 -3
  41. data/lib/eve_online/esi/corporation_alliance_history.rb +38 -0
  42. data/lib/eve_online/esi/corporation_assets.rb +7 -3
  43. data/lib/eve_online/esi/corporation_assets_locations.rb +3 -3
  44. data/lib/eve_online/esi/corporation_assets_names.rb +3 -3
  45. data/lib/eve_online/esi/corporation_blueprints.rb +7 -3
  46. data/lib/eve_online/esi/corporation_industry_jobs.rb +8 -4
  47. data/lib/eve_online/esi/corporation_killmails_recent.rb +7 -3
  48. data/lib/eve_online/esi/corporation_loyalty_store_offers.rb +3 -3
  49. data/lib/eve_online/esi/corporation_orders.rb +7 -3
  50. data/lib/eve_online/esi/dogma_attribute.rb +3 -3
  51. data/lib/eve_online/esi/dogma_attributes.rb +3 -3
  52. data/lib/eve_online/esi/dogma_effect.rb +3 -3
  53. data/lib/eve_online/esi/dogma_effects.rb +3 -3
  54. data/lib/eve_online/esi/market_history.rb +7 -3
  55. data/lib/eve_online/esi/models/corporation_alliance_history.rb +36 -0
  56. data/lib/eve_online/esi/server_status.rb +3 -3
  57. data/lib/eve_online/esi/universe_ancestries.rb +7 -3
  58. data/lib/eve_online/esi/universe_asteroid_belt.rb +3 -3
  59. data/lib/eve_online/esi/universe_bloodlines.rb +7 -3
  60. data/lib/eve_online/esi/universe_categories.rb +3 -3
  61. data/lib/eve_online/esi/universe_category.rb +7 -3
  62. data/lib/eve_online/esi/universe_constellation.rb +7 -3
  63. data/lib/eve_online/esi/universe_constellations.rb +3 -3
  64. data/lib/eve_online/esi/universe_factions.rb +7 -3
  65. data/lib/eve_online/esi/universe_graphic.rb +3 -3
  66. data/lib/eve_online/esi/universe_graphics.rb +3 -3
  67. data/lib/eve_online/esi/universe_group.rb +7 -3
  68. data/lib/eve_online/esi/universe_groups.rb +7 -3
  69. data/lib/eve_online/esi/universe_moon.rb +3 -3
  70. data/lib/eve_online/esi/universe_planet.rb +3 -3
  71. data/lib/eve_online/esi/universe_races.rb +7 -3
  72. data/lib/eve_online/esi/universe_region.rb +7 -3
  73. data/lib/eve_online/esi/universe_regions.rb +3 -3
  74. data/lib/eve_online/esi/universe_star.rb +3 -3
  75. data/lib/eve_online/esi/universe_stargate.rb +3 -3
  76. data/lib/eve_online/esi/universe_station.rb +3 -3
  77. data/lib/eve_online/esi/universe_structures.rb +15 -3
  78. data/lib/eve_online/esi/universe_system.rb +7 -3
  79. data/lib/eve_online/esi/universe_system_jumps.rb +3 -3
  80. data/lib/eve_online/esi/universe_system_kills.rb +3 -3
  81. data/lib/eve_online/esi/universe_systems.rb +3 -3
  82. data/lib/eve_online/esi/universe_type.rb +7 -3
  83. data/lib/eve_online/esi/universe_types.rb +7 -3
  84. data/lib/eve_online/esi/war_killmails.rb +7 -3
  85. data/lib/eve_online/esi/wars.rb +14 -7
  86. data/lib/eve_online/version.rb +1 -1
  87. metadata +4 -2
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterBookmarkFolders < Base
6
- API_PATH = '/v2/characters/%<character_id>s/bookmarks/folders/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v2/characters/%<character_id>s/bookmarks/folders/'
7
7
 
8
8
  attr_reader :character_id, :page
9
9
 
@@ -29,8 +29,12 @@ module EveOnline
29
29
  'esi-bookmarks.read_character_bookmarks.v1'
30
30
  end
31
31
 
32
- def url
33
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
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
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterBookmarks < Base
6
- API_PATH = '/v2/characters/%<character_id>s/bookmarks/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v2/characters/%<character_id>s/bookmarks/'
7
7
 
8
8
  attr_reader :character_id, :page
9
9
 
@@ -29,8 +29,12 @@ module EveOnline
29
29
  'esi-bookmarks.read_character_bookmarks.v1'
30
30
  end
31
31
 
32
- def url
33
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
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
@@ -3,16 +3,15 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterCalendar < Base
6
- API_PATH = '/v1/characters/%<character_id>s/calendar/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/characters/%<character_id>s/calendar/'
7
7
 
8
- attr_reader :character_id
8
+ attr_reader :character_id, :from_event
9
9
 
10
10
  def initialize(options)
11
11
  super
12
12
 
13
13
  @character_id = options.fetch(:character_id)
14
- # TODO:
15
- # @from_event =
14
+ @from_event = options.fetch(:from_event, nil)
16
15
  end
17
16
 
18
17
  def events
@@ -30,8 +29,12 @@ module EveOnline
30
29
  'esi-calendar.read_calendar_events.v1'
31
30
  end
32
31
 
33
- def url
34
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
32
+ def additation_query_params
33
+ [:from_event]
34
+ end
35
+
36
+ def path
37
+ format("#{ API_PATH }", character_id: character_id)
35
38
  end
36
39
  end
37
40
  end
@@ -5,7 +5,7 @@ module EveOnline
5
5
  class CharacterCalendarEvent < Base
6
6
  extend Forwardable
7
7
 
8
- API_PATH = '/v3/characters/%<character_id>s/calendar/%<event_id>s/?datasource=%<datasource>s'
8
+ API_PATH = '/v3/characters/%<character_id>s/calendar/%<event_id>s/'
9
9
 
10
10
  attr_reader :character_id, :event_id
11
11
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
  'esi-calendar.read_calendar_events.v1'
29
29
  end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, event_id: event_id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", character_id: character_id, event_id: event_id)
33
33
  end
34
34
  end
35
35
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterClones < Base
6
- API_PATH = '/v3/characters/%<character_id>s/clones/?datasource=%<datasource>s'
6
+ API_PATH = '/v3/characters/%<character_id>s/clones/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -44,8 +44,8 @@ module EveOnline
44
44
  'esi-clones.read_clones.v1'
45
45
  end
46
46
 
47
- def url
48
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
47
+ def path
48
+ format("#{ API_PATH }", character_id: character_id)
49
49
  end
50
50
  end
51
51
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterCorporationHistory < Base
6
- API_PATH = '/v1/characters/%<character_id>s/corporationhistory/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/characters/%<character_id>s/corporationhistory/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -26,8 +26,8 @@ module EveOnline
26
26
 
27
27
  def scope; end
28
28
 
29
- def url
30
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
29
+ def path
30
+ format("#{ API_PATH }", character_id: character_id)
31
31
  end
32
32
  end
33
33
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class CharacterFatigue < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/characters/%<character_id>s/fatigue/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/characters/%<character_id>s/fatigue/'
11
11
 
12
12
  attr_reader :character_id
13
13
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
  'esi-characters.read_fatigue.v1'
29
29
  end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v1/characters/%<character_id>s/implants/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/characters/%<character_id>s/implants/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -21,8 +21,8 @@ module EveOnline
21
21
  'esi-clones.read_implants.v1'
22
22
  end
23
23
 
24
- def url
25
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
24
+ def path
25
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v1/characters/%<character_id>s/industry/jobs/?datasource=%<datasource>s&include_completed=%<include_completed>s'
6
+ API_PATH = '/v1/characters/%<character_id>s/industry/jobs/'
7
7
 
8
8
  attr_reader :character_id, :include_completed
9
9
 
@@ -11,7 +11,7 @@ module EveOnline
11
11
  super
12
12
 
13
13
  @character_id = options.fetch(:character_id)
14
- @include_completed = options.fetch(:include_completed, false)
14
+ @include_completed = options.fetch(:include_completed, nil)
15
15
  end
16
16
 
17
17
  def jobs
@@ -29,8 +29,12 @@ module EveOnline
29
29
  'esi-industry.read_character_jobs.v1'
30
30
  end
31
31
 
32
- def url
33
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, include_completed: include_completed, datasource: datasource)
32
+ def additation_query_params
33
+ [:include_completed]
34
+ end
35
+
36
+ def path
37
+ format("#{ API_PATH }", character_id: character_id)
34
38
  end
35
39
  end
36
40
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterKillmailsRecent < Base
6
- API_PATH = '/v1/characters/%<character_id>s/killmails/recent/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v1/characters/%<character_id>s/killmails/recent/'
7
7
 
8
8
  attr_reader :character_id, :page
9
9
 
@@ -29,8 +29,12 @@ module EveOnline
29
29
  'esi-killmails.read_killmails.v1'
30
30
  end
31
31
 
32
- def url
33
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource, page: page)
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 CharacterLocation < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/characters/%<character_id>s/location/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/characters/%<character_id>s/location/'
11
11
 
12
12
  attr_reader :character_id
13
13
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
  'esi-location.read_location.v1'
29
29
  end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v1/characters/%<character_id>s/loyalty/points/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/characters/%<character_id>s/loyalty/points/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
  'esi-characters.read_loyalty.v1'
29
29
  end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v5/characters/%<character_id>s/notifications/?datasource=%<datasource>s'
6
+ API_PATH = '/v5/characters/%<character_id>s/notifications/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
  'esi-characters.read_notifications.v1'
29
29
  end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v2/characters/%<character_id>s/online/?datasource=%<datasource>s'
10
+ API_PATH = '/v2/characters/%<character_id>s/online/'
11
11
 
12
12
  attr_reader :character_id
13
13
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
  'esi-location.read_online.v1'
29
29
  end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v2/characters/%<character_id>s/orders/?datasource=%<datasource>s'
6
+ API_PATH = '/v2/characters/%<character_id>s/orders/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
  'esi-markets.read_character_orders.v1'
29
29
  end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v2/characters/%<character_id>s/portrait/?datasource=%<datasource>s'
10
+ API_PATH = '/v2/characters/%<character_id>s/portrait/'
11
11
 
12
12
  attr_reader :character_id
13
13
 
@@ -25,8 +25,8 @@ module EveOnline
25
25
 
26
26
  def scope; end
27
27
 
28
- def url
29
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
28
+ def path
29
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v1/characters/%<character_id>s/ship/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/characters/%<character_id>s/ship/'
11
11
 
12
12
  attr_reader :character_id
13
13
 
@@ -27,8 +27,8 @@ module EveOnline
27
27
  'esi-location.read_ship_type.v1'
28
28
  end
29
29
 
30
- def url
31
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
30
+ def path
31
+ format("#{ API_PATH }", character_id: character_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 CharacterSkillQueue < Base
6
- API_PATH = '/v2/characters/%<character_id>s/skillqueue/?datasource=%<datasource>s'
6
+ API_PATH = '/v2/characters/%<character_id>s/skillqueue/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
  'esi-skills.read_skillqueue.v1'
29
29
  end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v4/characters/%<character_id>s/skills/?datasource=%<datasource>s'
6
+ API_PATH = '/v4/characters/%<character_id>s/skills/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -43,8 +43,8 @@ module EveOnline
43
43
  'esi-skills.read_skills.v1'
44
44
  end
45
45
 
46
- def url
47
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
46
+ def path
47
+ format("#{ API_PATH }", character_id: character_id)
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
- API_PATH = '/v1/characters/%<character_id>s/standings/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/characters/%<character_id>s/standings/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
  'esi-characters.read_standings.v1'
29
29
  end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", character_id: character_id)
33
33
  end
34
34
  end
35
35
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterWallet < Base
6
- API_PATH = '/v1/characters/%<character_id>s/wallet/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/characters/%<character_id>s/wallet/'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -27,8 +27,8 @@ module EveOnline
27
27
  'esi-wallet.read_character_wallet.v1'
28
28
  end
29
29
 
30
- def url
31
- format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
30
+ def path
31
+ format("#{ API_PATH }", character_id: character_id)
32
32
  end
33
33
  end
34
34
  end