Skip to content

Scaffold Rails-independent Hive API gem - #1

Merged
hanswys merged 2 commits into
mainfrom
pc-10272-scaffold-the-rails-independent-hive-api-gem
Sep 15, 2026
Merged

hanswys merged 2 commits into
mainfrom
pc-10272-scaffold-the-rails-independent-hive-api-gem

Conversation

@hanswys

@hanswys hanswys commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Scaffolds the Rails-independent hive_api gem with fixed Hive environment selection, a lazy bounded Faraday connection, shared resource and response-object foundations, explicit autoloads, packaging metadata, and CI checks.

Changes

File Change
.github/workflows/ci.yml Runs Ruby 3.3.9 Rake, standalone-require, and gem-build checks
.gitignore Ignores local Bundler, documentation, coverage, package, report, temporary, gem, lockfile, and environment artifacts
.rspec Configures RSpec to load spec_helper and use documentation output
.standard.yml Configures StandardRB for Ruby 3.3
.tool-versions Pins local Ruby tooling to 3.3.9
CHANGELOG.md Records the unreleased client, connection, resource, and response-object foundations
Gemfile Loads dependencies from hive_api.gemspec
LICENSE.txt Adds the PostCo MIT license
README.md Documents installation, fixed environments, timeouts, response objects, and development commands
Rakefile Defines RSpec and StandardRB default and release tasks
hive_api.gemspec Defines gem metadata, packaged files, Ruby compatibility, and runtime and development dependencies
lib/hive_api.rb Defines HiveAPI, explicit foundation autoloads, and the empty HiveAPI::Objects namespace
lib/hive_api/client.rb Implements fixed environment URLs and a lazy, bounded, JSON-aware Faraday connection
lib/hive_api/errors.rb Defines the generic HiveAPI::Error and HiveAPI::APIError hierarchy
lib/hive_api/object.rb Implements HiveAPI::Base with snake-case accessors, frozen raw payloads, and recursive hash conversion
lib/hive_api/resource.rb Implements shared GET and POST delegation with JSON fallback parsing
lib/hive_api/version.rb Sets HiveAPI::VERSION to 0.1.0
spec/gemspec_spec.rb Covers Ruby compatibility, dependencies, and packaged files
spec/hive_api/client_spec.rb Covers environment selection, URL restrictions, timeouts, JSON middleware, memoization, and adapter injection
spec/hive_api/object_spec.rb Covers array responses, nested snake-case access, frozen payloads, and plain recursive serialization
spec/hive_api/resource_spec.rb Covers request delegation, JSON parsing fallbacks, plain responses, bodies, and headers
spec/hive_api_spec.rb Covers public autoloads, absent global configuration, versioning, and standalone loading
spec/spec_helper.rb Configures RSpec and WebMock with external network access disabled

@hanswys
hanswys requested a review from andychongyz September 15, 2026 07:09
@hanswys
hanswys merged commit 24ce14e into main Sep 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants