eodhd 0.19.5 → 0.19.7

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: '01863c1f0d20d4b7f5ebbf527eef8ab2fbc1ed808402338fc002b35e6e362eab'
4
+ data.tar.gz: 2e1f53faf0cb5a15d34a8a60ead3924ccd84ac85a6470e378d4ba8aabd1e4d71
5
5
  SHA512:
6
- metadata.gz: e84643904cbe85f5d7b67961927b071e9966020677f6c48bd3c5070e4e47bcd90c18ac72cb1ed9f0d5c6158978624109136a2a3935a2373c2f8208862ee05980
7
- data.tar.gz: 2a6f1e38654db71f172aa88e40ef96e3e55a3f98762930648c0b24986c6f0714cb480503386920c31eb3ee7a3d5c018fefb95b9fb15307806aa11f0bc79a10e4
6
+ metadata.gz: 666d3bcb04261ef999a8fabbb24748065228fd148f0e15754544bb294a905f974d9d49245ee2381e186e3f1c4aa62e6c87e0f9b1626b2818e56c1a00c9d53fc7
7
+ data.tar.gz: 52afec012f72f0547d490f8101317703e953218b7fe4bfc745a33a5758708a25d68d982c2a6c8a2945d5a21cc94d8414e88698f23a4fc32000aebdcf166b4b16
data/CHANGELOG CHANGED
@@ -1,7 +1,19 @@
1
- # CHANGELOG
1
+ # eodhd/CHANGELOG
2
2
 
3
3
  ## 20260915
4
4
 
5
+ 0.19.7: Rename the repo: /eodhd.rb/eodhd/.
6
+
7
+ 1. ~ eodhd.rb.gemspec and eodhd.gemspec: spec.homepage.
8
+ 2. ~ README.md: the fork URL.
9
+ 3. ~ Eodhd::VERSION: /0.19.6/0.19.7/
10
+
11
+ 0.19.6: + test/gemspec_test.rb, covering both gemspecs and that they agree.
12
+
13
+ 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.
14
+ 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.
15
+ 3. ~ Eodhd::VERSION: /0.19.5/0.19.6/
16
+
5
17
  0.19.5: + eodhd.gemspec, so that the gem resolves under both names.
6
18
 
7
19
  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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # eodhd.rb
1
+ # eodhd
2
2
 
3
3
  ## Description
4
4
 
@@ -153,7 +153,7 @@ MIT License. See LICENSE file for details.
153
153
 
154
154
  ## Contributing
155
155
 
156
- 1. Fork it ( https://github.com/thoran/eodhd.rb/fork )
156
+ 1. Fork it ( https://github.com/thoran/eodhd/fork )
157
157
  2. Create your feature branch (`git checkout -b my-new-feature`)
158
158
  3. Commit your changes (`git commit -am 'Add some feature'`)
159
159
  4. Push to the branch (`git push origin my-new-feature`)
data/eodhd.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
 
20
20
  spec.author = 'thoran'
21
21
  spec.email = 'code@thoran.com'
22
- spec.homepage = 'http://github.com/thoran/eodhd.rb'
22
+ spec.homepage = 'http://github.com/thoran/eodhd'
23
23
  spec.license = 'MIT'
24
24
 
25
25
  spec.require_paths = ['lib']
data/lib/Eodhd/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Eodhd
2
- VERSION = '0.19.5'
2
+ VERSION = '0.19.7'
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.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -193,8 +193,9 @@ 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
- homepage: http://github.com/thoran/eodhd.rb
198
+ homepage: http://github.com/thoran/eodhd
198
199
  licenses:
199
200
  - MIT
200
201
  metadata: {}