esi-sdk 2.1.1 → 3.0.1

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/{cicd.yml → build.yml} +5 -3
  3. data/.github/workflows/codeql-analysis.yml +70 -0
  4. data/.rubocop.yml +1 -8
  5. data/.yardext.rb +5 -5
  6. data/CHANGELOG.md +37 -0
  7. data/Gemfile +15 -17
  8. data/Gemfile.lock +10 -9
  9. data/README.md +5 -1
  10. data/Rakefile +105 -138
  11. data/bin/console +3 -3
  12. data/esi-sdk.gemspec +18 -17
  13. data/exe/esi-sdk +1 -1
  14. data/lib/esi/client/alliance.rb +5 -5
  15. data/lib/esi/client/assets.rb +4 -4
  16. data/lib/esi/client/calendar.rb +5 -5
  17. data/lib/esi/client/character.rb +16 -14
  18. data/lib/esi/client/clones.rb +2 -2
  19. data/lib/esi/client/contacts.rb +9 -9
  20. data/lib/esi/client/contracts.rb +3 -3
  21. data/lib/esi/client/corporation.rb +15 -15
  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 +8 -8
  28. data/lib/esi/client/insurance.rb +2 -2
  29. data/lib/esi/client/killmails.rb +1 -1
  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 +12 -12
  34. data/lib/esi/client/opportunities.rb +7 -7
  35. data/lib/esi/client/planetary_interaction.rb +3 -3
  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 +45 -45
  42. data/lib/esi/client/user_interface.rb +14 -14
  43. data/lib/esi/client/wallet.rb +6 -6
  44. data/lib/esi/client/wars.rb +4 -4
  45. data/lib/esi/client.rb +147 -113
  46. data/lib/esi/version.rb +1 -1
  47. data/lib/esi-sdk.rb +2 -2
  48. metadata +21 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8602a9c524badb41010f8762e394df4bc923307acece2d53b64e91cdc7f934ae
4
- data.tar.gz: 268036494ca33085700e903a266e4ca69f280637f6e53b46ebd33476b4c3db5a
3
+ metadata.gz: a314fc384b13cadd1631712724440bda744dce38eb738f9c00ace6fd044ecc44
4
+ data.tar.gz: 06ec3d92b468c6263f7e89ed847ccd2a96cc5e2197e958bf4c7abc0f50a0c7d8
5
5
  SHA512:
