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
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseAsteroidBelt < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/asteroid_belts/%<asteroid_belt_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/asteroid_belts/%<asteroid_belt_id>s/'
11
11
 
12
12
  attr_reader :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 }", asteroid_belt_id: id, datasource: datasource)
28
+ def path
29
+ format("#{ API_PATH }", asteroid_belt_id: id)
30
30
  end
31
31
  end
32
32
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseBloodlines < Base
6
- API_PATH = '/v1/universe/bloodlines/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/bloodlines/'
7
7
 
8
8
  def bloodlines
9
9
  @bloodlines ||=
@@ -18,8 +18,12 @@ module EveOnline
18
18
 
19
19
  def scope; end
20
20
 
21
- def url
22
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
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
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseCategories < Base
6
- API_PATH = '/v1/universe/categories/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/categories/'
7
7
 
8
8
  def category_ids
9
9
  response
@@ -11,8 +11,8 @@ module EveOnline
11
11
 
12
12
  def scope; end
13
13
 
14
- def url
15
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
14
+ def path
15
+ API_PATH
16
16
  end
17
17
  end
18
18
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseCategory < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/categories/%<category_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/categories/%<category_id>s/'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -26,8 +26,12 @@ module EveOnline
26
26
 
27
27
  def scope; end
28
28
 
29
- def url
30
- format("#{ API_HOST }#{ API_PATH }", category_id: id, datasource: datasource)
29
+ def additation_query_params
30
+ [:language]
31
+ end
32
+
33
+ def path
34
+ format("#{ API_PATH }", category_id: id)
31
35
  end
32
36
  end
33
37
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseConstellation < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/constellations/%<constellation_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/constellations/%<constellation_id>s/'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -26,8 +26,12 @@ module EveOnline
26
26
 
27
27
  def scope; end
28
28
 
29
- def url
30
- format("#{ API_HOST }#{ API_PATH }", constellation_id: id, datasource: datasource)
29
+ def additation_query_params
30
+ [:language]
31
+ end
32
+
33
+ def path
34
+ format("#{ API_PATH }", constellation_id: id)
31
35
  end
32
36
  end
33
37
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseConstellations < Base
6
- API_PATH = '/v1/universe/constellations/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/constellations/'
7
7
 
8
8
  def constellation_ids
9
9
  response
@@ -11,8 +11,8 @@ module EveOnline
11
11
 
12
12
  def scope; end
13
13
 
14
- def url
15
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
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 UniverseFactions < Base
6
- API_PATH = '/v2/universe/factions/?datasource=%<datasource>s'
6
+ API_PATH = '/v2/universe/factions/'
7
7
 
8
8
  def factions
9
9
  @factions ||=
@@ -18,8 +18,12 @@ module EveOnline
18
18
 
19
19
  def scope; end
20
20
 
21
- def url
22
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
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
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseGraphic < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/graphics/%<graphic_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/graphics/%<graphic_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 url
31
- format("#{ API_HOST }#{ API_PATH }", graphic_id: id, datasource: datasource)
30
+ def path
31
+ format("#{ API_PATH }", graphic_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 UniverseGraphics < Base
6
- API_PATH = '/v1/universe/graphics/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/graphics/'
7
7
 
8
8
  def graphic_ids
9
9
  response
@@ -11,8 +11,8 @@ module EveOnline
11
11
 
12
12
  def scope; end
13
13
 
14
- def url
15
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
14
+ def path
15
+ API_PATH
16
16
  end
17
17
  end
18
18
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseGroup < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/groups/%<group_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/groups/%<group_id>s/'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -26,8 +26,12 @@ module EveOnline
26
26
 
27
27
  def scope; end
28
28
 
29
- def url
30
- format("#{ API_HOST }#{ API_PATH }", group_id: id, datasource: datasource)
29
+ def additation_query_params
30
+ [:language]
31
+ end
32
+
33
+ def path
34
+ format("#{ API_PATH }", group_id: id)
31
35
  end
32
36
  end
33
37
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseGroups < Base
6
- API_PATH = '/v1/universe/groups/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v1/universe/groups/'
7
7
 
8
8
  attr_reader :page
9
9
 
@@ -19,8 +19,12 @@ module EveOnline
19
19
 
20
20
  def scope; end
21
21
 
22
- def url
23
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource, page: page)
22
+ def additation_query_params
23
+ [:page]
24
+ end
25
+
26
+ def path
27
+ API_PATH
24
28
  end
