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 +4 -4
- data/.github/workflows/danger.yml +1 -1
- data/CHANGELOG.md +3 -0
- data/iex-ruby-client.gemspec +1 -1
- data/lib/iex/cloud/connection.rb +9 -7
- data/lib/iex/version.rb +1 -1
- data/lib/iex-ruby-client.rb +1 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d09a99f0ca87c78ce64bacf0ba8587cda08a9d9f05ca44fc253f755ad2976655
|
4
|
+
data.tar.gz: 148a78b3c9887c700ba119a37bf8ba533906393cabe52e0957288d4536ed2817
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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).
|
data/iex-ruby-client.gemspec
CHANGED
@@ -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 '
|
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'
|
data/lib/iex/cloud/connection.rb
CHANGED
@@ -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.
|
30
|
-
connection.
|
31
|
+
connection.request :multipart
|
32
|
+
connection.request :url_encoded
|
31
33
|
connection.use ::IEX::Cloud::Response::RaiseError
|
32
|
-
connection.
|
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
data/lib/iex-ruby-client.rb
CHANGED
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.
|
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:
|
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:
|
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.
|
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.
|