eodhd.rb 0.14.0 → 0.14.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d5e7ba5c1bceffbc1bded24d8143fc41d9fe9989f59008b9da914727d1c98296
4
- data.tar.gz: ee6da505ccba36b0be5a901aaae1bd142ed418d4bfbb9c7dce38f43ff46e3d7d
3
+ metadata.gz: b6307a343be540bd2dfe7525c68ec8fd741da0eb349280b560fb3d7b7fa969f6
4
+ data.tar.gz: c90e6506bceb847aa12655be1918abecbda01082a86c35bf0fde6ff245b83ff0
5
5
  SHA512:
6
- metadata.gz: d1d0fab70a78b53a94213297720fef33053edd2c4922ce95b6d536989037eaf907b59886b262db33e2e4d1b4ff3a76a0ec33ee1e017059191b78ade0f9ec9043
7
- data.tar.gz: f872f8c9f5b7d289a7ae6469bf6c6bfe851bc9d2c81f8aff010d2fc40984d8aae5b90de8c895d9f929cc4d42cf689138e6ccfc6ea5ea3fafa06c197527582ad5
6
+ metadata.gz: a36e1cb75cc4fe2ab891ead816b8dc578d31d9f2380e8d3b14f90a170344603e8ad3f3bc36244a60d5239504d3ea73bdec54a518d1cb9571bab4a1567c59d7bf
7
+ data.tar.gz: c1dc54c034e17f1fb725f3e7568c9d28b98b98d7b30944badd6e113336264fdd22e697c70ea706053bab14ad24de58b8215ee0905daba0d55cca42d01cbe0b16
data/eodhd.rb.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'eodhd.rb'
3
3
 
4
- spec.version = '0.14.0'
5
- spec.date = '2025-03-21'
4
+ spec.version = '0.14.1'
5
+ spec.date = '2025-03-23'
6
6
 
7
7
  spec.summary = "Access the eodhd.com API with Ruby."
8
8
  spec.description = "Access the eodhd.com API with Ruby."
@@ -102,6 +102,18 @@ class Eodhd
102
102
  end
103
103
  end # class << self
104
104
 
105
+ attr_accessor\
106
+ :api_token,
107
+ :asset_class,
108
+ :consumer
109
+
110
+ attr_reader\
111
+ :symbols
112
+
113
+ def symbols=(symbols)
114
+ @symbols = format_symbols(symbols)
115
+ end
116
+
105
117
  def run
106
118
  Iodine.threads = 1
107
119
  Iodine.connect(url: url, handler: Handler.new(symbols: @symbols, consumer: @consumer))
@@ -112,11 +124,6 @@ class Eodhd
112
124
 
113
125
  private
114
126
 
115
- attr_accessor\
116
- :api_token,
117
- :asset_class,
118
- :symbols
119
-
120
127
  def initialize(api_token:, asset_class:, symbols:, consumer:)
121
128
  @api_token = api_token
122
129
  @asset_class = asset_class # crypto, forex, us-quote, us
data/lib/eodhd.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # Eodhd.rb
2
2
  # Eodhd
3
3
 
4
- # 20250321
5
- # 0.14.0
4
+ # 20250323
5
+ # 0.14.1
6
6
 
7
7
  # Changes since 0.13:
8
8
  # -/0: Add WebSockets.
@@ -14,6 +14,10 @@
14
14
  # 6. + Eodhd#forex_stream
15
15
  # 7. + Eodhd#crypto_stream
16
16
  # 8. Moved Eodhd::Error from Eodhd::Client to a separate file.
17
+ # 0/1: Some fixes for the WebSocketClient interface.
18
+ # 9. ~ Eodhd::WebSocketClient: + attr_accessor :consumer
19
+ # 10. ~ Eodhd::WebSocketClient: /attr_accessor :symbols/attr_reader :symbols/
20
+ # 11. + Eodhd::WebSocketClient#symbols=
17
21
 
18
22
  require_relative 'Eodhd/Client'
19
23
  require_relative 'Eodhd/EodBulkLastDay'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eodhd.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-21 00:00:00.000000000 Z
10
+ date: 2025-03-23 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: http.rb