property_sets 0.8.3 → 1.0.0
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 +5 -2
- data/gemfiles/rails2.3.gemfile.lock +4 -4
- data/gemfiles/rails3.0.gemfile.lock +3 -4
- data/gemfiles/rails3.2.gemfile.lock +3 -4
- data/property_sets.gemspec +2 -1
- metadata +2 -3
- data/MIT-LICENSE.txt +0 -20
data/README.md
CHANGED
|
@@ -40,7 +40,7 @@ Property sets supports standard AR validations, although in a somewhat manual fa
|
|
|
40
40
|
property_set :settings do
|
|
41
41
|
property :version, :default => "v1.0"
|
|
42
42
|
property :featured, :protected => true
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
validates_format_of :value, :with => /v\d+\.\d+/, :message => "of version is invalid",
|
|
45
45
|
:if => Proc.new { |r| r.name.to_sym == :version }
|
|
46
46
|
end
|
|
@@ -103,7 +103,7 @@ Also remember to create the storage table(s), if for example you are going to be
|
|
|
103
103
|
t.string :value
|
|
104
104
|
t.timestamps
|
|
105
105
|
end
|
|
106
|
-
|
|
106
|
+
|
|
107
107
|
add_index :account_settings, [ :account_id, :name ], :unique => true
|
|
108
108
|
|
|
109
109
|
## Requirements
|
|
@@ -111,3 +111,6 @@ Also remember to create the storage table(s), if for example you are going to be
|
|
|
111
111
|
* ActiveRecord
|
|
112
112
|
* ActiveSupport
|
|
113
113
|
|
|
114
|
+
## License
|
|
115
|
+
|
|
116
|
+
Released under the Apache License Version 2.0 http://www.apache.org/licenses/LICENSE-2.0.html
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
|
-
remote: /Users/
|
|
2
|
+
remote: /Users/primdahl/Git/property_sets
|
|
3
3
|
specs:
|
|
4
|
-
property_sets (0.
|
|
4
|
+
property_sets (1.0.0)
|
|
5
5
|
activerecord (>= 2.3.14, < 3.3)
|
|
6
6
|
activesupport (>= 2.3.14, < 3.3)
|
|
7
7
|
json
|
|
@@ -23,8 +23,8 @@ GEM
|
|
|
23
23
|
bundler
|
|
24
24
|
rake
|
|
25
25
|
jdbc-mysql (5.1.13)
|
|
26
|
-
json (1.7.
|
|
27
|
-
json (1.7.
|
|
26
|
+
json (1.7.7)
|
|
27
|
+
json (1.7.7-java)
|
|
28
28
|
metaclass (0.0.1)
|
|
29
29
|
mocha (0.10.5)
|
|
30
30
|
metaclass (~> 0.0.1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
|
-
remote: /Users/
|
|
2
|
+
remote: /Users/primdahl/Git/property_sets
|
|
3
3
|
specs:
|
|
4
|
-
property_sets (0.
|
|
4
|
+
property_sets (1.0.0)
|
|
5
5
|
activerecord (>= 2.3.14, < 3.3)
|
|
6
6
|
activesupport (>= 2.3.14, < 3.3)
|
|
7
7
|
json
|
|
@@ -45,8 +45,7 @@ GEM
|
|
|
45
45
|
abstract (>= 1.0.0)
|
|
46
46
|
i18n (0.5.0)
|
|
47
47
|
jdbc-mysql (5.1.13)
|
|
48
|
-
json (1.7.
|
|
49
|
-
json (1.7.5-java)
|
|
48
|
+
json (1.7.7)
|
|
50
49
|
metaclass (0.0.1)
|
|
51
50
|
mocha (0.10.5)
|
|
52
51
|
metaclass (~> 0.0.1)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
|
-
remote: /Users/
|
|
2
|
+
remote: /Users/primdahl/Git/property_sets
|
|
3
3
|
specs:
|
|
4
|
-
property_sets (0.
|
|
4
|
+
property_sets (1.0.0)
|
|
5
5
|
activerecord (>= 2.3.14, < 3.3)
|
|
6
6
|
activesupport (>= 2.3.14, < 3.3)
|
|
7
7
|
json
|
|
@@ -46,8 +46,7 @@ GEM
|
|
|
46
46
|
i18n (0.6.1)
|
|
47
47
|
jdbc-mysql (5.1.13)
|
|
48
48
|
journey (1.0.4)
|
|
49
|
-
json (1.7.
|
|
50
|
-
json (1.7.5-java)
|
|
49
|
+
json (1.7.7)
|
|
51
50
|
metaclass (0.0.1)
|
|
52
51
|
mocha (0.10.5)
|
|
53
52
|
metaclass (~> 0.0.1)
|
data/property_sets.gemspec
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
Gem::Specification.new "property_sets", "0.
|
|
1
|
+
Gem::Specification.new "property_sets", "1.0.0" do |s|
|
|
2
2
|
s.summary = "Property sets for ActiveRecord."
|
|
3
3
|
s.description = "This gem is an ActiveRecord extension which provides a convenient interface for managing per row properties."
|
|
4
4
|
s.authors = ["Morten Primdahl"]
|
|
5
5
|
s.email = 'primdahl@me.com'
|
|
6
6
|
s.homepage = 'http://github.com/morten/property_sets'
|
|
7
|
+
s.license = 'Apache License Version 2.0'
|
|
7
8
|
|
|
8
9
|
s.add_runtime_dependency("activesupport", ">= 2.3.14", "< 3.3")
|
|
9
10
|
s.add_runtime_dependency("activerecord", ">= 2.3.14", "< 3.3")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: property_sets
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2013-02-15 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -201,7 +201,6 @@ files:
|
|
|
201
201
|
- .travis.yml
|
|
202
202
|
- Appraisals
|
|
203
203
|
- Gemfile
|
|
204
|
-
- MIT-LICENSE.txt
|
|
205
204
|
- README.md
|
|
206
205
|
- Rakefile
|
|
207
206
|
- gemfiles/rails2.3.gemfile
|
data/MIT-LICENSE.txt
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2011 Morten Primdahl
|
|
2
|
-
|
|
3
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
-
a copy of this software and associated documentation files (the
|
|
5
|
-
"Software"), to deal in the Software without restriction, including
|
|
6
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
-
the following conditions:
|
|
10
|
-
|
|
11
|
-
The above copyright notice and this permission notice shall be
|
|
12
|
-
included in all copies or substantial portions of the Software.
|
|
13
|
-
|
|
14
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
17
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
18
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
19
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
20
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|