Sha256: 193f93e6dd1aa3e8d12fd7d5d1c7a642e9c30594ba21fc3136c63a25a6478aa3

Contents?: true

Size: 1.69 KB

Versions: 8

Compression:

Stored size: 1.69 KB

Contents

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

Gem::Specification.new do |spec|
  spec.name          = 'ensurance'
  spec.version       = Ensurance::VERSION
  spec.authors       = ['Ben Sharpe']
  spec.email         = ['bsharpe@gmail.com']

  spec.summary       = 'Add ability to ensure ActiveRecord models'
  spec.description   = 'A handy shortcut for user = user.is_a?(User) ? user : User.find(user)'
  spec.homepage      = 'https://github.com/bsharpe/ensurance'
  spec.license       = 'MIT'

  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
  # to allow pushing to a single host or delete this section to allow pushing to any host.
  # if spec.respond_to?(:metadata)
  #   spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
  # else
  #   raise "RubyGems 2.0 or newer is required to protect against " \
  #     "public gem pushes."
  # end

  spec.files         = `git ls-files -z`.split("\x0").reject do |f|
    f.match(%r{^(test|spec|features)/})
  end
  spec.bindir        = 'exe'
  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
  spec.require_paths = ['lib']

  spec.add_runtime_dependency 'activesupport', '>= 3', '< 6'

  spec.add_development_dependency 'activerecord', '>= 3', '< 6'
  spec.add_development_dependency 'awesome_print', '>= 1.0', '< 2'
  spec.add_development_dependency 'bundler', '~> 1.16'
  spec.add_development_dependency 'globalid', '>= 0.3.6', '< 2'
  spec.add_development_dependency 'rake', '~> 10.0'
  spec.add_development_dependency 'rspec', '~> 3.0'
  spec.add_development_dependency 'sqlite3', '>= 1.3.0', '< 4'
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ensurance-0.1.19 ensurance.gemspec
ensurance-0.1.18 ensurance.gemspec
ensurance-0.1.17 ensurance.gemspec
ensurance-0.1.16 ensurance.gemspec
ensurance-0.1.15 ensurance.gemspec
ensurance-0.1.14 ensurance.gemspec
ensurance-0.1.13 ensurance.gemspec
ensurance-0.1.12 ensurance.gemspec