-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathenumify.gemspec
36 lines (30 loc) · 1.57 KB
/
enumify.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- 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 = ["yonbergman"]
s.email = ["yonbergman@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