Sha256: 7937e373fdadd49f6d436412adcdd5f56fe8c01c4101dcc6c5cb4cb377d7225c

Contents?: true

Size: 1.54 KB

Versions: 1

Compression:

Stored size: 1.54 KB

Contents

# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "schema_associations/version"

Gem::Specification.new do |gem|
  gem.name        = "schema_associations"
  gem.version     = SchemaAssociations::VERSION
  gem.platform    = Gem::Platform::RUBY
  gem.authors     = ["Ronen Barzel", "Michał Łomnicki"]
  gem.email       = ["ronen@barzel.org", "michal.lomnicki@gmail.com"]
  gem.homepage    = "https://github.com/SchemaPlus/schema_associations"
  gem.summary     = "ActiveRecord extension that automatically (DRY) creates associations based on the schema"
  gem.description = "SchemaAssociations extends ActiveRecord to automatically create associations by inspecting the database schema.  This is more more DRY than the standard behavior, for which in addition to specifying the foreign key in the migration, you must also specify complementary associations in two model files (e.g. a :belongs_to and a :has_many)."

  gem.files         = `git ls-files`.split("\n")
  gem.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
  gem.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  gem.require_paths = ["lib"]

  gem.required_ruby_version = '>= 2.5'

  gem.add_dependency 'activerecord', '>= 5.2', '< 6.1'
  gem.add_dependency 'schema_plus_foreign_keys', '~> 1.0.0'
  gem.add_dependency 'valuable'

  gem.add_development_dependency 'bundler'
  gem.add_development_dependency 'rake', '~> 13.0'
  gem.add_development_dependency 'rspec', '~> 3.0'
  gem.add_development_dependency 'schema_dev', '~> 4.1'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
schema_associations-1.3.0 schema_associations.gemspec