aub-record_filter 0.9.11 → 0.9.12

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,10 +12,16 @@ begin
12
12
  gemspec.name = 'record_filter'
13
13
  gemspec.summary = 'An ActiveRecord query API for replacing SQL with awesome'
14
14
  gemspec.email = 'aubreyholland@gmail.com'
15
- gemspec.homepage = 'http://github.com/aub/record_filter/tree/master'
15
+ gemspec.homepage = 'http://github.com/aub/record_filter'
16
+ gemspec.add_dependency 'activerecord'
17
+ gemspec.add_development_dependency 'rspec'
18
+ gemspec.rubyforge_project = 'record-filter'
16
19
  gemspec.description = 'RecordFilter is a Pure-ruby criteria API for building complex queries in ActiveRecord. It supports queries that are built on the fly as well as named filters that can be added to objects and chained to create complex queries. It also gets rid of the nasty hard-coded SQL that shows up in most ActiveRecord code with a clean API that makes queries simple and intuitive to build.'
17
20
  gemspec.authors = ['Aubrey Holland', 'Mat Brown']
18
21
  end
22
+ Jeweler::RubyforgeTasks.new do |rubyforge|
23
+ rubyforge.doc_task = 'rdoc'
24
+ end
19
25
  rescue LoadError
20
26
  puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
21
27
  end
@@ -1,4 +1,4 @@
1
1
  ---
2
- :major: 0
3
2
  :minor: 9
4
- :patch: 11
3
+ :patch: 12
4
+ :major: 0
@@ -1,5 +1,3 @@
1
- require 'rubygems'
2
- gem 'activerecord', '~> 2.3'
3
1
  require 'active_record'
4
2
 
5
3
  %w(active_record column_parser query table conjunctions restrictions restriction_factory filter join order group_by dsl).each do |file|
@@ -1,12 +1,15 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
1
4
  # -*- encoding: utf-8 -*-
2
5
 
3
6
  Gem::Specification.new do |s|
4
7
  s.name = %q{record_filter}
5
- s.version = "0.9.11"
8
+ s.version = "0.9.12"
6
9
 
7
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
11
  s.authors = ["Aubrey Holland", "Mat Brown"]
9
- s.date = %q{2009-08-11}
12
+ s.date = %q{2009-09-13}
10
13
  s.description = %q{RecordFilter is a Pure-ruby criteria API for building complex queries in ActiveRecord. It supports queries that are built on the fly as well as named filters that can be added to objects and chained to create complex queries. It also gets rid of the nasty hard-coded SQL that shows up in most ActiveRecord code with a clean API that makes queries simple and intuitive to build.}
11
14
  s.email = %q{aubreyholland@gmail.com}
12
15
  s.extra_rdoc_files = [
@@ -66,9 +69,10 @@ Gem::Specification.new do |s|
66
69
  "test/performance_test.rb",
67
70
  "test/test.db"
68
71
  ]
69
- s.homepage = %q{http://github.com/aub/record_filter/tree/master}
72
+ s.homepage = %q{http://github.com/aub/record_filter}
70
73
  s.rdoc_options = ["--charset=UTF-8"]
71
74
  s.require_paths = ["lib"]
75
+ s.rubyforge_project = %q{record-filter}
72
76
  s.rubygems_version = %q{1.3.3}
73
77
  s.summary = %q{An ActiveRecord query API for replacing SQL with awesome}
74
78
  s.test_files = [
@@ -91,8 +95,14 @@ Gem::Specification.new do |s|
91
95
  s.specification_version = 3
92
96
 
93
97
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
98
+ s.add_runtime_dependency(%q<activerecord>, [">= 0"])
99
+ s.add_development_dependency(%q<rspec>, [">= 0"])
94
100
  else
101
+ s.add_dependency(%q<activerecord>, [">= 0"])
102
+ s.add_dependency(%q<rspec>, [">= 0"])
95
103
  end
96
104
  else
105
+ s.add_dependency(%q<activerecord>, [">= 0"])
106
+ s.add_dependency(%q<rspec>, [">= 0"])
97
107
  end
98
108
  end
@@ -102,8 +102,8 @@ describe 'named filters' do
102
102
  end
103
103
 
104
104
  it 'should provide access to the named filters' do
105
- @comment.named_filters.should == [:with_contents]
106
- @nice_comment.named_filters.sort_by { |i| i.to_s }.should == [:offensive, :with_contents]
105
+ @nice_comment.named_filters.sort_by { |i| i.to_s }.should ==
106
+ (@comment.named_filters << :offensive).sort_by { |i| i.to_s }
107
107
  end
108
108
  end
109
109
 
@@ -71,6 +71,7 @@ describe 'with custom selects for cases where DISTINCT is required' do
71
71
  with(:offensive, true)
72
72
  distinct
73
73
  end
74
+ Blog.create
74
75
  Blog.first.comments.dirty.inspect
75
76
  Comment.last_find[:select].should == %q(DISTINCT "comments".*)
76
77
  end
@@ -1,6 +1,4 @@
1
1
  require 'rubygems'
2
- gem 'rspec', '~> 1.1'
3
- gem 'sqlite3-ruby'
4
2
 
5
3
  begin
6
4
  require 'ruby-debug'
@@ -9,7 +7,7 @@ rescue LoadError
9
7
  end
10
8
 
11
9
  require 'spec'
12
-
10
+ require 'sqlite3'
13
11
  require File.join(File.dirname(__FILE__), '..', 'lib', 'record_filter')
14
12
 
15
13
  module TestModel
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aub-record_filter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.11
4
+ version: 0.9.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aubrey Holland
@@ -10,10 +10,29 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-08-11 00:00:00 -07:00
13
+ date: 2009-09-13 00:00:00 -07:00
14
14
  default_executable:
15
- dependencies: []
16
-
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: activerecord
18
+ type: :runtime
19
+ version_requirement:
20
+ version_requirements: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ">="
23
+ - !ruby/object:Gem::Version
24
+ version: "0"
25
+ version:
26
+ - !ruby/object:Gem::Dependency
27
+ name: rspec
28
+ type: :development
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
35
+ version:
17
36
  description: RecordFilter is a Pure-ruby criteria API for building complex queries in ActiveRecord. It supports queries that are built on the fly as well as named filters that can be added to objects and chained to create complex queries. It also gets rid of the nasty hard-coded SQL that shows up in most ActiveRecord code with a clean API that makes queries simple and intuitive to build.
18
37
  email: aubreyholland@gmail.com
19
38
  executables: []
@@ -76,7 +95,7 @@ files:
76
95
  - test/performance_test.rb
77
96
  - test/test.db
78
97
  has_rdoc: false
79
- homepage: http://github.com/aub/record_filter/tree/master
98
+ homepage: http://github.com/aub/record_filter
80
99
  licenses:
81
100
  post_install_message:
82
101
  rdoc_options:
@@ -97,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
116
  version:
98
117
  requirements: []
99
118
 
100
- rubyforge_project:
119
+ rubyforge_project: record-filter
101
120
  rubygems_version: 1.3.5
102
121
  signing_key:
103
122
  specification_version: 3