Skip to content

Commit a7b4c58

Browse files
committed
Small updates
- Latest ffi (1.17.1) requires RubyGems >= 3.3+. Pin on older ruby versions - README clarifications - ActiveSupport 6.1.x expects Logger to be loaded. Add explicit require
1 parent a92d9ad commit a7b4c58

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,9 @@ gem "guard-minitest"
1414
gem "yard"
1515

1616
gem "standard"
17+
18+
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.0')
19+
gem 'ffi', '~> 1.16.3'
20+
else
21+
gem 'ffi'
22+
end

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ The library also provides other features, like:
1313
- A small DSL around GROQ queries
1414

1515
> [!NOTE]
16-
> 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.
16+
> 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.
1717
1818
> [!WARNING]
19-
> If you're looking for a way to host Sanity within a Rails application, this gem is not the solution.
19+
> If you're looking for a way to embed Sanity Studio within a Rails application, this gem is not the solution.
2020
2121
## Contents
2222

lib/sanity.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

3+
require "logger"
34
require "active_model"
45
require "forwardable"
56
require "sanity/refinements"

0 commit comments

Comments
 (0)