Sha256: 18ff0de939aa6d33b97046f419c2e21edd61abae2efd9159e7129f2a65c41346

Contents?: true

Size: 1.5 KB

Versions: 2

Compression:

Stored size: 1.5 KB

Contents

# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'stately_scopes/version'

Gem::Specification.new do |spec|
  spec.name          = "stately_scopes"
  spec.version       = StatelyScopes::VERSION
  spec.authors       = ["Nicholas Bruning"]
  spec.email         = ["nicholas@bruning.com.au"]
  spec.summary       = %q{Automatically creates state query methods for each of your model's scopes.}
  spec.description   = %q{I've found that when developing Rails apps, I tend to almost always pair each scope with an instance method which returns a boolean indicating whether the object is included inside that scope.\n\nThis gem simply automatically creates that method for you. Nothing super fancy, and you might consider replacing the state methods with your own, more efficient, implementations - but it's great for early stages of development, or providing a comparative case for unit tests.}
  spec.homepage      = "http://github.com/thetron/stately_scopes"
  spec.license       = "MIT"

  spec.files         = `git ls-files -z`.split("\x0")
  spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ["lib"]

  spec.add_runtime_dependency "activerecord",   "~> 4.0.4"

  spec.add_development_dependency "bundler",    "~> 1.5"
  spec.add_development_dependency "rake"
  spec.add_development_dependency "minitest"
  spec.add_development_dependency "sqlite3"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stately_scopes-0.0.2 stately_scopes.gemspec
stately_scopes-0.0.1 stately_scopes.gemspec