-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcocooned.gemspec
48 lines (38 loc) · 1.86 KB
/
cocooned.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
48
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'cocooned/version'
Gem::Specification.new do |spec|
spec.name = 'cocooned'
spec.version = Cocooned::VERSION
spec.licenses = ['Apache-2.0']
spec.authors = ['Gaël-Ian Havard', 'Nathan Van der Auwera']
spec.email = ['[email protected]', '[email protected]']
spec.summary = 'Form builder agnostic handling of Rails nested forms'
spec.description = <<-DESC.gsub(/\s+/, ' ')
Easier nested form in Rails with capabilities to add, remove, reorder or limit nested items.
Works with standard Rails form builder, Formtastic or SimpleForm, and with or without jQuery.
DESC
spec.homepage = 'https://github.com/notus-sh/cocooned'
raise 'RubyGems 2.0 or newer is required.' unless spec.respond_to?(:metadata)
spec.metadata = {
'allowed_push_host' => 'https://rubygems.org',
'rubygems_mfa_required' => 'true',
'bug_tracker_uri' => 'https://github.com/notus-sh/cocooned/issues',
'changelog_uri' => 'https://github.com/notus-sh/cocooned/blob/main/CHANGELOG.md',
'homepage_uri' => 'https://github.com/notus-sh/cocooned',
'source_code_uri' => 'https://github.com/notus-sh/cocooned',
'funding_uri' => 'https://opencollective.com/notus-sh'
}
spec.require_paths = ['lib']
excluded_dirs = %r{^(.github|dev|npm|spec)/}
excluded_files = %w[.gitignore .rspec Gemfile Gemfile.lock Rakefile package.json yarn.lock]
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(excluded_dirs) || excluded_files.include?(f)
end
spec.required_ruby_version = '>= 2.7'
spec.add_dependency 'rails', '>= 7.0', '< 8.1'
spec.add_development_dependency 'bundler', '~> 2.1'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.11'
end