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.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop_rspec.yml +4 -0
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +6 -8
  5. data/CHANGELOG.md +15 -0
  6. data/Gemfile.lock +7 -7
  7. data/Gemfile.mutant.lock +4 -4
  8. data/README.md +37 -33
  9. data/lib/eve_online.rb +1 -0
  10. data/lib/eve_online/esi/alliance.rb +2 -2
  11. data/lib/eve_online/esi/alliance_corporations.rb +2 -2
  12. data/lib/eve_online/esi/alliance_icon.rb +2 -2
  13. data/lib/eve_online/esi/alliances.rb +2 -2
  14. data/lib/eve_online/esi/base.rb +22 -0
  15. data/lib/eve_online/esi/character.rb +2 -2
  16. data/lib/eve_online/esi/character_assets.rb +2 -2
  17. data/lib/eve_online/esi/character_assets_locations.rb +2 -2
  18. data/lib/eve_online/esi/character_assets_names.rb +2 -2
  19. data/lib/eve_online/esi/character_attributes.rb +2 -2
  20. data/lib/eve_online/esi/character_blueprints.rb +2 -2
  21. data/lib/eve_online/esi/character_bookmark_folders.rb +2 -2
  22. data/lib/eve_online/esi/character_bookmarks.rb +2 -2
  23. data/lib/eve_online/esi/character_calendar.rb +4 -2
  24. data/lib/eve_online/esi/character_clones.rb +2 -2
  25. data/lib/eve_online/esi/character_fatigue.rb +2 -2
  26. data/lib/eve_online/esi/character_implants.rb +2 -2
  27. data/lib/eve_online/esi/character_industry_jobs.rb +2 -2
  28. data/lib/eve_online/esi/character_killmails_recent.rb +2 -2
  29. data/lib/eve_online/esi/character_location.rb +2 -2
  30. data/lib/eve_online/esi/character_loyalty_points.rb +2 -2
  31. data/lib/eve_online/esi/character_notifications.rb +2 -2
  32. data/lib/eve_online/esi/character_online.rb +2 -2
  33. data/lib/eve_online/esi/character_orders.rb +2 -2
  34. data/lib/eve_online/esi/character_portrait.rb +2 -2
  35. data/lib/eve_online/esi/character_ship.rb +2 -2
  36. data/lib/eve_online/esi/character_skill_queue.rb +2 -2
  37. data/lib/eve_online/esi/character_skills.rb +2 -2
  38. data/lib/eve_online/esi/character_standings.rb +2 -2
  39. data/lib/eve_online/esi/character_wallet.rb +2 -2
  40. data/lib/eve_online/esi/character_wallet_journal.rb +2 -2
  41. data/lib/eve_online/esi/corporation.rb +2 -2
  42. data/lib/eve_online/esi/corporation_blueprints.rb +2 -2
  43. data/lib/eve_online/esi/corporation_industry_jobs.rb +2 -2
  44. data/lib/eve_online/esi/corporation_killmails_recent.rb +2 -2
  45. data/lib/eve_online/esi/corporation_orders.rb +2 -2
  46. data/lib/eve_online/esi/dogma_attribute.rb +2 -2
  47. data/lib/eve_online/esi/dogma_attributes.rb +2 -2
  48. data/lib/eve_online/esi/dogma_effect.rb +2 -2
  49. data/lib/eve_online/esi/dogma_effects.rb +2 -2
  50. data/lib/eve_online/esi/market_history.rb +2 -2
  51. data/lib/eve_online/esi/models/bookmark.rb +5 -15
  52. data/lib/eve_online/esi/models/coordinates.rb +30 -0
  53. data/lib/eve_online/esi/models/jump_clone.rb +1 -2
  54. data/lib/eve_online/esi/server_status.rb +2 -2
  55. data/lib/eve_online/esi/universe_ancestries.rb +2 -2
  56. data/lib/eve_online/esi/universe_asteroid_belt.rb +2 -2
  57. data/lib/eve_online/esi/universe_bloodlines.rb +2 -2
  58. data/lib/eve_online/esi/universe_categories.rb +2 -2
  59. data/lib/eve_online/esi/universe_category.rb +2 -2
  60. data/lib/eve_online/esi/universe_constellation.rb +2 -2
  61. data/lib/eve_online/esi/universe_constellations.rb +2 -2
  62. data/lib/eve_online/esi/universe_factions.rb +2 -2
  63. data/lib/eve_online/esi/universe_graphic.rb +2 -2
  64. data/lib/eve_online/esi/universe_graphics.rb +2 -2
  65. data/lib/eve_online/esi/universe_group.rb +2 -2
  66. data/lib/eve_online/esi/universe_groups.rb +2 -2
  67. data/lib/eve_online/esi/universe_moon.rb +2 -2
  68. data/lib/eve_online/esi/universe_planet.rb +2 -2
  69. data/lib/eve_online/esi/universe_races.rb +2 -2
  70. data/lib/eve_online/esi/universe_region.rb +2 -2
  71. data/lib/eve_online/esi/universe_regions.rb +2 -2
  72. data/lib/eve_online/esi/universe_star.rb +2 -2
  73. data/lib/eve_online/esi/universe_stargate.rb +2 -2
  74. data/lib/eve_online/esi/universe_station.rb +2 -2
  75. data/lib/eve_online/esi/universe_structures.rb +2 -2
  76. data/lib/eve_online/esi/universe_system.rb +2 -2
  77. data/lib/eve_online/esi/universe_system_jumps.rb +2 -2
  78. data/lib/eve_online/esi/universe_system_kills.rb +2 -2
  79. data/lib/eve_online/esi/universe_systems.rb +2 -2
  80. data/lib/eve_online/esi/universe_type.rb +2 -2
  81. data/lib/eve_online/esi/universe_types.rb +2 -2
  82. data/lib/eve_online/esi/war_killmails.rb +2 -2
  83. data/lib/eve_online/esi/wars.rb +7 -2
  84. data/lib/eve_online/version.rb +1 -1
  85. metadata +3 -2
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseFactions < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v2/universe/factions/?datasource=%<datasource>s'
6
+ API_PATH = '/v2/universe/factions/?datasource=%<datasource>s'
7
7
 
