eodhd 0.19.5 → 0.19.6

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: cf8b67ed05dcf07f838df21a530d42c07824fd548ce5956f0425356c6e20ab9b
4
- data.tar.gz: 107375d103ae2afebd038183c256c7c4d387d47287bbcf524ef5afe058c0de24
3
+ metadata.gz: 0a0ddbc51d49b9ffc663da432cb42b833d0cfd533235c0a26b01090b18356454
4
+ data.tar.gz: 5c3d8fcbe6e0232823a564c67f530967a5c0c7b972603d3a4b6663ebe731ecdd
5
5
  SHA512:
6
- metadata.gz: e84643904cbe85f5d7b67961927b071e9966020677f6c48bd3c5070e4e47bcd90c18ac72cb1ed9f0d5c6158978624109136a2a3935a2373c2f8208862ee05980
7
- data.tar.gz: 2a6f1e38654db71f172aa88e40ef96e3e55a3f98762930648c0b24986c6f0714cb480503386920c31eb3ee7a3d5c018fefb95b9fb15307806aa11f0bc79a10e4
6
+ metadata.gz: 3a5be8ed1f007d3c1f8c71da00b5d4066e28c80b81d921624555e8f4d2aee600f665ccfc49f99adb8523b933450e11f157ccddffd062a43413557ab0995fa10c
7
+ data.tar.gz: 600d64bc5fe4af78c153cb761954e51a4002b963a3d6896bf51e1a72811cf5daa162880d089126b3e29711ab1dabaa2521694e040db8c3e066d541bf9f47c04c
data/CHANGELOG CHANGED
@@ -1,7 +1,13 @@
1
- # CHANGELOG
1
+ # eodhd/CHANGELOG
2
2
 
3
3
  ## 20260915
4
4
 
5
+ 0.19.6: + test/gemspec_test.rb, covering both gemspecs and that they agree.
6
+
7
+ 1. + test/gemspec_test.rb: for each gemspec, that it validates, that it is named what it should be, that it pins no date, that its version is Eodhd::VERSION, its runtime and development dependencies, and that it ships the gemspec naming it. Modelled upon the convention this repository follows, for both gemspecs.
8
+ 2. + test/gemspec_test.rb: three examples that the two agree — the same files but for the one naming each, the same declared fields, the same dependencies. 0.19.5's second gemspec is worth nothing if the two drift, and nothing read them together.
9
+ 3. ~ Eodhd::VERSION: /0.19.5/0.19.6/
10
+
5
11
  0.19.5: + eodhd.gemspec, so that the gem resolves under both names.
6
12
 
7
13
  1. + eodhd.gemspec: eodhd.rb.gemspec with /eodhd.rb/eodhd/ in spec.name and in spec.files, upon measurand 0.1.4's pattern.
data/lib/Eodhd/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Eodhd
2
- VERSION = '0.19.5'
2
+ VERSION = '0.19.6'
3
3
  end
@@ -0,0 +1,58 @@
1
+ # test/gemspec_test.rb
2
+
3
+ require_relative './helper'
4
+
5
+ %w{eodhd.rb eodhd}.each do |name|
6
+ describe "#{name}.gemspec" do
7
+ let(:spec){Gem::Specification.load(File.expand_path("../#{name}.gemspec", __dir__))}
8
+
9
+ it "is a valid specification" do
10
+ _(spec.validate).must_equal(true)
11
+ end
12
+
13
+ it "is named #{name}" do
14
+ _(spec.name).must_equal(name)
15
+ end
16
+
17
+ it "does not pin a date" do
18
+ _(spec.date).must_equal(Gem::Specification.new.date)
19
+ end
20
+
21
+ it "takes its version from Eodhd::VERSION" do
22
+ _(spec.version.to_s).must_equal(Eodhd::VERSION)
23
+ end
24
+
25
+ it "declares its runtime dependencies" do
26
+ _(spec.runtime_dependencies.collect(&:name).sort).must_equal(%w{http.rb iodine})
27
+ end
28
+
29
+ it "declares its development dependencies" do
30
+ _(spec.development_dependencies.collect(&:name).sort).must_equal(%w{minitest minitest-mock minitest-spec-context rake simplecov vcr webmock})
31
+ end
32
+
33
+ it "ships the gemspec which names it" do
34
+ _(spec.files).must_include("#{name}.gemspec")
35
+ end
36
+ end
37
+ end
38
+
39
+ # The second gemspec exists so that the gem resolves under both names, which is
40
+ # worth nothing if the two drift. Each is loaded rather than the files compared,
41
+ # so that a difference is reported as the field it is.
42
+ describe 'the two gemspecs' do
43
+ let(:bare){Gem::Specification.load(File.expand_path('../eodhd.gemspec', __dir__))}
44
+ let(:dotted){Gem::Specification.load(File.expand_path('../eodhd.rb.gemspec', __dir__))}
45
+
46
+ it "ship the same files but for the one naming each" do
47
+ _(bare.files - ['eodhd.gemspec']).must_equal(dotted.files - ['eodhd.rb.gemspec'])
48
+ end
49
+
50
+ it "agree upon everything else declared" do
51
+ fields = %i{version summary description authors email homepage licenses required_ruby_version require_paths}
52
+ _(fields.collect{|field| bare.send(field).to_s}).must_equal(fields.collect{|field| dotted.send(field).to_s})
53
+ end
54
+
55
+ it "agree upon their dependencies" do
56
+ _(bare.dependencies.collect(&:to_s).sort).must_equal(dotted.dependencies.collect(&:to_s).sort)
57
+ end
58
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eodhd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.5
4
+ version: 0.19.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -193,6 +193,7 @@ files:
193
193
  - test/Eodhd/Validations_test.rb
194
194
  - test/Eodhd/WebSocketClient_test.rb
195
195
  - test/Eodhd_test.rb
196
+ - test/gemspec_test.rb
196
197
  - test/helper.rb
197
198
  homepage: http://github.com/thoran/eodhd.rb
198
199
  licenses: