eodhd 0.19.7 → 0.19.9
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 +26 -0
- data/Gemfile +1 -1
- data/LICENSE +21 -0
- data/README.md +4 -8
- data/eodhd.gemspec +5 -3
- data/lib/Eodhd/VERSION.rb +1 -1
- data/lib/eodhd.rb +1 -1
- data/test/{Eodhd_test.rb → eodhd_test.rb} +2 -2
- data/test/fixtures/vcr_cassettes/client_eod_bulk_last_day.yml +51 -0
- data/test/fixtures/vcr_cassettes/client_eod_bulk_last_day_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_eod_data.yml +51 -0
- data/test/fixtures/vcr_cassettes/client_eod_data_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_exchange_symbol_list.yml +2774 -0
- data/test/fixtures/vcr_cassettes/client_exchange_symbol_list_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_exchanges_list.yml +97 -0
- data/test/fixtures/vcr_cassettes/client_exchanges_list_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_fundamentals.yml +153 -0
- data/test/fixtures/vcr_cassettes/client_fundamentals_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/client_fundamentals_filtered.yml +91 -0
- data/test/fixtures/vcr_cassettes/client_intraday.yml +6492 -0
- data/test/fixtures/vcr_cassettes/client_intraday_401_error.yml +43 -0
- data/test/fixtures/vcr_cassettes/eodhd_eod_bulk_last_day.yml +51 -0
- data/test/fixtures/vcr_cassettes/eodhd_eod_data.yml +51 -0
- data/test/fixtures/vcr_cassettes/eodhd_exchange_symbols.yml +2931 -0
- data/test/fixtures/vcr_cassettes/eodhd_exchanges.yml +123 -0
- data/test/fixtures/vcr_cassettes/eodhd_fundamentals.yml +153 -0
- data/test/fixtures/vcr_cassettes/eodhd_intraday.yml +6492 -0
- data/test/fixtures/vcr_cassettes/fundamentals_aapl.yml +153 -0
- data/test/fixtures/vcr_cassettes/fundamentals_cba_au.yml +99 -0
- data/test/gemspec_test.rb +1 -1
- data/test/helper.rb +12 -1
- metadata +39 -3
data/test/gemspec_test.rb
CHANGED
|
@@ -23,7 +23,7 @@ require_relative './helper'
|
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
it "declares its runtime dependencies" do
|
|
26
|
-
_(spec.runtime_dependencies.collect(&:name).sort).must_equal(%w{http.rb iodine})
|
|
26
|
+
_(spec.runtime_dependencies.collect(&:name).sort).must_equal(%w{http.rb iodine logger})
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
it "declares its development dependencies" do
|
data/test/helper.rb
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
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.
|
|
6
|
+
|
|
7
|
+
gem 'webmock'
|
|
8
|
+
|
|
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
|
+
|
|
3
14
|
require 'minitest/autorun'
|
|
4
15
|
require 'minitest/mock'
|
|
5
16
|
require 'minitest/spec'
|
|
@@ -8,7 +19,7 @@ require 'vcr'
|
|
|
8
19
|
require 'webmock/minitest'
|
|
9
20
|
|
|
10
21
|
$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
|
|
11
|
-
require '
|
|
22
|
+
require 'eodhd'
|
|
12
23
|
|
|
13
24
|
VCR.configure do |config|
|
|
14
25
|
config.cassette_library_dir = File.expand_path('./fixtures/vcr_cassettes', __dir__)
|
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.9
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoran
|
|
@@ -37,6 +37,20 @@ dependencies:
|
|
|
37
37
|
- - ">="
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '0'
|
|
40
|
+
- !ruby/object:Gem::Dependency
|
|
41
|
+
name: logger
|
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
|
43
|
+
requirements:
|
|
44
|
+
- - ">="
|
|
45
|
+
- !ruby/object:Gem::Version
|
|
46
|
+
version: '0'
|
|
47
|
+
type: :runtime
|
|
48
|
+
prerelease: false
|
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
+
requirements:
|
|
51
|
+
- - ">="
|
|
52
|
+
- !ruby/object:Gem::Version
|
|
53
|
+
version: '0'
|
|
40
54
|
- !ruby/object:Gem::Dependency
|
|
41
55
|
name: rake
|
|
42
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -143,6 +157,7 @@ extra_rdoc_files: []
|
|
|
143
157
|
files:
|
|
144
158
|
- CHANGELOG
|
|
145
159
|
- Gemfile
|
|
160
|
+
- LICENSE
|
|
146
161
|
- README.md
|
|
147
162
|
- Rakefile
|
|
148
163
|
- eodhd.gemspec
|
|
@@ -192,7 +207,28 @@ files:
|
|
|
192
207
|
- test/Eodhd/VERSION_test.rb
|
|
193
208
|
- test/Eodhd/Validations_test.rb
|
|
194
209
|
- test/Eodhd/WebSocketClient_test.rb
|
|
195
|
-
- test/
|
|
210
|
+
- test/eodhd_test.rb
|
|
211
|
+
- test/fixtures/vcr_cassettes/client_eod_bulk_last_day.yml
|
|
212
|
+
- test/fixtures/vcr_cassettes/client_eod_bulk_last_day_401_error.yml
|
|
213
|
+
- test/fixtures/vcr_cassettes/client_eod_data.yml
|
|
214
|
+
- test/fixtures/vcr_cassettes/client_eod_data_401_error.yml
|
|
215
|
+
- test/fixtures/vcr_cassettes/client_exchange_symbol_list.yml
|
|
216
|
+
- test/fixtures/vcr_cassettes/client_exchange_symbol_list_401_error.yml
|
|
217
|
+
- test/fixtures/vcr_cassettes/client_exchanges_list.yml
|
|
218
|
+
- test/fixtures/vcr_cassettes/client_exchanges_list_401_error.yml
|
|
219
|
+
- test/fixtures/vcr_cassettes/client_fundamentals.yml
|
|
220
|
+
- test/fixtures/vcr_cassettes/client_fundamentals_401_error.yml
|
|
221
|
+
- test/fixtures/vcr_cassettes/client_fundamentals_filtered.yml
|
|
222
|
+
- test/fixtures/vcr_cassettes/client_intraday.yml
|
|
223
|
+
- test/fixtures/vcr_cassettes/client_intraday_401_error.yml
|
|
224
|
+
- test/fixtures/vcr_cassettes/eodhd_eod_bulk_last_day.yml
|
|
225
|
+
- test/fixtures/vcr_cassettes/eodhd_eod_data.yml
|
|
226
|
+
- test/fixtures/vcr_cassettes/eodhd_exchange_symbols.yml
|
|
227
|
+
- test/fixtures/vcr_cassettes/eodhd_exchanges.yml
|
|
228
|
+
- test/fixtures/vcr_cassettes/eodhd_fundamentals.yml
|
|
229
|
+
- test/fixtures/vcr_cassettes/eodhd_intraday.yml
|
|
230
|
+
- test/fixtures/vcr_cassettes/fundamentals_aapl.yml
|
|
231
|
+
- test/fixtures/vcr_cassettes/fundamentals_cba_au.yml
|
|
196
232
|
- test/gemspec_test.rb
|
|
197
233
|
- test/helper.rb
|
|
198
234
|
homepage: http://github.com/thoran/eodhd
|
|
@@ -213,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
213
249
|
- !ruby/object:Gem::Version
|
|
214
250
|
version: '0'
|
|
215
251
|
requirements: []
|
|
216
|
-
rubygems_version: 4.0.
|
|
252
|
+
rubygems_version: 4.0.22
|
|
217
253
|
specification_version: 4
|
|
218
254
|
summary: Access the eodhd.com API with Ruby.
|
|
219
255
|
test_files: []
|