Sha256: bf02deb9a4ec830ca66242aad2261b3aa5f07ed3f5527c4741a5f4dc50edc606
Contents?: true
Size: 1.5 KB
Versions: 1
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.1.0" 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stately_scopes-0.0.3 | stately_scopes.gemspec |