Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only require the Rails gems we actually need #2054

Merged
merged 2 commits into from
Mar 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
142 changes: 77 additions & 65 deletions alchemy_cms.gemspec
Original file line number Diff line number Diff line change
@@ -1,80 +1,92 @@
# coding: utf-8
lib = File.expand_path('lib', __dir__)
# frozen_string_literal: true

lib = File.expand_path("lib", __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'alchemy/version'
require "alchemy/version"

Gem::Specification.new do |gem|
gem.name = 'alchemy_cms'
gem.version = Alchemy::VERSION
gem.platform = Gem::Platform::RUBY
gem.authors = ['Thomas von Deyen', 'Robin Boening', 'Marc Schettke', 'Hendrik Mans', 'Carsten Fregin', 'Martin Meyerhoff']
gem.email = ['hello@alchemy-cms.com']
gem.homepage = 'https://alchemy-cms.com'
gem.summary = 'A powerful, userfriendly and flexible CMS for Rails'
gem.description = 'Alchemy is a powerful, userfriendly and flexible Rails CMS.'
gem.requirements << 'ImageMagick (libmagick), v6.6 or greater.'
gem.required_ruby_version = '>= 2.5.0'
gem.license = 'BSD New'
gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
gem.require_paths = ['lib']
gem.name = "alchemy_cms"
gem.version = Alchemy::VERSION
gem.platform = Gem::Platform::RUBY
gem.authors = ["Thomas von Deyen", "Robin Boening", "Marc Schettke", "Hendrik Mans", "Carsten Fregin", "Martin Meyerhoff"]
gem.email = ["hello@alchemy-cms.com"]
gem.homepage = "https://alchemy-cms.com"
gem.summary = "A powerful, userfriendly and flexible CMS for Rails"
gem.description = "Alchemy is a powerful, userfriendly and flexible Rails CMS."
gem.requirements << "ImageMagick (libmagick), v6.6 or greater."
gem.required_ruby_version = ">= 2.5.0"
gem.license = "BSD New"
gem.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^spec/}) }
gem.require_paths = ["lib"]

%w[
actionmailer
actionpack
actionview
activemodel
activerecord
activesupport
railties
].each do |rails_gem|
gem.add_runtime_dependency rails_gem, [">= 6.0", "< 6.1"]
end

gem.add_runtime_dependency 'active_model_serializers', ['~> 0.10.0']
gem.add_runtime_dependency 'acts_as_list', ['>= 0.3', '< 2']
gem.add_runtime_dependency 'awesome_nested_set', ['~> 3.1']
gem.add_runtime_dependency 'cancancan', ['>= 2.1', '< 4.0']
gem.add_runtime_dependency 'coffee-rails', ['>= 4.0', '< 6.0']
gem.add_runtime_dependency 'dragonfly', ['~> 1.0', '>= 1.0.7']
gem.add_runtime_dependency 'dragonfly_svg', ['~> 0.0.4']
gem.add_runtime_dependency 'gutentag', ['~> 2.2', '>= 2.2.1']
gem.add_runtime_dependency 'handlebars_assets', ['~> 0.23']
gem.add_runtime_dependency 'jquery-rails', ['~> 4.0', '>= 4.0.4']
gem.add_runtime_dependency 'jquery-ui-rails', ['~> 6.0']
gem.add_runtime_dependency 'kaminari', ['~> 1.1']
gem.add_runtime_dependency 'originator', ['~> 3.1']
gem.add_runtime_dependency 'non-stupid-digest-assets', ['~> 1.0.8']
gem.add_runtime_dependency 'rails', ['>= 6.0', '< 6.1']
gem.add_runtime_dependency 'ransack', ['>= 1.8', '< 2.4.2'] # 2.4.2 dropped Ruby 2.5 support in a patch level release
gem.add_runtime_dependency 'request_store', ['~> 1.2']
gem.add_runtime_dependency 'responders', ['>= 2.0', '< 4.0']
gem.add_runtime_dependency 'sassc-rails', ['~> 2.1']
gem.add_runtime_dependency 'simple_form', ['>= 4.0', '< 6']
gem.add_runtime_dependency 'sprockets', ['>= 3.0', '< 5']
gem.add_runtime_dependency 'turbolinks', ['>= 2.5']
gem.add_runtime_dependency 'webpacker', ['>= 4.0', '< 6']
gem.add_runtime_dependency "active_model_serializers", ["~> 0.10.0"]
gem.add_runtime_dependency "acts_as_list", [">= 0.3", "< 2"]
gem.add_runtime_dependency "awesome_nested_set", ["~> 3.1"]
gem.add_runtime_dependency "cancancan", [">= 2.1", "< 4.0"]
gem.add_runtime_dependency "coffee-rails", [">= 4.0", "< 6.0"]
gem.add_runtime_dependency "dragonfly", ["~> 1.0", ">= 1.0.7"]
gem.add_runtime_dependency "dragonfly_svg", ["~> 0.0.4"]
gem.add_runtime_dependency "gutentag", ["~> 2.2", ">= 2.2.1"]
gem.add_runtime_dependency "handlebars_assets", ["~> 0.23"]
gem.add_runtime_dependency "jquery-rails", ["~> 4.0", ">= 4.0.4"]
gem.add_runtime_dependency "jquery-ui-rails", ["~> 6.0"]
gem.add_runtime_dependency "kaminari", ["~> 1.1"]
gem.add_runtime_dependency "originator", ["~> 3.1"]
gem.add_runtime_dependency "non-stupid-digest-assets", ["~> 1.0.8"]
gem.add_runtime_dependency "ransack", [">= 1.8", "< 2.4.2"] # 2.4.2 dropped Ruby 2.5 support in a patch level release
gem.add_runtime_dependency "request_store", ["~> 1.2"]
gem.add_runtime_dependency "responders", [">= 2.0", "< 4.0"]
gem.add_runtime_dependency "sassc-rails", ["~> 2.1"]
gem.add_runtime_dependency "simple_form", [">= 4.0", "< 6"]
gem.add_runtime_dependency "sprockets", [">= 3.0", "< 5"]
gem.add_runtime_dependency "turbolinks", [">= 2.5"]
gem.add_runtime_dependency "webpacker", [">= 4.0", "< 6"]

