eve_online 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4cf2ec48048ec528132dde02a38264dd5cd4016a9f922f4dc26bcf7d1f4f73ba
4
- data.tar.gz: 9a9e616de22668ed2b4114a5531b24633edfc96987e9d0dd349bf8a19db59c8d
3
+ metadata.gz: a7aedb186e479f4f130253cdafedf9a6743d803249e819267783e4423602aec6
4
+ data.tar.gz: 57e7b3e858112fed2cf06120732710aebf15b4bf4ea82443a496c986e8b4ef4b
5
5
  SHA512:
6
- metadata.gz: c9c16ff0283e5db41e4c56f36d0c5e5627e3af6c24bd86e87f397e2d77ac58057c44d84626aac9984635b1843b6720bbde8bd0064ec0fe0994824e5a31fdaa82
7
- data.tar.gz: a357b8bbde81d5ef77340206fa301a4c970733437903b8955fc9d4f484479e8730f180f7ba8afe03fd6abe75e0ab20d098eaf72517fb86019869ec1b82594eeb
6
+ metadata.gz: ec1c7c1913a095f42f065f64ef80102b6c45917a6be1f982640361c56e8570b2f9e246c7088a82a1d3f52a2db3da44f9be4fe6609f517f4823b418d890c2201f
7
+ data.tar.gz: feceb05a0f30b512e8b5e63db5a094299f23edb5287d9b3aedb5152a2e19d9bdc9deef5da4ef03209d0a9a5438f78cc33999d75712d8b21ed27113efc721612c
@@ -1,6 +1,7 @@
1
- require: rubocop-thread_safety
2
- require: rubocop-rspec
3
- require: rubocop-performance
1
+ require:
2
+ - rubocop-thread_safety
3
+ - rubocop-rspec
4
+ - rubocop-performance
4
5
 
5
6
  inherit_from:
6
7
  - .rubocop_general.yml
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.26.0
4
+
5
+ * Sync with new ESI API
6
+
3
7
  ## v0.25.0
4
8
 
5
9
  * `EveOnline::ESI::CharacterAssetsLocations#etag` raise `NotImplementedError` from now
data/Gemfile CHANGED
@@ -9,6 +9,7 @@ gem 'nokogiri'
9
9
  gem 'awesome_print', require: 'ap'
10
10
  gem 'pry'
11
11
  gem 'rubocop', require: false
12
+ gem 'rubocop-thread_safety', require: false
12
13
  gem 'rubocop-rspec', require: false
13
14
  gem 'rubocop-performance', require: false
14
15
  gem 'fasterer', require: false
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eve_online (0.25.0)
4
+ eve_online (0.26.0)
5
5
  activesupport (>= 4.2.0)
6
6
 
7
7
  GEM
@@ -26,7 +26,7 @@ GEM
26
26
  fasterer (0.5.1)
27
27
  colorize (~> 0.7)
28
28
  ruby_parser (>= 3.13.0)
29
- hashdiff (0.3.9)
29
+ hashdiff (0.4.0)
30
30
  i18n (1.6.0)
31
31
  concurrent-ruby (~> 1.0)
32
32
  jaro_winkler (1.5.2)
@@ -50,7 +50,7 @@ GEM
50
50
  pry (0.12.2)
51
51
  coderay (~> 1.1.0)
52
52
  method_source (~> 0.9.0)
53
- public_suffix (3.0.3)
53
+ public_suffix (3.1.0)
54
54
  rainbow (3.0.0)
55
55
  rake (12.3.2)
56
56
  rspec (3.8.0)
@@ -59,7 +59,7 @@ GEM
59
59
  rspec-mocks (~> 3.8.0)
60
60
  rspec-core (3.8.0)
61
61
  rspec-support (~> 3.8.0)
62
- rspec-expectations (3.8.3)
62
+ rspec-expectations (3.8.4)
63
63
  diff-lcs (>= 1.2.0, < 2.0)
64
64
  rspec-support (~> 3.8.0)
65
65
  rspec-its (1.3.0)
@@ -68,23 +68,25 @@ GEM
68
68
  rspec-mocks (3.8.0)
69
69
  diff-lcs (>= 1.2.0, < 2.0)
70
70
  rspec-support (~> 3.8.0)
71
- rspec-support (3.8.0)
72
- rubocop (0.68.1)
71
+ rspec-support (3.8.2)
72
+ rubocop (0.71.0)
73
73
  jaro_winkler (~> 1.5.1)
