iex-ruby-client 2.0.0 → 2.1.0

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: a15ce3455468f791bbe21989defd92328cb979d2f803ee94de76069c798e9354
4
- data.tar.gz: eceab7355f2c4e291004a138f9a39fb5001b4b6e95bea5fb5ceb45babee65ed0
3
+ metadata.gz: d09a99f0ca87c78ce64bacf0ba8587cda08a9d9f05ca44fc253f755ad2976655
4
+ data.tar.gz: 148a78b3c9887c700ba119a37bf8ba533906393cabe52e0957288d4536ed2817
5
5
  SHA512:
6
- metadata.gz: 967562f47076ba6c8f3a4a4f8c9ac5c414570c3c9b90cf661d13e2eb8ab970913efb810268ecdd379ad6f2f1101ac9b7d00acb81a2b4dd5ec03ba469f1b84886
7
- data.tar.gz: a889e0b0504c02a9d2a21b12555ae496c7a402606d129848faed9139ba225b4e88a242eed80d0ab6fe92d65975562c100187cf476152079d04c1bd7616d1b03e
6
+ metadata.gz: fac04752f4c52037cec76636ad59687f282e8bcc65e941c6dc2115a93ccc80cfe176456a8bb86ba46720b8a18d9b71ed672c0d0ca809a50f2ebbe70da0051014
7
+ data.tar.gz: b0533be87e2432309695f22b03a1e24336a40a197475e1f25dc605fbd93bcc42404ce017c846934c7d9d757373e1d73a55913e8337985c77097aa5b66ac92cd7
@@ -16,5 +16,5 @@ jobs:
16
16
  bundler-cache: true
17
17
  - run: |
18
18
  # the personal token is public, this is ok, base64 encode to avoid tripping Github
19
- TOKEN=$(echo -n NWY1ZmM5MzEyMzNlYWY4OTZiOGU3MmI3MWQ3Mzk0MzgxMWE4OGVmYwo= | base64 --decode)
19
+ TOKEN=$(echo -n Z2hwX0xNQ3VmanBFeTBvYkZVTWh6NVNqVFFBOEUxU25abzBqRUVuaAo= | base64 --decode)
20
20
  DANGER_GITHUB_API_TOKEN=$TOKEN bundle exec danger --verbose
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ### 2.1.0 (2023-09-17)
2
+ * [#120](https://github.com/dblock/iex-ruby-client/pull/120): Upgrade faraday to 2.7.10 - [@esarmstrong](https://github.com/esarmstrong).
3
+
1
4
  ### 2.0.0 (2022/07/24)
2
5
  * [#111](https://github.com/dblock/iex-ruby-client/pull/111): Added support for fetching symbols for a region - [@mathu97](https://github.com/mathu97).
3
6
  * [#111](https://github.com/dblock/iex-ruby-client/pull/111): Added `Symbols#exchange_suffix`, `exchange_name`, `exchange_segment`, `exchange_segment_name`, and `lei` - [@mathu97](https://github.com/mathu97).
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
17
17
  s.licenses = ['MIT']
18
18
  s.summary = 'IEX Finance API Ruby client with support for retrieving stock quotes.'
19
19
  s.add_dependency 'faraday', '>= 0.17'
20
- s.add_dependency 'faraday_middleware'
20
+ s.add_dependency 'faraday-multipart'
21
21
  s.add_dependency 'hashie'
22
22
  s.add_dependency 'money', '~> 6.0'
23
23
  s.add_development_dependency 'rake', '~> 10'
@@ -9,11 +9,13 @@ module IEX
9
9
 
10
10
  def connection
11
11
  @connection ||= begin
12
- options = {}
12
+ options = {
13
+ headers: {
14
+ 'Accept' => 'application/json; charset=utf-8',
15
+ 'Content-Type' => 'application/json; charset=utf-8'
16
+ }
17
+ }
13
18
 
14
- options[:headers] = {}
15
- options[:headers]['Accept'] = 'application/json; charset=utf-8'
16
- options[:headers]['Content-Type'] = 'application/json; charset=utf-8'
17
19
  options[:headers]['User-Agent'] = user_agent if user_agent
18
20
  options[:headers]['Referer'] = referer if referer
19
21
  options[:proxy] = proxy if proxy
@@ -26,10 +28,10 @@ module IEX
26
28
  options[:request] = request_options if request_options.any?
27
29
 
28
30
  ::Faraday::Connection.new(endpoint, options) do |connection|
29
- connection.use ::Faraday::Request::Multipart
30
- connection.use ::Faraday::Request::UrlEncoded
31
+ connection.request :multipart
32
+ connection.request :url_encoded
31
33
  connection.use ::IEX::Cloud::Response::RaiseError
32
- connection.use ::FaradayMiddleware::ParseJson, content_type: /\bjson$/
34
+ connection.response :json
33
35
  connection.response(:logger, logger.instance, logger.options, &logger.proc) if logger.instance
34
36
  connection.adapter ::Faraday.default_adapter
35
37
  end
data/lib/iex/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module IEX
2
- VERSION = '2.0.0'.freeze
2
+ VERSION = '2.1.0'.freeze
3
3
  end
@@ -1,6 +1,5 @@
1
1
  require 'faraday'
2
- require 'faraday_middleware'
3
- require 'faraday_middleware/response_middleware'
2
+ require 'faraday/multipart'
4
3
  require 'hashie'
5
4
  require 'money'
6
5
  require 'date'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iex-ruby-client
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
  - Daniel Doubrovkine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-24 00:00:00.000000000 Z
11
+ date: 2023-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.17'
27
27
  - !ruby/object:Gem::Dependency
28
- name: faraday_middleware
28
+ name: faraday-multipart
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -337,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
337
337
  - !ruby/object:Gem::Version
338
338
  version: 1.3.6
339
339
  requirements: []
340
- rubygems_version: 3.3.18
340
+ rubygems_version: 3.3.7
341
341
  signing_key:
342
342
  specification_version: 4
343
343
  summary: IEX Finance API Ruby client with support for retrieving stock quotes.