eve_online 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +12 -7
  4. data/CHANGELOG.md +26 -0
  5. data/Gemfile +4 -0
  6. data/Gemfile.lock +30 -27
  7. data/Gemfile.mutant.lock +20 -25
  8. data/README.md +41 -21
  9. data/TODO.md +1 -0
  10. data/eve_online.gemspec +8 -2
  11. data/lib/eve_online.rb +9 -4
  12. data/lib/eve_online/esi/alliance.rb +4 -2
  13. data/lib/eve_online/esi/alliances.rb +4 -0
  14. data/lib/eve_online/esi/base.rb +7 -11
  15. data/lib/eve_online/esi/character.rb +1 -2
  16. data/lib/eve_online/esi/character_assets.rb +8 -6
  17. data/lib/eve_online/esi/character_assets_locations.rb +8 -6
  18. data/lib/eve_online/esi/character_assets_names.rb +8 -6
  19. data/lib/eve_online/esi/character_attributes.rb +1 -2
  20. data/lib/eve_online/esi/character_blueprints.rb +8 -6
  21. data/lib/eve_online/esi/character_bookmark_folders.rb +8 -6
  22. data/lib/eve_online/esi/character_bookmarks.rb +8 -6
  23. data/lib/eve_online/esi/character_calendar.rb +8 -6
  24. data/lib/eve_online/esi/character_clones.rb +9 -8
  25. data/lib/eve_online/esi/character_fatigue.rb +1 -2
  26. data/lib/eve_online/esi/character_industry_jobs.rb +8 -6
  27. data/lib/eve_online/esi/character_killmails_recent.rb +8 -6
  28. data/lib/eve_online/esi/character_location.rb +1 -2
  29. data/lib/eve_online/esi/character_loyalty_points.rb +8 -6
  30. data/lib/eve_online/esi/character_notifications.rb +9 -6
  31. data/lib/eve_online/esi/character_online.rb +1 -2
  32. data/lib/eve_online/esi/character_orders.rb +8 -6
  33. data/lib/eve_online/esi/character_portrait.rb +1 -2
  34. data/lib/eve_online/esi/character_ship.rb +1 -2
  35. data/lib/eve_online/esi/character_skill_queue.rb +8 -6
  36. data/lib/eve_online/esi/character_skills.rb +8 -6
  37. data/lib/eve_online/esi/character_standings.rb +8 -6
  38. data/lib/eve_online/esi/character_wallet_journal.rb +8 -6
  39. data/lib/eve_online/esi/corporation.rb +5 -3
  40. data/lib/eve_online/esi/corporation_blueprints.rb +8 -6
  41. data/lib/eve_online/esi/corporation_industry_jobs.rb +8 -6
  42. data/lib/eve_online/esi/corporation_killmails_recent.rb +8 -6
  43. data/lib/eve_online/esi/corporation_orders.rb +8 -6
  44. data/lib/eve_online/esi/dogma_attribute.rb +1 -2
  45. data/lib/eve_online/esi/dogma_effect.rb +1 -2
  46. data/lib/eve_online/esi/market_history.rb +8 -6
  47. data/lib/eve_online/esi/models/alliance.rb +4 -1
  48. data/lib/eve_online/esi/models/corporation.rb +4 -1
  49. data/lib/eve_online/esi/models/model_with_etag.rb +13 -0
  50. data/lib/eve_online/esi/models/star.rb +4 -1
  51. data/lib/eve_online/esi/models/stargate.rb +4 -1
  52. data/lib/eve_online/esi/response_with_etag.rb +11 -0
  53. data/lib/eve_online/esi/server_status.rb +1 -2
  54. data/lib/eve_online/esi/{ancestries.rb → universe_ancestries.rb} +13 -7
  55. data/lib/eve_online/esi/{bloodlines.rb → universe_bloodlines.rb} +13 -7
  56. data/lib/eve_online/esi/universe_constellation.rb +1 -2
  57. data/lib/eve_online/esi/{factions.rb → universe_factions.rb} +13 -7
  58. data/lib/eve_online/esi/{races.rb → universe_races.rb} +13 -7
  59. data/lib/eve_online/esi/universe_region.rb +1 -2
  60. data/lib/eve_online/esi/universe_star.rb +5 -3
  61. data/lib/eve_online/esi/universe_stargate.rb +4 -3
  62. data/lib/eve_online/esi/universe_station.rb +1 -2
  63. data/lib/eve_online/esi/universe_system_jumps.rb +8 -6
  64. data/lib/eve_online/esi/universe_system_kills.rb +8 -6
  65. data/lib/eve_online/esi/universe_type.rb +1 -2
  66. data/lib/eve_online/esi/war_killmails.rb +8 -6
  67. data/lib/eve_online/version.rb +1 -1
  68. metadata +15 -38
  69. data/server.http +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a57ebaa823e3e07e284645e364bd41cdfa2860e8113b896ac45e1680286d01b
