-
Notifications
You must be signed in to change notification settings - Fork 0
/
associate_jsonb.gemspec
47 lines (38 loc) · 1.62 KB
/
associate_jsonb.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$:.push File.expand_path("lib", __dir__)
# Maintain gem's version:
require "associate_jsonb/version"
require "associate_jsonb/supported_rails_version"
Gem::Specification.new do |s|
s.name = "associate_jsonb"
s.version = AssociateJsonb::VERSION
s.authors = ["Sampson Crowley"]
s.email = ["[email protected]"]
s.homepage = "https://github.com/SampsonCrowley/associate_jsonb"
s.license = "MIT"
s.summary = "Store database references in PostgreSQL Jsonb columns"
s.description = <<~BODY
This gem extends ActiveRecord to add additional functionality to JSONB
- use PostgreSQL JSONB data for associations
- thread-safe single-key updates to JSONB columns using `jsonb_set`
- extended `table#references` for easy migrations and indexes
- virtual JSONB foreign keys using check constraints
(NOTE: real foreign key constraints are not possible with PostgreSQL JSONB)
Inspired by activerecord-jsonb-associations, but for use in Rails 6+ and
ruby 2.7+ and with some unnecessary options and features (HABTM) removed
and some additional features added
BODY
s.files = Dir[
"{app,config,db,lib}/**/*",
"MIT-LICENSE",
"Rakefile",
"README.md"
]
s.required_ruby_version = ">= 2.7"
s.add_dependency "rails",
"~> #{AssociateJsonb::SUPPORTED_RAILS_VERSION.split(".")[0...-1].join(".")}",
">= #{AssociateJsonb::SUPPORTED_RAILS_VERSION}"
s.add_dependency "pg", "~> 1.1", ">= 1.1.2"
s.add_dependency "zeitwerk", "~> 2", ">= 2.2.2"
s.add_dependency "mutex_m", "~> 0.1", ">= 0.1.0"
s.add_development_dependency "rspec", "~> 3.9"
end