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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7c874338d7aa0d467285e375390a6b185c184d9e5882a7f2ca519411b76e6df
4
- data.tar.gz: 80b17cc143a6e5479005498a6351adccec57a997ac405138677beeb6dc10789e
3
+ metadata.gz: 1f855ed4e984d89d9cc257a8fc6f3d0be138f60c5d89c691f19bd439ac7d7e37
4
+ data.tar.gz: aaf3df11c827c8ec8d0459e4c5f787ee1740c63fd394a4239333b59db37590b2
5
5
  SHA512:
6
- metadata.gz: f50b8969549d4f8a8cb866725f46e058cd761072da6024a781469d95123e5a84bdcd981f77d4fe636b575ec333c08cfe6db95c78b5374c44df8a58a1db96bd9f
7
- data.tar.gz: d8ca8eeba8e76b7c7915edd7703ca4a57046ccb54fa520384239331dc7a26ee2dd8c0604659acad2b184348589a9650d7e2be5e35eb8ff6227532bac7d25ea09
6
+ metadata.gz: 4c8f39261ab146f8e82df2fd6f4285a2f1c9c99e8288ca78d9f4de8d362ca04ac24e8c8e036c439f99a94216fb2c0e3893bc32899fa1a7dbcafcece5377bc758
7
+ data.tar.gz: dbfe5a04225bbc14b947bf017668dd97333ffdf838c09c9b185f0510459c7f5a77bbeb9b0d499831e1e9f4d621cf8697e83553a86ab7231eb7895ebd94ce2d9a
@@ -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
- run: |
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.2)
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.0)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ESI
4
- VERSION = "2.1.2"
4
+ VERSION = "2.1.3"
5
5
  end
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.2
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-10-09 00:00:00.000000000 Z
11
+ date: 2021-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpx