coded_options 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +14 -0
- data/lib/coded_options/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
CodedOptions
|
|
2
2
|
============
|
|
3
3
|
|
|
4
|
+
Usage
|
|
5
|
+
-----
|
|
6
|
+
|
|
4
7
|
Just a way to clean up my normal way to deal with coded options. Basically,
|
|
5
8
|
in a Rails controller, it turns
|
|
6
9
|
|
|
@@ -31,4 +34,15 @@ a plain Ruby object as follows:
|
|
|
31
34
|
foo.type_id = 1
|
|
32
35
|
foo.type #=> awesome
|
|
33
36
|
|
|
37
|
+
Installation
|
|
38
|
+
------------
|
|
39
|
+
|
|
40
|
+
To install into a Rails 3 app just add this to your `Gemfile`:
|
|
41
|
+
|
|
42
|
+
gem "coded_options"
|
|
43
|
+
|
|
44
|
+
and for Rails 2 apps you will want to install it as a plugin:
|
|
45
|
+
|
|
46
|
+
./script/plugin install git://github.com/jasondew/coded_options.git
|
|
47
|
+
|
|
34
48
|
Enjoy!
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: coded_options
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 25
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.1.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Jason Dew
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2010-
|
|
18
|
+
date: 2010-10-10 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies: []
|
|
21
21
|
|