8
8
  def factions
9
9
  @factions ||=
@@ -19,7 +19,7 @@ module EveOnline
19
19
  def scope; end
20
20
 
21
21
  def url
22
- format(API_ENDPOINT, datasource: datasource)
22
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
23
23
  end
24
24
  end
25
25
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseGraphic < Base
8
8
  extend Forwardable
9
9
 
10
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/graphics/%<graphic_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/graphics/%<graphic_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -28,7 +28,7 @@ module EveOnline
28
28
  def scope; end
29
29
 
30
30
  def url
31
- format(API_ENDPOINT, graphic_id: id, datasource: datasource)
31
+ format("#{ API_HOST }#{ API_PATH }", graphic_id: 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 UniverseGraphics < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/graphics/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/graphics/?datasource=%<datasource>s'
7
7
 
8
8
  def graphic_ids
9
9
  response
@@ -12,7 +12,7 @@ module EveOnline
12
12
  def scope; end
13
13
 
14
14
  def url
15
- format(API_ENDPOINT, datasource: datasource)
15
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
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_ENDPOINT = 'https://esi.evetech.net/v1/universe/groups/%<group_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/groups/%<group_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -27,7 +27,7 @@ module EveOnline
27
27
  def scope; end
28
28
 
29
29
  def url
30
- format(API_ENDPOINT, group_id: id, datasource: datasource)
30
+ format("#{ API_HOST }#{ API_PATH }", group_id: id, datasource: datasource)
31
31
  end
32
32
  end
33
33
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseGroups < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/groups/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v1/universe/groups/?datasource=%<datasource>s&page=%<page>s'
7
7
 
8
8
  attr_reader :page
9
9
 
@@ -20,7 +20,7 @@ module EveOnline
20
20
  def scope; end
21
21
 
22
22
  def url
23
- format(API_ENDPOINT, datasource: datasource, page: page)
23
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource, page: page)
24
24
  end
25
25
  end
26
26
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseMoon < Base
8
8
  extend Forwardable
9
9
 
