SimplyBased 0.1.0 — Couchbase-native ActiveModel ORM
A from-scratch fork of simply_couch's model layer that runs on Couchbase natively: `include SimplyBased::Model` instead of `include SimplyCouch::Model`. - SimplyBased::Store replaces the CouchDB layer: KV documents, N1QL/SQL++ finders + lazily-created GSIs, CAS mapped onto _rev. No design documents or JavaScript map/reduce — the hand-written association views become N1QL (belongs_to/has_many/has_one scalar FK; habtm via ANY ... SATISFIES + array index, or KV multi-get on the storing side). - Redis replacements on the same cluster: Counter (atomic increment/decrement), Cache (ActiveSupport::Cache::Store over KV+TTL, drop-in Rails.cache/ActiveJob), Lock (insert-if-absent + TTL + CAS-checked release). - Runs the simply_couch test suite against live Couchbase: 378/432 applicable examples green (CouchDB-mechanic specs tagged :couchdb_only and excluded). - Remaining: ancestry (tree) + embedded_in reverse-lookups (recursive/embedded N1QL) and a few pagination/lifecycle edges. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
commit
86299b8827
84 files changed
+9904
No files matched your search
@@ -0,0 +1,34 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
Gem::Specification.new do |s|
|
||||
s.name = 'simply_based'
|
||||
s.version = '0.1.0'
|
||||
s.license = 'MIT'
|
||||
|
||||
s.summary = 'Couchbase-native ActiveModel ORM'
|
||||
s.description = 'A Couchbase-native ActiveModel ORM with associations, ' \
|
||||
'validations, callbacks, soft delete and N1QL-backed finders. ' \
|
||||
'API-compatible with simply_couch (CouchDB) — swap ' \
|
||||
'include SimplyCouch::Model for include SimplyBased::Model. ' \
|
||||
'Also provides Couchbase-backed atomic counters, a Rails cache ' \
|
||||
'store and distributed locks to replace Redis.'
|
||||
s.authors = ['Benjamin ter Kuile']
|
||||
s.email = 'bterkuile@gmail.com'
|
||||
s.homepage = 'https://github.com/bterkuile/simply_based'
|
||||
|
||||
s.required_ruby_version = '>= 3.1'
|
||||
|
||||
s.metadata = {
|
||||
'source_code_uri' => 'https://github.com/bterkuile/simply_based',
|
||||
'rubygems_mfa_required' => 'true'
|
||||
}
|
||||
|
||||
s.files = Dir['lib/**/*.rb', 'lib/**/*.yml', 'LICENSE.txt', 'README.md', 'CHANGELOG.md']
|
||||
s.require_paths = ['lib']
|
||||
|
||||
s.add_dependency 'activemodel', '>= 6.0'
|
||||
s.add_dependency 'activesupport', '>= 6.0'
|
||||
s.add_dependency 'couchbase', '>= 3.0'
|
||||
|
||||
s.add_development_dependency 'rspec', '~> 3.0'
|
||||
end
|
||||
Reference in new issue
Block a user