eodhd 0.19.7 → 0.19.9

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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +26 -0
  3. data/Gemfile +1 -1
  4. data/LICENSE +21 -0
  5. data/README.md +4 -8
  6. data/eodhd.gemspec +5 -3
  7. data/lib/Eodhd/VERSION.rb +1 -1
  8. data/lib/eodhd.rb +1 -1
  9. data/test/{Eodhd_test.rb → eodhd_test.rb} +2 -2
  10. data/test/fixtures/vcr_cassettes/client_eod_bulk_last_day.yml +51 -0
  11. data/test/fixtures/vcr_cassettes/client_eod_bulk_last_day_401_error.yml +43 -0
  12. data/test/fixtures/vcr_cassettes/client_eod_data.yml +51 -0
  13. data/test/fixtures/vcr_cassettes/client_eod_data_401_error.yml +43 -0
  14. data/test/fixtures/vcr_cassettes/client_exchange_symbol_list.yml +2774 -0
  15. data/test/fixtures/vcr_cassettes/client_exchange_symbol_list_401_error.yml +43 -0
  16. data/test/fixtures/vcr_cassettes/client_exchanges_list.yml +97 -0
  17. data/test/fixtures/vcr_cassettes/client_exchanges_list_401_error.yml +43 -0
  18. data/test/fixtures/vcr_cassettes/client_fundamentals.yml +153 -0
  19. data/test/fixtures/vcr_cassettes/client_fundamentals_401_error.yml +43 -0
  20. data/test/fixtures/vcr_cassettes/client_fundamentals_filtered.yml +91 -0
  21. data/test/fixtures/vcr_cassettes/client_intraday.yml +6492 -0
  22. data/test/fixtures/vcr_cassettes/client_intraday_401_error.yml +43 -0
  23. data/test/fixtures/vcr_cassettes/eodhd_eod_bulk_last_day.yml +51 -0
  24. data/test/fixtures/vcr_cassettes/eodhd_eod_data.yml +51 -0
  25. data/test/fixtures/vcr_cassettes/eodhd_exchange_symbols.yml +2931 -0
  26. data/test/fixtures/vcr_cassettes/eodhd_exchanges.yml +123 -0
  27. data/test/fixtures/vcr_cassettes/eodhd_fundamentals.yml +153 -0
  28. data/test/fixtures/vcr_cassettes/eodhd_intraday.yml +6492 -0
  29. data/test/fixtures/vcr_cassettes/fundamentals_aapl.yml +153 -0
  30. data/test/fixtures/vcr_cassettes/fundamentals_cba_au.yml +99 -0
  31. data/test/gemspec_test.rb +1 -1
  32. data/test/helper.rb +12 -1
  33. metadata +39 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '01863c1f0d20d4b7f5ebbf527eef8ab2fbc1ed808402338fc002b35e6e362eab'
4
- data.tar.gz: 2e1f53faf0cb5a15d34a8a60ead3924ccd84ac85a6470e378d4ba8aabd1e4d71
3
+ metadata.gz: 3b44ceef630416f9e66943c1f04dd6b1ea3ac8ba6d2e1e1eb07f151786935fde
4
+ data.tar.gz: 27e60faace49f998226f1a75aea53f23369d84aaa91897de4880f279ee94bb97
5
5
  SHA512:
6
- metadata.gz: 666d3bcb04261ef999a8fabbb24748065228fd148f0e15754544bb294a905f974d9d49245ee2381e186e3f1c4aa62e6c87e0f9b1626b2818e56c1a00c9d53fc7
7
- data.tar.gz: 52afec012f72f0547d490f8101317703e953218b7fe4bfc745a33a5758708a25d68d982c2a6c8a2945d5a21cc94d8414e88698f23a4fc32000aebdcf166b4b16
6
+ metadata.gz: 6531fbf99ffd95dcfce30e00d14d35f2da04c05c1cde8dc0c56b73ae0e1ff32531c4dfa0d7e1e83db8e2add4ce553203f09da3f0f52c28e92da57d0afd7415e7
7
+ data.tar.gz: 6ca9491df4c87948b0368d14473407e2dd07fb6267ab09865e4f68756e23c05e69a2cc722c39f787a770f8b9fa410a27b1e9432c8a97646ac200a99bd2449ca9
data/CHANGELOG CHANGED
@@ -1,5 +1,31 @@
1
1
  # eodhd/CHANGELOG
2
2
 
