-
Notifications
You must be signed in to change notification settings - Fork 529
/
paranoia.gemspec
40 lines (32 loc) · 1.58 KB
/
paranoia.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
# -*- encoding: utf-8 -*-
require File.expand_path("../lib/paranoia/version", __FILE__)
Gem::Specification.new do |s|
s.name = "paranoia"
s.version = Paranoia::VERSION
s.platform = Gem::Platform::RUBY
s.authors = %w([email protected])
s.email = %w([email protected] [email protected])
s.homepage = "https://github.com/rubysherpas/paranoia"
s.license = 'MIT'
s.summary = "Paranoia is a re-implementation of acts_as_paranoid for Rails 3, 4, and 5, using much, much, much less code."
s.description = <<-DSC
Paranoia is a re-implementation of acts_as_paranoid for Rails 5, 6, and 7,
using much, much, much less code. You would use either plugin / gem if you
wished that when you called destroy on an Active Record object that it
didn't actually destroy it, but just "hid" the record. Paranoia does this
by setting a deleted_at field to the current time when you destroy a record,
and hides it by scoping all queries on your model to only include records
which do not have a deleted_at field.
DSC
s.required_rubygems_version = ">= 1.3.6"
s.required_ruby_version = '>= 2.7'
s.add_dependency 'activerecord', '>= 6', '< 8.1'
s.add_development_dependency "bundler", ">= 1.0.0"
s.add_development_dependency "rake"
s.files = Dir.chdir(File.expand_path('..', __FILE__)) do
files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)}) }
files
end
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
s.require_path = 'lib'
end