esi-sdk 2.1.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/{cicd.yml → build.yml} +5 -3
  3. data/.rubocop.yml +1 -8
  4. data/.yardext.rb +5 -5
  5. data/CHANGELOG.md +32 -0
  6. data/Gemfile +15 -17
  7. data/Gemfile.lock +10 -9
  8. data/README.md +5 -1
  9. data/Rakefile +106 -140
  10. data/bin/console +3 -3
  11. data/esi-sdk.gemspec +18 -17
  12. data/exe/esi-sdk +1 -1
  13. data/lib/esi/client/alliance.rb +5 -5
  14. data/lib/esi/client/assets.rb +6 -8
  15. data/lib/esi/client/bookmarks.rb +4 -8
  16. data/lib/esi/client/calendar.rb +5 -5
  17. data/lib/esi/client/character.rb +17 -16
  18. data/lib/esi/client/clones.rb +2 -2
  19. data/lib/esi/client/contacts.rb +12 -15
  20. data/lib/esi/client/contracts.rb +9 -15
  21. data/lib/esi/client/corporation.rb +24 -33
  22. data/lib/esi/client/dogma.rb +7 -7
  23. data/lib/esi/client/faction_warfare.rb +14 -14
  24. data/lib/esi/client/fittings.rb +3 -3
  25. data/lib/esi/client/fleets.rb +14 -14
  26. data/lib/esi/client/incursions.rb +2 -2
  27. data/lib/esi/client/industry.rb +13 -18
  28. data/lib/esi/client/insurance.rb +2 -2
  29. data/lib/esi/client/killmails.rb +3 -5
  30. data/lib/esi/client/location.rb +3 -3
  31. data/lib/esi/client/loyalty.rb +2 -2
  32. data/lib/esi/client/mail.rb +8 -8
  33. data/lib/esi/client/market.rb +18 -24
  34. data/lib/esi/client/opportunities.rb +7 -7
  35. data/lib/esi/client/planetary_interaction.rb +4 -5
  36. data/lib/esi/client/routes.rb +4 -4
  37. data/lib/esi/client/search.rb +5 -5
  38. data/lib/esi/client/skills.rb +3 -3
  39. data/lib/esi/client/sovereignty.rb +6 -6
  40. data/lib/esi/client/status.rb +2 -2
  41. data/lib/esi/client/universe.rb +47 -49
  42. data/lib/esi/client/user_interface.rb +14 -14
  43. data/lib/esi/client/wallet.rb +8 -10
  44. data/lib/esi/client/wars.rb +5 -6
  45. data/lib/esi/client.rb +150 -112
  46. data/lib/esi/version.rb +1 -1
  47. data/lib/esi-sdk.rb +2 -2
  48. metadata +23 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0792d0a5356452963fc5a91496c0344add3d4cc9efa29debc185713bd294cb70'
4
- data.tar.gz: a13e39a46b2d958c4fc9bb4dfe4c73f42d3e8fb070592a980e9b1b1f510bdfa9
3
+ metadata.gz: 53eb50161c8ed5745331ae4c5f5e758b16d26cbdb1a03477c6529ded6f6af0d1
4
+ data.tar.gz: 86bf63be109701505da29dc155f7678162614a21fff263fe28e15abd36b78d2b
5
5
  SHA512:
6
- metadata.gz: 44468ca22260a2c6cb6a13f5d10021448e9e01a03de1216c2a50122b138fa24992bae8775f5b8afda41d7de701aca2417ef3a3cd24f8bfabb70f787f3293021d
7
- data.tar.gz: 889a62e3d428345ca4378acaacb2aeb8c4b32e0a503f7ad02b6d08af5ebfbf01fb6fb3341c619f8ebe8cd999fecd0db729141657ccb30fa430777d7e106aac51
6
+ metadata.gz: a48179dc2da01171f4fc03cb04225b542f96ac6bef91cb27fbbb5a2edddaa5affa7465fb6f737aef2e98523e6e387d0e6592aa2b39f96ae9570847631d2501a7
7
+ data.tar.gz: 03f373c97e9d0daaa0bbfef87e739518650aa6733573795235c25d1225d293b27291b8665928a711b2625370544d7183cb9905c7e4236712676d3f2a51fb0cfa
@@ -1,4 +1,4 @@
1
- name: Ruby
1
+ name: Build
2
2
 
