rares-acts_as_filterable 0.1.2 → 0.1.3
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/VERSION.yml +1 -1
- data/acts_as_filterable.gemspec +4 -10
- data/lib/acts_as_filterable/base.rb +1 -1
- data/test/acts_as_filterable_integration_test.rb +9 -1
- metadata +4 -34
data/VERSION.yml
CHANGED
data/acts_as_filterable.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{acts_as_filterable}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Rob Ares"]
|
12
|
-
s.date = %q{2009-09-
|
12
|
+
s.date = %q{2009-09-07}
|
13
13
|
s.email = %q{rob.ares@gmail.com}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"LICENSE",
|
@@ -30,11 +30,10 @@ Gem::Specification.new do |s|
|
|
30
30
|
"test/acts_as_filterable_integration_test.rb",
|
31
31
|
"test/test_helper.rb"
|
32
32
|
]
|
33
|
-
s.has_rdoc = true
|
34
33
|
s.homepage = %q{http://github.com/rares/acts_as_filterable}
|
35
34
|
s.rdoc_options = ["--charset=UTF-8"]
|
36
35
|
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = %q{1.3.
|
36
|
+
s.rubygems_version = %q{1.3.5}
|
38
37
|
s.summary = %q{TODO}
|
39
38
|
s.test_files = [
|
40
39
|
"test/acts_as_filterable_integration_test.rb",
|
@@ -43,19 +42,14 @@ Gem::Specification.new do |s|
|
|
43
42
|
|
44
43
|
if s.respond_to? :specification_version then
|
45
44
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
46
|
-
s.specification_version =
|
45
|
+
s.specification_version = 3
|
47
46
|
|
48
47
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
49
48
|
s.add_runtime_dependency(%q<activerecord>, [">= 1.15.0"])
|
50
|
-
s.add_runtime_dependency(%q<activesupport>, [">= 1.4.4"])
|
51
|
-
s.add_development_dependency(%q<Shoulda>)
|
52
|
-
s.add_development_dependency(%q<matchy>)
|
53
49
|
else
|
54
50
|
s.add_dependency(%q<activerecord>, [">= 1.15.0"])
|
55
|
-
s.add_dependency(%q<activesupport>, [">= 1.4.4"])
|
56
51
|
end
|
57
52
|
else
|
58
53
|
s.add_dependency(%q<activerecord>, [">= 1.15.0"])
|
59
|
-
s.add_dependency(%q<activesupport>, [">= 1.4.4"])
|
60
54
|
end
|
61
55
|
end
|
@@ -106,7 +106,15 @@ class ActsAsFilterableIntegrationTest < Test::Unit::TestCase
|
|
106
106
|
should "hold seperate collections of filtered_attributes" do
|
107
107
|
User.filtered_attributes.should_not == ContactDetail.filtered_attributes
|
108
108
|
end
|
109
|
-
|
109
|
+
|
110
|
+
should "not overwrite attributes for other models" do
|
111
|
+
ContactDetail.filtered_attributes.include?(:fax_number).should_not be(nil)
|
112
|
+
end
|
113
|
+
|
114
|
+
should "not add filtered attributes to models that they are not intended for" do
|
115
|
+
User.filtered_attributes.include?(:phone_number).should_not be(true)
|
116
|
+
end
|
117
|
+
|
110
118
|
end
|
111
119
|
|
112
120
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rares-acts_as_filterable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Ares
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-07 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -22,36 +22,6 @@ dependencies:
|
|
22
22
|
- !ruby/object:Gem::Version
|
23
23
|
version: 1.15.0
|
24
24
|
version:
|
25
|
-
- !ruby/object:Gem::Dependency
|
26
|
-
name: activesupport
|
27
|
-
type: :runtime
|
28
|
-
version_requirement:
|
29
|
-
version_requirements: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 1.4.4
|
34
|
-
version:
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: Shoulda
|
37
|
-
type: :development
|
38
|
-
version_requirement:
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: "0"
|
44
|
-
version:
|
45
|
-
- !ruby/object:Gem::Dependency
|
46
|
-
name: matchy
|
47
|
-
type: :development
|
48
|
-
version_requirement:
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: "0"
|
54
|
-
version:
|
55
25
|
description:
|
56
26
|
email: rob.ares@gmail.com
|
57
27
|
executables: []
|
@@ -75,7 +45,7 @@ files:
|
|
75
45
|
- rails/init.rb
|
76
46
|
- test/acts_as_filterable_integration_test.rb
|
77
47
|
- test/test_helper.rb
|
78
|
-
has_rdoc:
|
48
|
+
has_rdoc: false
|
79
49
|
homepage: http://github.com/rares/acts_as_filterable
|
80
50
|
post_install_message:
|
81
51
|
rdoc_options:
|
@@ -99,7 +69,7 @@ requirements: []
|
|
99
69
|
rubyforge_project:
|
100
70
|
rubygems_version: 1.2.0
|
101
71
|
signing_key:
|
102
|
-
specification_version:
|
72
|
+
specification_version: 3
|
103
73
|
summary: TODO
|
104
74
|
test_files:
|
105
75
|
- test/acts_as_filterable_integration_test.rb
|