74
74
  parallel (~> 1.10)
75
- parser (>= 2.5, != 2.5.1.1)
75
+ parser (>= 2.6)
76
76
  rainbow (>= 2.2.2, < 4.0)
77
77
  ruby-progressbar (~> 1.7)
78
- unicode-display_width (>= 1.4.0, < 1.6)
79
- rubocop-performance (1.2.0)
78
+ unicode-display_width (>= 1.4.0, < 1.7)
79
+ rubocop-performance (1.3.0)
80
80
  rubocop (>= 0.68.0)
81
- rubocop-rspec (1.32.0)
81
+ rubocop-rspec (1.33.0)
82
82
  rubocop (>= 0.60.0)
83
- ruby-progressbar (1.10.0)
83
+ rubocop-thread_safety (0.3.4)
84
+ rubocop (>= 0.51.0)
85
+ ruby-progressbar (1.10.1)
84
86
  ruby_parser (3.13.1)
85
87
  sexp_processor (~> 4.9)
86
88
  safe_yaml (1.0.5)
87
- sexp_processor (4.12.0)
89
+ sexp_processor (4.12.1)
88
90
  simplecov (0.16.1)
89
91
  docile (~> 1.1)
90
92
  json (>= 1.8, < 3)
@@ -94,12 +96,12 @@ GEM
94
96
  tomlrb (1.2.8)
95
97
  tzinfo (1.2.5)
96
98
  thread_safe (~> 0.1)
97
- unicode-display_width (1.5.0)
98
- vcr (4.0.0)
99
- webmock (3.5.1)
99
+ unicode-display_width (1.6.0)
100
+ vcr (5.0.0)
101
+ webmock (3.6.0)
100
102
  addressable (>= 2.3.6)
101
103
  crack (>= 0.3.2)
102
- hashdiff
104
+ hashdiff (>= 0.4.0, < 2.0.0)
103
105
 
104
106
  PLATFORMS
105
107
  ruby
@@ -118,6 +120,7 @@ DEPENDENCIES
118
120
  rubocop
119
121
  rubocop-performance
120
122
  rubocop-rspec
123
+ rubocop-thread_safety
121
124
  simplecov
122
125
  vcr
123
126
  webmock
@@ -32,7 +32,7 @@ GEM
32
32
  diff-lcs (1.3)
33
33
  docile (1.3.1)
34
34
  equalizer (0.0.11)
35
- hashdiff (0.3.9)
35
+ hashdiff (0.4.0)
36
36
  i18n (1.6.0)
37
37
  concurrent-ruby (~> 1.0)
38
38
  ice_nine (0.11.2)
@@ -81,16 +81,16 @@ GEM
81
81
  parser (2.5.3.0)
82
82
  ast (~> 2.4.0)
83
83
  procto (0.0.3)
84
- public_suffix (3.0.3)
84
+ public_suffix (3.1.0)
85
85
  rake (12.3.2)
86
- regexp_parser (1.4.0)
86
+ regexp_parser (1.5.1)
87
87
  rspec (3.8.0)
88
88
  rspec-core (~> 3.8.0)
89
89
  rspec-expectations (~> 3.8.0)
90
90
  rspec-mocks (~> 3.8.0)
91
91
  rspec-core (3.8.0)
92
92
  rspec-support (~> 3.8.0)
93
- rspec-expectations (3.8.3)
93
+ rspec-expectations (3.8.4)
94
94
  diff-lcs (>= 1.2.0, < 2.0)
95
95
  rspec-support (~> 3.8.0)
96
96
  rspec-its (1.3.0)
@@ -99,7 +99,7 @@ GEM
99
99
  rspec-mocks (3.8.0)
100
100
  diff-lcs (>= 1.2.0, < 2.0)
101
101
  rspec-support (~> 3.8.0)
102
- rspec-support (3.8.0)
102
+ rspec-support (3.8.2)
103
103
  safe_yaml (1.0.5)
104
104
  simplecov (0.16.1)
105
105
  docile (~> 1.1)
@@ -118,11 +118,11 @@ GEM
118
118
  equalizer (~> 0.0.9)
119
119
  parser (>= 2.3.1.2, < 2.6)
120
120
  procto (~> 0.0.2)