4
- data.tar.gz: '0392e3691348d4a5aac937b0444ef1fede92f7354706c6fe9d957dd647c0d43e'
3
+ metadata.gz: f78e115be3dc8087c067da541c89add9acd9e4a2a043acaedf796e977d4d3dd6
4
+ data.tar.gz: e6eb7cb70d743534154f7c65cafa9131639fc75fc6e8eb1993384865c6839edb
5
5
  SHA512:
6
- metadata.gz: 72e2835896b0a996be290c20fcce1fd3ad74be3c745b42c0a16a5eb47a158879e7013d97676738bae43b8f364e9fe5d981a6ec49006639a27ac879763958bc08
7
- data.tar.gz: f9197419d8583c3149e572f9bff2cd3a1c7b12297e0329e130c852d69843f61443d5a3562fc3e54df71223671f3ca6e3910890b99b7ea29316b25e9fc86aa966
6
+ metadata.gz: eb76941ebb70d05c2e38ddc48a26896ecb268f29563f67ee9516059d14ef047c9fe27d0dffb9ad5d89e5be9452c0a99e8ee624fc8dcb54aa6db86fe7c23bcc8e
7
+ data.tar.gz: 3a496e51abcfec897a158df2564b7051cb8cc95a00b754be9f07153e62cffc1352e467fa208245b3e8f4e9846bad2b3df95b50e67f7c4dd1f937d8d2b5e46552
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.3
1
+ 2.6.0
data/.travis.yml CHANGED
@@ -5,7 +5,9 @@ rvm:
5
5
  - 2.3.8
6
6
  - 2.4.5
7
7
  - 2.5.3
8
+ - 2.6.0
8
9
  - ruby-head
10
+ - rbx-3
9
11
 
10
12
  gemfile:
11
13
  - gemfiles/activesupport_42.gemfile
@@ -22,24 +24,28 @@ matrix:
22
24
  exclude:
23
25
  - rvm: ruby-head
24
26
  gemfile: gemfiles/activesupport_42.gemfile
27
+ - rvm: 2.6.0
28
+ gemfile: gemfiles/activesupport_42.gemfile
25
29
  - rvm: 2.5.3
26
30
  gemfile: gemfiles/activesupport_42.gemfile
27
31
  - rvm: 2.3.8
28
32
  gemfile: gemfiles/activesupport_edge.gemfile
33
+ - rvm: 2.4.5
34
+ gemfile: gemfiles/activesupport_edge.gemfile
29
35
  include:
30
- - rvm: jruby-9.2.0.0
36
+ - rvm: jruby-9.2.5.0
31
37
  gemfile: gemfiles/activesupport_42.gemfile
32
38
  jdk: oraclejdk8
33
39
  env: JRUBY_OPTS='--debug' # get more accurate coverage data
34
- - rvm: jruby-9.2.0.0
40
+ - rvm: jruby-9.2.5.0
35
41
  gemfile: gemfiles/activesupport_50.gemfile
36
42
  jdk: oraclejdk8
37
43
  env: JRUBY_OPTS='--debug' # get more accurate coverage data
38
- - rvm: jruby-9.2.0.0
44
+ - rvm: jruby-9.2.5.0
39
45
  gemfile: gemfiles/activesupport_51.gemfile
40
46
  jdk: oraclejdk8
41
47
  env: JRUBY_OPTS='--debug' # get more accurate coverage data
42
- - rvm: jruby-9.2.0.0
48
+ - rvm: jruby-9.2.5.0
43
49
  gemfile: gemfiles/activesupport_52.gemfile
44
50
  jdk: oraclejdk8
45
51
  env: JRUBY_OPTS='--debug' # get more accurate coverage data
@@ -67,6 +73,7 @@ matrix:
67
73
  allow_failures:
68
74
  - rvm: ruby-head
69
75
  - rvm: jruby-head
