eve_online 0.22.0 → 0.23.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14dc83a4c1535c808c82ff40b71b9c9c479b9f861cb92c05ca0ba2ecd17cdb8c
4
- data.tar.gz: e0da7451adf2daad235c4ebc1a6e124135f90063c7d072a0212c5e555edfb1d7
3
+ metadata.gz: c8a39ee09d550505d456e8e575bbf9fb0a18db38ab7513e992b1872bcdba81af
4
+ data.tar.gz: 9d4ed75fa443df9ed52fe614e1d361097ce94a1cace3887c8f65f6e55ec40209
5
5
  SHA512:
6
- metadata.gz: a842c28352abc1006a8adf89ddee45aa7d225bcecc07f17ddea0c8d7d348053a2b7bcce17f2825a007a19277e98e111542c03127d1c6c09a55509a569c56f5bf
7
- data.tar.gz: f7cfa081751d196f98e8e657753664f45075fc0ae0277ad0a7ffff129dc4edbd6c8fcd639ba26b3cb5da2d63bdd9fcb7b4c9b616ae6f66fbdf66713dd42cd598
6
+ metadata.gz: 2157fec0480eae0caa3257bcd6ae171be21fc9d2be56cb4c5be243660e0d9369f643e96865dfb97107cacf1a55d69c88eaa253d2a7739d0fc8d62f692e9b46f2
7
+ data.tar.gz: d71e58fdf17b70f5e4d1caea56b6a61097133ac2d699d11e2c23fe0531f957507757ba0b35fc01940c370059057cf3f730e444e7a2beff51d8d54ec9cba1231b
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.23.0
4
+
5
+ * Sync with new ESI API
6
+ * Remove `systems` from `EveOnline::ESI::Models::Constellation#as_json`
7
+ * Rename `EveOnline::ESI::Models::Constellation#systems` to `#system_ids`
8
+
3
9
  ## v0.22.0
4
10
 
5
11
  * Add `EveOnline::ESI::AllianceCorporations#etag`
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eve_online (0.22.0)
4
+ eve_online (0.23.0)
5
5
  activesupport (>= 4.2.0)
6
6
 
7
7
  GEM
@@ -23,9 +23,9 @@ GEM
23
23
  diff-lcs (1.3)
24
24
  docile (1.3.1)
25
25
  hashdiff (0.3.8)
26
- i18n (1.3.0)
26
+ i18n (1.5.2)
27
27
  concurrent-ruby (~> 1.0)
28
- jaro_winkler (1.5.1)
28
+ jaro_winkler (1.5.2)
29
29
  json (2.1.0)
30
30
  kramdown (1.17.0)
31
31
  mdl (0.5.0)
@@ -38,7 +38,7 @@ GEM
38
38
  mixlib-cli (1.7.0)
39
39
  mixlib-config (2.2.18)
40
40
  tomlrb
41
- nokogiri (1.9.1)
41
+ nokogiri (1.10.1)
42
42
  mini_portile2 (~> 2.4.0)
43
43
  parallel (1.12.1)
44
44
  parser (2.5.3.0)
@@ -74,7 +74,7 @@ GEM
74
74
  rainbow (>= 2.2.2, < 4.0)
75
75
  ruby-progressbar (~> 1.7)
76
76
  unicode-display_width (~> 1.4.0)
77
- rubocop-rspec (1.30.1)
77
+ rubocop-rspec (1.31.0)
78
78
  rubocop (>= 0.60.0)
79
79
  ruby-progressbar (1.10.0)
80
80
  safe_yaml (1.0.4)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eve_online (0.22.0)
4
+ eve_online (0.23.0)
5
5
  activesupport (>= 4.2.0)
6
6
 
7
7
  GEM
@@ -33,7 +33,7 @@ GEM
33
33
  docile (1.3.1)
34
34
  equalizer (0.0.11)
35
35
  hashdiff (0.3.8)
36
- i18n (1.3.0)
36
+ i18n (1.5.2)
37
37
  concurrent-ruby (~> 1.0)
38
38
  ice_nine (0.11.2)
39
39
  json (2.1.0)
@@ -76,7 +76,7 @@ GEM
76
76
  mutant-rspec (0.8.24)
77
77
  mutant (~> 0.8.24)