10
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/moons/%<moon_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/moons/%<moon_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -26,7 +26,7 @@ module EveOnline
26
26
  def scope; end
27
27
 
28
28
  def url
29
- format(API_ENDPOINT, moon_id: id, datasource: datasource)
29
+ format("#{ API_HOST }#{ API_PATH }", moon_id: id, datasource: datasource)
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_ENDPOINT = 'https://esi.evetech.net/v1/universe/planets/%<planet_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/planets/%<planet_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -27,7 +27,7 @@ module EveOnline
27
27
  def scope; end
28
28
 
29
29
  def url
30
- format(API_ENDPOINT, planet_id: id, datasource: datasource)
30
+ format("#{ API_HOST }#{ API_PATH }", planet_id: id, datasource: datasource)
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_ENDPOINT = 'https://esi.evetech.net/v1/universe/races/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/races/?datasource=%<datasource>s'
7
7
 
8
8
  def races
9
9
  @races ||=
@@ -19,7 +19,7 @@ module EveOnline
19
19
  def scope; end
20
20
 
21
21
  def url
22
- format(API_ENDPOINT, datasource: datasource)
22
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
23
23
  end
24
24
  end
25
25
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseRegion < Base
8
8
  extend Forwardable
9
9
 
10
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/regions/%<region_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/regions/%<region_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -27,7 +27,7 @@ module EveOnline
27
27
  def scope; end
28
28
 
29
29
  def url
30
- format(API_ENDPOINT, region_id: id, datasource: datasource)
30
+ format("#{ API_HOST }#{ API_PATH }", region_id: id, datasource: datasource)
31
31
  end
32
32
  end
33
33
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseRegions < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/regions/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/regions/?datasource=%<datasource>s'
7
7
 
8
8
  def universe_region_ids
9
9
  response
@@ -12,7 +12,7 @@ module EveOnline
12
12
  def scope; end
13
13
 
14
14
  def url
15
- format(API_ENDPOINT, datasource: datasource)
15
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
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_ENDPOINT = 'https://esi.evetech.net/v1/universe/stars/%<star_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/stars/%<star_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -28,7 +28,7 @@ module EveOnline
28
28
  def scope; end
29
29
 
30
30
  def url
31
- format(API_ENDPOINT, star_id: id, datasource: datasource)
31
+ format("#{ API_HOST }#{ API_PATH }", star_id: id, datasource: datasource)
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_ENDPOINT = 'https://esi.evetech.net/v1/universe/stargates/%<stargate_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v1/universe/stargates/%<stargate_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -27,7 +27,7 @@ module EveOnline
27
27
  def scope; end
28
28
 
29
29
  def url
30
- format(API_ENDPOINT, stargate_id: id, datasource: datasource)
30
+ format("#{ API_HOST }#{ API_PATH }", stargate_id: id, datasource: datasource)
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_ENDPOINT = 'https://esi.evetech.net/v2/universe/stations/%<station_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v2/universe/stations/%<station_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -29,7 +29,7 @@ module EveOnline
29
29
  def scope; end
30
30
 
31
31
  def url
32
- format(API_ENDPOINT, station_id: id, datasource: datasource)
32
+ format("#{ API_HOST }#{ API_PATH }", station_id: 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 UniverseStructures < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/structures/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/structures/?datasource=%<datasource>s'
7
7
 
8
8
  def structure_ids
9
9
  response
@@ -12,7 +12,7 @@ module EveOnline
12
12
  def scope; end
13
13
 
14
14
  def url
15
- format(API_ENDPOINT, datasource: datasource, page: page)
15
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource, page: page)
16
16
  end
17
17
  end
18
18
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseSystem < Base
8
8
  extend Forwardable
9
9
 
10
- API_ENDPOINT = 'https://esi.evetech.net/v4/universe/systems/%<system_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v4/universe/systems/%<system_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -28,7 +28,7 @@ module EveOnline
28
28
  def scope; end
29
29
 
30
30
  def url
