store_configurable 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/store_configurable/version.rb +1 -1
- metadata +84 -49
data/README.md
CHANGED
@@ -18,7 +18,7 @@ gem 'store_configurable', '~> 3.2.0'
|
|
18
18
|
|
19
19
|
## Setup
|
20
20
|
|
21
|
-
To use StoreConfigurable, you must create create a `_config` colun in the
|
21
|
+
To use StoreConfigurable, you must create create a `_config` colun in the model's table. Make sure that you declare this column as a text type, so there's plenty of room.
|
22
22
|
|
23
23
|
```ruby
|
24
24
|
class AddStoreConfigurableField < ActiveRecord::Migration
|
@@ -48,7 +48,7 @@ Our `config` method is your gateway to StoreConfigurable and unlike ActiveRecord
|
|
48
48
|
@user.config.remember_me = true
|
49
49
|
@user.config.sortable_tables.column = 'created_at'
|
50
50
|
@user.config.sortable_tables.direction = 'asc'
|
51
|
-
@user.config.you.should.never.need.to.do.this = 'deep_value'
|
51
|
+
@user.config.you.should.never.need.to.do.this.but.you.could.if.you.wanted.to = 'deep_value'
|
52
52
|
@user.save
|
53
53
|
```
|
54
54
|
|
metadata
CHANGED
@@ -1,67 +1,95 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: store_configurable
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 3
|
8
|
+
- 2
|
9
|
+
- 1
|
10
|
+
version: 3.2.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Ken Collins
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-03-10 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: activerecord
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
25
|
+
requirements:
|
19
26
|
- - ~>
|
20
|
-
- !ruby/object:Gem::Version
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 15
|
29
|
+
segments:
|
30
|
+
- 3
|
31
|
+
- 2
|
32
|
+
- 0
|
21
33
|
version: 3.2.0
|
22
34
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
26
37
|
name: sqlite3
|
27
|
-
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
40
|
none: false
|
29
|
-
requirements:
|
41
|
+
requirements:
|
30
42
|
- - ~>
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 9
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 3
|
48
|
+
version: "1.3"
|
33
49
|
type: :development
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
50
|
+
version_requirements: *id002
|
51
|
+
- !ruby/object:Gem::Dependency
|
37
52
|
name: rake
|
38
|
-
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
55
|
none: false
|
40
|
-
requirements:
|
56
|
+
requirements:
|
41
57
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
hash: 63
|
60
|
+
segments:
|
61
|
+
- 0
|
62
|
+
- 9
|
63
|
+
- 2
|
43
64
|
version: 0.9.2
|
44
65
|
type: :development
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
66
|
+
version_requirements: *id003
|
67
|
+
- !ruby/object:Gem::Dependency
|
48
68
|
name: minitest
|
49
|
-
|
69
|
+
prerelease: false
|
70
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
71
|
none: false
|
51
|
-
requirements:
|
72
|
+
requirements:
|
52
73
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
hash: 45
|
76
|
+
segments:
|
77
|
+
- 2
|
78
|
+
- 8
|
79
|
+
- 1
|
54
80
|
version: 2.8.1
|
55
81
|
type: :development
|
56
|
-
|
57
|
-
version_requirements: *70239521803600
|
82
|
+
version_requirements: *id004
|
58
83
|
description: Grown up ActiveRecord::Store config options!
|
59
|
-
email:
|
84
|
+
email:
|
60
85
|
- ken@metaskills.net
|
61
86
|
executables: []
|
87
|
+
|
62
88
|
extensions: []
|
89
|
+
|
63
90
|
extra_rdoc_files: []
|
64
|
-
|
91
|
+
|
92
|
+
files:
|
65
93
|
- .gitignore
|
66
94
|
- .travis.yml
|
67
95
|
- CHANGELOG
|
@@ -78,32 +106,39 @@ files:
|
|
78
106
|
- lib/store_configurable/version.rb
|
79
107
|
- test/cases/base_test.rb
|
80
108
|
- test/helper.rb
|
81
|
-
homepage: http://github.com/
|
109
|
+
homepage: http://github.com/metaskills/store_configurable/
|
82
110
|
licenses: []
|
111
|
+
|
83
112
|
post_install_message:
|
84
|
-
rdoc_options:
|
113
|
+
rdoc_options:
|
85
114
|
- --charset=UTF-8
|
86
|
-
require_paths:
|
115
|
+
require_paths:
|
87
116
|
- lib
|
88
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
117
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
89
118
|
none: false
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
93
|
-
|
94
|
-
|
119
|
+
requirements:
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
hash: 3
|
123
|
+
segments:
|
124
|
+
- 0
|
125
|
+
version: "0"
|
126
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
127
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
hash: 3
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
version: "0"
|
100
135
|
requirements: []
|
136
|
+
|
101
137
|
rubyforge_project:
|
102
138
|
rubygems_version: 1.8.17
|
103
139
|
signing_key:
|
104
140
|
specification_version: 3
|
105
|
-
summary: A zero-configuration recursive Hash for storing a tree of options in a serialized
|
106
|
-
|
107
|
-
test_files:
|
141
|
+
summary: A zero-configuration recursive Hash for storing a tree of options in a serialized ActiveRecord column.
|
142
|
+
test_files:
|
108
143
|
- test/cases/base_test.rb
|
109
144
|
- test/helper.rb
|