yf_as_dataframe 0.5.1 → 0.5.2
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.rst +6 -0
- data/Gemfile.lock +83 -68
- data/lib/yf_as_dataframe/version.rb +1 -1
- data/lib/yf_as_dataframe/yf_connection.rb +7 -1
- data/yf_as_dataframe.gemspec +57 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 25f8189375f46a246f360ba5a2913d14dccdb1c150ad7343e41098c47e98ba0e
|
|
4
|
+
data.tar.gz: ddf29ce6ceebfd684bc5b42d1f6378607c64d3bf2b8e367b0dbba3ff3a12d903
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 17fcf57fd369295541619b86d944cb3eb8d690dcf9e511e4f84095a2ae4f22e191db18829921d656a583f56e0e420775b5ea2fff98b5ae7140286fbfed646bf4
|
|
7
|
+
data.tar.gz: 8cb54120ece5014fb1783e7a2fb996bd8874ab172beac44a3abf17674b0138055e5549f9faf4bbde76b4c5e7e88c02605f81511e36b302518d357ffbc7ad6b41
|
data/CHANGELOG.rst
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
0.5.2
|
|
2
|
+
=====
|
|
3
|
+
|
|
4
|
+
* Update locked dependencies to current releases, including Active Support 8.1.4.1, Nokogiri 1.19.7, Addressable 2.10.0, and HTTParty 0.25.1.
|
|
5
|
+
* Treat an empty HTTParty body as a failed Yahoo response without calling the deprecated ``Response#nil?``.
|
|
6
|
+
|
|
1
7
|
0.5.1
|
|
2
8
|
=====
|
|
3
9
|
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
yf_as_dataframe (0.
|
|
4
|
+
yf_as_dataframe (0.5.2)
|
|
5
5
|
activesupport
|
|
6
6
|
httparty
|
|
7
7
|
nokogiri
|
|
@@ -14,7 +14,7 @@ PATH
|
|
|
14
14
|
GEM
|
|
15
15
|
remote: https://rubygems.org/
|
|
16
16
|
specs:
|
|
17
|
-
activesupport (8.1.
|
|
17
|
+
activesupport (8.1.4.1)
|
|
18
18
|
base64
|
|
19
19
|
bigdecimal
|
|
20
20
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -27,50 +27,50 @@ GEM
|
|
|
27
27
|
securerandom (>= 0.3)
|
|
28
28
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
29
29
|
uri (>= 0.13.1)
|
|
30
|
-
addressable (2.
|
|
30
|
+
addressable (2.10.0)
|
|
31
31
|
public_suffix (>= 2.0.2, < 8.0)
|
|
32
32
|
ast (2.4.3)
|
|
33
33
|
base64 (0.3.0)
|
|
34
|
-
bigdecimal (4.1.
|
|
34
|
+
bigdecimal (4.1.3)
|
|
35
35
|
concurrent-ruby (1.3.8)
|
|
36
|
-
connection_pool (3.0.
|
|
36
|
+
connection_pool (3.0.3)
|
|
37
37
|
crack (1.0.1)
|
|
38
38
|
bigdecimal
|
|
39
39
|
rexml
|
|
40
|
-
csv (3.3.
|
|
40
|
+
csv (3.3.7)
|
|
41
41
|
diff-lcs (1.6.2)
|
|
42
42
|
drb (2.2.3)
|
|
43
|
-
hashdiff (1.
|
|
44
|
-
httparty (0.
|
|
43
|
+
hashdiff (1.3.0)
|
|
44
|
+
httparty (0.25.1)
|
|
45
45
|
csv
|
|
46
46
|
mini_mime (>= 1.0.0)
|
|
47
47
|
multi_xml (>= 0.5.2)
|
|
48
48
|
i18n (1.15.2)
|
|
49
49
|
concurrent-ruby (~> 1.0)
|
|
50
|
-
json (2.
|
|
50
|
+
json (3.2.0)
|
|
51
51
|
language_server-protocol (3.17.0.6)
|
|
52
52
|
lint_roller (1.1.0)
|
|
53
53
|
logger (1.7.0)
|
|
54
54
|
mini_mime (1.1.5)
|
|
55
|
-
minitest (6.0
|
|
55
|
+
minitest (6.1.0)
|
|
56
56
|
drb (~> 2.0)
|
|
57
|
-
prism (
|
|
57
|
+
prism (>= 1.5, < 3)
|
|
58
58
|
multi_xml (0.9.1)
|
|
59
59
|
bigdecimal (>= 3.1, < 5)
|
|
60
|
-
nokogiri (1.19.
|
|
60
|
+
nokogiri (1.19.7-aarch64-linux-gnu)
|
|
61
61
|
racc (~> 1.4)
|
|
62
|
-
nokogiri (1.19.
|
|
62
|
+
nokogiri (1.19.7-aarch64-linux-musl)
|
|
63
63
|
racc (~> 1.4)
|
|
64
|
-
nokogiri (1.19.
|
|
64
|
+
nokogiri (1.19.7-arm64-darwin)
|
|
65
65
|
racc (~> 1.4)
|
|
66
|
-
nokogiri (1.19.
|
|
66
|
+
nokogiri (1.19.7-x86_64-darwin)
|
|
67
67
|
racc (~> 1.4)
|
|
68
|
-
nokogiri (1.19.
|
|
68
|
+
nokogiri (1.19.7-x86_64-linux-gnu)
|
|
69
69
|
racc (~> 1.4)
|
|
70
|
-
nokogiri (1.19.
|
|
70
|
+
nokogiri (1.19.7-x86_64-linux-musl)
|
|
71
71
|
racc (~> 1.4)
|
|
72
|
-
parallel (2.
|
|
73
|
-
parser (3.3.
|
|
72
|
+
parallel (2.3.0)
|
|
73
|
+
parser (3.3.14.0)
|
|
74
74
|
ast (~> 2.4.1)
|
|
75
75
|
racc
|
|
76
76
|
polars-df (0.27.1-aarch64-linux)
|
|
@@ -79,53 +79,60 @@ GEM
|
|
|
79
79
|
polars-df (0.27.1-x86_64-darwin)
|
|
80
80
|
polars-df (0.27.1-x86_64-linux)
|
|
81
81
|
polars-df (0.27.1-x86_64-linux-musl)
|
|
82
|
-
prism (1.
|
|
82
|
+
prism (2.1.0-aarch64-linux-gnu)
|
|
83
|
+
prism (2.1.0-aarch64-linux-musl)
|
|
84
|
+
prism (2.1.0-arm64-darwin)
|
|
85
|
+
prism (2.1.0-x86_64-darwin)
|
|
86
|
+
prism (2.1.0-x86_64-linux-gnu)
|
|
87
|
+
prism (2.1.0-x86_64-linux-musl)
|
|
83
88
|
public_suffix (7.0.5)
|
|
84
89
|
racc (1.8.1)
|
|
85
90
|
rainbow (3.1.1)
|
|
86
91
|
rake (13.4.2)
|
|
87
|
-
regexp_parser (2.
|
|
92
|
+
regexp_parser (2.13.4)
|
|
88
93
|
rexml (3.4.4)
|
|
89
94
|
rspec (3.13.2)
|
|
90
95
|
rspec-core (~> 3.13.0)
|
|
91
96
|
rspec-expectations (~> 3.13.0)
|
|
92
97
|
rspec-mocks (~> 3.13.0)
|
|
93
|
-
rspec-core (3.13.
|
|
98
|
+
rspec-core (3.13.7)
|
|
94
99
|
rspec-support (~> 3.13.0)
|
|
95
|
-
rspec-expectations (3.13.
|
|
100
|
+
rspec-expectations (3.13.6)
|
|
96
101
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
97
102
|
rspec-support (~> 3.13.0)
|
|
98
|
-
rspec-mocks (3.13.
|
|
103
|
+
rspec-mocks (3.13.9)
|
|
99
104
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
100
105
|
rspec-support (~> 3.13.0)
|
|
101
|
-
rspec-support (3.13.
|
|
102
|
-
rubocop (1.
|
|
106
|
+
rspec-support (3.13.8)
|
|
107
|
+
rubocop (1.92.3)
|
|
103
108
|
json (>= 2.3)
|
|
104
109
|
language_server-protocol (~> 3.17.0.2)
|
|
105
110
|
lint_roller (~> 1.1.0)
|
|
106
111
|
parallel (>= 1.10)
|
|
107
112
|
parser (>= 3.3.0.2)
|
|
108
113
|
rainbow (>= 2.2.2, < 4.0)
|
|
109
|
-
regexp_parser (>= 2.
|
|
114
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
110
115
|
rubocop-ast (>= 1.49.0, < 2.0)
|
|
111
116
|
ruby-progressbar (~> 1.7)
|
|
112
117
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
113
|
-
rubocop-ast (1.
|
|
118
|
+
rubocop-ast (1.53.0)
|
|
119
|
+
ast (~> 2.4)
|
|
114
120
|
parser (>= 3.3.7.2)
|
|
115
|
-
prism (
|
|
121
|
+
prism (>= 1.7)
|
|
122
|
+
racc
|
|
116
123
|
ruby-progressbar (1.13.0)
|
|
117
124
|
securerandom (0.4.1)
|
|
118
125
|
tulirb (1.0.0)
|
|
119
126
|
tzinfo (2.0.6)
|
|
120
127
|
concurrent-ruby (~> 1.0)
|
|
121
|
-
tzinfo-data (1.2026.
|
|
128
|
+
tzinfo-data (1.2026.6)
|
|
122
129
|
tzinfo (>= 1.0.0)
|
|
123
|
-
unicode-display_width (3.
|
|
124
|
-
unicode-emoji (~> 4.
|
|
125
|
-
unicode-emoji (4.
|
|
126
|
-
uri (1.1.
|
|
127
|
-
vcr (6.4.
|
|
128
|
-
webmock (3.
|
|
130
|
+
unicode-display_width (3.3.0)
|
|
131
|
+
unicode-emoji (~> 4.3)
|
|
132
|
+
unicode-emoji (4.3.0)
|
|
133
|
+
uri (1.1.2)
|
|
134
|
+
vcr (6.4.1)
|
|
135
|
+
webmock (3.40.0)
|
|
129
136
|
addressable (>= 2.8.0)
|
|
130
137
|
crack (>= 0.3.2)
|
|
131
138
|
hashdiff (>= 0.4.0, < 2.0.0)
|
|
@@ -149,68 +156,76 @@ DEPENDENCIES
|
|
|
149
156
|
yf_as_dataframe!
|
|
150
157
|
|
|
151
158
|
CHECKSUMS
|
|
152
|
-
activesupport (8.1.
|
|
153
|
-
addressable (2.
|
|
159
|
+
activesupport (8.1.4.1) sha256=16ac4f341ca65c85a1fcdb8ac73f68891aae9e3c4a6f9c3a27daed8b00017ed7
|
|
160
|
+
addressable (2.10.0) sha256=5e13b9c001adf01dd65ad6e0d2a91d2bc07885c0ff2b83f48cbcd95e08d9de62
|
|
154
161
|
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
155
162
|
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
156
|
-
bigdecimal (4.1.
|
|
163
|
+
bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
|
|
157
164
|
bundler (4.0.19) sha256=b48056e4c77fb3853cc47775b5447ede44aaa4f53c32f168014ab4fe86587d47
|
|
158
165
|
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
|
159
|
-
connection_pool (3.0.
|
|
166
|
+
connection_pool (3.0.3) sha256=e0f8ee3ee0039396753e06e8a2dde0ef028e40f7df29e97f57da7577c489cb5e
|
|
160
167
|
crack (1.0.1) sha256=ff4a10390cd31d66440b7524eb1841874db86201d5b70032028553130b6d4c7e
|
|
161
|
-
csv (3.3.
|
|
168
|
+
csv (3.3.7) sha256=15a3f16f6628da8664d455eb634e7f22031bcf53044923caf56975109e71b9f8
|
|
162
169
|
diff-lcs (1.6.2) sha256=9ae0d2cba7d4df3075fe8cd8602a8604993efc0dfa934cff568969efb1909962
|
|
163
170
|
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
164
|
-
hashdiff (1.
|
|
165
|
-
httparty (0.
|
|
171
|
+
hashdiff (1.3.0) sha256=0b6724b8f3fef3961acc09489b175698ce0b7fd22c9cc5aa559d280cc6b65649
|
|
172
|
+
httparty (0.25.1) sha256=354f84b766f9a3e077d64fc8b61a71c88e7c8a890eac4178d30d3269458c1dc5
|
|
166
173
|
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
167
|
-
json (2.
|
|
174
|
+
json (3.2.0) sha256=4a4e222a9ee6ffb296ab3171b6b39d85fec83afc4e7b57eee17edf68c74aec87
|
|
168
175
|
language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
|
|
169
176
|
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
170
177
|
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
171
178
|
mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef
|
|
172
|
-
minitest (6.0
|
|
179
|
+
minitest (6.1.0) sha256=ff373595aa8888631e8a5463986a76b3845346ae6d7fa46e139c1633d418076e
|
|
173
180
|
multi_xml (0.9.1) sha256=7ce766b59c17241ed62976caeae1fae9b2431b263398c35396239a68c4a64e57
|
|
174
|
-
nokogiri (1.19.
|
|
175
|
-
nokogiri (1.19.
|
|
176
|
-
nokogiri (1.19.
|
|
177
|
-
nokogiri (1.19.
|
|
178
|
-
nokogiri (1.19.
|
|
179
|
-
nokogiri (1.19.
|
|
180
|
-
parallel (2.
|
|
181
|
-
parser (3.3.
|
|
181
|
+
nokogiri (1.19.7-aarch64-linux-gnu) sha256=8f5e15d299602456406e1f03a9f3456cceb33a0722811e818d2ee2214eb4c84a
|
|
182
|
+
nokogiri (1.19.7-aarch64-linux-musl) sha256=efe0c3602e6e54521bc21c681930ce5568e2d11203de17400710b2b3ca2e4cb4
|
|
183
|
+
nokogiri (1.19.7-arm64-darwin) sha256=f27d7f25f4873fbc3aa35a2cc2fb680c98555fec1925348da439d0869d541142
|
|
184
|
+
nokogiri (1.19.7-x86_64-darwin) sha256=508e81e8c5f84aaa240dce981bf1c43faae60808726f0ce7024ee92effc5cafe
|
|
185
|
+
nokogiri (1.19.7-x86_64-linux-gnu) sha256=25865ccb462f714e712fdf8906fde07849cb6704a808e3d629d75baa5af5dd3b
|
|
186
|
+
nokogiri (1.19.7-x86_64-linux-musl) sha256=464d1f3dfb0d53cf54c0c6a7e23e8e91cf68ec3cafc2b27dc4a7682f2d9bf546
|
|
187
|
+
parallel (2.3.0) sha256=f75a3e904101ce6a1ccb6b8dc800cbafd42166d83330192438dcf29395167a6f
|
|
188
|
+
parser (3.3.14.0) sha256=62f8f76af7b919425ee2d811880e9dcb8011ab40bfd59970dfb583141697e58f
|
|
182
189
|
polars-df (0.27.1-aarch64-linux) sha256=d85cedc6574fc66b1084a72380243ee73e7f8e6cdcf098c08c929dfafb429c83
|
|
183
190
|
polars-df (0.27.1-aarch64-linux-musl) sha256=e70f9b19453707be8e951b87b6a119e50e4cb8461e550f13568e655a52ae0c81
|
|
184
191
|
polars-df (0.27.1-arm64-darwin) sha256=e059d3a0f53e9d3a3484396c58ef42801d463becc4af632adf78a606d1117f97
|
|
185
192
|
polars-df (0.27.1-x86_64-darwin) sha256=cf8389bd81ec0e3ed7bbf8aa7078de88bcb72ebae445cbc52d4619ade6dfb181
|
|
186
193
|
polars-df (0.27.1-x86_64-linux) sha256=3cb35fe50bfd783845976e6bc567a560d547dbded8a96887a2d5a658d01396e2
|
|
187
194
|
polars-df (0.27.1-x86_64-linux-musl) sha256=6ad62495e0385df6305368bdd45d61b1baea2193f269737fbe03ed4fe4236595
|
|
188
|
-
prism (1.
|
|
195
|
+
prism (2.1.0-aarch64-linux-gnu) sha256=808dddc72def68e1a0463689414c97e0ba211938eddbab05387a4844aa2b3ec2
|
|
196
|
+
prism (2.1.0-aarch64-linux-musl) sha256=dd1a0732620c1e575dabb07a297a62911fabd72f8e20ce850b522a866f877930
|
|
197
|
+
prism (2.1.0-arm64-darwin) sha256=2d0c2e3e011cfd89c041940907d3ff3def379d7b0f2ba158d1d42238e8ad8afc
|
|
198
|
+
prism (2.1.0-x86_64-darwin) sha256=6c645d8e6afc742956c7518220ce5106367727c4d9980ac9ab386d55004ddab4
|
|
199
|
+
prism (2.1.0-x86_64-linux-gnu) sha256=b2b647afce09551e650b8bb3e2fc91d7d73d392a09534ca307ec0d619c33bfd4
|
|
200
|
+
prism (2.1.0-x86_64-linux-musl) sha256=249f45981726923e259b927902246219fa25ad10a76f43849c9aee1a3d3ec5b8
|
|
189
201
|
public_suffix (7.0.5) sha256=1a8bb08f1bbea19228d3bed6e5ed908d1cb4f7c2726d18bd9cadf60bc676f623
|
|
190
202
|
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
191
203
|
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
192
204
|
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
|
|
193
|
-
regexp_parser (2.
|
|
205
|
+
regexp_parser (2.13.4) sha256=1d0547814f57e6f00946957bd0ca201bc42f42cfb08eee89df60998aedcd8a3b
|
|
194
206
|
rexml (3.4.4) sha256=19e0a2c3425dfbf2d4fc1189747bdb2f849b6c5e74180401b15734bc97b5d142
|
|
195
207
|
rspec (3.13.2) sha256=206284a08ad798e61f86d7ca3e376718d52c0bc944626b2349266f239f820587
|
|
196
|
-
rspec-core (3.13.
|
|
197
|
-
rspec-expectations (3.13.
|
|
198
|
-
rspec-mocks (3.13.
|
|
199
|
-
rspec-support (3.13.
|
|
200
|
-
rubocop (1.
|
|
201
|
-
rubocop-ast (1.
|
|
208
|
+
rspec-core (3.13.7) sha256=c64ff16d9788119805cbc6a3f4b6d87cc22417c2d25976a3330de136896b5469
|
|
209
|
+
rspec-expectations (3.13.6) sha256=bf538ca6d367ff5b0d85a87fdb5c0c6038f2cd1308a0eeba07476caa02d22f35
|
|
210
|
+
rspec-mocks (3.13.9) sha256=ea5c7ff3054a6098ca6039aacef80aec69d5a8a3ef80be8fc88337359b672a30
|
|
211
|
+
rspec-support (3.13.8) sha256=e4160030309b7e3e9d9863dfe720a35dfcc577162f5402cd68fc8c5258a0ffd6
|
|
212
|
+
rubocop (1.92.3) sha256=fd77feac46e8e91c3a534f868a1702c59f5bf8173515fd00a3c6ce1198672ff6
|
|
213
|
+
rubocop-ast (1.53.0) sha256=027984d28485d6502ae4c72f9341080f54f538599f5dbb54f81875a4ddcad574
|
|
202
214
|
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
203
215
|
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
204
216
|
tulirb (1.0.0) sha256=5f2f9889976014581801106f3ef21ff63ab94a9c1d291557e7dfdf8871c73379
|
|
205
217
|
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
206
|
-
tzinfo-data (1.2026.
|
|
207
|
-
unicode-display_width (3.
|
|
208
|
-
unicode-emoji (4.
|
|
209
|
-
uri (1.1.
|
|
210
|
-
vcr (6.4.
|
|
211
|
-
webmock (3.
|
|
212
|
-
yf_as_dataframe (0.
|
|
218
|
+
tzinfo-data (1.2026.6) sha256=fefda3d5a0f26730d7464f2853ceb021cb2eb1f1f504da2108ea1ce5d5309670
|
|
219
|
+
unicode-display_width (3.3.0) sha256=4b7aa66a4b11db50f6f7e98411215cd0dd10eaecb665d36eec5bcacb3fa0b613
|
|
220
|
+
unicode-emoji (4.3.0) sha256=11c02fa73290378c066bb0562cd4c87d8e1b706fbbe0059ca12746a4244de8ce
|
|
221
|
+
uri (1.1.2) sha256=89292e98eabbef6248b0a0ed5e7e398e152f83f17560023a6d94a7f492b169fb
|
|
222
|
+
vcr (6.4.1) sha256=74870fc87d1bdf1f24e847f57977ac9a5e55cde681f56f1172c7c82dc9f006aa
|
|
223
|
+
webmock (3.40.0) sha256=6d88e99c220e911dc4451f1a3e7077c40c205df3583e162a10d5f1f29f5a9790
|
|
224
|
+
yf_as_dataframe (0.5.2)
|
|
213
225
|
zache (0.15.2) sha256=0192d9fe0081e6c83ec051630f3347d8692a7309094066b9aadaa481175707bd
|
|
214
226
|
|
|
227
|
+
RUBY VERSION
|
|
228
|
+
ruby 3.3.6
|
|
229
|
+
|
|
215
230
|
BUNDLED WITH
|
|
216
231
|
4.0.19
|
|
@@ -508,7 +508,8 @@ class YfAsDataframe
|
|
|
508
508
|
end
|
|
509
509
|
|
|
510
510
|
def response_failure?(response)
|
|
511
|
-
|
|
511
|
+
# HTTParty::Response#nil? is deprecated and treats an empty body as nil.
|
|
512
|
+
return true if response.equal?(nil) || _blank_http_body?(response)
|
|
512
513
|
return true if response.code >= 400
|
|
513
514
|
return true if response.body.to_s.include?("Too Many Requests")
|
|
514
515
|
return true if response.body.to_s.include?("Will be right back")
|
|
@@ -516,6 +517,11 @@ class YfAsDataframe
|
|
|
516
517
|
false
|
|
517
518
|
end
|
|
518
519
|
|
|
520
|
+
def _blank_http_body?(response)
|
|
521
|
+
body = response.body
|
|
522
|
+
body.nil? || body.empty?
|
|
523
|
+
end
|
|
524
|
+
|
|
519
525
|
def circuit_breaker_status
|
|
520
526
|
{
|
|
521
527
|
state: @@circuit_breaker_state,
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/yf_as_dataframe/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "yf_as_dataframe"
|
|
7
|
+
spec.version = YfAsDataframe::VERSION
|
|
8
|
+
spec.authors = ["Bill McKinnon"]
|
|
9
|
+
spec.email = ["bill@bmck.org"]
|
|
10
|
+
|
|
11
|
+
spec.summary = "A shameless port of python's yfinance module to ruby"
|
|
12
|
+
spec.description = "Download market data from Yahoo! Finance's API"
|
|
13
|
+
spec.homepage = "https://www.github.com/bmck/yf_as_dataframe"
|
|
14
|
+
spec.license = "MIT"
|
|
15
|
+
spec.required_ruby_version = ">= 3.3"
|
|
16
|
+
|
|
17
|
+
# spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
|
|
18
|
+
|
|
19
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
20
|
+
spec.metadata["source_code_uri"] = "https://github.com/bmck/yf_as_dataframe"
|
|
21
|
+
spec.metadata["changelog_uri"] = "https://github.com/bmck/yf_as_dataframe/CHANGELOG.rst"
|
|
22
|
+
|
|
23
|
+
# Specify which files should be added to the gem when it is released.
|
|
24
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
25
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
26
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
|
27
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
|
28
|
+
end
|
|
29
|
+
end
|
|
30
|
+
# spec.bindir = "exe"
|
|
31
|
+
# spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
32
|
+
spec.require_paths = ["lib"]
|
|
33
|
+
|
|
34
|
+
# Uncomment to register a new dependency of your gem
|
|
35
|
+
# spec.add_dependency "typhoeus-gem", "~> 0.6.9"
|
|
36
|
+
spec.add_dependency "tzinfo"
|
|
37
|
+
spec.add_dependency "tzinfo-data"
|
|
38
|
+
spec.add_dependency "polars-df", "0.27.1"
|
|
39
|
+
spec.add_dependency 'zache'
|
|
40
|
+
spec.add_dependency 'httparty'
|
|
41
|
+
spec.add_dependency 'tulirb'
|
|
42
|
+
spec.add_dependency 'nokogiri'
|
|
43
|
+
spec.add_dependency 'activesupport'
|
|
44
|
+
|
|
45
|
+
# External binary. Homebrew core builds lexiforest/curl-impersonate v2.3.2.
|
|
46
|
+
spec.requirements << "curl-impersonate (Homebrew): brew install curl-impersonate"
|
|
47
|
+
|
|
48
|
+
# Development dependencies
|
|
49
|
+
spec.add_development_dependency 'rspec', '~> 3.13'
|
|
50
|
+
spec.add_development_dependency 'webmock', '~> 3.23'
|
|
51
|
+
spec.add_development_dependency 'vcr', '~> 6.2'
|
|
52
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
|
53
|
+
spec.add_development_dependency 'rubocop', '~> 1.21'
|
|
54
|
+
|
|
55
|
+
# For more information and examples about making a new gem, check out our
|
|
56
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
|
57
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: yf_as_dataframe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bill McKinnon
|
|
@@ -229,6 +229,7 @@ files:
|
|
|
229
229
|
- lib/yf_as_dataframe/yf_connection.rb
|
|
230
230
|
- lib/yf_as_dataframe/yf_connection_minimal_patch.rb
|
|
231
231
|
- lib/yf_as_dataframe/yfinance_exception.rb
|
|
232
|
+
- yf_as_dataframe.gemspec
|
|
232
233
|
homepage: https://www.github.com/bmck/yf_as_dataframe
|
|
233
234
|
licenses:
|
|
234
235
|
- MIT
|