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 UniverseSystem < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v4/universe/systems/%<system_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v4/universe/systems/%<system_id>s/'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -27,8 +27,12 @@ module EveOnline
27
27
 
28
28
  def scope; end
29
29
 
30
- def url
31
- format("#{ API_HOST }#{ API_PATH }", system_id: id, datasource: datasource)
30
+ def additation_query_params
31
+ [:language]
32
+ end
33
+
34
+ def path
35
+ format("#{ API_PATH }", system_id: id)
32
36
  end
33
37
  end
34
38
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseSystemJumps < Base
6
- API_PATH = '/v1/universe/system_jumps/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/system_jumps/'
7
7
 
8
8
  def system_jumps
9
9
  @system_jumps ||=
@@ -18,8 +18,8 @@ module EveOnline
18
18
 
19
19
  def scope; end
20
20
 
21
- def url
22
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
21
+ def path
22
+ API_PATH
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_PATH = '/v2/universe/system_kills/?datasource=%<datasource>s'
6
+ API_PATH = '/v2/universe/system_kills/'
7
7
 
8
8
  def system_kills
9
9
  @system_kills ||=
@@ -18,8 +18,8 @@ module EveOnline
18
18
 
19
19
  def scope; end
20
20
 
21
- def url
22
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
21
+ def path
22
+ API_PATH
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_PATH = '/v1/universe/systems/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/universe/systems/'
7
7
 
8
8
  def universe_system_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 UniverseType < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = '/v3/universe/types/%<type_id>s/?datasource=%<datasource>s'
10
+ API_PATH = '/v3/universe/types/%<type_id>s/'
11
11
 
12
12
  attr_reader :id
13
13
 
@@ -28,8 +28,12 @@ module EveOnline
28
28
 
29
29
  def scope; end
30
30
 
31
- def url
32
- format("#{ API_HOST }#{ API_PATH }", type_id: id, datasource: datasource)
31
+ def additation_query_params
32
+ [:language]
33
+ end
34
+
35
+ def path
36
+ format("#{ API_PATH }", type_id: id)
33
37
  end
34
38
  end
35
39
  end
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class UniverseTypes < Base
6
- API_PATH = '/v1/universe/types/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v1/universe/types/'
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
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class WarKillmails < Base
6
- API_PATH = '/v1/wars/%<war_id>s/killmails/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v1/wars/%<war_id>s/killmails/'
7
7
 
8
8
  attr_reader :war_id, :page
9
9
 
@@ -27,8 +27,12 @@ module EveOnline
27
27
 
28
28
  def scope; end
29
29
 
30
- def url
31
- format("#{ API_HOST }#{ API_PATH }", war_id: war_id, datasource: datasource, page: page)
30
+ def additation_query_params
31
+ [:page]
32
+ end
33
+
34
+ def path
35
+ format("#{ API_PATH }", war_id: war_id)
32
36
  end
33
37
  end
34
38
  end
@@ -3,12 +3,15 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class Wars < Base
6
- API_PATH = '/v1/wars/?datasource=%<datasource>s'
6
+ API_PATH = '/v1/wars/'
7
7
 
8
- # TODO: add max_war_id
9
- # def initialize(max_war_id)
10
- # @max_war_id = max_war_id
11
- # end
8
+ attr_reader :max_war_id
9
+
10
+ def initialize(options = {})
11
+ super
12
+
13
+ @max_war_id = options.fetch(:max_war_id, nil)
14
+ end
12
15
 
13
16
  def war_ids
14
17
  response
@@ -16,8 +19,12 @@ module EveOnline
16
19
 
17
20
  def scope; end
18
21
 
19
- def url
20
- format("#{ API_HOST }#{ API_PATH }", datasource: datasource)
22
+ def additation_query_params
23
+ [:max_war_id]
24
+ end
25
+
26
+ def path
27
+ API_PATH
21
28
  end
22
29
  end
23
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveOnline
4
- VERSION = '0.27.0'
4
+ VERSION = '0.28.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.27.0
4
+ version: 0.28.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-06-30 00:00:00.000000000 Z
11
+ date: 2019-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -203,6 +203,7 @@ files:
203
203
  - lib/eve_online/esi/character_wallet.rb
204
204
  - lib/eve_online/esi/character_wallet_journal.rb
205
205
  - lib/eve_online/esi/corporation.rb
206
+ - lib/eve_online/esi/corporation_alliance_history.rb
206
207
  - lib/eve_online/esi/corporation_assets.rb
207
208
  - lib/eve_online/esi/corporation_assets_locations.rb
208
209
  - lib/eve_online/esi/corporation_assets_names.rb
@@ -241,6 +242,7 @@ files:
241
242
  - lib/eve_online/esi/models/constellation.rb
242
243
  - lib/eve_online/esi/models/coordinates.rb
243
244
  - lib/eve_online/esi/models/corporation.rb
245
+ - lib/eve_online/esi/models/corporation_alliance_history.rb
244
246
  - lib/eve_online/esi/models/corporation_industry_job.rb
245
247
  - lib/eve_online/esi/models/corporation_order.rb
246
248
  - lib/eve_online/esi/models/dogma_attribute.rb