3
+ ## 20261018
4
+
5
+ 0.19.9: The tests load WebMock again.
6
+
7
+ 1. ~ test/helper.rb: + webmock's http_rb adapter marked as loaded before requiring webmock/minitest. It takes http.rb's HTTP::VERSION for the http gem's and raises NameError patching an HTTP::Client which isn't there.
8
+ 2. ~ Eodhd::VERSION: /0.19.8/0.19.9/
9
+
10
+
11
+ ## 20261001
12
+
13
+ 0.19.8: /Eodhd.rb/eodhd.rb/; + logger gem; ~ gemspec: + test/fixtures; + LICENSE
14
+
15
+ 1. ~ Gemfile: /gemspec name: 'eodhd.rb'/gemspec name: 'eodhd'/
16
+ 2. ~ lib/Eodhd.rb --> lib/eodhd.rb, in the index.
17
+ 3. ~ test/eodhd_test.rb: /Eodhd_test.rb/eodhd_test.rb/
18
+ 4. ~ test/helper.rb: /require 'Eodhd'/require 'eodhd'/
19
+ 5. ~ eodhd.gemspec: spec.files: /Dir['test/**/*.rb']/Dir['test/**/*']/
20
+ 6. ~ eodhd.rb.gemspec: spec.files: /Dir['test/**/*.rb']/Dir['test/**/*']/
21
+ 7. ~ README.md: /gem 'eodhd.rb'/gem 'eodhd'/
22
+ 8. ~ README.md: /gem install eodhd.rb/gem install eodhd/
23
+ 9. ~ README.md: - Eodhd#stream example, which has been private since 0.18.0.
24
+ 10. ~ eodhd.gemspec and eodhd.rb.gemspec: spec.dependencies: + logger gem (Ruby 4 has it as a gem now.)
25
+ 11. ~ test/gemspec_test.rb: + logger
26
+ 12. ~ Eodhd::VERSION: /0.19.7/0.19.8/
27
+
28
+
3
29
  ## 20260915
4
30
 
5
31
  0.19.7: Rename the repo: /eodhd.rb/eodhd/.
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gemspec name: 'eodhd.rb'
3
+ gemspec name: 'eodhd'
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024-2026 thoran
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -9,7 +9,7 @@ Access the eodhd.com API with Ruby.
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'eodhd.rb'
12
+ gem 'eodhd'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -21,7 +21,7 @@ And then execute:
21
21
  Or install it yourself as:
22
22
 
23
23
  ```bash
24
- $ gem install eodhd.rb
24
+ $ gem install eodhd
25
25
  ```
26
26
 
27
27
  ## Usage
@@ -29,6 +29,8 @@ Or install it yourself as:
29
29
  ### Setup
30
30
 
31
31
  ```ruby
32
+ require 'eodhd'
33
+
32
34
  api_token = 'api_token'
33
35
  eodhd = Eodhd.new(api_token: api_token)
34
36
  ```
@@ -141,12 +143,6 @@ eodhd.forex_stream('EURUSD')
141
143
  eodhd.crypto_stream('BTC-USD')
142
144
  ```
143
145
 
144
- #### Or use the general interface
145
-
146
- ```ruby
147
- eodhd.stream(asset_class: 'us', symbols: 'AAPL,MSFT')
148
- ```
149
-
150
146
  ## License
151
147
 
152
148
  MIT License. See LICENSE file for details.
data/eodhd.gemspec CHANGED
@@ -26,18 +26,20 @@ Gem::Specification.new do |spec|
26
26
  spec.required_ruby_version = '>= 2.7'
27
27
 
28
28
  spec.files = [
29
- 'CHANGELOG',
30
29
  'eodhd.gemspec',
31
- 'Gemfile',
32
30
  Dir['lib/**/*.rb'],
31
+ Dir['test/**/*'],
32
+ 'CHANGELOG',
33
+ 'Gemfile',
34
+ 'LICENSE',
33
35
  'Rakefile',
34
36
  'README.md',
35
- Dir['test/**/*.rb']
36
37
  ].flatten
37
38
 
38
39
  spec.dependencies = %w{
39
40
  http.rb
40
41
  iodine
42
+ logger
41
43
  }
42
44
 
43
45
  spec.development_dependencies = %w{
data/lib/Eodhd/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Eodhd
2
- VERSION = '0.19.7'
2
+ VERSION = '0.19.9'
3
3
  end
data/lib/eodhd.rb CHANGED
@@ -1,4 +1,4 @@
1
- # Eodhd.rb
1
+ # eodhd.rb
2
2
  # Eodhd
3
3
 
4
4
  require_relative './Eodhd/Client'
@@ -1,6 +1,6 @@
1
- # Eodhd_test.rb
1
+ # eodhd_test.rb
2
2
 
3
- require_relative "helper"
3
+ require_relative './helper'
4
4
 
5
5
  describe Eodhd do
6
6
  let(:api_token){ENV.fetch('EODHD_API_TOKEN', '<API_TOKEN>')}