property_sets 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -0
- data/.travis.yml +10 -2
- data/Appraisals +14 -6
- data/Gemfile +10 -2
- data/gemfiles/rails2.3.gemfile +12 -3
- data/gemfiles/rails3.0.gemfile +12 -3
- data/gemfiles/rails3.2.gemfile +11 -3
- data/lib/property_sets.rb +1 -2
- data/lib/property_sets/active_record_extension.rb +0 -1
- data/lib/property_sets/property_set_model.rb +11 -3
- data/lib/property_sets/version.rb +3 -0
- data/property_sets.gemspec +6 -9
- data/test/database.rb +1 -1
- data/test/helper.rb +24 -1
- data/test/test_property_sets.rb +2 -2
- metadata +14 -142
- data/gemfiles/rails2.3.gemfile.lock +0 -57
- data/gemfiles/rails3.0.gemfile.lock +0 -86
- data/gemfiles/rails3.2.gemfile.lock +0 -93
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a0839379d91e7803975103fb3b43f06163a45d7d
|
4
|
+
data.tar.gz: 71dea6d3b8cd20221c38712ecf4d5ecc254a1eae
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 642289a1daf0b276d680bbf5aea576ee536f06385f911fc1e10f3e3e8d09290e60a52520457df72cc48c85f458de5eadf50dfd2da45d7a0987f5eda76ba24a8f
|
7
|
+
data.tar.gz: c5f60fd099c481062e2a3a74d73319c2fc7fcc1e80a64d56eb0f89329ba1d7928c055b0ffde961c31e8025720448e21a1ae025a7e1bb08be8b201d92ba719df8
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,10 +1,18 @@
|
|
1
1
|
rvm:
|
2
|
-
-
|
2
|
+
- ree
|
3
3
|
- 1.9.3
|
4
|
+
- 2.0.0
|
4
5
|
- jruby
|
5
|
-
- ree
|
6
6
|
script: "bundle exec rake test"
|
7
7
|
gemfile:
|
8
8
|
- gemfiles/rails2.3.gemfile
|
9
9
|
- gemfiles/rails3.0.gemfile
|
10
10
|
- gemfiles/rails3.2.gemfile
|
11
|
+
matrix:
|
12
|
+
exclude:
|
13
|
+
- rvm: 2.0.0
|
14
|
+
gemfile: gemfiles/rails2.3.gemfile
|
15
|
+
- rvm: 2.0.0
|
16
|
+
gemfile: gemfiles/rails3.0.gemfile
|
17
|
+
- rvm: ree
|
18
|
+
gemfile: gemfiles/rails3.2.gemfile
|
data/Appraisals
CHANGED
@@ -1,14 +1,22 @@
|
|
1
1
|
appraise "rails2.3" do
|
2
|
-
gem "activerecord", "2.3.14"
|
3
|
-
gem "activesupport", "2.3.14"
|
2
|
+
gem "activerecord", "~> 2.3.14"
|
3
|
+
gem "activesupport", "~> 2.3.14"
|
4
|
+
gem "shoulda", "~> 2.11"
|
5
|
+
gem "mysql2", "~> 0.2.0", :platforms => :ruby
|
6
|
+
gem "activerecord-mysql2-adapter", :platforms => :ruby
|
7
|
+
gem "mocha", "~> 0.12.0"
|
8
|
+
gem "test-unit", "< 2.5.5"
|
4
9
|
end
|
5
10
|
|
6
11
|
appraise "rails3.0" do
|
7
|
-
gem "activerecord", "3.0.15"
|
8
|
-
gem "activesupport", "3.0.15"
|
12
|
+
gem "activerecord", "~> 3.0.15"
|
13
|
+
gem "activesupport", "~> 3.0.15"
|
14
|
+
gem "shoulda", "~> 2.11"
|
15
|
+
gem "mysql2", "~> 0.2.0", :platforms => :ruby
|
16
|
+
gem "activerecord-mysql2-adapter", :platforms => :ruby
|
9
17
|
end
|
10
18
|
|
11
19
|
appraise "rails3.2" do
|
12
|
-
gem "activerecord", "3.2.6"
|
13
|
-
gem "activesupport", "3.2.6"
|
20
|
+
gem "activerecord", "~> 3.2.6"
|
21
|
+
gem "activesupport", "~> 3.2.6"
|
14
22
|
end
|
data/Gemfile
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
3
|
gem 'activerecord-jdbcmysql-adapter', '1.2.2', :platforms => :jruby
|
4
|
-
gem '
|
4
|
+
gem 'mysql2', :platforms => :ruby
|
5
5
|
|
6
|
-
|
6
|
+
gem 'rake'
|
7
|
+
gem 'bundler'
|
8
|
+
gem 'shoulda'
|
9
|
+
gem 'mocha'
|
10
|
+
gem 'appraisal'
|
11
|
+
gem 'test-unit', '>= 2.5.2'
|
12
|
+
gem 'actionpack', '>= 2.3.14', '< 3.3'
|
13
|
+
gem 'iconv', :platforms => :ruby_20
|
7
14
|
|
15
|
+
gemspec
|
data/gemfiles/rails2.3.gemfile
CHANGED
@@ -3,8 +3,17 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "activerecord-jdbcmysql-adapter", "1.2.2", :platforms=>:jruby
|
6
|
-
gem "
|
7
|
-
gem "
|
8
|
-
gem "
|
6
|
+
gem "rake"
|
7
|
+
gem "bundler"
|
8
|
+
gem "appraisal"
|
9
|
+
gem "actionpack", ">= 2.3.14", "< 3.3"
|
10
|
+
gem "iconv", :platforms=>:ruby_20
|
11
|
+
gem "activerecord", "~> 2.3.14"
|
12
|
+
gem "activesupport", "~> 2.3.14"
|
13
|
+
gem "shoulda", "~> 2.11"
|
14
|
+
gem "mysql2", "~> 0.2.0", :platforms=>:ruby
|
15
|
+
gem "activerecord-mysql2-adapter", :platforms=>:ruby
|
16
|
+
gem "mocha", "~> 0.12.0"
|
17
|
+
gem "test-unit", "< 2.5.5"
|
9
18
|
|
10
19
|
gemspec :path=>"../"
|
data/gemfiles/rails3.0.gemfile
CHANGED
@@ -3,8 +3,17 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "activerecord-jdbcmysql-adapter", "1.2.2", :platforms=>:jruby
|
6
|
-
gem "
|
7
|
-
gem "
|
8
|
-
gem "
|
6
|
+
gem "rake"
|
7
|
+
gem "bundler"
|
8
|
+
gem "mocha"
|
9
|
+
gem "appraisal"
|
10
|
+
gem "test-unit", ">= 2.5.2"
|
11
|
+
gem "actionpack", ">= 2.3.14", "< 3.3"
|
12
|
+
gem "iconv", :platforms=>:ruby_20
|
13
|
+
gem "activerecord", "~> 3.0.15"
|
14
|
+
gem "activesupport", "~> 3.0.15"
|
15
|
+
gem "shoulda", "~> 2.11"
|
16
|
+
gem "mysql2", "~> 0.2.0", :platforms=>:ruby
|
17
|
+
gem "activerecord-mysql2-adapter", :platforms=>:ruby
|
9
18
|
|
10
19
|
gemspec :path=>"../"
|
data/gemfiles/rails3.2.gemfile
CHANGED
@@ -3,8 +3,16 @@
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
5
|
gem "activerecord-jdbcmysql-adapter", "1.2.2", :platforms=>:jruby
|
6
|
-
gem "
|
7
|
-
gem "
|
8
|
-
gem "
|
6
|
+
gem "mysql2", :platforms=>:ruby
|
7
|
+
gem "rake"
|
8
|
+
gem "bundler"
|
9
|
+
gem "shoulda"
|
10
|
+
gem "mocha"
|
11
|
+
gem "appraisal"
|
12
|
+
gem "test-unit", ">= 2.5.2"
|
13
|
+
gem "actionpack", ">= 2.3.14", "< 3.3"
|
14
|
+
gem "iconv", :platforms=>:ruby_20
|
15
|
+
gem "activerecord", "~> 3.2.6"
|
16
|
+
gem "activesupport", "~> 3.2.6"
|
9
17
|
|
10
18
|
gemspec :path=>"../"
|
data/lib/property_sets.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'property_sets/property_set_model'
|
2
2
|
require 'property_sets/active_record_extension'
|
3
|
+
require 'property_sets/version'
|
3
4
|
|
4
5
|
begin
|
5
6
|
require 'property_sets/action_view_extension'
|
@@ -7,8 +8,6 @@ rescue LoadError
|
|
7
8
|
end
|
8
9
|
|
9
10
|
module PropertySets
|
10
|
-
VERSION = "0.7.2"
|
11
|
-
|
12
11
|
def self.ensure_property_set_class(association, owner_class)
|
13
12
|
const_name = "#{owner_class.name}#{association.to_s.singularize.capitalize}".to_sym
|
14
13
|
unless Object.const_defined?(const_name)
|
@@ -20,7 +20,6 @@ module PropertySets
|
|
20
20
|
|
21
21
|
hash_opts = {:class_name => property_class.name, :autosave => true, :dependent => :destroy}.merge(options)
|
22
22
|
has_many association, hash_opts do
|
23
|
-
|
24
23
|
# Accepts a name value pair hash { :name => 'value', :pairs => true } and builds a property for each key
|
25
24
|
def set(property_pairs, with_protection = false)
|
26
25
|
property_pairs.keys.each do |name|
|
@@ -84,9 +84,13 @@ module PropertySets
|
|
84
84
|
|
85
85
|
module ClassMethods
|
86
86
|
def self.extended(base)
|
87
|
-
base.validate
|
88
|
-
base.validate
|
89
|
-
base.before_create
|
87
|
+
base.validate :validate_format_of_name
|
88
|
+
base.validate :validate_length_of_serialized_data
|
89
|
+
base.before_create :coerce_value
|
90
|
+
|
91
|
+
if ActiveRecord::VERSION::MAJOR < 4
|
92
|
+
base.attr_accessible :name, :value
|
93
|
+
end
|
90
94
|
end
|
91
95
|
|
92
96
|
def property(key, options = nil)
|
@@ -121,6 +125,10 @@ module PropertySets
|
|
121
125
|
belongs_to owner_class_sym
|
122
126
|
validates_presence_of owner_class_sym
|
123
127
|
validates_uniqueness_of :name, :scope => owner_class_key_sym
|
128
|
+
|
129
|
+
if ActiveRecord::VERSION::MAJOR < 4
|
130
|
+
attr_accessible owner_class_key_sym, owner_class_sym
|
131
|
+
end
|
124
132
|
end
|
125
133
|
|
126
134
|
def owner_assoc=(association)
|
data/property_sets.gemspec
CHANGED
@@ -1,4 +1,9 @@
|
|
1
|
-
|
1
|
+
lib = File.expand_path("../lib/", __FILE__)
|
2
|
+
$:.unshift lib unless $:.include?(lib)
|
3
|
+
|
4
|
+
require 'property_sets/version'
|
5
|
+
|
6
|
+
Gem::Specification.new "property_sets", PropertySets::VERSION do |s|
|
2
7
|
s.summary = "Property sets for ActiveRecord."
|
3
8
|
s.description = "This gem is an ActiveRecord extension which provides a convenient interface for managing per row properties."
|
4
9
|
s.authors = ["Morten Primdahl"]
|
@@ -10,14 +15,6 @@ Gem::Specification.new "property_sets", "2.0.1" do |s|
|
|
10
15
|
s.add_runtime_dependency("activerecord", ">= 2.3.14", "< 3.3")
|
11
16
|
s.add_runtime_dependency("json")
|
12
17
|
|
13
|
-
s.add_development_dependency('rake')
|
14
|
-
s.add_development_dependency('bundler')
|
15
|
-
s.add_development_dependency('shoulda')
|
16
|
-
s.add_development_dependency('mocha', '~> 0.10.3')
|
17
|
-
s.add_development_dependency('appraisal')
|
18
|
-
s.add_development_dependency('test-unit', '>= 2.5.2')
|
19
|
-
s.add_development_dependency("actionpack", ">= 2.3.14", "< 3.3")
|
20
|
-
|
21
18
|
s.files = `git ls-files`.split("\n")
|
22
19
|
s.license = "MIT"
|
23
20
|
end
|
data/test/database.rb
CHANGED
@@ -4,7 +4,7 @@ ActiveRecord::Base.logger = Logger.new(STDOUT)
|
|
4
4
|
ActiveRecord::Base.logger.level = Logger::ERROR
|
5
5
|
|
6
6
|
config = {
|
7
|
-
:adapter => 'mysql',
|
7
|
+
:adapter => RUBY_PLATFORM == "java" ? 'mysql' : 'mysql2',
|
8
8
|
:database => 'property_sets_test',
|
9
9
|
:username => 'root',
|
10
10
|
:password => nil,
|
data/test/helper.rb
CHANGED
@@ -1,12 +1,29 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'bundler'
|
3
3
|
Bundler.setup
|
4
|
-
|
4
|
+
|
5
5
|
require 'test/unit'
|
6
|
+
|
7
|
+
begin
|
8
|
+
require 'mocha/setup'
|
9
|
+
rescue LoadError
|
10
|
+
require 'mocha'
|
11
|
+
end
|
12
|
+
|
13
|
+
require 'active_support'
|
14
|
+
require 'active_support/core_ext'
|
6
15
|
require 'active_record'
|
7
16
|
require 'active_record/fixtures'
|
8
17
|
require 'shoulda'
|
9
18
|
|
19
|
+
if ActiveRecord::VERSION::MAJOR > 2 && ActiveRecord::VERSION::MAJOR < 4
|
20
|
+
if ActiveRecord::VERSION::MINOR > 1
|
21
|
+
ActiveRecord::Base.mass_assignment_sanitizer = :strict
|
22
|
+
end
|
23
|
+
|
24
|
+
ActiveRecord::Base.attr_accessible
|
25
|
+
end
|
26
|
+
|
10
27
|
require File.expand_path "../database", __FILE__
|
11
28
|
|
12
29
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
@@ -37,6 +54,11 @@ class ActsLikeAnInteger
|
|
37
54
|
end
|
38
55
|
|
39
56
|
class Account < ActiveRecord::Base
|
57
|
+
if ActiveRecord::VERSION::MAJOR < 4
|
58
|
+
attr_accessible :name
|
59
|
+
attr_accessible :texts_attributes
|
60
|
+
end
|
61
|
+
|
40
62
|
property_set :settings do
|
41
63
|
property :foo
|
42
64
|
property :bar
|
@@ -49,6 +71,7 @@ class Account < ActiveRecord::Base
|
|
49
71
|
property :foo
|
50
72
|
property :bar
|
51
73
|
end
|
74
|
+
|
52
75
|
accepts_nested_attributes_for :texts
|
53
76
|
|
54
77
|
property_set :validations do
|
data/test/test_property_sets.rb
CHANGED
@@ -87,12 +87,12 @@ class TestPropertySets < ActiveSupport::TestCase
|
|
87
87
|
|
88
88
|
[ 'hello', 'hel_lo', 'hell0' ].each do |valid|
|
89
89
|
s.name = valid
|
90
|
-
assert s.valid
|
90
|
+
assert s.valid?, "#{valid} is invalid: #{s.errors.inspect}"
|
91
91
|
end
|
92
92
|
|
93
93
|
[ '_hello', :hello ].each do |invalid|
|
94
94
|
s.name = invalid
|
95
|
-
assert !s.valid
|
95
|
+
assert !s.valid?, "#{invalid} is valid"
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
metadata
CHANGED
@@ -1,22 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: property_sets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Morten Primdahl
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 2.3.14
|
22
20
|
- - <
|
@@ -25,9 +23,8 @@ dependencies:
|
|
25
23
|
type: :runtime
|
26
24
|
prerelease: false
|
27
25
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
-
none: false
|
29
26
|
requirements:
|
30
|
-
- -
|
27
|
+
- - '>='
|
31
28
|
- !ruby/object:Gem::Version
|
32
29
|
version: 2.3.14
|
33
30
|
- - <
|
@@ -36,9 +33,8 @@ dependencies:
|
|
36
33
|
- !ruby/object:Gem::Dependency
|
37
34
|
name: activerecord
|
38
35
|
requirement: !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
36
|
requirements:
|
41
|
-
- -
|
37
|
+
- - '>='
|
42
38
|
- !ruby/object:Gem::Version
|
43
39
|
version: 2.3.14
|
44
40
|
- - <
|
@@ -47,9 +43,8 @@ dependencies:
|
|
47
43
|
type: :runtime
|
48
44
|
prerelease: false
|
49
45
|
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
none: false
|
51
46
|
requirements:
|
52
|
-
- -
|
47
|
+
- - '>='
|
53
48
|
- !ruby/object:Gem::Version
|
54
49
|
version: 2.3.14
|
55
50
|
- - <
|
@@ -58,137 +53,17 @@ dependencies:
|
|
58
53
|
- !ruby/object:Gem::Dependency
|
59
54
|
name: json
|
60
55
|
requirement: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
56
|
requirements:
|
63
|
-
- -
|
57
|
+
- - '>='
|
64
58
|
- !ruby/object:Gem::Version
|
65
59
|
version: '0'
|
66
60
|
type: :runtime
|
67
61
|
prerelease: false
|
68
62
|
version_requirements: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
63
|
requirements:
|
71
|
-
- -
|
64
|
+
- - '>='
|
72
65
|
- !ruby/object:Gem::Version
|
73
66
|
version: '0'
|
74
|
-
- !ruby/object:Gem::Dependency
|
75
|
-
name: rake
|
76
|
-
requirement: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
|
-
requirements:
|
79
|
-
- - ! '>='
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '0'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
|
-
requirements:
|
87
|
-
- - ! '>='
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '0'
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: bundler
|
92
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
|
-
requirements:
|
95
|
-
- - ! '>='
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
98
|
-
type: :development
|
99
|
-
prerelease: false
|
100
|
-
version_requirements: !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
|
-
requirements:
|
103
|
-
- - ! '>='
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
version: '0'
|
106
|
-
- !ruby/object:Gem::Dependency
|
107
|
-
name: shoulda
|
108
|
-
requirement: !ruby/object:Gem::Requirement
|
109
|
-
none: false
|
110
|
-
requirements:
|
111
|
-
- - ! '>='
|
112
|
-
- !ruby/object:Gem::Version
|
113
|
-
version: '0'
|
114
|
-
type: :development
|
115
|
-
prerelease: false
|
116
|
-
version_requirements: !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
|
-
requirements:
|
119
|
-
- - ! '>='
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: '0'
|
122
|
-
- !ruby/object:Gem::Dependency
|
123
|
-
name: mocha
|
124
|
-
requirement: !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
|
-
requirements:
|
127
|
-
- - ~>
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
version: 0.10.3
|
130
|
-
type: :development
|
131
|
-
prerelease: false
|
132
|
-
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
none: false
|
134
|
-
requirements:
|
135
|
-
- - ~>
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: 0.10.3
|
138
|
-
- !ruby/object:Gem::Dependency
|
139
|
-
name: appraisal
|
140
|
-
requirement: !ruby/object:Gem::Requirement
|
141
|
-
none: false
|
142
|
-
requirements:
|
143
|
-
- - ! '>='
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
none: false
|
150
|
-
requirements:
|
151
|
-
- - ! '>='
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
version: '0'
|
154
|
-
- !ruby/object:Gem::Dependency
|
155
|
-
name: test-unit
|
156
|
-
requirement: !ruby/object:Gem::Requirement
|
157
|
-
none: false
|
158
|
-
requirements:
|
159
|
-
- - ! '>='
|
160
|
-
- !ruby/object:Gem::Version
|
161
|
-
version: 2.5.2
|
162
|
-
type: :development
|
163
|
-
prerelease: false
|
164
|
-
version_requirements: !ruby/object:Gem::Requirement
|
165
|
-
none: false
|
166
|
-
requirements:
|
167
|
-
- - ! '>='
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
version: 2.5.2
|
170
|
-
- !ruby/object:Gem::Dependency
|
171
|
-
name: actionpack
|
172
|
-
requirement: !ruby/object:Gem::Requirement
|
173
|
-
none: false
|
174
|
-
requirements:
|
175
|
-
- - ! '>='
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
version: 2.3.14
|
178
|
-
- - <
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: '3.3'
|
181
|
-
type: :development
|
182
|
-
prerelease: false
|
183
|
-
version_requirements: !ruby/object:Gem::Requirement
|
184
|
-
none: false
|
185
|
-
requirements:
|
186
|
-
- - ! '>='
|
187
|
-
- !ruby/object:Gem::Version
|
188
|
-
version: 2.3.14
|
189
|
-
- - <
|
190
|
-
- !ruby/object:Gem::Version
|
191
|
-
version: '3.3'
|
192
67
|
description: This gem is an ActiveRecord extension which provides a convenient interface
|
193
68
|
for managing per row properties.
|
194
69
|
email: primdahl@me.com
|
@@ -206,16 +81,14 @@ files:
|
|
206
81
|
- Rakefile
|
207
82
|
- benchmark/read.rb
|
208
83
|
- gemfiles/rails2.3.gemfile
|
209
|
-
- gemfiles/rails2.3.gemfile.lock
|
210
84
|
- gemfiles/rails3.0.gemfile
|
211
|
-
- gemfiles/rails3.0.gemfile.lock
|
212
85
|
- gemfiles/rails3.2.gemfile
|
213
|
-
- gemfiles/rails3.2.gemfile.lock
|
214
86
|
- lib/property_sets.rb
|
215
87
|
- lib/property_sets/action_view_extension.rb
|
216
88
|
- lib/property_sets/active_record_extension.rb
|
217
89
|
- lib/property_sets/casting.rb
|
218
90
|
- lib/property_sets/property_set_model.rb
|
91
|
+
- lib/property_sets/version.rb
|
219
92
|
- property_sets.gemspec
|
220
93
|
- test/database.rb
|
221
94
|
- test/fixtures/account_settings.yml
|
@@ -228,26 +101,25 @@ files:
|
|
228
101
|
homepage: http://github.com/zendesk/property_sets
|
229
102
|
licenses:
|
230
103
|
- MIT
|
104
|
+
metadata: {}
|
231
105
|
post_install_message:
|
232
106
|
rdoc_options: []
|
233
107
|
require_paths:
|
234
108
|
- lib
|
235
109
|
required_ruby_version: !ruby/object:Gem::Requirement
|
236
|
-
none: false
|
237
110
|
requirements:
|
238
|
-
- -
|
111
|
+
- - '>='
|
239
112
|
- !ruby/object:Gem::Version
|
240
113
|
version: '0'
|
241
114
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
242
|
-
none: false
|
243
115
|
requirements:
|
244
|
-
- -
|
116
|
+
- - '>='
|
245
117
|
- !ruby/object:Gem::Version
|
246
118
|
version: '0'
|
247
119
|
requirements: []
|
248
120
|
rubyforge_project:
|
249
|
-
rubygems_version:
|
121
|
+
rubygems_version: 2.0.7
|
250
122
|
signing_key:
|
251
|
-
specification_version:
|
123
|
+
specification_version: 4
|
252
124
|
summary: Property sets for ActiveRecord.
|
253
125
|
test_files: []
|
@@ -1,57 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: /Users/primdahl/Git/property_sets
|
3
|
-
specs:
|
4
|
-
property_sets (2.0.1)
|
5
|
-
activerecord (>= 2.3.14, < 3.3)
|
6
|
-
activesupport (>= 2.3.14, < 3.3)
|
7
|
-
json
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
actionpack (2.3.14)
|
13
|
-
activesupport (= 2.3.14)
|
14
|
-
rack (~> 1.1.0)
|
15
|
-
activerecord (2.3.14)
|
16
|
-
activesupport (= 2.3.14)
|
17
|
-
activerecord-jdbc-adapter (1.2.2.1)
|
18
|
-
activerecord-jdbcmysql-adapter (1.2.2)
|
19
|
-
activerecord-jdbc-adapter (~> 1.2.2)
|
20
|
-
jdbc-mysql (~> 5.1.0)
|
21
|
-
activesupport (2.3.14)
|
22
|
-
appraisal (0.5.1)
|
23
|
-
bundler
|
24
|
-
rake
|
25
|
-
jdbc-mysql (5.1.13)
|
26
|
-
json (1.8.0)
|
27
|
-
json (1.8.0-java)
|
28
|
-
metaclass (0.0.1)
|
29
|
-
mocha (0.10.5)
|
30
|
-
metaclass (~> 0.0.1)
|
31
|
-
mysql (2.8.1)
|
32
|
-
rack (1.1.3)
|
33
|
-
rake (10.0.3)
|
34
|
-
shoulda (3.0.1)
|
35
|
-
shoulda-context (~> 1.0.0)
|
36
|
-
shoulda-matchers (~> 1.0.0)
|
37
|
-
shoulda-context (1.0.1)
|
38
|
-
shoulda-matchers (1.0.0)
|
39
|
-
test-unit (2.5.3)
|
40
|
-
|
41
|
-
PLATFORMS
|
42
|
-
java
|
43
|
-
ruby
|
44
|
-
|
45
|
-
DEPENDENCIES
|
46
|
-
actionpack (>= 2.3.14, < 3.3)
|
47
|
-
activerecord (= 2.3.14)
|
48
|
-
activerecord-jdbcmysql-adapter (= 1.2.2)
|
49
|
-
activesupport (= 2.3.14)
|
50
|
-
appraisal
|
51
|
-
bundler
|
52
|
-
mocha (~> 0.10.3)
|
53
|
-
mysql (~> 2.8.1)
|
54
|
-
property_sets!
|
55
|
-
rake
|
56
|
-
shoulda
|
57
|
-
test-unit (>= 2.5.2)
|
@@ -1,86 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: /Users/primdahl/Git/property_sets
|
3
|
-
specs:
|
4
|
-
property_sets (2.0.1)
|
5
|
-
activerecord (>= 2.3.14, < 3.3)
|
6
|
-
activesupport (>= 2.3.14, < 3.3)
|
7
|
-
json
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
abstract (1.0.0)
|
13
|
-
actionpack (3.0.15)
|
14
|
-
activemodel (= 3.0.15)
|
15
|
-
activesupport (= 3.0.15)
|
16
|
-
builder (~> 2.1.2)
|
17
|
-
erubis (~> 2.6.6)
|
18
|
-
i18n (~> 0.5.0)
|
19
|
-
rack (~> 1.2.5)
|
20
|
-
rack-mount (~> 0.6.14)
|
21
|
-
rack-test (~> 0.5.7)
|
22
|
-
tzinfo (~> 0.3.23)
|
23
|
-
activemodel (3.0.15)
|
24
|
-
activesupport (= 3.0.15)
|
25
|
-
builder (~> 2.1.2)
|
26
|
-
i18n (~> 0.5.0)
|
27
|
-
activerecord (3.0.15)
|
28
|
-
activemodel (= 3.0.15)
|
29
|
-
activesupport (= 3.0.15)
|
30
|
-
arel (~> 2.0.10)
|
31
|
-
tzinfo (~> 0.3.23)
|
32
|
-
activerecord-jdbc-adapter (1.2.2.1)
|
33
|
-
activerecord-jdbcmysql-adapter (1.2.2)
|
34
|
-
activerecord-jdbc-adapter (~> 1.2.2)
|
35
|
-
jdbc-mysql (~> 5.1.0)
|
36
|
-
activesupport (3.0.15)
|
37
|
-
appraisal (0.5.1)
|
38
|
-
bundler
|
39
|
-
rake
|
40
|
-
arel (2.0.10)
|
41
|
-
bourne (1.1.2)
|
42
|
-
mocha (= 0.10.5)
|
43
|
-
builder (2.1.2)
|
44
|
-
erubis (2.6.6)
|
45
|
-
abstract (>= 1.0.0)
|
46
|
-
i18n (0.5.0)
|
47
|
-
jdbc-mysql (5.1.13)
|
48
|
-
json (1.8.0)
|
49
|
-
json (1.8.0-java)
|
50
|
-
metaclass (0.0.1)
|
51
|
-
mocha (0.10.5)
|
52
|
-
metaclass (~> 0.0.1)
|
53
|
-
mysql (2.8.1)
|
54
|
-
rack (1.2.5)
|
55
|
-
rack-mount (0.6.14)
|
56
|
-
rack (>= 1.0.0)
|
57
|
-
rack-test (0.5.7)
|
58
|
-
rack (>= 1.0)
|
59
|
-
rake (10.0.3)
|
60
|
-
shoulda (3.3.2)
|
61
|
-
shoulda-context (~> 1.0.1)
|
62
|
-
shoulda-matchers (~> 1.4.1)
|
63
|
-
shoulda-context (1.0.1)
|
64
|
-
shoulda-matchers (1.4.2)
|
65
|
-
activesupport (>= 3.0.0)
|
66
|
-
bourne (~> 1.1.2)
|
67
|
-
test-unit (2.5.3)
|
68
|
-
tzinfo (0.3.35)
|
69
|
-
|
70
|
-
PLATFORMS
|
71
|
-
java
|
72
|
-
ruby
|
73
|
-
|
74
|
-
DEPENDENCIES
|
75
|
-
actionpack (>= 2.3.14, < 3.3)
|
76
|
-
activerecord (= 3.0.15)
|
77
|
-
activerecord-jdbcmysql-adapter (= 1.2.2)
|
78
|
-
activesupport (= 3.0.15)
|
79
|
-
appraisal
|
80
|
-
bundler
|
81
|
-
mocha (~> 0.10.3)
|
82
|
-
mysql (~> 2.8.1)
|
83
|
-
property_sets!
|
84
|
-
rake
|
85
|
-
shoulda
|
86
|
-
test-unit (>= 2.5.2)
|
@@ -1,93 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: /Users/primdahl/Git/property_sets
|
3
|
-
specs:
|
4
|
-
property_sets (2.0.1)
|
5
|
-
activerecord (>= 2.3.14, < 3.3)
|
6
|
-
activesupport (>= 2.3.14, < 3.3)
|
7
|
-
json
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
actionpack (3.2.6)
|
13
|
-
activemodel (= 3.2.6)
|
14
|
-
activesupport (= 3.2.6)
|
15
|
-
builder (~> 3.0.0)
|
16
|
-
erubis (~> 2.7.0)
|
17
|
-
journey (~> 1.0.1)
|
18
|
-
rack (~> 1.4.0)
|
19
|
-
rack-cache (~> 1.2)
|
20
|
-
rack-test (~> 0.6.1)
|
21
|
-
sprockets (~> 2.1.3)
|
22
|
-
activemodel (3.2.6)
|
23
|
-
activesupport (= 3.2.6)
|
24
|
-
builder (~> 3.0.0)
|
25
|
-
activerecord (3.2.6)
|
26
|
-
activemodel (= 3.2.6)
|
27
|
-
activesupport (= 3.2.6)
|
28
|
-
arel (~> 3.0.2)
|
29
|
-
tzinfo (~> 0.3.29)
|
30
|
-
activerecord-jdbc-adapter (1.2.2.1)
|
31
|
-
activerecord-jdbcmysql-adapter (1.2.2)
|
32
|
-
activerecord-jdbc-adapter (~> 1.2.2)
|
33
|
-
jdbc-mysql (~> 5.1.0)
|
34
|
-
activesupport (3.2.6)
|
35
|
-
i18n (~> 0.6)
|
36
|
-
multi_json (~> 1.0)
|
37
|
-
appraisal (0.5.1)
|
38
|
-
bundler
|
39
|
-
rake
|
40
|
-
arel (3.0.2)
|
41
|
-
bourne (1.1.2)
|
42
|
-
mocha (= 0.10.5)
|
43
|
-
builder (3.0.4)
|
44
|
-
erubis (2.7.0)
|
45
|
-
hike (1.2.1)
|
46
|
-
i18n (0.6.1)
|
47
|
-
jdbc-mysql (5.1.13)
|
48
|
-
journey (1.0.4)
|
49
|
-
json (1.8.0)
|
50
|
-
json (1.8.0-java)
|
51
|
-
metaclass (0.0.1)
|
52
|
-
mocha (0.10.5)
|
53
|
-
metaclass (~> 0.0.1)
|
54
|
-
multi_json (1.5.0)
|
55
|
-
mysql (2.8.1)
|
56
|
-
rack (1.4.1)
|
57
|
-
rack-cache (1.2)
|
58
|
-
rack (>= 0.4)
|
59
|
-
rack-test (0.6.2)
|
60
|
-
rack (>= 1.0)
|
61
|
-
rake (10.0.3)
|
62
|
-
shoulda (3.3.2)
|
63
|
-
shoulda-context (~> 1.0.1)
|
64
|
-
shoulda-matchers (~> 1.4.1)
|
65
|
-
shoulda-context (1.0.1)
|
66
|
-
shoulda-matchers (1.4.2)
|
67
|
-
activesupport (>= 3.0.0)
|
68
|
-
bourne (~> 1.1.2)
|
69
|
-
sprockets (2.1.3)
|
70
|
-
hike (~> 1.2)
|
71
|
-
rack (~> 1.0)
|
72
|
-
tilt (~> 1.1, != 1.3.0)
|
73
|
-
test-unit (2.5.3)
|
74
|
-
tilt (1.3.3)
|
75
|
-
tzinfo (0.3.35)
|
76
|
-
|
77
|
-
PLATFORMS
|
78
|
-
java
|
79
|
-
ruby
|
80
|
-
|
81
|
-
DEPENDENCIES
|
82
|
-
actionpack (>= 2.3.14, < 3.3)
|
83
|
-
activerecord (= 3.2.6)
|
84
|
-
activerecord-jdbcmysql-adapter (= 1.2.2)
|
85
|
-
activesupport (= 3.2.6)
|
86
|
-
appraisal
|
87
|
-
bundler
|
88
|
-
mocha (~> 0.10.3)
|
89
|
-
mysql (~> 2.8.1)
|
90
|
-
property_sets!
|
91
|
-
rake
|
92
|
-
shoulda
|
93
|
-
test-unit (>= 2.5.2)
|