loogi_http 2.0.0 → 2.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4bc9d89eda7844d31a8463a3db6b79897fec83014680d9f30c36faa91002070e
4
- data.tar.gz: 70197b3dc843669993184889e6776fcff45d40c9fdd7c626a4463c9ee0e38e2e
3
+ metadata.gz: 79af6c25ba2341e03851e8836d9ccb3dd2726240bb729f8c5644da4dd6aee1c9
4
+ data.tar.gz: 6509af1a2debf7af56766bdd6599dd74ed26a79cdf95f8d9e5fa689829ae656d
5
5
  SHA512:
6
- metadata.gz: 167ec05206f981a50ffbfd83026939fbc3673d68d6c186a5d879f7616ffa3ac6b2664a835a1feeebfb4c381a23b8fddf17f35a50d5f8e8df6d90ee159fda023b
7
- data.tar.gz: 3b37557b9e924bbed073b7f5ea9d0f60657f210fd58c773e09d68b5fdba29790cfd12b4032830df0839ff41b3afa5203a9a53f9e04a8ca8df541d9904be5f2b3
6
+ metadata.gz: baa7e4e116b9b90e2778a1a07db65fb33481712a19b12d37cb00d3ae236f40b90e3972391f4dcf165b84696e08ccb3680c2810a533da0440ca682b679eaff339
7
+ data.tar.gz: 2e6b868a46dd4c8da72c94e2a466849bd7426fcd1230e835500b5438226f72099a1a3a91d150e0e66a2acc58d1668d1c4f55e1bb57f4b2caa5a5710234f8608e
@@ -0,0 +1,100 @@
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 Advanced"
13
+
14
+ on:
15
+ push:
16
+ branches: [ "main" ]
17
+ pull_request:
18
+ branches: [ "main" ]
19
+ schedule:
20
+ - cron: '22 5 * * 3'
21
+
22
+ jobs:
23
+ analyze:
24
+ name: Analyze (${{ matrix.language }})
25
+ # Runner size impacts CodeQL analysis time. To learn more, please see:
26
+ # - https://gh.io/recommended-hardware-resources-for-running-codeql
27
+ # - https://gh.io/supported-runners-and-hardware-resources
28
+ # - https://gh.io/using-larger-runners (GitHub.com only)
29
+ # Consider using larger runners or machines with greater resources for possible analysis time improvements.
30
+ runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
31
+ permissions:
32
+ # required for all workflows
33
+ security-events: write
34
+
35
+ # required to fetch internal or private CodeQL packs
36
+ packages: read
37
+
38
+ # only required for workflows in private repositories
39
+ actions: read
40
+ contents: read
41
+
42
+ strategy:
43
+ fail-fast: false
44
+ matrix:
45
+ include:
46
+ - language: actions
47
+ build-mode: none
48
+ - language: ruby
49
+ build-mode: none
50
+ # CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
51
+ # Use `c-cpp` to analyze code written in C, C++ or both
52
+ # Use 'java-kotlin' to analyze code written in Java, Kotlin or both
53
+ # Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
54
+ # To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
55
+ # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
56
+ # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
57
+ # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
58
+ steps:
59
+ - name: Checkout repository
60
+ uses: actions/checkout@v4
61
+
62
+ # Add any setup steps before running the `github/codeql-action/init` action.
63
+ # This includes steps like installing compilers or runtimes (`actions/setup-node`
64
+ # or others). This is typically only required for manual builds.
65
+ # - name: Setup runtime (example)
66
+ # uses: actions/setup-example@v1
67
+
68
+ # Initializes the CodeQL tools for scanning.
69
+ - name: Initialize CodeQL
70
+ uses: github/codeql-action/init@v3
71
+ with:
72
+ languages: ${{ matrix.language }}
73
+ build-mode: ${{ matrix.build-mode }}
74
+ # If you wish to specify custom queries, you can do so here or in a config file.
75
+ # By default, queries listed here will override any specified in a config file.
76
+ # Prefix the list here with "+" to use these queries and those in the config file.
77
+
78
+ # For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
79
+ # queries: security-extended,security-and-quality
80
+
81
+ # If the analyze step fails for one of the languages you are analyzing with
82
+ # "We were unable to automatically build your code", modify the matrix above
83
+ # to set the build mode to "manual" for that language. Then modify this step
84
+ # to build your code.
85
+ # ℹ️ Command-line programs to run using the OS shell.
86
+ # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
87
+ - if: matrix.build-mode == 'manual'
88
+ shell: bash
89
+ run: |
90
+ echo 'If you are using a "manual" build mode for one or more of the' \
91
+ 'languages you are analyzing, replace this with the commands to build' \
92
+ 'your code, for example:'
93
+ echo ' make bootstrap'
94
+ echo ' make release'
95
+ exit 1
96
+
97
+ - name: Perform CodeQL Analysis
98
+ uses: github/codeql-action/analyze@v3
99
+ with:
100
+ category: "/language:${{matrix.language}}"
@@ -13,6 +13,10 @@ on:
13
13
  pull_request:
