aboutsummaryrefslogtreecommitdiffstats
path: root/activestorage/activestorage.gemspec
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2017-07-31 15:52:31 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2017-07-31 15:52:31 -0500
commit4b5e042d79a4fc2af7135e78c3ec20c929f73dd2 (patch)
tree20a8437741a1b052bf5451f96dcf1691608eb32f /activestorage/activestorage.gemspec
parent4687c86b91bc78834894a9acbdd2aa1b5cb5209b (diff)
downloadrails-4b5e042d79a4fc2af7135e78c3ec20c929f73dd2.tar.gz
rails-4b5e042d79a4fc2af7135e78c3ec20c929f73dd2.tar.bz2
rails-4b5e042d79a4fc2af7135e78c3ec20c929f73dd2.zip
Use standard Rails layout for gemspec
Diffstat (limited to 'activestorage/activestorage.gemspec')
-rw-r--r--activestorage/activestorage.gemspec36
1 files changed, 24 insertions, 12 deletions
diff --git a/activestorage/activestorage.gemspec b/activestorage/activestorage.gemspec
index eeefa03903..5cd9b15032 100644
--- a/activestorage/activestorage.gemspec
+++ b/activestorage/activestorage.gemspec
@@ -1,18 +1,30 @@
+# frozen_string_literal: true
+
+version = File.read(File.expand_path("../RAILS_VERSION", __dir__)).strip
+
Gem::Specification.new do |s|
- s.name = "activestorage"
- s.version = "0.1"
- s.authors = "David Heinemeier Hansson"
- s.email = "david@basecamp.com"
- s.summary = "Attach cloud and local files in Rails applications"
- s.homepage = "https://github.com/rails/activestorage"
- s.license = "MIT"
+ s.platform = Gem::Platform::RUBY
+ s.name = "activejob"
+ s.version = version
+ s.summary = "Local and cloud file storage framework."
+ s.description = "Attach cloud and local files in Rails applications."
s.required_ruby_version = ">= 2.2.2"
- s.add_dependency "rails", ">= 5.2.0.alpha"
+ s.license = "MIT"
+
+ s.author = "David Heinemeier Hansson"
+ s.email = "david@loudthinking.com"
+ s.homepage = "http://rubyonrails.org"
+
+ s.files = Dir["CHANGELOG.md", "MIT-LICENSE", "README.md", "lib/**/*", "app/**/*", "config/**/*"]
+ s.require_path = "lib"
- s.add_development_dependency "bundler", "~> 1.15"
+ s.metadata = {
+ "source_code_uri" => "https://github.com/rails/rails/tree/v#{version}/activestorage",
+ "changelog_uri" => "https://github.com/rails/rails/blob/v#{version}/activestorage/CHANGELOG.md"
+ }
- s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- test/*`.split("\n")
-end
+ s.add_dependency "actionpack", version
+ s.add_dependency "activerecord", version
+end \ No newline at end of file