25
29
  end
26
30
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseMoon < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/moons/%<moon_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/moons/%<moon_id>s/'
11
11
 
12
12
  attr_reader :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 }", moon_id: id, datasource: datasource)
28
+ def path
29
+ format("#{ API_PATH }", moon_id: id)
30
30
  end
31
31
  end
32
32
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniversePlanet < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/planets/%<planet_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/planets/%<planet_id>s/'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -26,8 +26,8 @@ module EveOnline
26
26
 
27
27
  def scope; end
28
28
 
29
- def url
30
- format("#{ API_HOST }#{ API_PATH }", planet_id: id, datasource: datasource)
29
+ def path
30
+ format("#{ API_PATH }", planet_id: id)
31
31
  end
32
32
  end
33
33
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseRaces < Base
6
- API_PATH = '/v1/universe/races/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/races/'
7
7
 
8
8
  def races
9
9
  @races ||=
@@ -18,8 +18,12 @@ module EveOnline
18
18
 
19
19
  def scope; end
20
20
 
21
- def url
22
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
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
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseRegion < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/regions/%<region_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/regions/%<region_id>s/'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -26,8 +26,12 @@ module EveOnline
26
26
 
27
27
  def scope; end
28
28
 
29
- def url
30
- format("#{ API_HOST }#{ API_PATH }", region_id: id, datasource: datasource)
29
+ def additation_query_params
30
+ [:language]
31
+ end
32
+
33
+ def path
34
+ format("#{ API_PATH }", region_id: id)
31
35
  end
32
36
  end
33
37
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseRegions < Base
6
- API_PATH = '/v1/universe/regions/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/regions/'
7
7
 
8
8
  def universe_region_ids
9
9
  response
@@ -11,8 +11,8 @@ module EveOnline
11
11
 
12
12
  def scope; end
13
13
 
14
- def url
15
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
14
+ def path
15
+ API_PATH
16
16
  end
17
17
  end
18
18
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseStar < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/stars/%<star_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/stars/%<star_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 url
31
- format("#{ API_HOST }#{ API_PATH }", star_id: id, datasource: datasource)
30
+ def path
31
+ format("#{ API_PATH }", star_id: id)
32
32
  end
33
33
  end
34
34
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseStargate < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v1/universe/stargates/%<stargate_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/stargates/%<stargate_id>s/'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -26,8 +26,8 @@ module EveOnline
26
26
 
27
27
  def scope; end
28
28
 
29
- def url
30
- format("#{ API_HOST }#{ API_PATH }", stargate_id: id, datasource: datasource)
29
+ def path
30
+ format("#{ API_PATH }", stargate_id: id)
31
31
  end
32
32
  end
33
33
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseStation < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v2/universe/stations/%<station_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v2/universe/stations/%<station_id>s/'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -28,8 +28,8 @@ module EveOnline
28
28
 
29
29
  def scope; end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", station_id: id, datasource: datasource)
31
+ def path
32
+ format("#{ API_PATH }", station_id: id)
33
33
  end
34
34
  end
35
35
  end
@@ -3,7 +3,15 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseStructures < Base
6
- API_PATH = '/v1/universe/structures/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/structures/'
7
+
8
+ attr_reader :filter
9
+
10
+ def initialize(options = {})
11
+ super
12
+
13
+ @filter = options.fetch(:filter, nil)
14
+ end
7
15
 
8
16
  def structure_ids
9
17
  response
@@ -11,8 +19,12 @@ module EveOnline
11
19
 
12
20
  def scope; end
13
21
 
14
- def url
15
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource, page: page)
22
+ def additation_query_params
23
+ [:filter]
24
+ end
25
+
26
+ def path
27
+ API_PATH
16
28
  end
17
29
  end
18
30
  end