ny_frb_as_dataframe 0.1.1 → 0.2.0
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/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +2 -0
- data/README.md +15 -5
- data/lib/ny_frb_as_dataframe/version.rb +1 -1
- data/ny_frb_as_dataframe.gemspec +2 -2
- data/test_basic.rb +36 -0
- metadata +10 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4aebe6abb396a8467fb0f58207f1b54bde77ef540e791158e6f760e13dfad4d6
|
|
4
|
+
data.tar.gz: ba7f4ea3565b00e7ba432a7f33100a74ce7aaf5c2a6a71b85b06116a769f08a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd194e5550a7ea3ffae2f91e1f0e0f3fb4bab1477d81e83f14abd1a759c3e1c6dbfa622f00ef75f9ca22891192ac9dc3acd86a72052c0bf4df34bb5cbff37b08
|
|
7
|
+
data.tar.gz: b2e826ea2cec42556648f14af33b5a9bcad48c6ce1a7e14470b74407860f7c685e8707475b86685504eaea76cb78874c0d4094b8890b0122221e844d0f183d5a
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.3.0
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -22,8 +22,8 @@ Or install it yourself as:
|
|
|
22
22
|
|
|
23
23
|
## Usage
|
|
24
24
|
|
|
25
|
-
```
|
|
26
|
-
3.
|
|
25
|
+
```ruby
|
|
26
|
+
3.3.0 :001 > NyFrbAsDataframe::Hhdc.new.fetch # Fetches all data
|
|
27
27
|
=>
|
|
28
28
|
shape: (102, 103)
|
|
29
29
|
┌────────────┬───────────────────┬────────────────────┬────────────────────────┬───┬────────────────────────┬────────────────────────┬────────────────────────┬───────────────────────┐
|
|
@@ -135,7 +135,7 @@ shape: (102, 103)
|
|
|
135
135
|
│ 2024-01-01 ┆ 12.442 ┆ 0.376 ┆ 1.616 ┆ … ┆ 30.2 ┆ 28.66 ┆ 18.3 ┆ 9.88 │
|
|
136
136
|
│ 2024-04-01 ┆ 12.519 ┆ 0.38 ┆ 1.626 ┆ … ┆ 34.26 ┆ 31.0 ┆ 18.92 ┆ 11.42 │
|
|
137
137
|
└────────────┴───────────────────┴────────────────────┴────────────────────────┴───┴────────────────────────┴────────────────────────┴────────────────────────┴───────────────────────┘
|
|
138
|
-
3.
|
|
138
|
+
3.3.0 :002 > NyFrbAsDataframe::Hhdc.new('Mort Debt Balance ($T)').fetch
|
|
139
139
|
=>
|
|
140
140
|
shape: (102, 2)
|
|
141
141
|
┌────────────┬────────────────────────┐
|
|
@@ -248,6 +248,12 @@ shape: (102, 2)
|
|
|
248
248
|
└────────────┴────────────────────────┘
|
|
249
249
|
```
|
|
250
250
|
|
|
251
|
+
## Requirements
|
|
252
|
+
|
|
253
|
+
This gem requires **Ruby 3.3 or later** and uses `polars-df` 0.27.1 (exact) for dataframe functionality.
|
|
254
|
+
|
|
255
|
+
## Attributes
|
|
256
|
+
|
|
251
257
|
The attributes that can be queried at this time are
|
|
252
258
|
|
|
253
259
|
* "Mort Debt Balance ($T)"
|
|
@@ -355,9 +361,13 @@ The attributes that can be queried at this time are
|
|
|
355
361
|
|
|
356
362
|
Refer to https://www.newyorkfed.org/microeconomics/hhdc/background.html and https://www.newyorkfed.org/microeconomics/hhdc for additional information about available data.
|
|
357
363
|
|
|
364
|
+
## Testing
|
|
365
|
+
|
|
366
|
+
This gem uses local smoke tests for validation. No GitHub Actions or CI workflows are configured.
|
|
367
|
+
|
|
358
368
|
## Contributing
|
|
359
369
|
|
|
360
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
370
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/bmck/ny_frb_as_dataframe. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/bmck/ny_frb_as_dataframe/blob/main/CODE_OF_CONDUCT.md).
|
|
361
371
|
|
|
362
372
|
## License
|
|
363
373
|
|
|
@@ -365,4 +375,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
365
375
|
|
|
366
376
|
## Code of Conduct
|
|
367
377
|
|
|
368
|
-
Everyone interacting in the NyFrbAsDataframe project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
|
378
|
+
Everyone interacting in the NyFrbAsDataframe project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/bmck/ny_frb_as_dataframe/blob/main/CODE_OF_CONDUCT.md).
|
data/ny_frb_as_dataframe.gemspec
CHANGED
|
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
|
11
11
|
spec.description = "Alternative economic and financial data from the NY FRB"
|
|
12
12
|
spec.homepage = "https://github.com/bmck/ny_frb_as_dataframe"
|
|
13
13
|
spec.license = "MIT"
|
|
14
|
-
spec.required_ruby_version = Gem::Requirement.new(">= 3.
|
|
14
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 3.3")
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
|
32
32
|
|
|
33
33
|
# For more information and examples about making a new gem, checkout our
|
|
34
34
|
# guide at: https://bundler.io/guides/creating_gem.html
|
|
35
|
-
spec.add_dependency 'polars-df'
|
|
35
|
+
spec.add_dependency 'polars-df', '0.27.1'
|
|
36
36
|
spec.add_dependency 'httparty'
|
|
37
37
|
spec.add_dependency 'simple_xlsx_reader'
|
|
38
38
|
spec.add_dependency 'activesupport'
|
data/test_basic.rb
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# frozen_string_literal: true
|
|
3
|
+
|
|
4
|
+
require "bundler/setup"
|
|
5
|
+
require_relative "lib/ny_frb_as_dataframe"
|
|
6
|
+
|
|
7
|
+
puts "Testing ny_frb_as_dataframe gem..."
|
|
8
|
+
puts "Ruby version: #{RUBY_VERSION}"
|
|
9
|
+
puts "Required Ruby version: >= 3.3"
|
|
10
|
+
|
|
11
|
+
# Verify Ruby version
|
|
12
|
+
if RUBY_VERSION.split('.').first.to_i < 3 ||
|
|
13
|
+
(RUBY_VERSION.split('.').first.to_i == 3 && RUBY_VERSION.split('.')[1].to_i < 3)
|
|
14
|
+
puts "ERROR: Ruby version #{RUBY_VERSION} is below required 3.3"
|
|
15
|
+
exit 1
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
# Test basic gem loading
|
|
19
|
+
begin
|
|
20
|
+
puts "\n✓ Gem loaded successfully"
|
|
21
|
+
|
|
22
|
+
# Test that we can instantiate the Hhdc class
|
|
23
|
+
hhdc = NyFrbAsDataframe::Hhdc.new
|
|
24
|
+
puts "✓ NyFrbAsDataframe::Hhdc class instantiated"
|
|
25
|
+
|
|
26
|
+
# Test that polars-df is available
|
|
27
|
+
require 'polars'
|
|
28
|
+
puts "✓ Polars library loaded successfully"
|
|
29
|
+
|
|
30
|
+
puts "\nAll basic tests passed!"
|
|
31
|
+
exit 0
|
|
32
|
+
rescue => e
|
|
33
|
+
puts "\nERROR: #{e.message}"
|
|
34
|
+
puts e.backtrace.first(5)
|
|
35
|
+
exit 1
|
|
36
|
+
end
|
metadata
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ny_frb_as_dataframe
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bill McKinnon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: polars-df
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- -
|
|
17
|
+
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version:
|
|
19
|
+
version: 0.27.1
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
|
-
- -
|
|
24
|
+
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version:
|
|
26
|
+
version: 0.27.1
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: httparty
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -75,6 +75,7 @@ extra_rdoc_files: []
|
|
|
75
75
|
files:
|
|
76
76
|
- ".DS_Store"
|
|
77
77
|
- ".gitignore"
|
|
78
|
+
- ".ruby-version"
|
|
78
79
|
- ".travis.yml"
|
|
79
80
|
- CHANGELOG.md
|
|
80
81
|
- CODE_OF_CONDUCT.md
|
|
@@ -88,6 +89,7 @@ files:
|
|
|
88
89
|
- lib/ny_frb_as_dataframe/hhdc.rb
|
|
89
90
|
- lib/ny_frb_as_dataframe/version.rb
|
|
90
91
|
- ny_frb_as_dataframe.gemspec
|
|
92
|
+
- test_basic.rb
|
|
91
93
|
homepage: https://github.com/bmck/ny_frb_as_dataframe
|
|
92
94
|
licenses:
|
|
93
95
|
- MIT
|
|
@@ -103,14 +105,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
103
105
|
requirements:
|
|
104
106
|
- - ">="
|
|
105
107
|
- !ruby/object:Gem::Version
|
|
106
|
-
version: 3.
|
|
108
|
+
version: '3.3'
|
|
107
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
110
|
requirements:
|
|
109
111
|
- - ">="
|
|
110
112
|
- !ruby/object:Gem::Version
|
|
111
113
|
version: '0'
|
|
112
114
|
requirements: []
|
|
113
|
-
rubygems_version: 3.
|
|
115
|
+
rubygems_version: 3.5.22
|
|
114
116
|
signing_key:
|
|
115
117
|
specification_version: 4
|
|
116
118
|
summary: Alternative economic and financial data from the NY FRB
|