6
- metadata.gz: 7f0c8d1c2052b7670cefa35bc0b98250bdac06e5cb1fa1c04be6c752f42beb2b859660ec9dd3450c10f018ff8015e0e896ff9fefb058996b6161bdee59b03fc2
7
- data.tar.gz: 135710a1b828b631fcc0169e4c590c4a0ed968c818a0d93aaf397a399e14ad1d85b1a468c18922d9937eb5ea237df5aecd07b5311ca2e38336efd991015f9d8b
6
+ metadata.gz: f0c2bacf948175755a7623ac0abc64d3823f27d59d3c428aa54e09d39133a91d59f0fa3c2116c3b533d95aa6e6a6f7e9172f3144f39f85f3877cc3eda7193823
7
+ data.tar.gz: cf9d182282f7fd5b95339b6fb4c9638b32e118775b0b47b92105f7a374173f0f24a2dd4e49a0be73987623553c355d3fb1c39fd50345242179d0f0869174b7c5
@@ -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
@@ -0,0 +1,70 @@
1
+ # For most projects, this workflow file will not need changing; you simply need
2
+ # to commit it to your repository.
3
+ #
4
+ # You may wish to alter this file to override the set of languages analyzed,
5
+ # or to provide custom queries or build logic.
6
+ #
7
+ # ******** NOTE ********
8
+ # We have attempted to detect the languages in your repository. Please check
9
+ # the `language` matrix defined below to confirm you have the correct set of
10
+ # supported CodeQL languages.
11
+ #
12
+ name: "CodeQL"
13
+
14
+ on:
15
+ push:
16
+ branches: [ main ]
17
+ pull_request:
18
+ # The branches below must be a subset of the branches above
19
+ branches: [ main ]
20
+ schedule:
21
+ - cron: '40 11 * * 2'
22
+
23
+ jobs:
24
+ analyze:
25
+ name: Analyze
26
+ runs-on: ubuntu-latest
27
+ permissions:
28
+ actions: read
29
+ contents: read
30
+ security-events: write
31
+
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ language: [ 'ruby' ]
36
+ # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
37
+ # Learn more about CodeQL language support at https://git.io/codeql-language-support
38
+
39
+ steps:
40
+ - name: Checkout repository
41
+ uses: actions/checkout@v2
42
+
43
+ # Initializes the CodeQL tools for scanning.
44
+ - name: Initialize CodeQL
45
+ uses: github/codeql-action/init@v1
46
+ with:
47
+ languages: ${{ matrix.language }}
48
+ # If you wish to specify custom queries, you can do so here or in a config file.
49
+ # By default, queries listed here will override any specified in a config file.
50
+ # Prefix the list here with "+" to use these queries and those in the config file.
51
+ # queries: ./path/to/local/query, your-org/your-repo/queries@main
52
+
53
+ # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
54
+ # If this step fails, then you should remove it and run the build manually (see below)
55
+ - name: Autobuild
56
+ uses: github/codeql-action/autobuild@v1
57
+
58
+ # ℹ️ Command-line programs to run using the OS shell.
59
+ # 📚 https://git.io/JvXDl
60
+
61
+ # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
62
+ # and modify them (or add more) to build your code if your project
63
+ # uses a compiled language
64
+
65
+ #- run: |
66
+ # make bootstrap
67
+ # make release
68
+
69
+ - name: Perform CodeQL Analysis
70
+ uses: github/codeql-action/analyze@v1
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,42 @@
1
1
  # ESI SDK Changelog
2
2
 
3
+ ## [3.0.1](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v3.0.0...v3.0.1) (2022-01-26)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * code style for version bump ([d2ea8a4](https://github.com/bokoboshahni/esi-sdk-ruby/commit/d2ea8a431ecfe9bea494ff50a760b8db18d01d6e))
9
+
10
+ # [3.0.0](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.3...v3.0.0) (2022-01-26)
11
+
12
+
13
+ * feat!: use typhoeus and oj for api calls ([b6b150e](https://github.com/bokoboshahni/esi-sdk-ruby/commit/b6b150eff93889415ddca98d497c437470030e09))
14
+
15
+
16
+ ### BREAKING CHANGES
17
+
18
+ * Typhoeus is now used instead of HTTPX for API calls and
19
+ oj is used for JSON parsing.
20
+
21
+ The following options have been removed from `ESI::Client#initialize`:
22
+
23
+ - `:cache`: Configure Typhoeus cache globally with
24
+ `Typhoeus::Config.cache`
25
+ (see https://github.com/typhoeus/typhoeus#caching)
26
+ - `:logger`: Configure Ethon logger globally with `Ethon.logger`
27
+ (see https://www.rubydoc.info/github/typhoeus/ethon/Ethon/Loggable#logger=-instance_method)
28
+ - `:instrumentation`: Instrumentation support to be re-added in a later
29
+ release.
30
+
31
+ ## [2.1.3](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.2...v2.1.3) (2021-12-08)
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * ensure array for paginated responses ([55010e1](https://github.com/bokoboshahni/esi-sdk-ruby/commit/55010e18029e19b652d8c03eb90000fba186be98))
37
+
38
+ ## [2.1.2](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.1...v2.1.2) (2021-10-09)
39
+
3
40
  ## [2.1.1](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.1.0...v2.1.1) (2021-10-09)
4
41
 
5
42
  # [2.1.0](https://github.com/bokoboshahni/esi-sdk-ruby/compare/v2.0.0...v2.1.0) (2021-10-09)
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.1)
5
- httpx (~> 0.18)
4
+ esi-sdk (3.0.1)
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