121
- vcr (4.0.0)
122
- webmock (3.5.1)
121
+ vcr (5.0.0)
122
+ webmock (3.6.0)
123
123
  addressable (>= 2.3.6)
124
124
  crack (>= 0.3.2)
125
- hashdiff
125
+ hashdiff (>= 0.4.0, < 2.0.0)
126
126
 
127
127
  PLATFORMS
128
128
  ruby
data/README.md CHANGED
@@ -459,7 +459,8 @@ character.as_json # => {:alliance_id=>12345678,
459
459
  # :gender=>"male",
460
460
  # :name=>"Green Black",
461
461
  # :race_id=>2,
462
- # :security_status=>1.8694881661345457}
462
+ # :security_status=>1.8694881661345457,
463
+ # :title=>nil}
463
464
 
464
465
  character.alliance_id # => 12345678
465
466
  character.ancestry_id # => 24
@@ -472,6 +473,7 @@ character.gender # => "male"
472
473
  character.name # => "Green Black"
473
474
  character.race_id # => 2
474
475
  character.security_status # => 1.8694881661345457
476
+ character.title # => nil
475
477
 
476
478
  character.etag # => "22c39689783a86032b8d43fa0b2e8f4809c4f38a585e39471035aa8b"
477
479
  ```
@@ -581,23 +583,23 @@ notification.type # => "AllWarDeclaredMsg"
581
583
  #### Get character portraits
582
584
 
583
585
  ```ruby
584
- options = { character_id: 90729314 }
586
+ options = { character_id: 90_729_314 }
585
587
 
586
588
  character_portrait = EveOnline::ESI::CharacterPortrait.new(options)
587
589
 
588
590
  character_portrait.scope # => nil
589
591
 
590
- character_portrait.as_json # => {:medium=>"http://image.eveonline.com/Character/90729314_128.jpg",
591
- # :large=>"http://image.eveonline.com/Character/90729314_256.jpg",
592
- # :huge=>"http://image.eveonline.com/Character/90729314_512.jpg"
593
- # :small=>"http://image.eveonline.com/Character/90729314_64.jpg"}
592
+ character_portrait.as_json # => {:medium=>"http://imageserver.eveonline.com/Character/90729314_128.jpg",
593
+ # :large=>"http://imageserver.eveonline.com/Character/90729314_256.jpg",
594
+ # :huge=>"http://imageserver.eveonline.com/Character/90729314_512.jpg",
595
+ # :small=>"http://imageserver.eveonline.com/Character/90729314_64.jpg"}
594
596
 
595
- character_portrait.medium # => "http://image.eveonline.com/Character/90729314_128.jpg"
596
- character_portrait.large # => "http://image.eveonline.com/Character/90729314_256.jpg"
597
- character_portrait.huge # => "http://image.eveonline.com/Character/90729314_512.jpg"
598
- character_portrait.small # => "http://image.eveonline.com/Character/90729314_64.jpg"
597
+ character_portrait.medium # => "http://imageserver.eveonline.com/Character/90729314_128.jpg"
598
+ character_portrait.large # => "http://imageserver.eveonline.com/Character/90729314_256.jpg"
599
+ character_portrait.huge # => "http://imageserver.eveonline.com/Character/90729314_512.jpg"
600
+ character_portrait.small # => "http://imageserver.eveonline.com/Character/90729314_64.jpg"
599
601
 
600
- # TODO: character_portrait.etag
602
+ character_portrait.etag # => "2c8392581d493e06c015ca3d48d4076079bf4c976b1f776742592260"
601
603
  ```
602
604
 
603
605
  #### Get character corporation roles
@@ -858,11 +860,11 @@ dogma_attributes = EveOnline::ESI::DogmaAttributes.new
858
860
 
859
861
  dogma_attributes.scope # => nil
860
862
 
861
- dogma_attributes.attribute_ids.size # => 2385
863
+ dogma_attributes.attribute_ids.size # => 2469
862
864
 
863
865
  dogma_attributes.attribute_ids.first # => 2
864
866
 
865
- # TODO: dogma_attributes.etag
867
+ dogma_attributes.etag # => "2c8392581d493e06c015ca3d48d4076079bf4c976b1f776742592260"
866
868
  ```
867
869
 
868
870
  #### Get attribute information
@@ -1162,7 +1164,7 @@ job.as_json # => {:activity_id=>1,
1162
1164
  job.activity_id # => 1
1163
1165
  job.blueprint_id # => 1026042055832
1164
1166
  job.blueprint_location_id # => 1024956764558
1165
- job.job.blueprint_type_id # => 28607
1167
+ job.blueprint_type_id # => 28607
1166
1168
  job.completed_character_id # => nil
1167
1169
  job.completed_date # => nil
1168
1170
  job.cost # => 19505804.0
@@ -1647,7 +1649,7 @@ server_status.server_version # => "1135520"
1647
1649
  server_status.start_time # => Tue, 11 Apr 2017 11:05:35 UTC +00:00
1648
1650
  server_status.vip # => nil
1649
1651
 
1650
- # TODO: server_status.etag
1652
+ server_status.etag # => "005dd5b02fc9e032466c49b28ff7fcb4fa37c56e5c361a1e25ec6cfd"
1651
1653
  ```
1652
1654
 
1653
1655
  ### Universe
@@ -1685,7 +1687,7 @@ ancestries.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
1685
1687
  #### Get asteroid belt information
1686
1688
 
1687
1689
  ```ruby
1688
- options = { id: 40000003 }
1690
+ options = { id: 40_000_003 }
1689
1691
 
1690
1692
  asteroid_belt = EveOnline::ESI::UniverseAsteroidBelt.new(options)
1691
1693
 
@@ -1705,7 +1707,7 @@ asteroid_belt.position.x # => 161967513600.0
1705
1707
  asteroid_belt.position.y # => 21288837120.0
1706
1708
  asteroid_belt.position.z # => -73505464320.0
1707
1709
 
1708
- # TODO: asteroid_belt.etag
1710
+ asteroid_belt.etag # => "2c8392581d493e06c015ca3d48d4076079bf4c976b1f776742592260"
1709
1711
  ```
1710
1712
 
1711
1713
  #### Get bloodlines
@@ -1759,7 +1761,7 @@ categories.category_ids.size # => 43
1759
1761
 
1760
1762
  categories.category_ids.first # => 0
1761
1763
 
1762
- # TODO: categories.etag
1764
+ categories.etag # => "2c8392581d493e06c015ca3d48d4076079bf4c976b1f776742592260"
1763
1765
  ```
1764
1766
 
1765
1767
  #### Get item category information
@@ -1796,13 +1798,13 @@ constellations.constellation_ids.size # => 1146
1796
1798
 
1797
1799
  constellations.constellation_ids.first # => 20000001
1798
1800
 
1799
- # TODO: constellations.etag
1801
+ constellations.etag # => "2c8392581d493e06c015ca3d48d4076079bf4c976b1f776742592260"
1800
1802
  ```
1801
1803
 
1802
1804
  #### Get constellation information
1803
1805
 
1804
1806
  ```ruby
1805
- options = { id: 20000001, language: 'en-us' }
1807
+ options = { id: 20_000_001, language: 'en-us' }
1806
1808
 
1807
1809
  constellation = EveOnline::ESI::UniverseConstellation.new(options)
1808
1810
 
@@ -1826,7 +1828,7 @@ constellation.position.x # => -9.404655970099134e+16
1826
1828
  constellation.position.y # => 4.952015315379885e+16
1827
1829
  constellation.position.z # => -4.273873181840197e+16
1828
1830
 
1829
- # TODO: constellation.etag
1831
+ constellation.etag # => "2c8392581d493e06c015ca3d48d4076079bf4c976b1f776742592260"
1830
1832
  ```
1831
1833
 
1832
1834
  #### Get factions
@@ -2053,29 +2055,29 @@ regions.universe_region_ids.size # => 106
2053
2055
 
2054
2056
  regions.universe_region_ids.first # => 10000001
2055
2057
 
2056
- # TODO: regions.etag
2058
+ regions.etag # => "2c8392581d493e06c015ca3d48d4076079bf4c976b1f776742592260"
2057
2059
  ```
2058
2060
 
2059
2061
  #### Get region information
2060
2062
 
