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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90ab84e7883a2a7fd86e6349c210e7934b427ffaab4c31e4113eb0977ea0b2f5
4
- data.tar.gz: dad8b0082e9e7b9c5bc67e0c29862f100d8824031ec2ed4029f1a1d9f4001f28
3
+ metadata.gz: 4aebe6abb396a8467fb0f58207f1b54bde77ef540e791158e6f760e13dfad4d6
4
+ data.tar.gz: ba7f4ea3565b00e7ba432a7f33100a74ce7aaf5c2a6a71b85b06116a769f08a1
5
5
  SHA512:
6
- metadata.gz: 2e244d59b1beab7ff6342528e3604a216b313d58c9f5835febf17268e6301c064f342480c7f16d958eb08b645217d9ecc3ad8b8bbbd1661a76d6cc0788eef284
7
- data.tar.gz: ba9513f960bd4fd72e58e9ccc8e1b40eafcb1b0d20c11f003bf669f20efd89564259ec0d1a2715b799a127919b6beb5524d56175c18982c8bee8f2b3ad3170cf
6
+ metadata.gz: dd194e5550a7ea3ffae2f91e1f0e0f3fb4bab1477d81e83f14abd1a759c3e1c6dbfa622f00ef75f9ca22891192ac9dc3acd86a72052c0bf4df34bb5cbff37b08
7
+ data.tar.gz: b2e826ea2cec42556648f14af33b5a9bcad48c6ce1a7e14470b74407860f7c685e8707475b86685504eaea76cb78874c0d4094b8890b0122221e844d0f183d5a
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.3.0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2026-08-28
4
+
5
+ - Required Ruby version >= 3.3
6
+ - Updated polars-df dependency to 0.27.1
7
+
3
8
  ## [0.1.0] - 2024-08-12
4
9
 
5
10
  - Initial release
data/Gemfile CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
+ ruby '3.3.0'
6
+
5
7
  # Specify your gem's dependencies in ny_frb_as_dataframe.gemspec
6
8
  gemspec
7
9
 
data/README.md CHANGED
@@ -22,8 +22,8 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- ```{ruby}
26
- 3.1.2 :001 > NyFrbAsDataframe::Hhdc.new.fetch # Fetches all data
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.1.2 :002 > NyFrbAsDataframe::Hhdc.new('Mort Debt Balance ($T)').fetch
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/[USERNAME]/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/[USERNAME]/ny_frb_as_dataframe/blob/main/CODE_OF_CONDUCT.md).
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/[USERNAME]/ny_frb_as_dataframe/blob/main/CODE_OF_CONDUCT.md).
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).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NyFrbAsDataframe
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
@@ -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.0.0")
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.1.1
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: 2024-09-30 00:00:00.000000000 Z
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: '0'
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: '0'
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.0.0
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.1.6
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