gem.add_development_dependency 'capybara', ['~> 3.0']
gem.add_development_dependency 'capybara-screenshot', ['~> 1.0']
gem.add_development_dependency 'factory_bot_rails', ['~> 6.0']
gem.add_development_dependency 'puma', ['~> 5.0']
gem.add_development_dependency 'rails-controller-testing', ['~> 1.0']
gem.add_development_dependency 'rspec-activemodel-mocks', ['~> 1.0']
gem.add_development_dependency 'rspec-rails', ['>= 4.0.0.beta2']
gem.add_development_dependency 'simplecov', ['~> 0.20']
gem.add_development_dependency 'webdrivers', ['~> 4.0']
gem.add_development_dependency 'webmock', ['~> 3.3']
gem.add_development_dependency 'shoulda-matchers', ['~> 4.0']
gem.add_development_dependency 'timecop', ['~> 0.9']
gem.add_development_dependency "capybara", ["~> 3.0"]
gem.add_development_dependency "capybara-screenshot", ["~> 1.0"]
gem.add_development_dependency "factory_bot_rails", ["~> 6.0"]
gem.add_development_dependency "puma", ["~> 5.0"]
gem.add_development_dependency "rails-controller-testing", ["~> 1.0"]
gem.add_development_dependency "rspec-activemodel-mocks", ["~> 1.0"]
gem.add_development_dependency "rspec-rails", [">= 4.0.0.beta2"]
gem.add_development_dependency "simplecov", ["~> 0.20"]
gem.add_development_dependency "webdrivers", ["~> 4.0"]
gem.add_development_dependency "webmock", ["~> 3.3"]
gem.add_development_dependency "shoulda-matchers", ["~> 4.0"]
gem.add_development_dependency "timecop", ["~> 0.9"]

gem.post_install_message = <<-MSG
-------------------------------------------------------------
Thank you for installing Alchemy CMS
-------------------------------------------------------------
gem.post_install_message = <<~MSG
-------------------------------------------------------------
Thank you for installing Alchemy CMS
-------------------------------------------------------------

- Complete the installation in an existing Rails application:
- Complete the installation in an existing Rails application:

$ bin/rake alchemy:install
$ bin/rake alchemy:install

- Complete the upgrade of an existing Alchemy installation:
- Complete the upgrade of an existing Alchemy installation:

$ bin/rake alchemy:upgrade
$ bin/rake alchemy:upgrade

and follow the onscreen instructions.
and follow the onscreen instructions.

Need help? Try:
Need help? Try:

* https://stackoverflow.com/questions/tagged/alchemy-cms
* https://slackin.alchemy-cms.com
-------------------------------------------------------------
* https://stackoverflow.com/questions/tagged/alchemy-cms
* https://slackin.alchemy-cms.com
-------------------------------------------------------------

MSG
MSG
end