78
78
  rspec-core (>= 3.4.0, < 4.0.0)
79
- nokogiri (1.9.1)
79
+ nokogiri (1.10.1)
80
80
  mini_portile2 (~> 2.4.0)
81
81
  parser (2.5.3.0)
82
82
  ast (~> 2.4.0)
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](https://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
 
@@ -652,7 +652,7 @@ corporation = EveOnline::ESI::Corporation.new(options)
652
652
 
653
653
  corporation.scope # => nil
654
654
 
655
- corporation.as_json # => {:alliance_id=>99001258,
655
+ corporation.as_json # => {:alliance_id=>99007916,
656
656
  # :ceo_id=>1721864142,
657
657
  # :creator_id=>1721864142,
658
658
  # :date_founded=>Mon, 11 Jul 2016 14:22:17 UTC +00:00,
@@ -664,9 +664,10 @@ corporation.as_json # => {:alliance_id=>99001258,
664
664
  # :shares=>1000,
665
665
  # :tax_rate=>0.1,
666
666
  # :ticker=>"BUBIC",
667
- # :corporation_url=>"http://"}
667
+ # :corporation_url=>"http://",
668
+ # :war_eligible=>true}
668
669
 
669
- corporation.alliance_id # => 99001258
670
+ corporation.alliance_id # => 99007916
670
671
  corporation.ceo_id # => 1721864142
671
672
  corporation.creator_id # => 1721864142
672
673
  corporation.date_founded # => Mon, 11 Jul 2016 14:22:17 UTC +00:00
@@ -679,8 +680,9 @@ corporation.shares # => 1000
679
680
  corporation.tax_rate # => 0.1
680
681
  corporation.ticker # => "BUBIC"
681
682
  corporation.corporation_url # => "http://"
683
+ corporation.war_eligible # => true
682
684
 
683
- corporation.etag # => "9f1b3761e93aba36ceaea6328e62031ec777317c70b7439b665d93fe"
685
+ corporation.etag # => "046430260be73e5d7ad3a9251954310bd547498eeb38f99e8d305796"
684
686
  ```
685
687
 
686
688
  #### Get alliance history
@@ -1718,13 +1720,13 @@ constellation.scope # => nil
1718
1720
 
1719
1721
  constellation.as_json # => {:constellation_id=>20000001,
1720
1722
  # :name=>"San Matar",
1721
- # :region_id=>10000001,
1722
- # :systems=>[30000001, 30000002, 30000003, 30000004, 30000005, 30000006, 30000007, 30000008]}
1723
+ # :region_id=>10000001}
1723
1724
 
1724
1725
  constellation.constellation_id # => 20000001
1725
1726
  constellation.name # => "San Matar"
1726
1727
  constellation.region_id # => 10000001
1727
- constellation.systems # => [30000001, 30000002, 30000003, 30000004, 30000005, 30000006, 30000007, 30000008]
1728
+
1729
+ constellation.system_ids # => [30000001, 30000002, 30000003, 30000004, 30000005, 30000006, 30000007, 30000008]
1728
1730
 
1729
1731
  constellation.position.as_json # => {:x=>-9.404655970099134e+16,
1730
1732
  # :y=>4.952015315379885e+16,
@@ -1782,11 +1784,11 @@ graphics = EveOnline::ESI::UniverseGraphics.new
1782
1784
 
1783
1785
  graphics.scope # => nil
1784
1786
 
1785
- graphics.graphic_ids.size # => 3624
1787
+ graphics.graphic_ids.size # => 3702
1786
1788
 
1787
- graphics.graphic_ids.first # => 20481
1789
+ graphics.graphic_ids.first # => 20480
1788
1790
 
1789
- # TODO: graphics.etag
1791
+ graphics.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1790
1792
  ```
1791
1793
 
1792
1794
  #### Get graphic information
@@ -1816,7 +1818,7 @@ graphic.sof_fation_name # => "tash-murkon"
1816
1818
  graphic.sof_hull_name # => "ai1_t1"
1817
1819
  graphic.sof_race_name # => "amarr"
1818
1820
 
1819
- # TODO: graphic.etag
1821
+ graphic.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1820
1822
  ```
1821
1823
 
1822
1824
  #### Get item groups
@@ -1836,7 +1838,7 @@ groups.group_ids.size # => 1000
1836
1838
 
1837
1839
  groups.group_ids.first # => 0
1838
1840
 
1839
- # TODO: groups.etag
1841
+ groups.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1840
1842
  ```
1841
1843
 
1842
1844
  #### Get item group information
@@ -1859,7 +1861,7 @@ group.name # => "Arkonor"
1859
1861
  group.published # => true
1860
1862
  group.type_ids # => [22, 17425, 17426, 26852, 28367, 28385, 28387, 28625, 46678, 46691]
1861
1863
 
1862
- # TODO: group.etag
1864
+ group.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1863
1865
  ```
1864
1866
 
1865
1867
  #### Bulk names to IDs
@@ -1889,7 +1891,7 @@ moon.position.x # => 162088094286.0
1889
1891
  moon.position.y # => 21314854783.0
1890
1892
  moon.position.z # => -73598621491.0
1891
1893
 
1892
- # TODO: moon.etag
1894
+ moon.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1893
1895
  ```
1894
1896
 
1895
1897
  #### Get names and categories for a set of ID's
@@ -1921,7 +1923,7 @@ planet.position.x # => 161891117336.0
1921
1923
  planet.position.y # => 21288951986.0
1922
1924
  planet.position.z # => -73529712226.0
1923
1925
 
1924
- # TODO: planet.etag
1926
+ planet.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1925
1927
  ```
1926
1928
 
1927
1929
  #### Get character races
@@ -2067,7 +2069,7 @@ station.scope # => nil
2067
2069
 
2068
2070
  station.as_json # => {:max_dockable_ship_volume=>50000000.0,
2069
2071
  # :name=>"Tanoo V - Moon 1 - Ammatar Consulate Bureau",
2070
- # :office_rental_cost=>422500.0,
2072
+ # :office_rental_cost=>329553.0,
2071
2073
  # :owner=>1000126,
2072
2074
  # :race_id=>2,
2073
2075
  # :reprocessing_efficiency=>0.5,
@@ -2128,7 +2130,7 @@ station.position.x # => -1106145239040.0
2128
2130
  station.position.y # => -145460060160.0
2129
2131
  station.position.z # => 182618726400.0
2130
2132
 
2131
- # TODO: station.etag
2133
+ station.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
2132
2134
  ```
2133
2135
 
2134
2136
  #### List all public structures
@@ -2138,11 +2140,11 @@ structures = EveOnline::ESI::UniverseStructures.new
2138
2140
 
2139
2141
  structures.scope # => nil
2140
2142
 
2141
- structures.structure_ids.size # => 4181
2143
+ structures.structure_ids.size # => 4004
2142
2144
 
2143
- structures.structure_ids.first # => 1028178624512
2145
+ structures.structure_ids.first # => 1027528548355
2144
2146
 
2145
- # TODO: structures.etag
2147
+ structures.etag # => "6edc271fcf967ee50bec6935856501b233e58790fad237b097946a4c"
2146
2148
  ```
2147
2149
 
2148
2150
  #### Get structure information
@@ -2154,16 +2156,16 @@ system_jumps = EveOnline::ESI::UniverseSystemJumps.new
2154
2156
 
2155
2157
  system_jumps.scope # => nil
2156
2158
 
2157
- system_jumps.system_jumps.size # => 4891
2159
+ system_jumps.system_jumps.size # => 4979
2158
2160
 
2159
2161
  jump = system_jumps.system_jumps.first
2160
2162
 
2161
- jump.as_json # => {:ship_jumps=>22, :system_id=>30005327}
2163
+ jump.as_json # => {:ship_jumps=>65, :system_id=>30002671}
2162
2164
 
2163
- jump.ship_jumps # => 22
2164
- jump.system_id # => 30005327
2165
+ jump.ship_jumps # => 65
2166
+ jump.system_id # => 30002671
2165
2167
 
2166
- # TODO: system_jumps.etag
2168
+ system_jumps.etag # => "40d7cfcdb494669846bedf8adadc47002986d8f5529508e8d5f8f552"
2167
2169
  ```
2168
2170
 
2169
2171
  #### Get system kills
@@ -2173,21 +2175,21 @@ system_kills = EveOnline::ESI::UniverseSystemKills.new
2173
2175
 
2174
2176
  system_kills.scope # => nil
2175
2177
 
2176
- system_kills.system_kills.size # => 3185
2178
+ system_kills.system_kills.size # => 3194
2177
2179
 
2178
2180
  system_kill = system_kills.system_kills.first
2179
2181
 
2180
- system_kill.as_json # => {:npc_kills=>231,
2182
+ system_kill.as_json # => {:npc_kills=>89,
2181
2183
  # :pod_kills=>0,
2182
- # :ship_kills=>0,
2183
- # :system_id=>30001746}
2184
+ # :ship_kills=>5,
2185
+ # :system_id=>30005327}
2184
2186
 
2185
- system_kill.npc_kills # => 231
2187
+ system_kill.npc_kills # => 89
2186
2188
  system_kill.pod_kills # => 0
2187
- system_kill.ship_kills # => 0
2188
- system_kill.system_id # => 30001746
2189
+ system_kill.ship_kills # => 5
2190
+ system_kill.system_id # => 30005327
2189
2191
 
2190
- # TODO: system_kills.etag
2192
+ system_kills.etag # => "2075c203d2a11627ab68b039a61e1816b052e9c0016eca5f08b6a35e"
2191
2193
  ```
2192
2194
 
2193
2195
  #### Get solar systems
@@ -2201,7 +2203,7 @@ systems.universe_system_ids.size # => 8285
2201
2203
 
2202
2204
  systems.universe_system_ids.first # => 30000001
2203
2205
 
2204
- # TODO: systems.etag
2206
+ systems.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
2205
2207
  ```
2206
2208
 
2207
2209
  #### Get solar system information
@@ -2251,7 +2253,7 @@ system.stargate_ids # => [50000056, 50000057, 50000058]
2251
2253
 
2252
2254
  system.station_ids # => [60012526, 60014437]
2253
2255
 
2254
- # TODO: system.etag
2256
+ system.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
2255
2257
  ```
2256
2258
 
2257
2259
  #### Get types
@@ -2265,13 +2267,13 @@ types.scope # => nil
2265
2267
 
2266
2268
  types.page # => 1
2267
2269
 
2268
- types.total_pages # => 35
2270
+ types.total_pages # => 36
2269
2271
 
2270
2272
  types.universe_type_ids.size # => 1000
2271
2273
 
2272
2274
  types.universe_type_ids.first # => 0
2273
2275
 
2274
- # TODO: types.etag
2276
+ types.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
2275
2277
  ```
2276
2278
 
2277
2279
  #### Get type information
@@ -2333,7 +2335,7 @@ type_dogma_effect.as_json # => {:effect_id=>596,
2333
2335
  type_dogma_effect.effect_id # => 596
2334
2336
  type_dogma_effect.is_default # => false
2335
2337
 
2336
- # TODO: type.etag
2338
+ type.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
2337
2339
  ```
2338
2340
 
2339
2341
  ### User Interface
@@ -2423,11 +2425,11 @@ wars.scope # => nil
2423
2425
 
2424
2426
  wars.war_ids.size # => 2000
2425
2427
 
2426
- wars.war_ids.first # => 615639
2428
+ wars.war_ids.first # => 629019
2427
2429
 
2428
2430
  # TODO: max_war_id
2429
2431
 
2430
- # TODO: wars.etag
2432
+ wars.etag # => "1e90be747fd163e5d74ab7a949bf8ad3f1d6ecd365cac31c534ab046"
2431
2433
  ```
2432
2434
 
2433
2435
  #### Get war information
@@ -2445,7 +2447,7 @@ war_killmails.page # => 1
2445
2447
 
2446
2448
  war_killmails.total_pages # => 1
2447
2449
 
2448
- war_killmails.killmails.size # => 1
2450
+ war_killmails.killmails.size # => 9
2449
2451
 
2450
2452
  killmail = war_killmails.killmails.first
2451
2453
 
@@ -2455,7 +2457,7 @@ killmail.as_json # => {:killmail_hash=>"07f7ef1d7f6090e78d8e85b4a98e680f67b5e9d5
2455
2457
  killmail.killmail_hash # => "07f7ef1d7f6090e78d8e85b4a98e680f67b5e9d5"
2456
2458
  killmail.killmail_id # => 72410059
2457
2459
 
2458
- # TODO: war_killmails.etag
2460
+ war_killmails.etag # => "12ee36a10ee0dbfb7f6691e1b27c8400fdca645f15e70ebc0a94b7ae"
2459
2461
  ```
2460
2462
 
2461
2463
  ## Exceptions
@@ -3,8 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterNotifications < Base
6
- # TODO: migrate to v3 or v4
7
- API_ENDPOINT = 'https://esi.evetech.net/v2/characters/%<character_id>s/notifications/?datasource=%<datasource>s'
6
+ API_ENDPOINT = 'https://esi.evetech.net/v4/characters/%<character_id>s/notifications/?datasource=%<datasource>s'
8
7
 
9
8
  attr_reader :character_id
10
9
 
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterWalletJournal < Base
6
- API_ENDPOINT = 'https://esi.evetech.net/v4/characters/%<character_id>s/wallet/journal/?datasource=%<datasource>s&page=%<page>s'
6
+ API_ENDPOINT = 'https://esi.evetech.net/v5/characters/%<character_id>s/wallet/journal/?datasource=%<datasource>s&page=%<page>s'
7
7
 
8
8
  attr_reader :character_id, :page
9
9
 
@@ -17,11 +17,10 @@ module EveOnline
17
17
  @corporation_id = options.fetch(:corporation_id)
18
18
  end
19
19
 
20
- # TODO: war_eligible
21
20
  def_delegators :model, :as_json, :alliance_id, :ceo_id, :creator_id,
22
21
  :date_founded, :description, :faction_id,
23
22
  :home_station_id, :member_count, :name, :shares,
24
- :tax_rate, :ticker, :corporation_url
23
+ :tax_rate, :ticker, :corporation_url, :war_eligible
25
24
 
26
25
  def model
27
26
  @model ||= Models::Corporation.new(response)
@@ -8,8 +8,7 @@ module EveOnline
8
8
  {
9
9
  constellation_id: constellation_id,
10
10
  name: name,
11
- region_id: region_id,
12
- systems: systems
11
+ region_id: region_id
13
12
  }
14
13
  end
15
14
 
@@ -25,7 +24,7 @@ module EveOnline
25
24
  options['region_id']
26
25
  end
27
26
 
28
- def systems
27
+ def system_ids
29
28
  options['systems']
30
29
  end
31
30
 
@@ -18,7 +18,8 @@ module EveOnline
18
18
  shares: shares,
19
19
  tax_rate: tax_rate,
20
20
  ticker: ticker,
21
- corporation_url: corporation_url
21
+ corporation_url: corporation_url,
22
+ war_eligible: war_eligible
22
23
  }
23
24
  end
24
25
 
@@ -75,6 +76,10 @@ module EveOnline
75
76
  def corporation_url
76
77
  options['url']
77
78
  end
79
+
80
+ def war_eligible
81
+ options['war_eligible']
82
+ end
78
83
  end
79
84
  end
80
85
  end
@@ -9,7 +9,7 @@ module EveOnline
9
9
 
10
10
  API_ENDPOINT = 'https://esi.evetech.net/v1/status/?datasource=%<datasource>s'
11
11
 
12
- def_delegators :model, :as_json, :start_time, :players, :server_version, :vip
12
+ def_delegators :model, :as_json, :players, :server_version, :start_time, :vip
13
13
 
14
14
  def model
15
15
  @model ||= Models::ServerStatus.new(response)
@@ -18,7 +18,7 @@ module EveOnline
18
18
  end
19
19
 
20
20
  def_delegators :model, :as_json, :constellation_id, :name, :region_id,
21
- :systems, :position
21
+ :system_ids, :position
22
22
 
23
23
  def model
24
24
  @model ||= Models::Constellation.new(response)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveOnline
4
- VERSION = '0.22.0'
4
+ VERSION = '0.23.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.22.0
4
+ version: 0.23.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-01 00:00:00.000000000 Z
11
+ date: 2019-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -341,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
341
341
  - !ruby/object:Gem::Version
342
342
  version: '0'
343
343
  requirements: []
344
- rubygems_version: 3.0.1
344
+ rubygems_version: 3.0.2
345
345
  signing_key:
346
346
  specification_version: 4
347
347
  summary: EveOnline ESI API.