g_named_scope_filters 1.0.4 → 1.0.5

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/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
- This is an unordered list of filters that use named scopes within an ActiveRecord model
9
- to filter a list. It is not tied to a table or list specifically as it simply manipulates the url, resulting
10
- in a manipulation of any collection (list, table, etc.) it may be coupled with.
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.8 (http://github.com/midas/guilded/tree/master)
27
+ * Guilded >= 1.0.0 (http://github.com/midas/guilded/tree/master)
28
28
 
29
29
 
30
30
  == INSTALL:
31
31
 
32
- sudo gem install midas-g_named_scope_filters
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 'midas-g_named_scope_filters', :version => '1.0.0', :lib => 'g_named_scope_filters', :source => 'http://gems.github.com'
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
- class Item < ActiveRecord::Base
44
- named_scope :recent, lambda { { :conditions => [ "date_of_offense BETWEEN ? AND ?",
45
- 31.days.ago.utc, Time.zone.now.end_of_day.utc ] } }
46
- named_scope :inactive, :conditions => { :is_active => false }
47
- end
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
- Recent
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
- Inactive
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
- %w[rubygems rake rake/clean fileutils newgem rubigen].each { |f| require f }
2
- require File.dirname(__FILE__) + '/lib/g_named_scope_filters'
1
+ require 'rubygems'
2
+ require 'rake'
3
3
 
4
- # Generate all the Rake tasks
5
- # Run 'rake -T' to see list of generated tasks (from gem root directory)
6
- $hoe = Hoe.new('g_named_scope_filters', GNamedScopeFilters::VERSION) do |p|
7
- p.developer('C. Jason Harrelson (midas)', 'jason@lookforwardenterprises.com')
8
- p.changes = p.paragraphs_of("History.txt", 0..1).join("\n\n")
9
- p.post_install_message = 'PostInstall.txt' # TODO remove if post-install message not required
10
- p.rubyforge_name = p.name # TODO this is default value
11
- # p.extra_deps = [
12
- # ['activesupport','>= 2.0.2'],
13
- # ]
14
- p.extra_dev_deps = [
15
- ['newgem', ">= #{::Newgem::VERSION}"],
16
- ['rails', ">= 2.2.0"],
17
- ['midas-guilded', ">=0.0.6"]
18
- ]
19
-
20
- p.clean_globs |= %w[**/.DS_Store tmp *.log]
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 'newgem/tasks' # load /tasks/*.rake
27
- Dir['tasks/**/*.rake'].each { |t| load t }
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
- # TODO - want other tests/tasks run by default? Add them to the list
30
- # task :default => [:spec, :features]
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.4"
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-11}
10
- s.description = %q{This is 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.}
11
- s.email = ["jason@lookforwardenterprises.com"]
12
- s.extra_rdoc_files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc"]
13
- s.files = ["History.txt", "Manifest.txt", "PostInstall.txt", "README.rdoc", "Rakefile", "g_named_scope_filters.gemspec", "lib/g_named_scope_filters.rb", "lib/g_named_scope_filters/view_helpers.rb", "script/console", "script/destroy", "script/generate", "spec/g_named_scope_filters_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "tasks/rspec.rake"]
14
- s.has_rdoc = true
15
- s.homepage = %q{http://github.com/midas/g_named_scope_filters/tree/master}
16
- s.post_install_message = %q{PostInstall.txt}
17
- s.rdoc_options = ["--main", "README.rdoc"]
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.rubyforge_project = %q{g_named_scope_filters}
20
- s.rubygems_version = %q{1.3.1}
21
- s.summary = %q{This is an unordered list of filters that use named scopes within an ActiveRecord model to filter a list}
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 = 2
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<newgem>, [">= 1.3.0"])
29
- s.add_development_dependency(%q<rails>, [">= 2.2.0"])
30
- s.add_development_dependency(%q<midas-guilded>, [">= 0.0.6"])
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<newgem>, [">= 1.3.0"])
53
+ s.add_dependency(%q<rspec>, [">= 1.2.8"])
34
54
  s.add_dependency(%q<rails>, [">= 2.2.0"])
35
- s.add_dependency(%q<midas-guilded>, [">= 0.0.6"])
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<newgem>, [">= 1.3.0"])
58
+ s.add_dependency(%q<rspec>, [">= 1.2.8"])
40
59
  s.add_dependency(%q<rails>, [">= 2.2.0"])
41
- s.add_dependency(%q<midas-guilded>, [">= 0.0.6"])
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
+
@@ -4,7 +4,7 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require 'g_named_scope_filters/view_helpers'
5
5
 
6
6
  module GNamedScopeFilters
7
- VERSION = '1.0.4'
7
+ VERSION = '1.0.5'
8
8
  end
9
9
 
10
10
  if defined?( ActionView::Base )
@@ -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
- link_text = "All"
81
-
82
- if options[:include_count]
83
- if record_counts
84
- link_text << " <span>#{record_counts[:all]}</span>"
85
- elsif scoped_by
86
- if polymorphic_type
87
- poly_scoped_finder = polymorphic_type.to_s.tableize
88
- link_text << " <span>#{scoped_by.send( poly_scoped_finder.to_sym ).count}</span>"
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
- scoped_finder = klass.to_s.tableize
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
- filter_options = Array.new
99
- filter_options.push( :order => params[:order] ) if params[:order]
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
- html << "<li>"
102
- html << link_to( link_text, @controller.send( list_path_helper, *(path_helpers[:index_rest_args] + filter_options) ),
103
- :class => "#{params[:filter].nil? ? options[:selected_class] : ''}" )
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!( :filter => filter )
147
+ filter_options[filter_options.size-1].merge!( filter_param_key.to_sym => filter )
136
148
  else
137
- filter_options.push( :filter => filter )
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
- :class => "#{params[:filter] == filter.to_s ? options[:selected_class] : ''}" )
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
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-10-12 00:00:00 -05:00
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: newgem
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.3.0
23
+ version: 1.2.8
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- type: :development
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: midas-guilded
37
- type: :development
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.6
43
+ version: 1.0.0
44
44
  version:
45
- - !ruby/object:Gem::Dependency
46
- name: hoe
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/tree/master
69
+ homepage: http://github.com/midas/g_named_scope_filters
88
70
  licenses: []
89
71
 
90
- post_install_message: PostInstall.txt
72
+ post_install_message:
91
73
  rdoc_options:
92
- - --main
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: g_named_scope_filters
91
+ rubyforge_project:
111
92
  rubygems_version: 1.3.5
112
93
  signing_key:
113
94
  specification_version: 3
114
- summary: This is an unordered list of filters that use named scopes within an ActiveRecord model to filter a list
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
data/PostInstall.txt DELETED
@@ -1,7 +0,0 @@
1
-
2
- For more information on g_named_scope_filters, see http://g_named_scope_filters.rubyforge.org
3
-
4
- NOTE: Change this information in PostInstall.txt
5
- You can also delete it if you don't want it.
6
-
7
-