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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c96a54dc7124036098037626b7356f343bb1f43d647b1c17c16b4e9e11cd6c6
4
- data.tar.gz: 71c645d8e47a50971d44b1742e727ebe1497d312fd0ccf4af504aa796147964a
3
+ metadata.gz: 72b64180485bc086dd1306c1269feaf9a3bd10fe7ad7a43da2c1731043004908
4
+ data.tar.gz: 8fb6a353e72d30bc9dec792a2ce4f356b74a4e62506887f09d56b2d4ba68ec4d
5
5
  SHA512:
6
- metadata.gz: b20d4cddf4eee55eb6c99600e54618ab9fb236c2a0b00a593f838eaace88d0d7278994c1ad8019ff7db5b53525aff16b1a9b20c820a5e40ae371e14b2c097ec7
7
- data.tar.gz: fcabde4719ecd553972d3fedaa29652435e0007813c4cb538b0065f199c427e4a4ba7e38774c22c8c9edc1a4245b3816e9daca404ab4f5f1476d1fa227dad7fe
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.4'
5
- spec.date = '2024-10-09'
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
- def log_filename
17
- File.expand_path('~/log/eodhd/log.txt')
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.open(log_filename, File::WRONLY | File::APPEND | File::CREAT)
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
File without changes
data/lib/Eodhd/EodData.rb CHANGED
File without changes
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
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: 2024-10-09 00:00:00.000000000 Z
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.21
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: []