3
3
  on:
4
4
  pull_request:
@@ -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/.rubocop.yml CHANGED
@@ -2,19 +2,12 @@ AllCops:
2
2
  NewCops: enable
3
3
  TargetRubyVersion: 3.0
4
4
 
5
- Style/StringLiterals:
6
- Enabled: true
7
- EnforcedStyle: double_quotes
8
-
9
- Style/StringLiteralsInInterpolation:
10
- Enabled: true
11
- EnforcedStyle: double_quotes
12
-
13
5
  Layout/LineLength:
14
6
  Max: 120
15
7
  Exclude:
16
8
  - lib/esi/client/*.rb
17
9
  - spec/lib/esi/client/*_spec.rb
10
+ - spec/lib/esi/client_spec.rb
18
11
  - Rakefile
19
12
 
20
13
  Metrics/BlockLength:
data/.yardext.rb CHANGED
@@ -1,18 +1,18 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "kramdown"
4
- require "yard"
3
+ require 'kramdown'
4
+ require 'yard'
5
5
 
6
6
  # Make new Kramdown class with Github Formatted Markdown on
7
7
  class KramdownGFM < Kramdown::Document
8
8
  def initialize(text, opts = {})
9
- super(text, opts.merge(input: "GFM", hard_wrap: false))
9
+ super(text, opts.merge(input: 'GFM', hard_wrap: false))
10
10
  end
11
11
  end
12
12
 
13
13
  # Register new KramdownGFM
14
14
  YARD::Templates::Helpers::MarkupHelper::MARKUP_PROVIDERS[:markdown] <<
15
- { lib: :"kramdown-parser-gfm", const: "KramdownGFM" }
15
+ { lib: :'kramdown-parser-gfm', const: 'KramdownGFM' }
16
16
 
17
17
  # Register custom templates
18
- YARD::Templates::Engine.register_template_path File.expand_path("yard/templates", __dir__)
18
+ YARD::Templates::Engine.register_template_path File.expand_path('yard/templates', __dir__)
data/CHANGELOG.md CHANGED
@@ -1,5 +1,37 @@
1
1
  # ESI SDK Changelog
2
2
 
3
+ # [3.0.0](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.3...v3.0.0) (2022-01-26)
4
+
5
+
6
+ * feat!: use typhoeus and oj for api calls ([b6b150e](https://github.com/bokoboshahni/esi-sdk-ruby/commit/b6b150eff93889415ddca98d497c437470030e09))
7
+
8
+
9
+ ### BREAKING CHANGES
10
+
11
+ * Typhoeus is now used instead of HTTPX for API calls and
12
+ oj is used for JSON parsing.
13
+
14
+ The following options have been removed from `ESI::Client#initialize`:
15
+
16
+ - `:cache`: Configure Typhoeus cache globally with
17
+ `Typhoeus::Config.cache`
18
+ (see https://github.com/typhoeus/typhoeus#caching)
19
+ - `:logger`: Configure Ethon logger globally with `Ethon.logger`
20
+ (see https://www.rubydoc.info/github/typhoeus/ethon/Ethon/Loggable#logger=-instance_method)
21
+ - `:instrumentation`: Instrumentation support to be re-added in a later
22
+ release.
23
+
24
+ ## [2.1.3](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.2...v2.1.3) (2021-12-08)
25
+
26
+
27
+ ### Bug Fixes
28
+
29
+ * ensure array for paginated responses ([55010e1](https://github.com/bokoboshahni/esi-sdk-ruby/commit/55010e18029e19b652d8c03eb90000fba186be98))
30
+
31
+ ## [2.1.2](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.1...v2.1.2) (2021-10-09)
32
+
33
+ ## [2.1.1](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.0...v2.1.1) (2021-10-09)
34
+
3
35
  # [2.1.0](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.0.0...v2.1.0) (2021-10-09)
4
36
 
5
37
 
data/Gemfile CHANGED
@@ -1,25 +1,23 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source "https://rubygems.org"
3
+ source 'https://rubygems.org'
4
4
 
5
- ruby "3.0.2"
5
+ ruby '3.0.2'
6
6
 
7
7
  gemspec
8
8
 
9
- gem "activesupport", "~> 6.1"
10
- gem "awesome_print", "~> 1.9"
11
- gem "rake", "~> 13.0"
12
- gem "rspec", "~> 3.10"
13
- gem "rubocop", "~> 1.18"
14
- gem "rubocop-performance", "~> 1.11"
15
- gem "rubocop-rake", "~> 0.6"
16
- gem "rubocop-rspec", "~> 2.4"
17
- gem "simplecov", "~> 0.21"
18
- gem "simplecov_json_formatter", "~> 0.1", require: false
19
- gem "vcr", "~> 6.0"
20
- gem "webmock", "~> 3.13"
21
- gem "yard", "~> 0.9"
9
+ gem 'activesupport', '~> 6.1'
10
+ gem 'awesome_print', '~> 1.9'
11
+ gem 'rake', '~> 13.0'
12
+ gem 'rspec', '~> 3.10'
13
+ gem 'rubocop', '~> 1.18'
14
+ gem 'rubocop-performance', '~> 1.11'
15
+ gem 'rubocop-rake', '~> 0.6'
16
+ gem 'rubocop-rspec', '~> 2.4'
17
+ gem 'simplecov', '~> 0.21'
18
+ gem 'webmock', '~> 3.14'
19
+ gem 'yard', '~> 0.9'
22
20
 
23
- gem "kramdown-parser-gfm", "~> 1.1"
21
+ gem 'kramdown-parser-gfm', '~> 1.1'
24
22
 
25
- gem "rouge", "~> 3.26"
23
+ gem 'rouge', '~> 3.26'
data/Gemfile.lock CHANGED
@@ -1,9 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- esi-sdk (2.1.0)
5
- httpx (~> 0.18)
4
+ esi-sdk (3.0.0)
5
+ oj (~> 3.13)
6
6
  retriable (~> 3.1)
7
+ typhoeus (~> 1.4)
7
8
 
8
9
  GEM
9
10
  remote: https://rubygems.org/
@@ -23,10 +24,10 @@ GEM
23
24
  rexml
24
25
  diff-lcs (1.4.4)
25
26
  docile (1.4.0)
27
+ ethon (0.15.0)
28
+ ffi (>= 1.15.0)
29
+ ffi (1.15.5)
26
30
  hashdiff (1.0.1)
27
- http-2-next (0.5.0)
28
- httpx (0.18.0)
29
- http-2-next (>= 0.4.1)
30
31
  i18n (1.8.10)
31
32
  concurrent-ruby (~> 1.0)
32
33
  kramdown (2.3.1)
@@ -34,6 +35,7 @@ GEM
34
35
  kramdown-parser-gfm (1.1.0)
35
36
  kramdown (~> 2.0)
36
37
  minitest (5.14.4)
38
+ oj (3.13.11)
37
39
  parallel (1.21.0)
38
40
  parser (3.0.2.0)
39
41
  ast (~> 2.4.1)
@@ -82,10 +84,11 @@ GEM
82
84
  simplecov_json_formatter (~> 0.1)
83
85
  simplecov-html (0.12.3)
84
86
  simplecov_json_formatter (0.1.3)
87
+ typhoeus (1.4.0)
88
+ ethon (>= 0.9.0)
85
89
  tzinfo (2.0.4)
86
90
  concurrent-ruby (~> 1.0)
87
91
  unicode-display_width (2.1.0)
88
- vcr (6.0.0)
89
92
  webmock (3.14.0)
90
93
  addressable (>= 2.8.0)
91
94
  crack (>= 0.3.2)
@@ -110,9 +113,7 @@ DEPENDENCIES
110
113
  rubocop-rake (~> 0.6)
111
114
  rubocop-rspec (~> 2.4)
112
115
  simplecov (~> 0.21)
113
- simplecov_json_formatter (~> 0.1)
114
- vcr (~> 6.0)
115
- webmock (~> 3.13)
116
+ webmock (~> 3.14)
116
117
  yard (~> 0.9)
117
118
 
118
119
  RUBY VERSION
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
- ![Build images](https://github.com/bokoboshahni/esi-sdk-ruby/workflows/CICD/badge.svg)
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
+ [![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)
2
6
 
3
7
  # EVE Swagger Interface (ESI) SDK
4
8