esi-sdk 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/build.yml +4 -2
- data/CHANGELOG.md +7 -0
- data/Gemfile +0 -2
- data/Gemfile.lock +2 -5
- data/README.md +3 -0
- data/lib/esi/client.rb +2 -2
- data/lib/esi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1f855ed4e984d89d9cc257a8fc6f3d0be138f60c5d89c691f19bd439ac7d7e37
|
4
|
+
data.tar.gz: aaf3df11c827c8ec8d0459e4c5f787ee1740c63fd394a4239333b59db37590b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c8f39261ab146f8e82df2fd6f4285a2f1c9c99e8288ca78d9f4de8d362ca04ac24e8c8e036c439f99a94216fb2c0e3893bc32899fa1a7dbcafcece5377bc758
|
7
|
+
data.tar.gz: dbfe5a04225bbc14b947bf017668dd97333ffdf838c09c9b185f0510459c7f5a77bbeb9b0d499831e1e9f4d621cf8697e83553a86ab7231eb7895ebd94ce2d9a
|
data/.github/workflows/build.yml
CHANGED
@@ -128,10 +128,12 @@ jobs:
|
|
128
128
|
bundle install --jobs 4 --retry 3
|
129
129
|
|
130
130
|
- name: Run tests
|
131
|
+
uses: paambaati/codeclimate-action@v3.0.0
|
131
132
|
env:
|
133
|
+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
|
132
134
|
USER_AGENT: "ESI SDK Tests/1.0; (+https://github.com/bokoboshahni/esi-sdk-ruby)"
|
133
|
-
|
134
|
-
bundle exec rake spec
|
135
|
+
with:
|
136
|
+
coverageCommand: bundle exec rake spec
|
135
137
|
|
136
138
|
release:
|
137
139
|
name: Release
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# ESI SDK Changelog
|
2
2
|
|
3
|
+
## [2.1.3](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.2...v2.1.3) (2021-12-08)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* ensure array for paginated responses ([55010e1](https://github.com/bokoboshahni/esi-sdk-ruby/commit/55010e18029e19b652d8c03eb90000fba186be98))
|
9
|
+
|
3
10
|
## [2.1.2](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.1...v2.1.2) (2021-10-09)
|
4
11
|
|
5
12
|
## [2.1.1](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.0...v2.1.1) (2021-10-09)
|
data/Gemfile
CHANGED
@@ -15,8 +15,6 @@ gem "rubocop-performance", "~> 1.11"
|
|
15
15
|
gem "rubocop-rake", "~> 0.6"
|
16
16
|
gem "rubocop-rspec", "~> 2.4"
|
17
17
|
gem "simplecov", "~> 0.21"
|
18
|
-
gem "simplecov_json_formatter", "~> 0.1", require: false
|
19
|
-
gem "vcr", "~> 6.0"
|
20
18
|
gem "webmock", "~> 3.13"
|
21
19
|
gem "yard", "~> 0.9"
|
22
20
|
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
esi-sdk (2.1.
|
4
|
+
esi-sdk (2.1.3)
|
5
5
|
httpx (~> 0.18)
|
6
6
|
retriable (~> 3.1)
|
7
7
|
|
@@ -25,7 +25,7 @@ GEM
|
|
25
25
|
docile (1.4.0)
|
26
26
|
hashdiff (1.0.1)
|
27
27
|
http-2-next (0.5.0)
|
28
|
-
httpx (0.18.
|
28
|
+
httpx (0.18.1)
|
29
29
|
http-2-next (>= 0.4.1)
|
30
30
|
i18n (1.8.10)
|
31
31
|
concurrent-ruby (~> 1.0)
|
@@ -85,7 +85,6 @@ GEM
|
|
85
85
|
tzinfo (2.0.4)
|
86
86
|
concurrent-ruby (~> 1.0)
|
87
87
|
unicode-display_width (2.1.0)
|
88
|
-
vcr (6.0.0)
|
89
88
|
webmock (3.14.0)
|
90
89
|
addressable (>= 2.8.0)
|
91
90
|
crack (>= 0.3.2)
|
@@ -110,8 +109,6 @@ DEPENDENCIES
|
|
110
109
|
rubocop-rake (~> 0.6)
|
111
110
|
rubocop-rspec (~> 2.4)
|
112
111
|
simplecov (~> 0.21)
|
113
|
-
simplecov_json_formatter (~> 0.1)
|
114
|
-
vcr (~> 6.0)
|
115
112
|
webmock (~> 3.13)
|
116
113
|
yard (~> 0.9)
|
117
114
|
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
[![Build](https://github.com/bokoboshahni/esi-sdk-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/bokoboshahni/esi-sdk-ruby/actions/workflows/build.yml)
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/esi-sdk.svg)](https://badge.fury.io/rb/esi-sdk)
|
3
|
+
[![Maintainability](https://api.codeclimate.com/v1/badges/cec445478e041ffb9c2b/maintainability)](https://codeclimate.com/github/bokoboshahni/esi-sdk-ruby/maintainability)
|
4
|
+
[![Test Coverage](https://api.codeclimate.com/v1/badges/cec445478e041ffb9c2b/test_coverage)](https://codeclimate.com/github/bokoboshahni/esi-sdk-ruby/test_coverage)
|
5
|
+
[![Discord](https://img.shields.io/discord/782291682778546226)](https://discord.gg/beqVqV7ths)
|
3
6
|
|
4
7
|
# EVE Swagger Interface (ESI) SDK
|
5
8
|
|
data/lib/esi/client.rb
CHANGED
@@ -175,14 +175,14 @@ module ESI
|
|
175
175
|
raise_error(response)
|
176
176
|
end
|
177
177
|
|
178
|
-
def paginate(response, path, params, headers) # rubocop:disable Metrics/MethodLength
|
178
|
+
def paginate(response, path, params, headers) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
|
179
179
|
response_headers = normalize_headers(response.headers)
|
180
180
|
page_count = response_headers["x-pages"].to_i
|
181
181
|
|
182
182
|
requests = (2..page_count).map do |n|
|
183
183
|
session.build_request(:get, path, params: params.merge(page: n), headers: headers)
|
184
184
|
end
|
185
|
-
responses = requests.any? ? session.request(*requests) : []
|
185
|
+
responses = requests.any? ? Array(session.request(*requests)) : []
|
186
186
|
responses.unshift(response)
|
187
187
|
|
188
188
|
if responses.any?(&:error)
|
data/lib/esi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: esi-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bokobo Shahni
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpx
|