simple_enum 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/LICENCE +20 -0
- data/README.rdoc +182 -0
- data/Rakefile +70 -0
- data/VERSION.yml +4 -0
- data/init.rb +1 -0
- data/lib/simple_enum/array_support.rb +15 -0
- data/lib/simple_enum/enum_hash.rb +36 -0
- data/lib/simple_enum/object_support.rb +37 -0
- data/lib/simple_enum/validation.rb +37 -0
- data/lib/simple_enum/version.rb +14 -0
- data/lib/simple_enum.rb +227 -0
- data/locales/en.yml +6 -0
- data/simple_enum.gemspec +74 -0
- data/test/array_conversions_test.rb +22 -0
- data/test/class_methods_test.rb +94 -0
- data/test/enum_hash_test.rb +33 -0
- data/test/finders_test.rb +41 -0
- data/test/models.rb +8 -0
- data/test/object_backed_test.rb +67 -0
- data/test/object_support_test.rb +27 -0
- data/test/prefixes_test.rb +38 -0
- data/test/se_array_support_test.rb +32 -0
- data/test/simple_enum_test.rb +97 -0
- data/test/test_helper.rb +66 -0
- data/test/without_shortcuts_test.rb +40 -0
- metadata +91 -0
metadata
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: simple_enum
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.3.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Lukas Westermann
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-10-07 00:00:00 +02:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description:
|
17
|
+
email: lukas.westermann@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.rdoc
|
24
|
+
files:
|
25
|
+
- .gitignore
|
26
|
+
- LICENCE
|
27
|
+
- README.rdoc
|
28
|
+
- Rakefile
|
29
|
+
- VERSION.yml
|
30
|
+
- init.rb
|
31
|
+
- lib/simple_enum.rb
|
32
|
+
- lib/simple_enum/array_support.rb
|
33
|
+
- lib/simple_enum/enum_hash.rb
|
34
|
+
- lib/simple_enum/object_support.rb
|
35
|
+
- lib/simple_enum/validation.rb
|
36
|
+
- lib/simple_enum/version.rb
|
37
|
+
- locales/en.yml
|
38
|
+
- simple_enum.gemspec
|
39
|
+
- test/array_conversions_test.rb
|
40
|
+
- test/class_methods_test.rb
|
41
|
+
- test/enum_hash_test.rb
|
42
|
+
- test/finders_test.rb
|
43
|
+
- test/models.rb
|
44
|
+
- test/object_backed_test.rb
|
45
|
+
- test/object_support_test.rb
|
46
|
+
- test/prefixes_test.rb
|
47
|
+
- test/se_array_support_test.rb
|
48
|
+
- test/simple_enum_test.rb
|
49
|
+
- test/test_helper.rb
|
50
|
+
- test/without_shortcuts_test.rb
|
51
|
+
has_rdoc: true
|
52
|
+
homepage: http://github.com/lwe/simple_enum
|
53
|
+
licenses: []
|
54
|
+
|
55
|
+
post_install_message:
|
56
|
+
rdoc_options:
|
57
|
+
- --charset=UTF-8
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: "0"
|
65
|
+
version:
|
66
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - ">="
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: "0"
|
71
|
+
version:
|
72
|
+
requirements: []
|
73
|
+
|
74
|
+
rubyforge_project:
|
75
|
+
rubygems_version: 1.3.5
|
76
|
+
signing_key:
|
77
|
+
specification_version: 3
|
78
|
+
summary: Simple enum-like field support for ActiveRecord (including validations and i18n)
|
79
|
+
test_files:
|
80
|
+
- test/array_conversions_test.rb
|
81
|
+
- test/class_methods_test.rb
|
82
|
+
- test/enum_hash_test.rb
|
83
|
+
- test/finders_test.rb
|
84
|
+
- test/models.rb
|
85
|
+
- test/object_backed_test.rb
|
86
|
+
- test/object_support_test.rb
|
87
|
+
- test/prefixes_test.rb
|
88
|
+
- test/se_array_support_test.rb
|
89
|
+
- test/simple_enum_test.rb
|
90
|
+
- test/test_helper.rb
|
91
|
+
- test/without_shortcuts_test.rb
|