eodhd 0.19.9 → 0.19.11
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 +14 -0
- data/lib/Eodhd/VERSION.rb +1 -1
- data/test/gemspec_test.rb +3 -0
- data/test/helper.rb +11 -8
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 33041a53169f214cd1311b00c3a85ad01be4d16b8dd944ba02152a3690cf09b5
|
|
4
|
+
data.tar.gz: fbd23fb3bdf26093ce9434680871ee53a263cad3b8ccb48a85ef6fd2d44921f0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: abb3fbc7c224ee9af11a71d818ca6ce9e3d74b2e391c3cd3fb6c22fd396a1ec257ca00753528cae2b34ddd8edda9ebe7df845af314738e506e8988e9b3f462cb
|
|
7
|
+
data.tar.gz: fb12ab144d79a1de5d0224f9bcad7e82d26c2501b42ba2503abfc16f4fa344a443129a8f3a52d8640ee3993e9bd2f8189c249c8725640c2f56876e5906358c38
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# eodhd/CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 20261021
|
|
4
|
+
|
|
5
|
+
0.19.11: Put the WebMock shim in a method, as in http.rb.
|
|
6
|
+
|
|
7
|
+
1. ~ test/helper.rb: + skip_webmocks_http_rb_adapter(), holding the webmock shim.
|
|
8
|
+
2. ~ test/helper.rb: the shim's comment. http.rb 1.7.0's load file is lib/http.rb, which webmock's require 'http' finds on any filesystem, not only on a case-insensitive one.
|
|
9
|
+
3. ~ Eodhd::VERSION: /0.19.10/0.19.11/
|
|
10
|
+
|
|
11
|
+
0.19.10: ~ test/gemspec_test.rb: Validate both gemspecs before comparing their files.
|
|
12
|
+
|
|
13
|
+
1. ~ test/gemspec_test.rb: "ship the same files but for the one naming each": + [bare, dotted].each(&:validate). Gem::Specification.load caches each spec and validate removes directories from its files in place, so the comparison failed whenever one gemspec had been validated and the other not.
|
|
14
|
+
2. ~ Eodhd::VERSION: /0.19.9/0.19.10/
|
|
15
|
+
|
|
16
|
+
|
|
3
17
|
## 20261018
|
|
4
18
|
|
|
5
19
|
0.19.9: The tests load WebMock again.
|
data/lib/Eodhd/VERSION.rb
CHANGED
data/test/gemspec_test.rb
CHANGED
|
@@ -43,7 +43,10 @@ describe 'the two gemspecs' do
|
|
|
43
43
|
let(:bare){Gem::Specification.load(File.expand_path('../eodhd.gemspec', __dir__))}
|
|
44
44
|
let(:dotted){Gem::Specification.load(File.expand_path('../eodhd.rb.gemspec', __dir__))}
|
|
45
45
|
|
|
46
|
+
# Gem::Specification.load caches each spec, and validate removes directories
|
|
47
|
+
# from its files in place, so each is validated here whichever ran first.
|
|
46
48
|
it "ship the same files but for the one naming each" do
|
|
49
|
+
[bare, dotted].each(&:validate)
|
|
47
50
|
_(bare.files - ['eodhd.gemspec']).must_equal(dotted.files - ['eodhd.rb.gemspec'])
|
|
48
51
|
end
|
|
49
52
|
|
data/test/helper.rb
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
# helper.rb
|
|
2
2
|
|
|
3
|
-
#
|
|
4
|
-
#
|
|
5
|
-
#
|
|
3
|
+
# webmock's http_rb adapter's require 'http' finds http.rb's lib/http.rb,
|
|
4
|
+
# takes HTTP::VERSION for the http gem's, and crashes trying to
|
|
5
|
+
# monkey-patch an HTTP::Client which isn't there.
|
|
6
|
+
def skip_webmocks_http_rb_adapter
|
|
7
|
+
gem 'webmock'
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
$LOADED_FEATURES << File.join(
|
|
10
|
+
Gem.loaded_specs['webmock'].full_gem_path,
|
|
11
|
+
'lib/webmock/http_lib_adapters/http_rb_adapter.rb'
|
|
12
|
+
)
|
|
13
|
+
end
|
|
8
14
|
|
|
9
|
-
|
|
10
|
-
Gem.loaded_specs['webmock'].full_gem_path,
|
|
11
|
-
'lib/webmock/http_lib_adapters/http_rb_adapter.rb'
|
|
12
|
-
)
|
|
15
|
+
skip_webmocks_http_rb_adapter
|
|
13
16
|
|
|
14
17
|
require 'minitest/autorun'
|
|
15
18
|
require 'minitest/mock'
|