14
14
  branches: [ main ]
15
15
 
16
+ permissions:
17
+ contents: read
18
+ pull-requests: write
19
+
16
20
  jobs:
17
21
  test:
18
22
 
@@ -1,5 +1,5 @@
1
- require 'faraday_middleware'
2
1
  require 'forwardable'
2
+ require 'faraday/follow_redirects'
3
3
 
4
4
  module LoogiHttp
5
5
  # Configure a `Faraday::Connection` (aka a _stack_).
@@ -1,3 +1,3 @@
1
1
  module LoogiHttp
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.1.0'.freeze
3
3
  end
data/lib/loogi_http.rb CHANGED
@@ -1,4 +1,3 @@
1
- require 'loogi_http/ruby2_keywords'
2
1
  require 'loogi_http/builder'
3
2
  require 'loogi_http/version'
4
3
  require 'loogi_http/middleware'
data/loogi_http.gemspec CHANGED
@@ -27,9 +27,9 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ['lib']
29
29
 
30
- spec.add_dependency 'faraday', '~> 1.0'
30
+ spec.add_dependency 'faraday', '~> 2.0'
31
+ spec.add_dependency 'faraday-follow_redirects', '~> 0.5'
31
32
  spec.add_dependency 'faraday-cookie_jar', '~> 0.0.6'
32
- spec.add_dependency 'faraday_middleware', '~> 1.0'
33
33
 
34
34
  spec.add_development_dependency 'bundler', '>= 2.0'
35
35
  spec.add_development_dependency 'byebug', '~> 11.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loogi_http
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juul Labs, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-04 00:00:00.000000000 Z
11
+ date: 2026-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '2.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: faraday-cookie_jar
28
+ name: faraday-follow_redirects
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 0.0.6
33
+ version: '0.5'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 0.0.6
40
+ version: '0.5'
41
41
  - !ruby/object:Gem::Dependency
42
- name: faraday_middleware
42
+ name: faraday-cookie_jar
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.0'
47
+ version: 0.0.6
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.0'
54
+ version: 0.0.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -130,6 +130,7 @@ executables: []
130
130
  extensions: []
131
131
  extra_rdoc_files: []
132
132
  files:
133
+ - ".github/workflows/codeql.yml"
133
134
  - ".github/workflows/gem-push.yml"
134
135
  - ".github/workflows/specs.yml"
135
136
  - ".gitignore"
@@ -151,14 +152,13 @@ files:
151
152
  - lib/loogi_http/middleware/log_request.rb
152
153
  - lib/loogi_http/middleware/request/accept_json.rb
153
154
  - lib/loogi_http/response.rb
154
- - lib/loogi_http/ruby2_keywords.rb
155
155
  - lib/loogi_http/version.rb
156
156
  - loogi_http.gemspec
157
157
  homepage: https://github.com/JuulLabs-OSS/loogi_http
158
158
  licenses:
159
159
  - MIT
160
160
  metadata: {}
161
- post_install_message:
161
+ post_install_message:
162
162
  rdoc_options: []
163
163
  require_paths:
164
164
  - lib
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  version: '0'
175
175
  requirements: []
176
176
  rubygems_version: 3.5.3
177
- signing_key:
177
+ signing_key:
178
178
  specification_version: 4
179
179
  summary: External requests wrapper.
180
180
  test_files: []
@@ -1,25 +0,0 @@
1
- require 'faraday'
2
-
3
- # Monkey patches to properly delegate Faraday 1.0 keyword arguments on Ruby 3
4
- # See https://eregon.me/blog/2021/02/13/correct-delegation-in-ruby-2-27-3.html
5
-
6
- Faraday::DependencyLoader.module_eval do
7
- def new(*args, &block)
8
- raise "missing dependency for #{self}: #{load_error.message}" unless loaded?
9
-
10
- super(*args, &block)
11
- end
12
-
13
- ruby2_keywords :new if respond_to?(:ruby2_keywords, true)
14
- end
15
-
16
- Faraday::RackBuilder::Handler.class_eval do
17
- def initialize(klass, *args, &block)
18
- @name = klass.to_s
19
- Faraday::RackBuilder::Handler::REGISTRY.set(klass) if klass.respond_to?(:name)
20
- @args = args
21
- @block = block
22
- end
23
-
24
- ruby2_keywords :initialize if respond_to?(:ruby2_keywords, true)
25
- end