-
Notifications
You must be signed in to change notification settings - Fork 0
/
json_sti.gemspec
36 lines (31 loc) · 1.53 KB
/
json_sti.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
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'json_sti/version'
Gem::Specification.new do |spec|
spec.name = 'json_sti'
spec.version = JsonSti::VERSION
spec.date = '2019-12-08'
spec.summary = "A scheme for single table inheritance with ActiveRecord which puts all class specific attributes in a json blob, and allows validations"
spec.description = "A common argument against STI in rails is that the tables eventually get cluttered with class specific columns. By keeping all subtype specific attrs in json, you completely avoid table bloat while keeping all the advantages of AR and a relational database"
spec.authors = ["Andrew Max"]
spec.email = '[email protected]'
spec.files = [
"lib/json_sti.rb",
"lib/json_sti/class_master_list.rb",
"lib/json_sti/inheritable_seeder.rb"
]
spec.homepage = nil
spec.license = 'MIT'
spec.require_paths = ["lib"]
spec.add_development_dependency 'bundler', '~> 1.12'
spec.add_development_dependency 'rake', '~> 0.8.7'
spec.add_development_dependency 'rspec', '~> 3.5'
spec.add_development_dependency 'rubocop', '~> 0.77'
spec.add_dependency 'pry-byebug', '~> 3.7'
spec.add_dependency 'faker', '~> 2.7'
spec.add_dependency 'activerecord', '>= 4.2.0', '< 7'
spec.add_dependency 'activesupport', '>= 4.2.0', '< 7'
spec.add_dependency 'pg', '~> 1.1'
spec.add_dependency 'zeitwerk', '~> 2.2'
spec.add_dependency 'activerecord_json_validator', '~> 1.3.0'
end