Sha256: f40ca35c34a818bb38c92cfb09664356f685a9d3f082f564fa93ca87762e10e1

Contents?: true

Size: 1.56 KB

Versions: 4

Compression:

Stored size: 1.56 KB

Contents

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

Gem::Specification.new do |s|
  s.name        = "enumify"
  s.version     = Enumify::VERSION
  s.authors     = ["yon"]
  s.email       = ["yonatanbergman@gmail.com"]
  s.homepage    = "http://github.com/yonbergman/enumify"
  s.summary     = %q{enumify adds an enum command to all ActiveRecord models which enables you to work with string attributes as if they were enums}
  s.description =  <<-END
    Enumify lets you add an enum command to ActiveRecord models

    There are four things that the enumify gems adds to your model
      Validation - The enumify adds a validation to make sure that the field only receives accepted values
      Super Cool Methods - adds ? and ! functions for each enum value (canceled? - is it canceled, canceled! - change the state to canceled)
      Callback support - you can add a x_callback method which will be called each time the status changes
      Scopes - you can easily query for values of the enum
  END
  s.license     = 'MIT'


  s.rubyforge_project = "enumify"

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

  # specify any dependencies here; for example:
  s.add_development_dependency "rake"
  s.add_development_dependency "rspec"
  s.add_development_dependency "activerecord", '>= 3.0'
  s.add_development_dependency 'appraisal', '>= 0.3.8'
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
enumify-0.2.0 enumify.gemspec
enumify-0.1.0 enumify.gemspec
enumify-0.0.7 enumify.gemspec
enumify-0.0.6 enumify.gemspec