eodhd 0.19.10 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 884814bd2083dded94448391c878c35d32473f97de36e3318931c867384b732b
4
- data.tar.gz: 4d72fac503e6a33fb1be4c19349891adc013284f99bb1e5538342a27eccddd8f
3
+ metadata.gz: 33041a53169f214cd1311b00c3a85ad01be4d16b8dd944ba02152a3690cf09b5
4
+ data.tar.gz: fbd23fb3bdf26093ce9434680871ee53a263cad3b8ccb48a85ef6fd2d44921f0
5
5
  SHA512:
6
- metadata.gz: '078c876c0991372328172d5c2aeecb581d09473a66451549e9603ebad9d23a3fe58dbf077184115638a2ba646cbac7b8539f30c4ef0eb95509be0d64ca2af462'
7
- data.tar.gz: 4cff5c9a60f08e91ca9ff53f3ccd9e72c6c22a2067834bca1c91f3162d9c5082965c21f844fd4a4ff50a1f468b47713860d44190888904139d1e796c04d16fcc
6
+ metadata.gz: abb3fbc7c224ee9af11a71d818ca6ce9e3d74b2e391c3cd3fb6c22fd396a1ec257ca00753528cae2b34ddd8edda9ebe7df845af314738e506e8988e9b3f462cb
7
+ data.tar.gz: fb12ab144d79a1de5d0224f9bcad7e82d26c2501b42ba2503abfc16f4fa344a443129a8f3a52d8640ee3993e9bd2f8189c249c8725640c2f56876e5906358c38
data/CHANGELOG CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## 20261021
4
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
+
5
11
  0.19.10: ~ test/gemspec_test.rb: Validate both gemspecs before comparing their files.
6
12
 
7
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.
data/lib/Eodhd/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Eodhd
2
- VERSION = '0.19.10'
2
+ VERSION = '0.19.11'
3
3
  end
data/test/helper.rb CHANGED
@@ -1,15 +1,18 @@
1
1
  # helper.rb
2
2
 
3
- # Skip webmock's http_rb adapter: it takes any HTTP::VERSION for the http gem's,
4
- # and http.rb defines one, so it crashes trying to patch an HTTP::Client which
5
- # isn't there. On case-insensitive filesystems its require 'http' loads http.rb.
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
- gem 'webmock'
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
- $LOADED_FEATURES << File.join(
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'
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.10
4
+ version: 0.19.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran