eodhd.rb 0.17.0 → 0.18.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.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +101 -0
  3. data/README.md +86 -14
  4. data/Rakefile +28 -0
  5. data/eodhd.rb.gemspec +30 -15
  6. data/lib/Eodhd/Client.rb +7 -0
  7. data/lib/Eodhd/EodBulkLastDay.rb +2 -0
  8. data/lib/Eodhd/EodData.rb +2 -0
  9. data/lib/Eodhd/Exchange.rb +2 -0
  10. data/lib/Eodhd/ExchangeSymbol.rb +2 -0
  11. data/lib/Eodhd/Fundamentals/AnalystRatings.rb +29 -0
  12. data/lib/Eodhd/Fundamentals/ESGScores.rb +37 -0
  13. data/lib/Eodhd/Fundamentals/Earnings.rb +21 -0
  14. data/lib/Eodhd/Fundamentals/Financials/Statement.rb +21 -0
  15. data/lib/Eodhd/Fundamentals/Financials.rb +23 -0
  16. data/lib/Eodhd/Fundamentals/General.rb +85 -0
  17. data/lib/Eodhd/Fundamentals/Highlights.rb +63 -0
  18. data/lib/Eodhd/Fundamentals/Holders.rb +19 -0
  19. data/lib/Eodhd/Fundamentals/SharesStats.rb +33 -0
  20. data/lib/Eodhd/Fundamentals/SplitsDividends.rb +31 -0
  21. data/lib/Eodhd/Fundamentals/Technicals.rb +33 -0
  22. data/lib/Eodhd/Fundamentals/Valuation.rb +29 -0
  23. data/lib/Eodhd/Fundamentals.rb +85 -0
  24. data/lib/Eodhd/VERSION.rb +1 -1
  25. data/lib/Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb +14 -13
  26. data/lib/Thoran/String/Urlencode/urlencode.rb +29 -0
  27. data/lib/{Eodhd.rb → eodhd.rb} +27 -17
  28. data/test/{client_test.rb → Eodhd/Client_test.rb} +38 -14
  29. data/test/Eodhd/Fundamentals_test.rb +78 -0
  30. data/test/{validations_test.rb → Eodhd/Validations_test.rb} +4 -2
  31. data/test/{web_socket_client_test.rb → Eodhd/WebSocketClient_test.rb} +9 -7
  32. data/test/{eodhd_test.rb → Eodhd_test.rb} +12 -1
  33. data/test/helper.rb +3 -0
  34. metadata +41 -12
  35. data/lib/Thoran/String/UrlEncode/url_encode.rb +0 -26
  36. data/test/test_all.rb +0 -5
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.17.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-10-05 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: http.rb
@@ -65,6 +65,20 @@ dependencies:
65
65
  - - ">="
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: minitest-mock
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ version: '0'
68
82
  - !ruby/object:Gem::Dependency
69
83
  name: minitest-spec-context
70
84
  requirement: !ruby/object:Gem::Requirement
@@ -127,10 +141,11 @@ executables: []
127
141
  extensions: []
128
142
  extra_rdoc_files: []
129
143
  files:
144
+ - CHANGELOG
130
145
  - Gemfile
131
146
  - README.md
147
+ - Rakefile
132
148
  - eodhd.rb.gemspec
133
- - lib/Eodhd.rb
134
149
  - lib/Eodhd/Client.rb
135
150
  - lib/Eodhd/DefaultLogger.rb
136
151
  - lib/Eodhd/EodBulkLastDay.rb
@@ -138,22 +153,36 @@ files:
138
153
  - lib/Eodhd/Error.rb
139
154
  - lib/Eodhd/Exchange.rb
140
155
  - lib/Eodhd/ExchangeSymbol.rb
156
+ - lib/Eodhd/Fundamentals.rb
157
+ - lib/Eodhd/Fundamentals/AnalystRatings.rb
158
+ - lib/Eodhd/Fundamentals/ESGScores.rb
159
+ - lib/Eodhd/Fundamentals/Earnings.rb
160
+ - lib/Eodhd/Fundamentals/Financials.rb
161
+ - lib/Eodhd/Fundamentals/Financials/Statement.rb
162
+ - lib/Eodhd/Fundamentals/General.rb
163
+ - lib/Eodhd/Fundamentals/Highlights.rb
164
+ - lib/Eodhd/Fundamentals/Holders.rb
165
+ - lib/Eodhd/Fundamentals/SharesStats.rb
166
+ - lib/Eodhd/Fundamentals/SplitsDividends.rb
167
+ - lib/Eodhd/Fundamentals/Technicals.rb
168
+ - lib/Eodhd/Fundamentals/Valuation.rb
141
169
  - lib/Eodhd/Intraday.rb
142
170
  - lib/Eodhd/VERSION.rb
143
171
  - lib/Eodhd/Validations.rb
144
172
  - lib/Eodhd/WebSocketClient.rb
145
173
  - lib/Hash/x_www_form_urlencode.rb
146
174
  - lib/Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb
147
- - lib/Thoran/String/UrlEncode/url_encode.rb
148
- - test/client_test.rb
149
- - test/eodhd_test.rb
175
+ - lib/Thoran/String/Urlencode/urlencode.rb
176
+ - lib/eodhd.rb
177
+ - test/Eodhd/Client_test.rb
178
+ - test/Eodhd/Fundamentals_test.rb
179
+ - test/Eodhd/Validations_test.rb
180
+ - test/Eodhd/WebSocketClient_test.rb
181
+ - test/Eodhd_test.rb
150
182
  - test/helper.rb
151
- - test/test_all.rb
152
- - test/validations_test.rb
153
- - test/web_socket_client_test.rb
154
183
  homepage: http://github.com/thoran/eodhd.rb
155
184
  licenses:
156
- - Ruby
185
+ - MIT
157
186
  metadata: {}
158
187
  rdoc_options: []
159
188
  require_paths:
@@ -162,14 +191,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
162
191
  requirements:
163
192
  - - ">="
164
193
  - !ruby/object:Gem::Version
165
- version: '2.5'
194
+ version: '2.7'
166
195
  required_rubygems_version: !ruby/object:Gem::Requirement
167
196
  requirements:
168
197
  - - ">="
169
198
  - !ruby/object:Gem::Version
170
199
  version: '0'
171
200
  requirements: []
172
- rubygems_version: 3.7.2
201
+ rubygems_version: 4.0.16
173
202
  specification_version: 4
174
203
  summary: Access the eodhd.com API with Ruby.
175
204
  test_files: []
@@ -1,26 +0,0 @@
1
- # Thoran/String/UrlEncode/url_encode.rb
2
- # Thoran::String::UrlEncode#url_encode
3
-
4
- # 20160505
5
- # 0.3.0
6
-
7
- # Acknowledgements: I've simply ripped off and refashioned the code from the CGI module!...
8
-
9
- # Changes since 0.2:
10
- # 1. + Thoran namespace.
11
-
12
- module Thoran
13
- module String
14
- module UrlEncode
15
-
16
- def url_encode
17
- self.gsub(/([^ a-zA-Z0-9_.-]+)/n) do
18
- '%' + $1.unpack('H2' * $1.size).join('%').upcase
19
- end.tr(' ', '+')
20
- end
21
-
22
- end
23
- end
24
- end
25
-
26
- String.send(:include, Thoran::String::UrlEncode)
data/test/test_all.rb DELETED
@@ -1,5 +0,0 @@
1
- require_relative "helper"
2
-
3
- Dir[File.expand_path("./**/*_test.rb", __dir__)].each do |file|
4
- require file
5
- end