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 +4 -4
- data/CHANGELOG +10 -0
- data/lib/Eodhd/VERSION.rb +1 -1
- data/lib/eodhd.rb +1 -0
- data/test/Eodhd/VERSION_test.rb +20 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 607de748be074b365f36583c465c78c39393693ef5ad9aa36e03154d2882e919
|
|
4
|
+
data.tar.gz: d5223cece0bb0e1a798e6bd4e58eafef7671c3826e8e4b28c423bc56c9f9285f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
data/lib/eodhd.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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: []
|