eodhd 0.19.10 → 0.19.12

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: 530f57a120775f0c6624020d4f445306b4dfa33d7c12e9a7f67f2b44df33c9e7
4
+ data.tar.gz: 5e4888b2cbeb8f453e3c936062c292b872f440fc3cef7a6727a1b69f976127de
5
5
  SHA512:
6
- metadata.gz: '078c876c0991372328172d5c2aeecb581d09473a66451549e9603ebad9d23a3fe58dbf077184115638a2ba646cbac7b8539f30c4ef0eb95509be0d64ca2af462'
7
- data.tar.gz: 4cff5c9a60f08e91ca9ff53f3ccd9e72c6c22a2067834bca1c91f3162d9c5082965c21f844fd4a4ff50a1f468b47713860d44190888904139d1e796c04d16fcc
6
+ metadata.gz: ef65941abdbbbaf07a93107448f290ef8a14041de4eca5f802a48276f73e6c40c44dcf615e654397cfac72b9004f5a10dd53f7c9975933be5e94b98dc27d10aa
7
+ data.tar.gz: 51efb1a993e9d299a8f2308842fd81e5cd7e66fd8a0eca28330faf013577ad38847ff499672faea85858325d42c5b9334595db045634773c744a620b2295a3fe
data/CHANGELOG CHANGED
@@ -2,6 +2,19 @@
2
2
 
3
3
  ## 20261021
4
4
 
5
+ 0.19.12: Require http.rb >= 1.7.0, for case-sensitive filesystems.
6
+
7
+ 1. ~ eodhd.gemspec and eodhd.rb.gemspec: spec.dependencies: /http.rb/http.rb >= 1.7.0/. Before 1.7.0 http.rb's load file is lib/HTTP.rb, which Eodhd::Client's require 'http.rb' finds only on a case-insensitive filesystem.
8
+ 2. ~ eodhd.gemspec and eodhd.rb.gemspec: spec.dependencies: /%w{}/[]/, so as a requirement can be given.
9
+ 3. + test/gemspec_test.rb: that each gemspec requires http.rb >= 1.7.0.
10
+ 4. ~ Eodhd::VERSION: /0.19.11/0.19.12/
11
+
12
+ 0.19.11: Put the WebMock shim in a method, as in http.rb.
13
+
14
+ 1. ~ test/helper.rb: + skip_webmocks_http_rb_adapter(), holding the webmock shim.
15
+ 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.
16
+ 3. ~ Eodhd::VERSION: /0.19.10/0.19.11/
17
+
5
18
  0.19.10: ~ test/gemspec_test.rb: Validate both gemspecs before comparing their files.
6
19
 
7
20
  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/eodhd.gemspec CHANGED
@@ -36,11 +36,11 @@ Gem::Specification.new do |spec|
36
36
  'README.md',
37
37
  ].flatten
38
38
 
39
- spec.dependencies = %w{
40
- http.rb
41
- iodine
42
- logger
43
- }
39
+ spec.dependencies = [
40
+ ['http.rb', '>= 1.7.0'],
41
+ 'iodine',
42
+ 'logger',
43
+ ]
44
44
 
45
45
  spec.development_dependencies = %w{
46
46
  rake
data/lib/Eodhd/VERSION.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Eodhd
2
- VERSION = '0.19.10'
2
+ VERSION = '0.19.12'
3
3
  end
data/test/gemspec_test.rb CHANGED
@@ -26,6 +26,10 @@ require_relative './helper'
26
26
  _(spec.runtime_dependencies.collect(&:name).sort).must_equal(%w{http.rb iodine logger})
27
27
  end
28
28
 
29
+ it "requires http.rb 1.7.0 or later, whose load file is lib/http.rb" do
30
+ _(spec.runtime_dependencies.find{|dependency| dependency.name == 'http.rb'}.requirement.to_s).must_equal('>= 1.7.0')
31
+ end
32
+
29
33
  it "declares its development dependencies" do
30
34
  _(spec.development_dependencies.collect(&:name).sort).must_equal(%w{minitest minitest-mock minitest-spec-context rake simplecov vcr webmock})
31
35
  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.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - ">="
17
17
  - !ruby/object:Gem::Version
18
- version: '0'
18
+ version: 1.7.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - ">="
24
24
  - !ruby/object:Gem::Version
25
- version: '0'
25
+ version: 1.7.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: iodine
28
28
  requirement: !ruby/object:Gem::Requirement