31
- format(API_ENDPOINT, system_id: id, datasource: datasource)
31
+ format("#{ API_HOST }#{ API_PATH }", system_id: 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 UniverseSystemJumps < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/system_jumps/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/system_jumps/?datasource=%<datasource>s'
7
7
 
8
8
  def system_jumps
9
9
  @system_jumps ||=
@@ -19,7 +19,7 @@ module EveOnline
19
19
  def scope; end
20
20
 
21
21
  def url
22
- format(API_ENDPOINT, datasource: datasource)
22
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
23
23
  end
24
24
  end
25
25
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseSystemKills < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v2/universe/system_kills/?datasource=%<datasource>s'
6
+ API_PATH = '/v2/universe/system_kills/?datasource=%<datasource>s'
7
7
 
8
8
  def system_kills
9
9
  @system_kills ||=
@@ -19,7 +19,7 @@ module EveOnline
19
19
  def scope; end
20
20
 
21
21
  def url
22
- format(API_ENDPOINT, datasource: datasource)
22
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
23
23
  end
24
24
  end
25
25
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseSystems < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/systems/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/systems/?datasource=%<datasource>s'
7
7
 
8
8
  def universe_system_ids
9
9
  response
@@ -12,7 +12,7 @@ module EveOnline
12
12
  def scope; end
13
13
 
14
14
  def url
15
- format(API_ENDPOINT, datasource: datasource)
15
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
16
16
  end
17
17
  end
18
18
  end
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class UniverseType < Base
8
8
  extend Forwardable
9
9
 
10
- API_ENDPOINT = 'https://esi.evetech.net/v3/universe/types/%<type_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v3/universe/types/%<type_id>s/?datasource=%<datasource>s'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -29,7 +29,7 @@ module EveOnline
29
29
  def scope; end
30
30
 
31
31
  def url
32
- format(API_ENDPOINT, type_id: id, datasource: datasource)
32
+ format("#{ API_HOST }#{ API_PATH }", type_id: 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 UniverseTypes < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v1/universe/types/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v1/universe/types/?datasource=%<datasource>s&page=%<page>s'
7
7
 
8
8
  attr_reader :page
9
9
 
@@ -20,7 +20,7 @@ module EveOnline
20
20
  def scope; end
21
21
 
22
22
  def url
23
- format(API_ENDPOINT, datasource: datasource, page: page)
23
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource, page: page)
24
24
  end
25
25
  end
26
26
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class WarKillmails < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v1/wars/%<war_id>s/killmails/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v1/wars/%<war_id>s/killmails/?datasource=%<datasource>s&page=%<page>s'
7
7
 
8
8
  attr_reader :war_id, :page
9
9
 
@@ -28,7 +28,7 @@ module EveOnline
28
28
  def scope; end
29
29
 
30
30
  def url
31
- format(API_ENDPOINT, war_id: war_id, datasource: datasource, page: page)
31
+ format("#{ API_HOST }#{ API_PATH }", war_id: war_id, datasource: datasource, page: page)
32
32
  end
33
33
  end
34
34
  end
@@ -3,7 +3,12 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class Wars < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v1/wars/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/wars/?datasource=%<datasource>s'
7
+
8
+ # TODO: add max_war_id
9
+ # def initialize(max_war_id)
10
+ # @max_war_id = max_war_id
11
+ # end
7
12
 
8
13
  def war_ids
9
14
  response
@@ -12,7 +17,7 @@ module EveOnline
12
17
  def scope; end
13
18
 
14
19
  def url
15
- format(API_ENDPOINT, datasource: datasource)
20
+ format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
16
21
  end
17
22
  end
18
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveOnline
4
- VERSION = '0.23.0'
4
+ VERSION = '0.24.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eve_online
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.0
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Zubkov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-16 00:00:00.000000000 Z
11
+ date: 2019-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -231,6 +231,7 @@ files:
231
231
  - lib/eve_online/esi/models/character_portrait.rb
232
232
  - lib/eve_online/esi/models/character_ship.rb
233
233
  - lib/eve_online/esi/models/constellation.rb
234
+ - lib/eve_online/esi/models/coordinates.rb
234
235
  - lib/eve_online/esi/models/corporation.rb
235
236
  - lib/eve_online/esi/models/corporation_industry_job.rb
236
237
  - lib/eve_online/esi/models/corporation_order.rb