eodhd.rb 0.13.4 → 0.13.5
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/eodhd.rb.gemspec +2 -2
- data/lib/Eodhd/Client.rb +11 -3
- data/lib/Eodhd/EodBulkLastDay.rb +0 -0
- data/lib/Eodhd/EodData.rb +0 -0
- data/lib/Eodhd/Exchange.rb +0 -0
- data/lib/Eodhd/ExchangeSymbol.rb +0 -0
- data/lib/Hash/x_www_form_urlencode.rb +0 -0
- data/lib/Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb +0 -0
- data/lib/Thoran/String/UrlEncode/url_encode.rb +0 -0
- data/lib/eodhd.rb +0 -0
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72b64180485bc086dd1306c1269feaf9a3bd10fe7ad7a43da2c1731043004908
|
4
|
+
data.tar.gz: 8fb6a353e72d30bc9dec792a2ce4f356b74a4e62506887f09d56b2d4ba68ec4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37ae6f52d8be92689d04a2b695d505c11ddd083b9f7d15d41ba9b367a27b8b1c3f61868055832c38257bef95bb282e051f0a3838f8aab18f3f266927d7c1ab0c
|
7
|
+
data.tar.gz: 0e9a591954d3a57e89c7e106ff09769e67d6aa5936fc5904b9de96d4eb499cd01d5c70564ef389b1dd504f3bfe0cd53cd088b6c70972703cd044c5f2496d6bb1
|
data/eodhd.rb.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = 'eodhd.rb'
|
3
3
|
|
4
|
-
spec.version = '0.13.
|
5
|
-
spec.date = '
|
4
|
+
spec.version = '0.13.5'
|
5
|
+
spec.date = '2025-03-19'
|
6
6
|
|
7
7
|
spec.summary = "Access the eodhd.com API with Ruby."
|
8
8
|
spec.description = "Access the eodhd.com API with Ruby."
|
data/lib/Eodhd/Client.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# Eodhd/Client.rb
|
2
2
|
# Eodhd::Client
|
3
3
|
|
4
|
+
require 'fileutils'
|
4
5
|
require 'Hash/x_www_form_urlencode'
|
5
6
|
gem 'http.rb'
|
6
7
|
require 'http.rb'
|
@@ -13,12 +14,19 @@ class Eodhd
|
|
13
14
|
API_HOST = 'eodhd.com'
|
14
15
|
|
15
16
|
class << self
|
16
|
-
|
17
|
-
|
17
|
+
attr_writer :log_file_path
|
18
|
+
|
19
|
+
def default_log_file_path
|
20
|
+
File.join(%w{~ log eodhd log.txt})
|
21
|
+
end
|
22
|
+
|
23
|
+
def log_file_path
|
24
|
+
File.expand_path(@log_file_path || default_log_file_path)
|
18
25
|
end
|
19
26
|
|
20
27
|
def log_file
|
21
|
-
File.
|
28
|
+
FileUtils.mkdir_p(File.dirname(log_file_path))
|
29
|
+
File.open(log_file_path, File::WRONLY | File::APPEND | File::CREAT)
|
22
30
|
end
|
23
31
|
|
24
32
|
def logger
|
data/lib/Eodhd/EodBulkLastDay.rb
CHANGED
File without changes
|
data/lib/Eodhd/EodData.rb
CHANGED
File without changes
|
data/lib/Eodhd/Exchange.rb
CHANGED
File without changes
|
data/lib/Eodhd/ExchangeSymbol.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/lib/eodhd.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eodhd.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- thoran
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-03-19 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: http.rb
|
@@ -46,7 +45,6 @@ homepage: http://github.com/thoran/eodhd.rb
|
|
46
45
|
licenses:
|
47
46
|
- Ruby
|
48
47
|
metadata: {}
|
49
|
-
post_install_message:
|
50
48
|
rdoc_options: []
|
51
49
|
require_paths:
|
52
50
|
- lib
|
@@ -61,8 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
59
|
- !ruby/object:Gem::Version
|
62
60
|
version: '0'
|
63
61
|
requirements: []
|
64
|
-
rubygems_version: 3.5
|
65
|
-
signing_key:
|
62
|
+
rubygems_version: 3.6.5
|
66
63
|
specification_version: 4
|
67
64
|
summary: Access the eodhd.com API with Ruby.
|
68
65
|
test_files: []
|