eve_online 0.38.0 → 0.39.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: 2b0901d9d2b00008e029a12fb3e586da93862acb00548179d26f7a0765c7dde0
4
- data.tar.gz: d84f24fbfb9dea652708d1a2e78df29984868e48709f9f0bbec78dab9e01a90c
3
+ metadata.gz: ac6ef5eafb8e6ffb48b4a5c4cc67d716ca91694beb2283935b9841aa16c77f82
4
+ data.tar.gz: d2fd1f04eceda3760ead2812e29cbdf74a14a83215048652bc23654b667579d3
5
5
  SHA512:
6
- metadata.gz: 255486b61894bbdb23e6dd22f9da0f3f2561b6092c00e7eae19ce66a94617c2289c1bbcf0796cbb0204d7cb5f483b3e9a888b01e0558f98ce8daac0799ab1ebd
7
- data.tar.gz: 45170de6d973bc6d12b00c81525670ce767e15014bb9cb8629c30ce0517f6cc0106d8ba46e0291ce384be51689e470c800f9fd052162c6bfa8b503b955abfb71
6
+ metadata.gz: 3e72924a1091d11695bc4ee5b1c57d5cc0a58ded0aa6b9813a9e9da6827929f5e2cd89b362e2a8dafc1570e16d1fd3e98972018174cb62532a90cf4c90b5f4eb
7
+ data.tar.gz: 587657cea52b7c74c3b2b802bef7c977ff2f950c772dfef8502ab0c9b917ba019fc2ed33b44e1e7a88e5c0f32fb8a0a54adcd13da34607d064952641ca23aa39
data/.circleci/config.yml CHANGED
@@ -13,7 +13,7 @@ jobs:
13
13
  - run: bundle exec appraisal rake
14
14
  - run: bundle exec standardrb
15
15
  - run: bundle exec fasterer
16
- - run: bundle exec mdl README.md CHANGELOG.md TODO.md
16
+ - run: bundle exec mdl README.md CHANGELOG.md
17
17
  ruby-2.7.2:
18
18
  docker:
19
19
  - image: circleci/ruby:2.7.2
@@ -26,7 +26,7 @@ jobs:
26
26
  - run: bundle exec appraisal rake
27
27
  - run: bundle exec standardrb
28
28
  - run: bundle exec fasterer
29
- - run: bundle exec mdl README.md CHANGELOG.md TODO.md
29
+ - run: bundle exec mdl README.md CHANGELOG.md
30
30
  ruby-3.0.0:
31
31
  docker:
32
32
  - image: circleci/ruby:3.0.0
@@ -39,7 +39,7 @@ jobs:
39
39
  - run: bundle exec appraisal rake
40
40
  - run: bundle exec standardrb
41
41
  - run: bundle exec fasterer
42
- - run: bundle exec mdl README.md CHANGELOG.md TODO.md
42
+ - run: bundle exec mdl README.md CHANGELOG.md
43
43
 
44
44
  workflows:
45
45
  version: 2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.39.0
4
+
5
+ * Sync with new ESI
6
+ * Add "Accept" header back
7
+
3
8
  ## 0.38.0
4
9
 
5
10
  * Replace `net/http` with `faraday`
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eve_online (0.38.0)
4
+ eve_online (0.39.0)
5
5
  activesupport (>= 5.2.0)
6
6
  faraday
7
7
  faraday_middleware
data/README.md CHANGED
@@ -132,13 +132,13 @@ alliance_icon = EveOnline::ESI::AllianceIcon.new(options)
132
132
 
133
133
  alliance_icon.scope # => nil
134
134
 
135
- alliance_icon.as_json # => {:icon_medium=>"http://image.eveonline.com/Alliance/99005443_128.png",
136
- # :icon_small=>"http://image.eveonline.com/Alliance/99005443_64.png"}
135
+ alliance_icon.as_json # => {:icon_medium=>"https://images.evetech.net/alliances/99005443/logo?tenant=tranquility&size=128",
136
+ # :icon_small=>"https://images.evetech.net/alliances/99005443/logo?tenant=tranquility&size=64"}
137
137
 
138
- alliance_icon.icon_medium # => "http://image.eveonline.com/Alliance/99005443_128.png"
139
- alliance_icon.icon_small # => "http://image.eveonline.com/Alliance/99005443_64.png"
138
+ alliance_icon.icon_medium # => "https://images.evetech.net/alliances/99005443/logo?tenant=tranquility&size=128"
139
+ alliance_icon.icon_small # => "https://images.evetech.net/alliances/99005443/logo?tenant=tranquility&size=64"
140
140
 
141
- alliance_icon.etag # => "e3f6a76b4a1287f54966c6253f8f5d6ac6460bc43d47570331b43e0b"
141
+ alliance_icon.etag # => "d067edb53a9019e0e05d99a2b1e7c7745433a982dda16667a14bff49"
142
142
  ```
143
143
 
144
144
  ### Assets
data/eve_online.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  "source_code_uri" => "https://github.com/evemonk/eve_online"
24
24
  }
25
25
 
26
- spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|bin)/}) }
26
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|bin|swagger)/}) }
27
27
  spec.require_paths = ["lib"]
28
28
 
29
29
  spec.required_ruby_version = ">= 2.6"
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class Alliance < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = "/v3/alliances/%<alliance_id>s/"
10
+ API_PATH = "/v4/alliances/%<alliance_id>s/"
11
11
 
12
12
  attr_reader :alliance_id
13
13
 
@@ -7,7 +7,7 @@ module EveOnline
7
7
  class AllianceIcon < Base
8
8
  extend Forwardable
9
9
 
10
- API_PATH = "/v1/alliances/%<alliance_id>s/icons/"
10
+ API_PATH = "/v2/alliances/%<alliance_id>s/icons/"
11
11
 
12
12
  attr_reader :alliance_id
13
13
 
@@ -100,6 +100,7 @@ module EveOnline
100
100
  @connection ||= Faraday.new { |f|
101
101
  f.headers["User-Agent"] = user_agent
102
102
  f.headers["If-None-Match"] = _etag if _etag
103
+ f.headers["Accept"] = "application/json"
103
104
  f.authorization :Bearer, token if token
104
105
  f.options.read_timeout = _read_timeout
105
106
  f.options.open_timeout = _open_timeout
@@ -3,7 +3,7 @@
3
3
  module EveOnline
4
4
  module ESI
5
5
  class CharacterCorporationHistory < Base
6
- API_PATH = "/v1/characters/%<character_id>s/corporationhistory/"
6
+ API_PATH = "/v2/characters/%<character_id>s/corporationhistory/"
7
7
 
8
8
  attr_reader :character_id
9
9
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveOnline
4
- VERSION = "0.38.0"
4
+ VERSION = "0.39.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eve_online
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.38.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Zubkov
@@ -200,7 +200,6 @@ files:
200
200
  - LICENSE.txt
201
201
  - README.md
202
202
  - Rakefile
203
- - TODO.md
204
203
  - eve_online.gemspec
205
204
  - lib/eve_online.rb
206
205
  - lib/eve_online/esi/alliance.rb
data/TODO.md DELETED
@@ -1,7 +0,0 @@
1
- # TODO
2
-
3
- * Fix MD024
4
- * Add corporation roles
5
- * Add caching timeout
6
- * Add 420 error status
7
- * Add errors limits