eodhd.rb 0.19.3 → 0.19.4

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: bf9f799dd630f653d4eabbde725b6eda7345f00c4ded60708a1d973ffad84035
4
- data.tar.gz: 7fa8162ea63990980612bd56ea1b665783017da8a5faa2bbb61e7eb8942e16d7
3
+ metadata.gz: 607de748be074b365f36583c465c78c39393693ef5ad9aa36e03154d2882e919
4
+ data.tar.gz: d5223cece0bb0e1a798e6bd4e58eafef7671c3826e8e4b28c423bc56c9f9285f
5
5
  SHA512:
6
- metadata.gz: 0413f143de4c4653d932b7949cc0bef9e2d7c0eee72a118067edbbe437169f19276beaa862ee5678d0aeaf9a85e169c2ebdaa2eef0be5cd2ab04cf590df7cdf7
7
- data.tar.gz: 645045d3b3fdb3c2a33ea41e36af1c4bf7ee52b4d15ae15b99741317cefe802e051f5614a3a336f5bc790de66e1d43f696284f1edb4795f22de2e74dd13f4daa
6
+ metadata.gz: a2202c58050fca94cefdea60a6ac01c62c6be570ecfbfda366de3738a4c65e0ddd93d6e3be021c2e04c9f5e71c84c0d464ce8d7b063469b6c9da309d8a39ebe1
7
+ data.tar.gz: dadd7e8452b3a9e135f1f561cab1a76ee500a098d0c0a41475592457280a7d6ab62fccc43464dab898044b45d4a49fdac8251b1a4e881c4b1336caccdb05d5cf
data/CHANGELOG CHANGED
@@ -1,5 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 20260910
4
+
5
+ 0.19.4: ~ lib/Eodhd.rb: + require_relative './Eodhd/VERSION'; + test/Eodhd/VERSION_test.rb
6
+
7
+ 1. ~ lib/Eodhd.rb: + `require_relative './Eodhd/VERSION'`, last among the requires. The file has been present and unreached, so `require 'eodhd'` left Eodhd::VERSION undefined and the gemspec was the only thing loading it.
8
+ 2. + test/Eodhd/VERSION_test.rb: that Eodhd::VERSION is a string, that it is three numbers separated by dots, and that it matches the newest entry in the changelog. Modelled on moby's, which is where the convention comes from.
9
+ 3. The test loads the library rather than VERSION.rb, which is the whole of its value: run against v0.19.3 it fails with "uninitialized constant Eodhd::VERSION". Nine libraries were in that state and not one of them carried this test, which is how it went unseen.
10
+ 4. ~ Eodhd::VERSION: /0.19.3/0.19.4/
11
+
12
+
3
13
  ## 20260821
4
14
 
5
15
  0.19.3: Rewrite the CHANGELOG in the form changelogger writes.
data/lib/Eodhd/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Eodhd
2
- VERSION = '0.19.3'
2
+ VERSION = '0.19.4'
3
3
  end
data/lib/eodhd.rb CHANGED
@@ -9,6 +9,7 @@ require_relative './Eodhd/ExchangeSymbol'
9
9
  require_relative './Eodhd/Intraday'
10
10
  require_relative './Eodhd/Fundamentals'
11
11
  require_relative './Eodhd/WebSocketClient'
12
+ require_relative './Eodhd/VERSION'
12
13
 
13
14
  class Eodhd
14
15
  def exchanges
@@ -0,0 +1,20 @@
1
+ # test/Eodhd/VERSION_test.rb
2
+
3
+ require_relative '../helper'
4
+
5
+ describe Eodhd do
6
+ describe "VERSION" do
7
+ it "is a string" do
8
+ _(Eodhd::VERSION).must_be_instance_of String
9
+ end
10
+
11
+ it "is three numbers separated by dots" do
12
+ _(Eodhd::VERSION).must_match(/\A\d+\.\d+\.\d+\z/)
13
+ end
14
+
15
+ it "matches the newest entry in the CHANGELOG" do
16
+ changelog = File.read(File.expand_path('../../CHANGELOG', __dir__))
17
+ _(changelog[/^(\d+\.\d+\.\d+):/, 1]).must_equal Eodhd::VERSION
18
+ end
19
+ end
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eodhd.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.3
4
+ version: 0.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -189,6 +189,7 @@ files:
189
189
  - lib/eodhd.rb
190
190
  - test/Eodhd/Client_test.rb
191
191
  - test/Eodhd/Fundamentals_test.rb
192
+ - test/Eodhd/VERSION_test.rb
192
193
  - test/Eodhd/Validations_test.rb
193
194
  - test/Eodhd/WebSocketClient_test.rb
194
195
  - test/Eodhd_test.rb
@@ -211,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
212
  - !ruby/object:Gem::Version
212
213
  version: '0'
213
214
  requirements: []
214
- rubygems_version: 4.0.18
215
+ rubygems_version: 4.0.20
215
216
  specification_version: 4
216
217
  summary: Access the eodhd.com API with Ruby.
217
218
  test_files: []