g_named_scope_filters 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +6 -0
- data/README.rdoc +21 -13
- data/Rakefile +47 -26
- data/VERSION +1 -0
- data/g_named_scope_filters.gemspec +43 -24
- data/lib/g_named_scope_filters.rb +1 -1
- data/lib/g_named_scope_filters/view_helpers.rb +40 -28
- metadata +19 -37
- data/Manifest.txt +0 -15
- data/PostInstall.txt +0 -7
data/History.txt
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
== 1.0.5 2009-11-19
|
2
|
+
|
3
|
+
* Added options to control 'All' filter display, parameter and label.
|
4
|
+
* Added option to control filter param key name.
|
5
|
+
|
6
|
+
|
1
7
|
== 1.0.4 2009-10-11
|
2
8
|
|
3
9
|
* Added ability to pass in record counts for the filters to override the control's way of calculating
|
data/README.rdoc
CHANGED
@@ -5,9 +5,9 @@ http://github.com/midas/g_named_scope_filters/tree/master
|
|
5
5
|
|
6
6
|
== DESCRIPTION:
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
8
|
+
A UI component that generates an unordered list of filters that use named scopes within an ActiveRecord model to filter
|
9
|
+
a list. It is not tied to a table or list specifically as it simply manipulates the url, resulting in a manipulation of
|
10
|
+
any collection (list, table, etc.) it may be coupled with.
|
11
11
|
|
12
12
|
|
13
13
|
== FEATURES
|
@@ -24,27 +24,33 @@ in a manipulation of any collection (list, table, etc.) it may be coupled with.
|
|
24
24
|
== REQUIREMENTS:
|
25
25
|
|
26
26
|
* Rails >= 2.2.0
|
27
|
-
* Guilded >= 0.0
|
27
|
+
* Guilded >= 1.0.0 (http://github.com/midas/guilded/tree/master)
|
28
28
|
|
29
29
|
|
30
30
|
== INSTALL:
|
31
31
|
|
32
|
-
|
32
|
+
Update your RubyGem sources to include gemcutter if it is not already:
|
33
|
+
|
34
|
+
gem sources -a http://gemcutter.org
|
35
|
+
|
36
|
+
Install:
|
37
|
+
|
38
|
+
sudo gem install g_named_scope_filters
|
33
39
|
|
34
40
|
In your Rails environment.rb file:
|
35
41
|
|
36
|
-
config.gem '
|
42
|
+
config.gem 'g_named_scope_filters', :version => '1.0.5', :source => 'http://gems.github.com'
|
37
43
|
|
38
44
|
|
39
45
|
== USAGE:
|
40
46
|
|
41
47
|
Model:
|
42
48
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
49
|
+
class Item < ActiveRecord::Base
|
50
|
+
named_scope :recent, lambda { { :conditions => [ "date_of_offense BETWEEN ? AND ?",
|
51
|
+
31.days.ago.utc, Time.zone.now.end_of_day.utc ] } }
|
52
|
+
named_scope :inactive, :conditions => { :is_active => false }
|
53
|
+
end
|
48
54
|
|
49
55
|
View:
|
50
56
|
<%= g_named_scope_filters Item, :only => [:recent, :inactive], :scoped_by => @account, :include_count => true,
|
@@ -64,13 +70,13 @@ Results in:
|
|
64
70
|
</li>
|
65
71
|
<li>
|
66
72
|
<a class="" href="/accounts/2/items?filter=recent">
|
67
|
-
|
73
|
+
Recent
|
68
74
|
<span>1</span>
|
69
75
|
</a>
|
70
76
|
</li>
|
71
77
|
<li>
|
72
78
|
<a class="" href="/accounts/2/items?filter=inactive">
|
73
|
-
|
79
|
+
Inactive
|
74
80
|
<span>0</span>
|
75
81
|
</a>
|
76
82
|
</li>
|
@@ -86,6 +92,8 @@ The hash should contain symbols and integers representing the filter name and th
|
|
86
92
|
|
87
93
|
{ :all => 4, :recent => 2, :inactive => 2 }
|
88
94
|
|
95
|
+
Check the documentation for the g_named_scope_filter method in ViewHelpers module for more options.
|
96
|
+
|
89
97
|
|
90
98
|
== LICENSE:
|
91
99
|
|
data/Rakefile
CHANGED
@@ -1,30 +1,51 @@
|
|
1
|
-
|
2
|
-
require
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
path = (p.rubyforge_name == p.name) ? p.rubyforge_name : "\#{p.rubyforge_name}/\#{p.name}"
|
22
|
-
p.remote_rdoc_dir = File.join(path.gsub(/^#{p.rubyforge_name}\/?/,''), 'rdoc')
|
23
|
-
p.rsync_args = '-av --delete --ignore-errors'
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "g_named_scope_filters"
|
8
|
+
gem.summary = %Q{A UI component that generates an unordered list of filters that use named scopes within an ActiveRecord model to filter a list.}
|
9
|
+
gem.description = %Q{A UI component that generates an unordered list of filters that use named scopes within an ActiveRecord model to filter a list. It is not tied to a table or list specifically as it simply manipulates the url, resulting in a manipulation of any collection (list, table, etc.) it may be coupled with.}
|
10
|
+
gem.email = "jason@lookforwardenterprises.com"
|
11
|
+
gem.homepage = "http://github.com/midas/g_named_scope_filters"
|
12
|
+
gem.authors = ["C. Jason Harrelson (midas)"]
|
13
|
+
gem.add_development_dependency "rspec", ">=1.2.8"
|
14
|
+
gem.add_dependency 'rails', ">= 2.2.0"
|
15
|
+
gem.add_dependency 'guilded', ">=1.0.0"
|
16
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
17
|
+
end
|
18
|
+
Jeweler::GemcutterTasks.new
|
19
|
+
rescue LoadError
|
20
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
24
21
|
end
|
25
22
|
|
26
|
-
require '
|
27
|
-
|
23
|
+
require 'spec/rake/spectask'
|
24
|
+
Spec::Rake::SpecTask.new(:spec) do |spec|
|
25
|
+
spec.libs << 'lib' << 'spec'
|
26
|
+
spec.spec_files = FileList['spec/**/*_spec.rb']
|
27
|
+
end
|
28
|
+
|
29
|
+
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
30
|
+
spec.libs << 'lib' << 'spec'
|
31
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
32
|
+
spec.rcov = true
|
33
|
+
end
|
34
|
+
|
35
|
+
task :spec => :check_dependencies
|
28
36
|
|
29
|
-
|
30
|
-
|
37
|
+
task :default => :spec
|
38
|
+
|
39
|
+
require 'rake/rdoctask'
|
40
|
+
Rake::RDocTask.new do |rdoc|
|
41
|
+
if File.exist?('VERSION')
|
42
|
+
version = File.read('VERSION')
|
43
|
+
else
|
44
|
+
version = ""
|
45
|
+
end
|
46
|
+
|
47
|
+
rdoc.rdoc_dir = 'rdoc'
|
48
|
+
rdoc.title = "test #{version}"
|
49
|
+
rdoc.rdoc_files.include('README*')
|
50
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
51
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
1.0.5
|
@@ -1,44 +1,63 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
1
4
|
# -*- encoding: utf-8 -*-
|
2
5
|
|
3
6
|
Gem::Specification.new do |s|
|
4
7
|
s.name = %q{g_named_scope_filters}
|
5
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.0.5"
|
6
9
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
11
|
s.authors = ["C. Jason Harrelson (midas)"]
|
9
|
-
s.date = %q{2009-
|
10
|
-
s.description = %q{
|
11
|
-
s.email =
|
12
|
-
s.extra_rdoc_files = [
|
13
|
-
|
14
|
-
|
15
|
-
s.
|
16
|
-
|
17
|
-
|
12
|
+
s.date = %q{2009-11-19}
|
13
|
+
s.description = %q{A UI component that generates an unordered list of filters that use named scopes within an ActiveRecord model to filter a list. It is not tied to a table or list specifically as it simply manipulates the url, resulting in a manipulation of any collection (list, table, etc.) it may be coupled with.}
|
14
|
+
s.email = %q{jason@lookforwardenterprises.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
"History.txt",
|
20
|
+
"README.rdoc",
|
21
|
+
"Rakefile",
|
22
|
+
"VERSION",
|
23
|
+
"g_named_scope_filters.gemspec",
|
24
|
+
"lib/g_named_scope_filters.rb",
|
25
|
+
"lib/g_named_scope_filters/view_helpers.rb",
|
26
|
+
"script/console",
|
27
|
+
"script/destroy",
|
28
|
+
"script/generate",
|
29
|
+
"spec/g_named_scope_filters_spec.rb",
|
30
|
+
"spec/spec.opts",
|
31
|
+
"spec/spec_helper.rb",
|
32
|
+
"tasks/rspec.rake"
|
33
|
+
]
|
34
|
+
s.homepage = %q{http://github.com/midas/g_named_scope_filters}
|
35
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
18
36
|
s.require_paths = ["lib"]
|
19
|
-
s.
|
20
|
-
s.
|
21
|
-
s.
|
37
|
+
s.rubygems_version = %q{1.3.5}
|
38
|
+
s.summary = %q{A UI component that generates an unordered list of filters that use named scopes within an ActiveRecord model to filter a list.}
|
39
|
+
s.test_files = [
|
40
|
+
"spec/g_named_scope_filters_spec.rb",
|
41
|
+
"spec/spec_helper.rb"
|
42
|
+
]
|
22
43
|
|
23
44
|
if s.respond_to? :specification_version then
|
24
45
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
25
|
-
s.specification_version =
|
46
|
+
s.specification_version = 3
|
26
47
|
|
27
48
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
28
|
-
s.add_development_dependency(%q<
|
29
|
-
s.
|
30
|
-
s.
|
31
|
-
s.add_development_dependency(%q<hoe>, [">= 1.8.0"])
|
49
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.8"])
|
50
|
+
s.add_runtime_dependency(%q<rails>, [">= 2.2.0"])
|
51
|
+
s.add_runtime_dependency(%q<guilded>, [">= 1.0.0"])
|
32
52
|
else
|
33
|
-
s.add_dependency(%q<
|
53
|
+
s.add_dependency(%q<rspec>, [">= 1.2.8"])
|
34
54
|
s.add_dependency(%q<rails>, [">= 2.2.0"])
|
35
|
-
s.add_dependency(%q<
|
36
|
-
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
55
|
+
s.add_dependency(%q<guilded>, [">= 1.0.0"])
|
37
56
|
end
|
38
57
|
else
|
39
|
-
s.add_dependency(%q<
|
58
|
+
s.add_dependency(%q<rspec>, [">= 1.2.8"])
|
40
59
|
s.add_dependency(%q<rails>, [">= 2.2.0"])
|
41
|
-
s.add_dependency(%q<
|
42
|
-
s.add_dependency(%q<hoe>, [">= 1.8.0"])
|
60
|
+
s.add_dependency(%q<guilded>, [">= 1.0.0"])
|
43
61
|
end
|
44
62
|
end
|
63
|
+
|
@@ -17,6 +17,12 @@ module GNamedScopeFilters
|
|
17
17
|
# +only+ - This is the filters to include. Can be an array or string (for one filter).
|
18
18
|
# +include_count+ - True if you would like a span created within each filter list item containg the count for
|
19
19
|
# items in that filter.
|
20
|
+
# +record_counts+ - A hash providing teh counts for each filter to override the built in counting funcitonality.
|
21
|
+
# +include_all+ - True if you want the all filter to be renderred, otherwise false. Defaults to true.
|
22
|
+
# +all_label+ - The text to use for the All filter's label. Defaults to 'All.'
|
23
|
+
# +all_param+ - The param to pass for the all filter. Set to :none or false for no filter parameter added to URL
|
24
|
+
# when all selected. Defaults to false.
|
25
|
+
# +filter_param_key+ - The key for the filter param. Defaults to 'filter.' ie. &filter=something
|
20
26
|
# +scoped_by+ - This is the ActiveRecord object that this list is scoped by. For instance, if an account
|
21
27
|
# has many users and this is the user list for said acccount, then you would use :scoped_by => @account.
|
22
28
|
# This will scope the user list with filter to that account. It will also change the path helper from
|
@@ -45,7 +51,13 @@ module GNamedScopeFilters
|
|
45
51
|
polymorphic_type = options[:polymorphic_type]
|
46
52
|
polymorphic_as = options[:polymorphic_as]
|
47
53
|
record_counts = options[:record_counts]
|
48
|
-
|
54
|
+
include_all = options[:include_all]
|
55
|
+
include_all = true unless include_all == false
|
56
|
+
all_label = options[:all_label] || 'All'
|
57
|
+
all_param = options[:all_param]
|
58
|
+
all_param = nil if all_param == :none || all_param == false
|
59
|
+
filter_param_key = options[:filter_param_key] || 'filter'
|
60
|
+
|
49
61
|
raise "You must provide the 'polymorphic_as' option if you provide the 'polymorphic_type' option." if polymorphic_type && !polymorphic_as
|
50
62
|
|
51
63
|
Guilded::Guilder.instance.add( :named_scope_filters, options )
|
@@ -70,44 +82,44 @@ module GNamedScopeFilters
|
|
70
82
|
return html if filters.empty?
|
71
83
|
|
72
84
|
# Resolve scoped by if it is an array
|
73
|
-
if scoped_by.is_a?( Array )
|
74
|
-
scoped_by = scoped_by.last
|
75
|
-
end
|
85
|
+
scoped_by = scoped_by.last if scoped_by.is_a?( Array )
|
76
86
|
|
77
87
|
html << "<ul id=\"#{options[:id].to_s}\" class=\"#{options[:class].to_s}\">"
|
78
88
|
|
79
89
|
# Handle the all filter
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
if
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
90
|
+
if include_all
|
91
|
+
link_text = all_label
|
92
|
+
|
93
|
+
if options[:include_count]
|
94
|
+
if record_counts
|
95
|
+
link_text << " <span>#{record_counts[:all]}</span>"
|
96
|
+
elsif scoped_by
|
97
|
+
if polymorphic_type
|
98
|
+
poly_scoped_finder = polymorphic_type.to_s.tableize
|
99
|
+
link_text << " <span>#{scoped_by.send( poly_scoped_finder.to_sym ).count}</span>"
|
100
|
+
else
|
101
|
+
scoped_finder = klass.to_s.tableize
|
102
|
+
link_text << " <span>#{scoped_by.send( scoped_finder.to_sym ).count}</span>"
|
103
|
+
end
|
89
104
|
else
|
90
|
-
|
91
|
-
link_text << " <span>#{scoped_by.send( scoped_finder.to_sym ).count}</span>"
|
105
|
+
link_text << " <span>#{klass.count}</span>"
|
92
106
|
end
|
93
|
-
else
|
94
|
-
link_text << " <span>#{klass.count}</span>"
|
95
107
|
end
|
96
|
-
end
|
97
108
|
|
98
|
-
|
99
|
-
|
109
|
+
filter_options = []
|
110
|
+
filter_options.push( :order => params[:order] ) if params[:order]
|
111
|
+
filter_options.push( filter_param_key.to_sym => all_param ) if all_param # Send a param for 'All' filter
|
100
112
|
|
101
|
-
|
102
|
-
|
103
|
-
|
113
|
+
html << "<li>"
|
114
|
+
html << link_to( link_text, @controller.send( list_path_helper, *(path_helpers[:index_rest_args] + filter_options) ),
|
115
|
+
:class => "#{params[:filter] == all_param.to_s ? options[:selected_class] : ''}" )
|
116
|
+
end
|
104
117
|
|
105
118
|
filters.each do |filter|
|
106
119
|
throw "You must define a named scope of '#{filter.to_s}' in order to render a named scope filter for it" unless klass.respond_to?( filter.to_sym )
|
107
120
|
link_text = filter.to_s.humanize
|
108
121
|
|
109
122
|
if options[:include_count]
|
110
|
-
|
111
123
|
if record_counts
|
112
124
|
link_text << " <span>#{record_counts[filter.to_sym]}</span>"
|
113
125
|
elsif scoped_by
|
@@ -127,19 +139,19 @@ module GNamedScopeFilters
|
|
127
139
|
else
|
128
140
|
link_text << " <span>#{klass.send( filter.to_sym ).count}</span>"
|
129
141
|
end
|
130
|
-
|
131
142
|
end
|
132
143
|
|
144
|
+
filter_options = []
|
133
145
|
#filter_options.merge!( :filter => filter )
|
134
146
|
if filter_options[filter_options.size-1].is_a?( Hash )
|
135
|
-
filter_options[filter_options.size-1].merge!(
|
147
|
+
filter_options[filter_options.size-1].merge!( filter_param_key.to_sym => filter )
|
136
148
|
else
|
137
|
-
filter_options.push(
|
149
|
+
filter_options.push( filter_param_key.to_sym => filter )
|
138
150
|
end
|
139
151
|
|
140
152
|
html << "<li>"
|
141
153
|
html << link_to( link_text, @controller.send( list_path_helper, *(path_helpers[:index_rest_args] + filter_options) ),
|
142
|
-
|
154
|
+
:class => "#{params[:filter] == filter.to_s ? options[:selected_class] : ''}" )
|
143
155
|
html << "</li>"
|
144
156
|
end
|
145
157
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g_named_scope_filters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- C. Jason Harrelson (midas)
|
@@ -9,22 +9,22 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-11-19 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: rspec
|
17
17
|
type: :development
|
18
18
|
version_requirement:
|
19
19
|
version_requirements: !ruby/object:Gem::Requirement
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 1.
|
23
|
+
version: 1.2.8
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rails
|
27
|
-
type: :
|
27
|
+
type: :runtime
|
28
28
|
version_requirement:
|
29
29
|
version_requirements: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
@@ -33,46 +33,28 @@ dependencies:
|
|
33
33
|
version: 2.2.0
|
34
34
|
version:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
name:
|
37
|
-
type: :
|
36
|
+
name: guilded
|
37
|
+
type: :runtime
|
38
38
|
version_requirement:
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.0
|
43
|
+
version: 1.0.0
|
44
44
|
version:
|
45
|
-
|
46
|
-
|
47
|
-
type: :development
|
48
|
-
version_requirement:
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - ">="
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.8.0
|
54
|
-
version:
|
55
|
-
description: |-
|
56
|
-
This is an unordered list of filters that use named scopes within an ActiveRecord model
|
57
|
-
to filter a list. It is not tied to a table or list specifically as it simply manipulates the url, resulting
|
58
|
-
in a manipulation of any collection (list, table, etc.) it may be coupled with.
|
59
|
-
email:
|
60
|
-
- jason@lookforwardenterprises.com
|
45
|
+
description: A UI component that generates an unordered list of filters that use named scopes within an ActiveRecord model to filter a list. It is not tied to a table or list specifically as it simply manipulates the url, resulting in a manipulation of any collection (list, table, etc.) it may be coupled with.
|
46
|
+
email: jason@lookforwardenterprises.com
|
61
47
|
executables: []
|
62
48
|
|
63
49
|
extensions: []
|
64
50
|
|
65
51
|
extra_rdoc_files:
|
66
|
-
- History.txt
|
67
|
-
- Manifest.txt
|
68
|
-
- PostInstall.txt
|
69
52
|
- README.rdoc
|
70
53
|
files:
|
71
54
|
- History.txt
|
72
|
-
- Manifest.txt
|
73
|
-
- PostInstall.txt
|
74
55
|
- README.rdoc
|
75
56
|
- Rakefile
|
57
|
+
- VERSION
|
76
58
|
- g_named_scope_filters.gemspec
|
77
59
|
- lib/g_named_scope_filters.rb
|
78
60
|
- lib/g_named_scope_filters/view_helpers.rb
|
@@ -84,13 +66,12 @@ files:
|
|
84
66
|
- spec/spec_helper.rb
|
85
67
|
- tasks/rspec.rake
|
86
68
|
has_rdoc: true
|
87
|
-
homepage: http://github.com/midas/g_named_scope_filters
|
69
|
+
homepage: http://github.com/midas/g_named_scope_filters
|
88
70
|
licenses: []
|
89
71
|
|
90
|
-
post_install_message:
|
72
|
+
post_install_message:
|
91
73
|
rdoc_options:
|
92
|
-
- --
|
93
|
-
- README.rdoc
|
74
|
+
- --charset=UTF-8
|
94
75
|
require_paths:
|
95
76
|
- lib
|
96
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -107,10 +88,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
88
|
version:
|
108
89
|
requirements: []
|
109
90
|
|
110
|
-
rubyforge_project:
|
91
|
+
rubyforge_project:
|
111
92
|
rubygems_version: 1.3.5
|
112
93
|
signing_key:
|
113
94
|
specification_version: 3
|
114
|
-
summary:
|
115
|
-
test_files:
|
116
|
-
|
95
|
+
summary: A UI component that generates an unordered list of filters that use named scopes within an ActiveRecord model to filter a list.
|
96
|
+
test_files:
|
97
|
+
- spec/g_named_scope_filters_spec.rb
|
98
|
+
- spec/spec_helper.rb
|
data/Manifest.txt
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
History.txt
|
2
|
-
Manifest.txt
|
3
|
-
PostInstall.txt
|
4
|
-
README.rdoc
|
5
|
-
Rakefile
|
6
|
-
g_named_scope_filters.gemspec
|
7
|
-
lib/g_named_scope_filters.rb
|
8
|
-
lib/g_named_scope_filters/view_helpers.rb
|
9
|
-
script/console
|
10
|
-
script/destroy
|
11
|
-
script/generate
|
12
|
-
spec/g_named_scope_filters_spec.rb
|
13
|
-
spec/spec.opts
|
14
|
-
spec/spec_helper.rb
|
15
|
-
tasks/rspec.rake
|