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.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/.rvmrc ADDED
@@ -0,0 +1,2 @@
1
+ rvm use ruby-1.8.7-p334@g_named_scope_filters
2
+ rvm info
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in g_named_scope_filters.gemspec
4
+ gemspec
data/Rakefile CHANGED
@@ -1,51 +1 @@
1
- require 'rubygems'
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 = %q{g_named_scope_filters}
8
- s.version = "1.0.6"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["C. Jason Harrelson (midas)"]
12
- s.date = %q{2010-07-19}
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
- 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"]
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
- if s.respond_to? :specification_version then
45
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
- s.specification_version = 3
22
+ [
23
+ ['rspec', '>= 2.0.0']
24
+ ].each do |development_dependency|
25
+ s.add_development_dependency *development_dependency
26
+ end
47
27
 
48
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
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"])
52
- else
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
-
@@ -4,7 +4,6 @@ $:.unshift(File.dirname(__FILE__)) unless
4
4
  require 'g_named_scope_filters/view_helpers'
5
5
 
6
6
  module GNamedScopeFilters
7
- VERSION = '1.0.6'
8
7
  end
9
8
 
10
9
  if defined?( ActionView::Base )
@@ -0,0 +1,3 @@
1
+ module GNamedScopeFilters
2
+ VERSION = "1.1.0"
3
+ end
@@ -162,4 +162,4 @@ module GNamedScopeFilters
162
162
  end
163
163
 
164
164
  end
165
- end
165
+ end
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
- prerelease: false
4
+ hash: 19
5
+ prerelease:
5
6
  segments:
6
7
  - 1
8
+ - 1
7
9
  - 0
8
- - 6
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: 2010-07-19 00:00:00 -05:00
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
- - 8
31
- version: 1.2.8
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: jason@lookforwardenterprises.com
70
+ email:
71
+ - jason@lookforwardenterprises.com
64
72
  executables: []
65
73
 
66
74
  extensions: []
67
75
 
68
- extra_rdoc_files:
69
- - README.rdoc
76
+ extra_rdoc_files: []
77
+
70
78
  files:
71
- - History.txt
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
- - --charset=UTF-8
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.3.6
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
- - spec/g_named_scope_filters_spec.rb
117
- - spec/spec_helper.rb
122
+ test_files: []
123
+
@@ -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
@@ -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"
@@ -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)
@@ -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)
@@ -1,11 +0,0 @@
1
- require File.dirname(__FILE__) + '/spec_helper.rb'
2
-
3
- # Time to add your specs!
4
- # http://rspec.info/
5
- describe "Place your specs here" do
6
-
7
- it "find this spec in spec directory" do
8
- violated "Be sure to write your specs"
9
- end
10
-
11
- end
@@ -1 +0,0 @@
1
- --colour
@@ -1,10 +0,0 @@
1
- begin
2
- require 'spec'
3
- rescue LoadError
4
- require 'rubygems'
5
- gem 'rspec'
6
- require 'spec'
7
- end
8
-
9
- $:.unshift(File.dirname(__FILE__) + '/../lib')
10
- require 'g_named_scope_filters'
@@ -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