eodhd.rb 0.18.0 → 0.18.1
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 +7 -0
- data/eodhd.rb.gemspec +1 -4
- data/lib/Eodhd/VERSION.rb +1 -1
- data/lib/Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb +14 -13
- data/lib/Thoran/String/Urlencode/urlencode.rb +29 -0
- metadata +4 -4
- data/lib/Thoran/String/UrlEncode/url_encode.rb +0 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ab9dcc933d673f6d350ed5566a496ca798feec8c4ed8e7b28461957090cbdd0
|
|
4
|
+
data.tar.gz: 55ee2522e79c294c47b1305fc59c7971c8fe2af31d307cae76246736eaea5b36
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6baa626d45145cf812286efdba98fffe0df2e627ace13e2d63b5237d0131f088031ca34055543b96c3a05a944e5a2cd3ee8ee1c2dad4e5c647079b8213c3e8e
|
|
7
|
+
data.tar.gz: 943d415c6809d4cbb2c1438fb6491c72c4b0cb84b3a418bb06055f7e80b788348d2d2a1484887430269f631fe16c00c1cba1be1950885fc754fbdfc226620cf2
|
data/CHANGELOG
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# eodhd.rb/CHANGELOG
|
|
2
2
|
|
|
3
|
+
## [0.18.1] - 2026-07-19, urlencode helper naming consistency
|
|
4
|
+
- /Thoran::String::UrlEncode#url_encode/Thoran::String::Urlencode#urlencode/ (url_encode kept as an alias).
|
|
5
|
+
- /Thoran::Hash::XWwwFormUrlEncode#x_www_form_url_encode/Thoran::Hash::XWwwFormUrlencode#x_www_form_urlencode/ (x_www_form_url_encode kept as an alias).
|
|
6
|
+
- ~ lib/Hash/x_www_form_urlencode.rb: Renamed urlencode require path.
|
|
7
|
+
- ~ eodhd.rb.gemspec: - spec.date (RubyGems stamps the build date); tidy spec.require_paths placement.
|
|
8
|
+
- ~ Eodhd/VERSION: /0.18.0/0.18.1/
|
|
9
|
+
|
|
3
10
|
## [0.18.0] - 2026-03-20, + fundamentals endpoint
|
|
4
11
|
- + Eodhd::Fundamentals: Model for fundamental data with typed sub-objects.
|
|
5
12
|
- + Eodhd::Fundamentals::General
|
data/eodhd.rb.gemspec
CHANGED
|
@@ -12,9 +12,7 @@ end
|
|
|
12
12
|
|
|
13
13
|
Gem::Specification.new do |spec|
|
|
14
14
|
spec.name = 'eodhd.rb'
|
|
15
|
-
|
|
16
15
|
spec.version = Eodhd::VERSION
|
|
17
|
-
spec.date = '2026-03-19'
|
|
18
16
|
|
|
19
17
|
spec.summary = "Access the eodhd.com API with Ruby."
|
|
20
18
|
spec.description = "Access the eodhd.com API with Ruby."
|
|
@@ -24,6 +22,7 @@ Gem::Specification.new do |spec|
|
|
|
24
22
|
spec.homepage = 'http://github.com/thoran/eodhd.rb'
|
|
25
23
|
spec.license = 'MIT'
|
|
26
24
|
|
|
25
|
+
spec.require_paths = ['lib']
|
|
27
26
|
spec.required_ruby_version = '>= 2.7'
|
|
28
27
|
|
|
29
28
|
spec.files = [
|
|
@@ -36,8 +35,6 @@ Gem::Specification.new do |spec|
|
|
|
36
35
|
Dir['test/**/*.rb']
|
|
37
36
|
].flatten
|
|
38
37
|
|
|
39
|
-
spec.require_paths = ['lib']
|
|
40
|
-
|
|
41
38
|
spec.dependencies = %w{
|
|
42
39
|
http.rb
|
|
43
40
|
iodine
|
data/lib/Eodhd/VERSION.rb
CHANGED
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
# Thoran/Hash/
|
|
2
|
-
# Thoran::Hash::
|
|
1
|
+
# Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb
|
|
2
|
+
# Thoran::Hash::XWwwFormUrlencode#x_www_form_urlencode
|
|
3
3
|
|
|
4
|
-
#
|
|
5
|
-
# 0.
|
|
4
|
+
# 20260713
|
|
5
|
+
# 0.3.0
|
|
6
6
|
|
|
7
|
-
# Changes since 0.
|
|
8
|
-
# -/0: (The class name and the snake case name are consistent now.)
|
|
9
|
-
# 1. /
|
|
7
|
+
# Changes since 0.2:
|
|
8
|
+
# -/0: (The class name and the snake case name really are consistent now.)
|
|
9
|
+
# 1. /XWwwFormUrlEncode/XWwwFormUrlencode/
|
|
10
|
+
# 2. /url_encode/urlencode/
|
|
10
11
|
|
|
11
|
-
require 'Thoran/String/
|
|
12
|
+
require 'Thoran/String/Urlencode/urlencode'
|
|
12
13
|
|
|
13
14
|
module Thoran
|
|
14
15
|
module Hash
|
|
15
|
-
module
|
|
16
|
+
module XWwwFormUrlencode
|
|
16
17
|
|
|
17
|
-
def
|
|
18
|
-
inject([]){|a,e| a << "#{e.first.to_s.
|
|
18
|
+
def x_www_form_urlencode(joiner = '&')
|
|
19
|
+
inject([]){|a,e| a << "#{e.first.to_s.urlencode}=#{e.last.to_s.urlencode}" unless e.last.nil?; a}.join(joiner)
|
|
19
20
|
end
|
|
20
|
-
alias_method :
|
|
21
|
+
alias_method :x_www_form_url_encode, :x_www_form_urlencode
|
|
21
22
|
|
|
22
23
|
end
|
|
23
24
|
end
|
|
24
25
|
end
|
|
25
26
|
|
|
26
|
-
Hash.send(:include, Thoran::Hash::
|
|
27
|
+
Hash.send(:include, Thoran::Hash::XWwwFormUrlencode)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Thoran/String/Urlencode/urlencode.rb
|
|
2
|
+
# Thoran::String::Urlencode#urlencode
|
|
3
|
+
|
|
4
|
+
# 20260713
|
|
5
|
+
# 0.4.0
|
|
6
|
+
|
|
7
|
+
# Acknowledgements: I've simply ripped off and refashioned the code from the CGI module!...
|
|
8
|
+
|
|
9
|
+
# Changes since 0.3:
|
|
10
|
+
# -/0: More consistent naming.
|
|
11
|
+
# 1. /UrlEncode/Urlencode/
|
|
12
|
+
# 2. /url_encode/urlencode/
|
|
13
|
+
|
|
14
|
+
module Thoran
|
|
15
|
+
module String
|
|
16
|
+
module Urlencode
|
|
17
|
+
|
|
18
|
+
def urlencode
|
|
19
|
+
self.gsub(/([^ a-zA-Z0-9_.-]+)/n) do
|
|
20
|
+
'%' + $1.unpack('H2' * $1.size).join('%').upcase
|
|
21
|
+
end.tr(' ', '+')
|
|
22
|
+
end
|
|
23
|
+
alias_method :url_encode, :urlencode
|
|
24
|
+
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
String.send(:include, Thoran::String::Urlencode)
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: eodhd.rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.18.
|
|
4
|
+
version: 0.18.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- thoran
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: http.rb
|
|
@@ -172,7 +172,7 @@ files:
|
|
|
172
172
|
- lib/Eodhd/WebSocketClient.rb
|
|
173
173
|
- lib/Hash/x_www_form_urlencode.rb
|
|
174
174
|
- lib/Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb
|
|
175
|
-
- lib/Thoran/String/
|
|
175
|
+
- lib/Thoran/String/Urlencode/urlencode.rb
|
|
176
176
|
- lib/eodhd.rb
|
|
177
177
|
- test/Eodhd/Client_test.rb
|
|
178
178
|
- test/Eodhd/Fundamentals_test.rb
|
|
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
198
198
|
- !ruby/object:Gem::Version
|
|
199
199
|
version: '0'
|
|
200
200
|
requirements: []
|
|
201
|
-
rubygems_version: 4.0.
|
|
201
|
+
rubygems_version: 4.0.16
|
|
202
202
|
specification_version: 4
|
|
203
203
|
summary: Access the eodhd.com API with Ruby.
|
|
204
204
|
test_files: []
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# Thoran/String/UrlEncode/url_encode.rb
|
|
2
|
-
# Thoran::String::UrlEncode#url_encode
|
|
3
|
-
|
|
4
|
-
# 20160505
|
|
5
|
-
# 0.3.0
|
|
6
|
-
|
|
7
|
-
# Acknowledgements: I've simply ripped off and refashioned the code from the CGI module!...
|
|
8
|
-
|
|
9
|
-
# Changes since 0.2:
|
|
10
|
-
# 1. + Thoran namespace.
|
|
11
|
-
|
|
12
|
-
module Thoran
|
|
13
|
-
module String
|
|
14
|
-
module UrlEncode
|
|
15
|
-
|
|
16
|
-
def url_encode
|
|
17
|
-
self.gsub(/([^ a-zA-Z0-9_.-]+)/n) do
|
|
18
|
-
'%' + $1.unpack('H2' * $1.size).join('%').upcase
|
|
19
|
-
end.tr(' ', '+')
|
|
20
|
-
end
|
|
21
|
-
|
|
22
|
-
end
|
|
23
|
-
end
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
String.send(:include, Thoran::String::UrlEncode)
|