2061
2063
  ```ruby
2062
- options = { id: 10000001, language: 'en-us' }
2064
+ options = { id: 10_000_001, language: 'en-us' }
2063
2065
 
2064
2066
  region = EveOnline::ESI::UniverseRegion.new(options)
2065
2067
 
2066
2068
  region.scope # => nil
2067
2069
 
2068
- region.as_json # => {:constellations=>[20000001,20000002,20000003,20000016],
2070
+ region.as_json # => {:constellations=>[20000001,20000002,20000003,...,20000016],
2069
2071
  # :description=>"The Derelik region...",
2070
2072
  # :name=>"Derelik",
2071
2073
  # :region_id=>10000001}
2072
2074
 
2073
- region.constellations # => [20000001,20000002,20000003,20000016]
2075
+ region.constellations # => [20000001,20000002,20000003,...,20000016]
2074
2076
  region.description # => "The Derelik region..."
2075
2077
  region.name # => "Derelik"
2076
2078
  region.region_id # => 10000001
2077
2079
 
2078
- # TODO: region.etag
2080
+ region.etag # => "2c8392581d493e06c015ca3d48d4076079bf4c976b1f776742592260"
2079
2081
  ```
2080
2082
 
2081
2083
  #### Get stargate information
@@ -2142,10 +2144,6 @@ star.temperature # => 4567
2142
2144
  star.type_id # => 45041
2143
2145
 
2144
2146
  star.etag # => "2e28835f91024608719726b655591d531125a023e122859d174923d5"
2145
-
2146
- # options = { id: 60012526 }
2147
-
2148
- # star = EveOnline::ESI::UniverseStar.new(options) => 500
2149
2147
  ```
2150
2148
 
2151
2149
  #### Get station information
@@ -2412,8 +2410,8 @@ type_dogma_attribute = type.dogma_attributes.first
2412
2410
  type_dogma_attribute.as_json # => {:attribute_id=>128,
2413
2411
  # :value=>2.0}
2414
2412
 
2415
- dogma_attribute.attribute_id # => 128
2416
- dogma_attribute.value # => 2.0
2413
+ type_dogma_attribute.attribute_id # => 128
2414
+ type_dogma_attribute.value # => 2.0
2417
2415
 
2418
2416
  type.dogma_effects.size # => 3
2419
2417
 
@@ -19,7 +19,7 @@ module EveOnline
19
19
 
20
20
  def_delegators :model, :as_json, :alliance_id, :ancestry_id, :birthday,
21
21
  :bloodline_id, :corporation_id, :description, :faction_id,
22
- :gender, :name, :race_id, :security_status
22
+ :gender, :name, :race_id, :security_status, :title
23
23
 
24
24
  def model
25
25
  @model ||= Models::Character.new(response)
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterNotifications < Base
6
- API_PATH = '/v4/characters/%<character_id>s/notifications/?datasource=%<datasource>s'
6
+ API_PATH = '/v5/characters/%<character_id>s/notifications/?datasource=%<datasource>s'
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterWalletJournal < Base
6
- API_PATH = '/v5/characters/%<character_id>s/wallet/journal/?datasource=%<datasource>s&page=%<page>s'
6
+ API_PATH = '/v6/characters/%<character_id>s/wallet/journal/?datasource=%<datasource>s&page=%<page>s'
7
7
 
8
8
  attr_reader :character_id, :page
9
9
 
@@ -60,6 +60,11 @@ module EveOnline
60
60
  def coordinates
61
61
  @coordinates ||= Coordinates.new(options['coordinates'])
62
62
  end
63
+
64
+ # TODO: finish
65
+ # def item
66
+ # @item ||= Item.new(options['item'])
67
+ # end
63
68
  end
64
69
  end
65
70
  end
@@ -16,7 +16,8 @@ module EveOnline
16
16
  gender: gender,
17
17
  name: name,
18
18
  race_id: race_id,
19
- security_status: security_status
19
+ security_status: security_status,
20
+ title: title
20
21
  }
21
22
  end
22
23
 
@@ -65,6 +66,10 @@ module EveOnline
65
66
  def security_status
66
67
  options['security_status']
67
68
  end
69
+
70
+ def title
71
+ options['title']
72
+ end
68
73
  end
69
74
  end
70
75
  end
@@ -6,7 +6,7 @@ module EveOnline
6
6
  class Region < Base
7
7
  def as_json
8
8
  {
9
- constellations: constellations,
9
+ constellations: constellations, # TODO: rename constellations -> constellation_ids and remove from as_json
10
10
  description: description,
11
11
  name: name,
12
12
  region_id: region_id
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveOnline
4
- VERSION = '0.25.0'
4
+ VERSION = '0.26.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.25.0
4
+ version: 0.26.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-05-11 00:00:00.000000000 Z
11
+ date: 2019-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler