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 +4 -4
- data/CHANGELOG +13 -1
- data/README.md +2 -2
- data/eodhd.gemspec +1 -1
- data/lib/Eodhd/VERSION.rb +1 -1
- data/test/gemspec_test.rb +58 -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: '01863c1f0d20d4b7f5ebbf527eef8ab2fbc1ed808402338fc002b35e6e362eab'
|
|
4
|
+
data.tar.gz: 2e1f53faf0cb5a15d34a8a60ead3924ccd84ac85a6470e378d4ba8aabd1e4d71
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
|
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
|
|
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
|
@@ -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.
|
|
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
|
|
198
|
+
homepage: http://github.com/thoran/eodhd
|
|
198
199
|
licenses:
|
|
199
200
|
- MIT
|
|
200
201
|
metadata: {}
|