76
+ - rvm: rbx-3
70
77
  fast_finish: true
71
78
 
72
79
  before_script:
@@ -81,9 +88,7 @@ before_install:
81
88
 
82
89
  script:
83
90
  - bundle exec rake
84
- - bundle exec mdl README.md
85
- - bundle exec mdl CHANGELOG.md
86
- - bundle exec mdl TODO.md
91
+ - bundle exec mdl README.md CHANGELOG.md TODO.md
87
92
 
88
93
  after_script:
89
94
  - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
data/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.21.0
4
+
5
+ * Remove `memoist` gem
6
+ * Fix etag support
7
+ * Rename `EveOnline::ESI::Base#no_content?` to `#not_modified?`
8
+ * Add `EveOnline::ESI::Models::ModelWithEtag`
9
+ * Add `EveOnline::ESI::ResponseWithEtag`
10
+ * Add `EveOnline::ESI::Models::Stargate#etag`
11
+ * Add `etag` to `EveOnline::ESI::Models::Stargate#as_json`
12
+ * Add `EveOnline::ESI::UniverseStar#etag`
13
+ * Add `etag` to `EveOnline::ESI::Models::Star#as_json`
14
+ * Add `EveOnline::ESI::Alliances#etag`
15
+ * Add `etag` to `EveOnline::ESI::Models::Alliance#as_json`
16
+ * Add `EveOnline::ESI::Alliance#etag`
17
+ * Rename `EveOnline::ESI::Races` to `EveOnline::ESI::UniverseRaces`
18
+ * Add `EveOnline::ESI::UniverseRaces#etag`
19
+ * Rename `EveOnline::ESI::Factions` to `EveOnline::ESI::UniverseFactions`
20
+ * Add `EveOnline::ESI::UniverseFactions#etag`
21
+ * Rename `EveOnline::ESI::Bloodlines` to `EveOnline::ESI::UniverseBloodlines`
22
+ * Add `EveOnline::ESI::UniverseBloodlines#etag`
23
+ * Rename `EveOnline::ESI::Ancestries` to `EveOnline::ESI::UniverseAncestries`
24
+ * Add `EveOnline::ESI::UniverseAncestries#etag`
25
+ * Add `EveOnline::ESI::Models::Corporation#etag`
26
+ * Add `etag` to `EveOnline::ESI::Models::Corporation#as_json`
27
+ * Add `EveOnline::ESI::Corporation#etag`
28
+
3
29
  ## v0.20.0
4
30
 
5
31
  * Add `EveOnline::ESI::UniverseCategories`
data/Gemfile CHANGED
@@ -10,3 +10,7 @@ gem 'awesome_print', require: 'ap'
10
10
  gem 'pry'
11
11
  gem 'rubocop', require: false
12
12
  gem 'rubocop-rspec', require: false
13
+
14
+ # TODO: remove after new webmock release
15
+ gem 'webmock', git: 'https://github.com/bblimke/webmock.git',
16
+ branch: 'master'
data/Gemfile.lock CHANGED
@@ -1,15 +1,23 @@
1
+ GIT
2
+ remote: https://github.com/bblimke/webmock.git
3
+ revision: a135a37ff5f982a43806c52f2f7e778baba80797
4
+ branch: master
5
+ specs:
6
+ webmock (3.4.2)
7
+ addressable (>= 2.3.6)
8
+ crack (>= 0.3.2)
9
+ hashdiff
10
+
1
11
  PATH
2
12
  remote: .
3
13
  specs:
4
- eve_online (0.20.0)
14
+ eve_online (0.21.0)
5
15
  activesupport (>= 4.2.0)
6
- json
7
- memoist
8
16
 
9
17
  GEM
10
18
  remote: https://rubygems.org/
11
19
  specs:
12
- activesupport (5.2.1)
20
+ activesupport (5.2.2)
13
21
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
22
  i18n (>= 0.7, < 2)
15
23
  minitest (~> 5.1)
@@ -19,13 +27,13 @@ GEM
19
27
  ast (2.4.0)
20
28
  awesome_print (1.8.0)
21
29
  coderay (1.1.2)
22
- concurrent-ruby (1.0.5)
30
+ concurrent-ruby (1.1.4)
23
31
  crack (0.4.3)
24
32
  safe_yaml (~> 1.0.0)
25
33
  diff-lcs (1.3)
26
34
  docile (1.3.1)
