g_named_scope_filters 1.0.6 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/.rvmrc +2 -0
- data/Gemfile +4 -0
- data/Rakefile +1 -51
- data/g_named_scope_filters.gemspec +25 -54
- data/lib/g_named_scope_filters.rb +0 -1
- data/lib/g_named_scope_filters/version.rb +3 -0
- data/lib/g_named_scope_filters/view_helpers.rb +1 -1
- metadata +32 -26
- data/History.txt +0 -29
- data/VERSION +0 -1
- data/script/console +0 -10
- data/script/destroy +0 -14
- data/script/generate +0 -14
- data/spec/g_named_scope_filters_spec.rb +0 -11
- data/spec/spec.opts +0 -1
- data/spec/spec_helper.rb +0 -10
- data/tasks/rspec.rake +0 -21
data/.gitignore
ADDED
data/.rvmrc
ADDED
data/Gemfile
ADDED
data/Rakefile
CHANGED
@@ -1,51 +1 @@
|
|
1
|
-
require
|
2
|
-
require 'rake'
|
3
|
-
|
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"
|
21
|
-
end
|
22
|
-
|
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
|
36
|
-
|
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
|
1
|
+
require "bundler/gem_tasks"
|
@@ -1,63 +1,34 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "g_named_scope_filters/version"
|
5
4
|
|
6
5
|
Gem::Specification.new do |s|
|
7
|
-
s.name
|
8
|
-
s.version
|
9
|
-
|
10
|
-
s.
|
11
|
-
s.
|
12
|
-
s.
|
6
|
+
s.name = "g_named_scope_filters"
|
7
|
+
s.version = GNamedScopeFilters::VERSION
|
8
|
+
s.date = Time.now.utc.strftime("%Y-%m-%d")
|
9
|
+
s.authors = ["C. Jason Harrelson (midas)"]
|
10
|
+
s.email = ["jason@lookforwardenterprises.com"]
|
11
|
+
s.homepage = "http://github.com/midas/g_named_scope_filters"
|
12
|
+
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.}
|
13
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
|
-
|
15
|
-
s.
|
16
|
-
|
17
|
-
|
18
|
-
s.files
|
19
|
-
|
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"]
|
14
|
+
|
15
|
+
s.rubyforge_project = "g_named_scope_filters"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
36
20
|
s.require_paths = ["lib"]
|
37
|
-
s.rubygems_version = %q{1.3.6}
|
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
|
-
]
|
43
21
|
|
44
|
-
|
45
|
-
|
46
|
-
|
22
|
+
[
|
23
|
+
['rspec', '>= 2.0.0']
|
24
|
+
].each do |development_dependency|
|
25
|
+
s.add_development_dependency *development_dependency
|
26
|
+
end
|
47
27
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
s.add_dependency(%q<rspec>, [">= 1.2.8"])
|
54
|
-
s.add_dependency(%q<rails>, [">= 2.2.0"])
|
55
|
-
s.add_dependency(%q<guilded>, [">= 1.0.0"])
|
56
|
-
end
|
57
|
-
else
|
58
|
-
s.add_dependency(%q<rspec>, [">= 1.2.8"])
|
59
|
-
s.add_dependency(%q<rails>, [">= 2.2.0"])
|
60
|
-
s.add_dependency(%q<guilded>, [">= 1.0.0"])
|
28
|
+
[
|
29
|
+
['rails', '>= 2.2.0'],
|
30
|
+
['guilded', '>= 1.0.0']
|
31
|
+
].each do |runtime_dependency|
|
32
|
+
s.add_runtime_dependency *runtime_dependency
|
61
33
|
end
|
62
34
|
end
|
63
|
-
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: g_named_scope_filters
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 19
|
5
|
+
prerelease:
|
5
6
|
segments:
|
6
7
|
- 1
|
8
|
+
- 1
|
7
9
|
- 0
|
8
|
-
|
9
|
-
version: 1.0.6
|
10
|
+
version: 1.1.0
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- C. Jason Harrelson (midas)
|
@@ -14,30 +15,34 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date:
|
18
|
+
date: 2011-10-20 00:00:00 -05:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: rspec
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 15
|
27
30
|
segments:
|
28
|
-
- 1
|
29
31
|
- 2
|
30
|
-
-
|
31
|
-
|
32
|
+
- 0
|
33
|
+
- 0
|
34
|
+
version: 2.0.0
|
32
35
|
type: :development
|
33
36
|
version_requirements: *id001
|
34
37
|
- !ruby/object:Gem::Dependency
|
35
38
|
name: rails
|
36
39
|
prerelease: false
|
37
40
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
38
42
|
requirements:
|
39
43
|
- - ">="
|
40
44
|
- !ruby/object:Gem::Version
|
45
|
+
hash: 7
|
41
46
|
segments:
|
42
47
|
- 2
|
43
48
|
- 2
|
@@ -49,9 +54,11 @@ dependencies:
|
|
49
54
|
name: guilded
|
50
55
|
prerelease: false
|
51
56
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
52
58
|
requirements:
|
53
59
|
- - ">="
|
54
60
|
- !ruby/object:Gem::Version
|
61
|
+
hash: 23
|
55
62
|
segments:
|
56
63
|
- 1
|
57
64
|
- 0
|
@@ -60,58 +67,57 @@ dependencies:
|
|
60
67
|
type: :runtime
|
61
68
|
version_requirements: *id003
|
62
69
|
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.
|
63
|
-
email:
|
70
|
+
email:
|
71
|
+
- jason@lookforwardenterprises.com
|
64
72
|
executables: []
|
65
73
|
|
66
74
|
extensions: []
|
67
75
|
|
68
|
-
extra_rdoc_files:
|
69
|
-
|
76
|
+
extra_rdoc_files: []
|
77
|
+
|
70
78
|
files:
|
71
|
-
-
|
79
|
+
- .gitignore
|
80
|
+
- .rvmrc
|
81
|
+
- Gemfile
|
72
82
|
- README.rdoc
|
73
83
|
- Rakefile
|
74
|
-
- VERSION
|
75
84
|
- g_named_scope_filters.gemspec
|
76
85
|
- lib/g_named_scope_filters.rb
|
86
|
+
- lib/g_named_scope_filters/version.rb
|
77
87
|
- lib/g_named_scope_filters/view_helpers.rb
|
78
|
-
- script/console
|
79
|
-
- script/destroy
|
80
|
-
- script/generate
|
81
|
-
- spec/g_named_scope_filters_spec.rb
|
82
|
-
- spec/spec.opts
|
83
|
-
- spec/spec_helper.rb
|
84
|
-
- tasks/rspec.rake
|
85
88
|
has_rdoc: true
|
86
89
|
homepage: http://github.com/midas/g_named_scope_filters
|
87
90
|
licenses: []
|
88
91
|
|
89
92
|
post_install_message:
|
90
|
-
rdoc_options:
|
91
|
-
|
93
|
+
rdoc_options: []
|
94
|
+
|
92
95
|
require_paths:
|
93
96
|
- lib
|
94
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
none: false
|
95
99
|
requirements:
|
96
100
|
- - ">="
|
97
101
|
- !ruby/object:Gem::Version
|
102
|
+
hash: 3
|
98
103
|
segments:
|
99
104
|
- 0
|
100
105
|
version: "0"
|
101
106
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
102
108
|
requirements:
|
103
109
|
- - ">="
|
104
110
|
- !ruby/object:Gem::Version
|
111
|
+
hash: 3
|
105
112
|
segments:
|
106
113
|
- 0
|
107
114
|
version: "0"
|
108
115
|
requirements: []
|
109
116
|
|
110
|
-
rubyforge_project:
|
111
|
-
rubygems_version: 1.
|
117
|
+
rubyforge_project: g_named_scope_filters
|
118
|
+
rubygems_version: 1.6.0
|
112
119
|
signing_key:
|
113
120
|
specification_version: 3
|
114
121
|
summary: A UI component that generates an unordered list of filters that use named scopes within an ActiveRecord model to filter a list.
|
115
|
-
test_files:
|
116
|
-
|
117
|
-
- spec/spec_helper.rb
|
122
|
+
test_files: []
|
123
|
+
|
data/History.txt
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
== 1.0.5 2010-07-19
|
2
|
-
|
3
|
-
* Fixed bug with the all filter selection when no all filter parameter name is specified.
|
4
|
-
|
5
|
-
== 1.0.5 2009-11-19
|
6
|
-
|
7
|
-
* Added options to control 'All' filter display, parameter and label.
|
8
|
-
* Added option to control filter param key name.
|
9
|
-
|
10
|
-
|
11
|
-
== 1.0.4 2009-10-11
|
12
|
-
|
13
|
-
* Added ability to pass in record counts for the filters to override the control's way of calculating
|
14
|
-
the available record counts.
|
15
|
-
|
16
|
-
|
17
|
-
== 1.0.3 2009-04-17
|
18
|
-
|
19
|
-
* Fixed bug with resources scoped more than 1 level deep
|
20
|
-
|
21
|
-
|
22
|
-
== 1.0.1 2009-04-16
|
23
|
-
|
24
|
-
* Added namespace option
|
25
|
-
|
26
|
-
|
27
|
-
== 1.0.0 2009-03-12
|
28
|
-
|
29
|
-
* Initial release (ported from plugin)
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.6
|
data/script/console
DELETED
@@ -1,10 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
# File: script/console
|
3
|
-
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
-
|
5
|
-
libs = " -r irb/completion"
|
6
|
-
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
-
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
-
libs << " -r #{File.dirname(__FILE__) + '/../lib/g_named_scope_filters.rb'}"
|
9
|
-
puts "Loading g_named_scope_filters gem"
|
10
|
-
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/destroy'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'rubigen'
|
6
|
-
rescue LoadError
|
7
|
-
require 'rubygems'
|
8
|
-
require 'rubigen'
|
9
|
-
end
|
10
|
-
require 'rubigen/scripts/generate'
|
11
|
-
|
12
|
-
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
-
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
-
RubiGen::Scripts::Generate.new.run(ARGV)
|
data/spec/spec.opts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|
data/spec/spec_helper.rb
DELETED
data/tasks/rspec.rake
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'spec'
|
3
|
-
rescue LoadError
|
4
|
-
require 'rubygems'
|
5
|
-
require 'spec'
|
6
|
-
end
|
7
|
-
begin
|
8
|
-
require 'spec/rake/spectask'
|
9
|
-
rescue LoadError
|
10
|
-
puts <<-EOS
|
11
|
-
To use rspec for testing you must install rspec gem:
|
12
|
-
gem install rspec
|
13
|
-
EOS
|
14
|
-
exit(0)
|
15
|
-
end
|
16
|
-
|
17
|
-
desc "Run the specs under spec/models"
|
18
|
-
Spec::Rake::SpecTask.new do |t|
|
19
|
-
t.spec_opts = ['--options', "spec/spec.opts"]
|
20
|
-
t.spec_files = FileList['spec/**/*_spec.rb']
|
21
|
-
end
|