Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,9 @@ gem "guard-minitest"
gem "yard"

gem "standard"

if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.0")
gem "ffi", "~> 1.16.3"
else
gem "ffi"
end
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ The library also provides other features, like:
- A small DSL around GROQ queries

> [!NOTE]
> This gem was originally developed in early 2021 to facilitate Morning Brew's content migration from Rails to Sanity. It was subsequently used to enable interaction between Morning Brew's Rails-based Advertising CMS and their Sanity-based Editorial CMS for another ~year. The gem is no longer actively used in production as the Rails applications have since been deprecated, but it remains available as an open-source solution for Rails-Sanity integrations.
> This gem was originally developed in early 2021 to facilitate Morning Brew's content migration from Rails to Sanity. It was subsequently used to enable interaction between Morning Brew's Rails-based Advertising CMS and their Sanity-based Editorial CMS for another ~year. The gem is no longer actively used in production as the Rails applications have since been deprecated, but it remains available as an open-source solution for Ruby - Sanity integrations.

> [!WARNING]
> If you're looking for a way to host Sanity within a Rails application, this gem is not the solution.
> If you're looking for a way to embed Sanity Studio within a Rails application, this gem is not the solution.

## Contents

Expand Down
1 change: 1 addition & 0 deletions lib/sanity.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require "logger"
require "active_model"
require "forwardable"
require "sanity/refinements"
Expand Down