27
35
  hashdiff (0.3.7)
28
- i18n (1.1.1)
36
+ i18n (1.3.0)
29
37
  concurrent-ruby (~> 1.0)
30
38
  jaro_winkler (1.5.1)
31
39
  json (2.1.0)
@@ -34,25 +42,24 @@ GEM
34
42
  kramdown (~> 1.12, >= 1.12.0)
35
43
  mixlib-cli (~> 1.7, >= 1.7.0)
36
44
  mixlib-config (~> 2.2, >= 2.2.1)
37
- memoist (0.16.0)
38
- method_source (0.9.0)
39
- mini_portile2 (2.3.0)
45
+ method_source (0.9.2)
46
+ mini_portile2 (2.4.0)
40
47
  minitest (5.11.3)
41
48
  mixlib-cli (1.7.0)
42
- mixlib-config (2.2.13)
49
+ mixlib-config (2.2.18)
43
50
  tomlrb
44
- nokogiri (1.8.5)
45
- mini_portile2 (~> 2.3.0)
51
+ nokogiri (1.9.1)
52
+ mini_portile2 (~> 2.4.0)
46
53
  parallel (1.12.1)
47
- parser (2.5.1.2)
54
+ parser (2.5.3.0)
48
55
  ast (~> 2.4.0)
49
56
  powerpack (0.1.2)
50
- pry (0.11.3)
57
+ pry (0.12.2)
51
58
  coderay (~> 1.1.0)
52
59
  method_source (~> 0.9.0)
53
60
  public_suffix (3.0.3)
54
61
  rainbow (3.0.0)
55
- rake (12.3.1)
62
+ rake (12.3.2)
56
63
  rspec (3.8.0)
57
64
  rspec-core (~> 3.8.0)
58
65
  rspec-expectations (~> 3.8.0)
@@ -69,16 +76,16 @@ GEM
69
76
  diff-lcs (>= 1.2.0, < 2.0)
70
77
  rspec-support (~> 3.8.0)
71
78
  rspec-support (3.8.0)
72
- rubocop (0.59.2)
79
+ rubocop (0.61.1)
73
80
  jaro_winkler (~> 1.5.1)
74
81
  parallel (~> 1.10)
75
82
  parser (>= 2.5, != 2.5.1.1)
76
83
  powerpack (~> 0.1)
77
84
  rainbow (>= 2.2.2, < 4.0)
78
85
  ruby-progressbar (~> 1.7)
79
- unicode-display_width (~> 1.0, >= 1.0.1)
80
- rubocop-rspec (1.30.0)
81
- rubocop (>= 0.58.0)
86
+ unicode-display_width (~> 1.4.0)
87
+ rubocop-rspec (1.30.1)
88
+ rubocop (>= 0.60.0)
82
89
  ruby-progressbar (1.10.0)
83
90
  safe_yaml (1.0.4)
84
91
  simplecov (0.16.1)
@@ -87,15 +94,11 @@ GEM
87
94
  simplecov-html (~> 0.10.0)
88
95
  simplecov-html (0.10.2)
89
96
  thread_safe (0.3.6)
90
- tomlrb (1.2.7)
97
+ tomlrb (1.2.8)
91
98
  tzinfo (1.2.5)
92
99
  thread_safe (~> 0.1)
93
- unicode-display_width (1.4.0)
100
+ unicode-display_width (1.4.1)
94
101
  vcr (4.0.0)
95
- webmock (3.4.2)
96
- addressable (>= 2.3.6)
97
- crack (>= 0.3.2)
98
- hashdiff
99
102
 
100
103
  PLATFORMS
101
104
  ruby
@@ -114,7 +117,7 @@ DEPENDENCIES
114
117
  rubocop-rspec
115
118
  simplecov
116
119
  vcr
117
- webmock
120
+ webmock!
118
121
 
119
122
  BUNDLED WITH
120
- 1.16.6
123
+ 1.17.2
data/Gemfile.mutant.lock CHANGED
@@ -1,16 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eve_online (0.18.0)
4
+ eve_online (0.21.0)
5
5
  activesupport (>= 4.2.0)
6
- json
7
- memoist
8
6
 
9
7
  GEM
10
8
  remote: https://rubygems.org/
11
9
  specs:
12
10
  abstract_type (0.0.7)
13
- activesupport (5.2.1)
11
+ activesupport (5.2.2)
14
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
13
  i18n (>= 0.7, < 2)
16
14
  minitest (~> 5.1)
@@ -28,14 +26,14 @@ GEM
28
26
  concord (0.1.5)
29
27
  adamantium (~> 0.2.0)
30
28
  equalizer (~> 0.0.9)
31
- concurrent-ruby (1.0.5)
29
+ concurrent-ruby (1.1.4)
32
30
  crack (0.4.3)
33
31
  safe_yaml (~> 1.0.0)
34
32
  diff-lcs (1.3)
35
33
  docile (1.3.1)
36
34
  equalizer (0.0.11)
37
35
  hashdiff (0.3.7)
38
- i18n (1.1.0)
36
+ i18n (1.3.0)
39
37
  concurrent-ruby (~> 1.0)
40
38
  ice_nine (0.11.2)
41
39
  json (2.1.0)
@@ -44,13 +42,12 @@ GEM
44
42
  kramdown (~> 1.12, >= 1.12.0)
45
43
  mixlib-cli (~> 1.7, >= 1.7.0)
46
44
  mixlib-config (~> 2.2, >= 2.2.1)
47
- memoist (0.16.0)
48
45
  memoizable (0.4.2)
49
46
  thread_safe (~> 0.3, >= 0.3.1)
50
- mini_portile2 (2.3.0)
47
+ mini_portile2 (2.4.0)
51
48
  minitest (5.11.3)
52
49
  mixlib-cli (1.7.0)
53
- mixlib-config (2.2.13)
50
+ mixlib-config (2.2.18)
54
51
  tomlrb
55
52
  morpher (0.2.6)
56
53
  abstract_type (~> 0.0.7)
@@ -61,7 +58,7 @@ GEM
61
58
  equalizer (~> 0.0.9)
62
59
  ice_nine (~> 0.11.0)
63
60
  procto (~> 0.0.2)
64
- mutant (0.8.17)
61
+ mutant (0.8.23)
65
62
  abstract_type (~> 0.0.7)
66
63
  adamantium (~> 0.2.0)
67
64
  anima (~> 0.3.0)
@@ -72,30 +69,28 @@ GEM
72
69
  ice_nine (~> 0.11.1)
73
70
  memoizable (~> 0.4.2)
74
71
  morpher (~> 0.2.6)
75
- parallel (~> 1.3)
76
72
  parser (~> 2.5.1)
77
73
  procto (~> 0.0.2)
78
- regexp_parser (~> 0.4.9)
79
- unparser (~> 0.2.5)
80
- mutant-rspec (0.8.17)
81
- mutant (~> 0.8.17)
74
+ regexp_parser (~> 1.2)
75
+ unparser (~> 0.4.2)
76
+ mutant-rspec (0.8.23)
77
+ mutant (~> 0.8.23)
82
78
  rspec-core (>= 3.4.0, < 4.0.0)
83
- nokogiri (1.8.4)
84
- mini_portile2 (~> 2.3.0)
85
- parallel (1.12.1)
86
- parser (2.5.1.2)
79
+ nokogiri (1.9.1)
80
+ mini_portile2 (~> 2.4.0)
81
+ parser (2.5.3.0)
87
82
  ast (~> 2.4.0)
88
83
  procto (0.0.3)
89
84
  public_suffix (3.0.3)
90
- rake (12.3.1)
91
- regexp_parser (0.4.13)
85
+ rake (12.3.2)
86
+ regexp_parser (1.3.0)
92
87
  rspec (3.8.0)
93
88
  rspec-core (~> 3.8.0)
94
89
  rspec-expectations (~> 3.8.0)
95
90
  rspec-mocks (~> 3.8.0)
96
91
  rspec-core (3.8.0)
97
92
  rspec-support (~> 3.8.0)
98
- rspec-expectations (3.8.1)
93
+ rspec-expectations (3.8.2)
99
94
  diff-lcs (>= 1.2.0, < 2.0)
100
95
  rspec-support (~> 3.8.0)
101
96
  rspec-its (1.2.0)
@@ -112,10 +107,10 @@ GEM
112
107
  simplecov-html (~> 0.10.0)
113
108
  simplecov-html (0.10.2)
114
109
  thread_safe (0.3.6)
115
- tomlrb (1.2.7)
110
+ tomlrb (1.2.8)
116
111
  tzinfo (1.2.5)
117
112
  thread_safe (~> 0.1)
118
- unparser (0.2.8)
113
+ unparser (0.4.2)
119
114
  abstract_type (~> 0.0.7)
120
115
  adamantium (~> 0.2.0)
121
116
  concord (~> 0.1.5)
@@ -147,4 +142,4 @@ DEPENDENCIES
147
142
  webmock
148
143
 
149
144
  BUNDLED WITH
150
- 1.16.5
145
+ 1.17.2
data/README.md CHANGED
@@ -10,7 +10,7 @@ This gem implement Ruby API for EveOnline MMORPG (ESI).
10
10
 
11
11
  Looking for [EveOnline SSO OAuth2 Strategy for OmniAuth](https://github.com/evemonk/omniauth-eve_online-sso)?
12
12
 
13
- This gem was extracted from [EveMonk](http://evemonk.com). Source code of evemonk backend published [here](https://github.com/evemonk/evemonk).
13
+ This gem was extracted from [EveMonk](https://evemonk.com). Source code of evemonk backend published [here](https://github.com/evemonk/evemonk).
14
14
 
15
15
  ## TOC
16
16
 
@@ -49,9 +49,11 @@ gem install eve_online
49
49
  * MRI 2.3
50
50
  * MRI 2.4
51
51
  * MRI 2.5
52
+ * MRI 2.6
52
53
  * MRI (head)
53
- * JRuby 9.2.0.0
54
+ * JRuby 9.2.5.0
54
55
  * JRuby (head)
56
+ * Rubinuis (latest)
55
57
 
56
58
  ## Supported rails versions
57
59
 
@@ -72,15 +74,17 @@ alliances = EveOnline::ESI::Alliances.new
72
74
 
73
75
  alliances.scope # => nil
74
76
 
75
- alliances.alliance_ids.size # => 3013
77
+ alliances.alliance_ids.size # => 3028
76
78
 
77
79
  alliances.alliance_ids.first # => 1354830081
80
+
81
+ alliances.etag # => "97f0c48679f2b200043cdbc3406291fc945bcd652ddc7fc11ccdc37a"
78
82
  ```
79
83
 
80
84
  #### Get alliance information
81
85
 
82
86
  ```ruby
83
- options = { alliance_id: 99005443 }
87
+ options = { alliance_id: 99_005_443 }
84
88
 
85
89
  alliance = EveOnline::ESI::Alliance.new(options)
86
90
 
@@ -92,7 +96,8 @@ alliance.as_json # => {:creator_corporation_id=>98306624,
92
96
  # :executor_corporation_id=>98306624,
93
97
  # :faction_id=>nil,
94
98
  # :name=>"Kids With Guns Alliance",
95
- # :ticker=>"-KWG-"}
99
+ # :ticker=>"-KWG-",
100
+ # :etag=>"6780e53a01c7d9715b5f445126c4f2c137da4be79e4debe541ce3ab2"}
96
101
 
97
102
  alliance.creator_corporation_id # => 98306624
98
103
  alliance.creator_id # => 94195096
@@ -101,12 +106,13 @@ alliance.executor_corporation_id # => 98306624
101
106
  alliance.faction_id # => nil
102
107
  alliance.name # => "Kids With Guns Alliance"
103
108
  alliance.ticker # => "-KWG-"
109
+ alliance.etag # => "6780e53a01c7d9715b5f445126c4f2c137da4be79e4debe541ce3ab2"
104
110
  ```
105
111
 
106
112
  #### List alliance's corporations
107
113
 
108
114
  ```ruby
109
- options = { alliance_id: 99005443 }
115
+ options = { alliance_id: 99_005_443 }
110
116
 
111
117
  alliance_corporations = EveOnline::ESI::AllianceCorporations.new(options)
112
118
 
@@ -120,7 +126,7 @@ alliance_corporations.corporation_ids.first # => 98134807
120
126
  #### Get alliance icon
121
127
 
122
128
  ```ruby
123
- options = { alliance_id: 99005443 }
129
+ options = { alliance_id: 99_005_443 }
124
130
 
125
131
  alliance_icon = EveOnline::ESI::AllianceIcon.new(options)
126
132
 
@@ -609,7 +615,7 @@ character_implants.implant_ids # => [9899, 9941, 9942, 9943, 9956]
609
615
  #### Get corporation information
610
616
 
611
617
  ```ruby
612
- options = { corporation_id: 98468592 }
618
+ options = { corporation_id: 98_468_592 }
613
619
 
614
620
  corporation = EveOnline::ESI::Corporation.new(options)
615
621
 
@@ -627,7 +633,8 @@ corporation.as_json # => {:alliance_id=>99001258,
627
633
  # :shares=>1000,
628
634
  # :tax_rate=>0.1,
629
635
  # :ticker=>"BUBIC",
630
- # :corporation_url=>"http://"}
636
+ # :corporation_url=>"http://",
637
+ # :etag=>"9f1b3761e93aba36ceaea6328e62031ec777317c70b7439b665d93fe"}
631
638
 
632
639
  corporation.alliance_id # => 99001258
633
640
  corporation.ceo_id # => 1721864142
@@ -642,6 +649,7 @@ corporation.shares # => 1000
642
649
  corporation.tax_rate # => 0.1
643
650
  corporation.ticker # => "BUBIC"
644
651
  corporation.corporation_url # => "http://"
652
+ corporation.etag # => "9f1b3761e93aba36ceaea6328e62031ec777317c70b7439b665d93fe"
645
653
  ```
646
654
 
647
655
  #### Get alliance history
@@ -1487,7 +1495,7 @@ server_status.vip # => nil
1487
1495
  ```ruby
1488
1496
  options = { language: 'en-us' }
1489
1497
 
1490
- ancestries = EveOnline::ESI::Ancestries.new(options)
1498
+ ancestries = EveOnline::ESI::UniverseAncestries.new(options)
1491
1499
 
1492
1500
  ancestries.scope # => nil
1493
1501
 
@@ -1508,6 +1516,8 @@ ancestry.icon_id # => 1664
1508
1516
  ancestry.ancestry_id # => 24
1509
1517
  ancestry.name # => "Slave Child"
1510
1518
  ancestry.short_description # => "Torn from the cold and brought to the warmth of a new life."
1519
+
1520
+ ancestries.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1511
1521
  ```
1512
1522
 
1513
1523
  #### Get asteroid belt information
@@ -1539,7 +1549,7 @@ asteroid_belt.position.z # => -73505464320.0
1539
1549
  ```ruby
1540
1550
  options = { language: 'en-us' }
1541
1551
 
1542
- bloodlines = EveOnline::ESI::Bloodlines.new(options)
1552
+ bloodlines = EveOnline::ESI::UniverseBloodlines.new(options)
1543
1553
 
1544
1554
  bloodlines.scope # => nil
1545
1555
 
@@ -1570,6 +1580,8 @@ bloodline.perception # => 9
1570
1580
  bloodline.race_id # => 2
1571
1581
  bloodline.ship_type_id # => 588
1572
1582
  bloodline.willpower # => 7
1583
+
1584
+ bloodlines.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1573
1585
  ```
1574
1586
 
1575
1587
  #### Get item categories
@@ -1650,7 +1662,7 @@ constellation.position.z # => -4.273873181840197e+16
1650
1662
  ```ruby
1651
1663
  options = { language: 'en-us' }
1652
1664
 
1653
- factions = EveOnline::ESI::Factions.new(options)
1665
+ factions = EveOnline::ESI::UniverseFactions.new(options)
1654
1666
 
1655
1667
  factions.scope # => nil
1656
1668
 
@@ -1679,6 +1691,8 @@ faction.size_factor # => 5.0
1679
1691
  faction.solar_system_id # => 30002544
1680
1692
  faction.station_count # => 570
1681
1693
  faction.station_system_count # => 291
1694
+
1695
+ factions.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1682
1696
  ```
1683
1697
 
1684
1698
  #### Get graphics
@@ -1823,7 +1837,7 @@ planet.position.z # => -73529712226.0
1823
1837
  ```ruby
1824
1838
  options = { language: 'en-us' }
1825
1839
 
1826
- races = EveOnline::ESI::Races.new(options)
1840
+ races = EveOnline::ESI::UniverseRaces.new(options)
1827
1841
 
1828
1842
  races.scope # => nil
1829
1843
 
@@ -1840,6 +1854,8 @@ race.alliance_id # => 500002
1840
1854
  race.description # => "Once a thriving tribal civilization, the Minmatar..."
1841
1855
  race.name # => "Minmatar"
1842
1856
  race.race_id # => 2
1857
+
1858
+ races.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1843
1859
  ```
1844
1860
 
1845
1861
  #### Get regions
@@ -1886,12 +1902,14 @@ stargate.scope # => nil
1886
1902
  stargate.as_json # => {:name=>"Stargate (Akpivem)",
1887
1903
  # :stargate_id=>50000056,
1888
1904
  # :system_id=>30000001,
1889
- # :type_id=>29624}
1905
+ # :type_id=>29624,
1906
+ # :etag=>"2e28835f91024608719726b655591d531125a023e122859d174923d5"}
1890
1907
 
1891
1908
  stargate.name # => "Stargate (Akpivem)"
1892
1909
  stargate.stargate_id # => 50000056
1893
1910
  stargate.system_id # => 30000001
1894
1911
  stargate.type_id # => 29624
1912
+ stargate.etag # => "2e28835f91024608719726b655591d531125a023e122859d174923d5"
1895
1913
 
1896
1914
  stargate.destination.as_json # => {:stargate_id=>50000342,
1897
1915
  # :system_id=>30000003}
@@ -1924,7 +1942,8 @@ star.as_json # => {:age=>14262808228,
1924
1942
  # :solar_system_id=>30000001,
1925
1943
  # :spectral_class=>"K2 V",
1926
1944
  # :temperature=>4567,
1927
- # :type_id=>45041}
1945
+ # :type_id=>45041,
1946
+ # :etag=>"2e28835f91024608719726b655591d531125a023e122859d174923d5"}
1928
1947
 
1929
1948
  star.age # => 14262808228
1930
1949
  star.luminosity # => 0.01575000025331974
@@ -1934,6 +1953,7 @@ star.solar_system_id # => 30000001
1934
1953
  star.spectral_class # => "K2 V"
1935
1954
  star.temperature # => 4567
1936
1955
  star.type_id # => 45041
1956
+ star.etag # => "2e28835f91024608719726b655591d531125a023e122859d174923d5"
1937
1957
 
1938
1958
  # options = { id: 60012526 }
1939
1959
 
@@ -2324,7 +2344,7 @@ If you want to catch all exceptions `rescue` `EveOnline::Exceptions::Base`. E.g.
2324
2344
 
2325
2345
  ```ruby
2326
2346
  begin
2327
- races = EveOnline::ESI::Races.new
2347
+ races = EveOnline::ESI::UniverseRaces.new
2328
2348
 
2329
2349
  race = races.races.first
2330
2350
 
@@ -2362,13 +2382,13 @@ You can configure default timeouts with adding `read_timeout:` and `open_timeout
2362
2382
  ```ruby
2363
2383
  options = { read_timeout: 120, open_timeout: 120 } # 120 seconds
2364
2384
 
2365
- races = EveOnline::ESI::Races.new(options)
2385
+ races = EveOnline::ESI::UniverseRaces.new(options)
2366
2386
  ```
2367
2387
 
2368
2388
  Or, dynamically:
2369
2389
 
2370
2390
  ```ruby
2371
- races = EveOnline::ESI::Races.new
2391
+ races = EveOnline::ESI::UniverseRaces.new
2372
2392
 
2373
2393
  races.open_timeout # => 60
2374
2394
  races.open_timeout = 120
@@ -2386,7 +2406,7 @@ Default datasource is `tranquility`. If you want to change it, for e.g., to `sin
2386
2406
  ```ruby
2387
2407
  options = { datasource: 'singularity' }
2388
2408
 
2389
- races = EveOnline::ESI::Races.new(options)
2409
+ races = EveOnline::ESI::UniverseRaces.new(options)
2390
2410
  ```
2391
2411
 
2392
2412
  ## Languages support
@@ -2398,7 +2418,7 @@ If you want change it, for e.g., to `de`, add `language: 'de'` to default hash w
2398
2418
  ```ruby
2399
2419
  options = { language: 'de' }
2400
2420
 
2401
- races = EveOnline::ESI::Races.new(options)
2421
+ races = EveOnline::ESI::UniverseRaces.new(options)
2402
2422
  ```
2403
2423
 
2404
2424
  ## Oj as JSON Parser
@@ -2408,7 +2428,7 @@ require 'oj'
2408
2428
 
2409
2429
  Oj.mimic_JSON()
2410
2430
 
2411
- races = EveOnline::ESI::Races.new
2431
+ races = EveOnline::ESI::UniverseRaces.new
2412
2432
  ```
2413
2433
 
2414
2434
  ## Useful links