eodhd.rb 0.19.3 → 0.19.5

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: bdd678e48a6fd9e94c74bf6d6a0366a24e6c74c570e07c93dd8d7c506e252ba5
4
+ data.tar.gz: e8537b25438b87d99a2b71823ee4a386b95884d450eab422bebce578debd1066
5
5
  SHA512:
6
- metadata.gz: 0413f143de4c4653d932b7949cc0bef9e2d7c0eee72a118067edbbe437169f19276beaa862ee5678d0aeaf9a85e169c2ebdaa2eef0be5cd2ab04cf590df7cdf7
7
- data.tar.gz: 645045d3b3fdb3c2a33ea41e36af1c4bf7ee52b4d15ae15b99741317cefe802e051f5614a3a336f5bc790de66e1d43f696284f1edb4795f22de2e74dd13f4daa
6
+ metadata.gz: 7ff8a62518dcf8d8ce4e03fe2ab3b57ce15f1d7cae2e531ae1c274b0fd2d9a6e5d0a6dfd3724452d16107d14c9b45c72048be7ef9a8701bfe290b2ec3e85f346
7
+ data.tar.gz: a8dc53a4ef3e83c53be9a790ed0c82a19d34c097968916ec0324fca7fad0d242f66980375ba9496b3d0f1a3ff9132ed6344627fbd67b450e3c186d99af4c975e
data/CHANGELOG CHANGED
@@ -1,5 +1,24 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 20260915
4
+
5
+ 0.19.5: + eodhd.gemspec, so that the gem resolves under both names.
6
+
7
+ 1. + eodhd.gemspec: eodhd.rb.gemspec with /eodhd.rb/eodhd/ in spec.name and in spec.files, upon measurand 0.1.4's pattern.
8
+ 2. ~ Gemfile: /gemspec/gemspec name: 'eodhd.rb'/, bundler refusing to parse a Gemfile whose bare gemspec directive finds more than one gemspec to choose from.
9
+ 3. ~ Eodhd::VERSION: /0.19.4/0.19.5/
10
+
11
+
12
+ ## 20260910
13
+
14
+ 0.19.4: ~ lib/Eodhd.rb: + require_relative './Eodhd/VERSION'; + test/Eodhd/VERSION_test.rb
15
+
16
+ 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.
17
+ 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.
18
+ 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.
19
+ 4. ~ Eodhd::VERSION: /0.19.3/0.19.4/
20
+
21
+
3
22
  ## 20260821
4
23
 
5
24
  0.19.3: Rewrite the CHANGELOG in the form changelogger writes.
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- gemspec
3
+ gemspec name: 'eodhd.rb'
data/lib/Eodhd/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Eodhd
2
- VERSION = '0.19.3'
2
+ VERSION = '0.19.5'
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.5
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: []