rangetastic 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ tmp/*
2
+
data/Rakefile CHANGED
@@ -1,14 +1,44 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
- require 'echoe'
4
3
 
5
- Echoe.new('rangetastic', '0.3.3') do |p|
6
- p.description = "Chain a date range to any named_scope on any date field with specified white listed fields"
7
- p.url = "http://github.com/cherring/rangetastic"
8
- p.author = "Chris Herring"
9
- p.email = "chris.herring.iphone@gmail.com"
10
- p.ignore_pattern = ["tmp/*", "script/*"]
11
- p.development_dependencies = []
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "rangetastic"
8
+ gem.summary = %Q{Simple filtering by date ranges for ActiveRecord}
9
+ gem.description = %Q{Filter dates for ActiveRecord using very simple _between syntax}
10
+ gem.email = "chris.herring.iphone@gmail.com"
11
+ gem.homepage = "http://github.com/cherring/rangetastic"
12
+ gem.authors = ["Chris Herring"]
13
+ gem.add_development_dependency "rspec", ">= 1.2.9"
14
+ end
15
+ Jeweler::GemcutterTasks.new
16
+ rescue LoadError
17
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
12
18
  end
13
19
 
14
- Dir["#{File.dirname(__FILE__)}/tasks/*.rake"].sort.each { |ext| load ext }
20
+ require 'spec/rake/spectask'
21
+ Spec::Rake::SpecTask.new(:spec) do |spec|
22
+ spec.libs << 'lib' << 'spec'
23
+ spec.spec_files = FileList['spec/**/*_spec.rb']
24
+ end
25
+
26
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
27
+ spec.libs << 'lib' << 'spec'
28
+ spec.pattern = 'spec/**/*_spec.rb'
29
+ spec.rcov = true
30
+ end
31
+
32
+ task :spec => :check_dependencies
33
+
34
+ task :default => :spec
35
+
36
+ require 'rake/rdoctask'
37
+ Rake::RDocTask.new do |rdoc|
38
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
39
+
40
+ rdoc.rdoc_dir = 'rdoc'
41
+ rdoc.title = "rangetastic #{version}"
42
+ rdoc.rdoc_files.include('README*')
43
+ rdoc.rdoc_files.include('lib/**/*.rb')
44
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.3.4
@@ -15,7 +15,7 @@ module Rangetastic
15
15
 
16
16
  private
17
17
  def method_missing(symbol, *args, &block)
18
- if (field(symbol) || @fields.include?(field_to_query))
18
+ if (!(@fields.nil?) && (field(symbol) || @fields.include?(field_to_query)))
19
19
  make_scope(symbol, field_to_query, *args)
20
20
  else
21
21
  super(symbol, *args)
@@ -1,30 +1,58 @@
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{rangetastic}
5
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
6
9
 
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
11
  s.authors = ["Chris Herring"]
9
- s.date = %q{2009-10-12}
10
- s.description = %q{Chain a date range to any named_scope on any date field with specified white listed fields}
12
+ s.date = %q{2009-11-24}
13
+ s.description = %q{Filter dates for ActiveRecord using very simple _between syntax}
11
14
  s.email = %q{chris.herring.iphone@gmail.com}
12
- s.extra_rdoc_files = ["README.markdown", "lib/rangetastic.rb"]
13
- s.files = ["MIT-License", "Manifest", "README.markdown", "Rakefile", "lib/rangetastic.rb", "rangetastic.gemspec", "spec/fixtures/models.rb", "spec/fixtures/structure.sql", "spec/rangetastic_spec.rb", "spec/spec_helper.rb", "spec/test_helper.rb"]
15
+ s.extra_rdoc_files = [
16
+ "README.markdown"
17
+ ]
18
+ s.files = [
19
+ ".gitignore",
20
+ "MIT-License",
21
+ "Manifest",
22
+ "README.markdown",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "lib/rangetastic.rb",
26
+ "rangetastic.gemspec",
27
+ "spec/fixtures/models.rb",
28
+ "spec/fixtures/structure.sql",
29
+ "spec/rangetastic_spec.rb",
30
+ "spec/spec_helper.rb",
31
+ "spec/test_helper.rb"
32
+ ]
14
33
  s.homepage = %q{http://github.com/cherring/rangetastic}
15
- s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Rangetastic", "--main", "README.markdown"]
34
+ s.rdoc_options = ["--charset=UTF-8"]
16
35
  s.require_paths = ["lib"]
17
- s.rubyforge_project = %q{rangetastic}
18
- s.rubygems_version = %q{1.3.4}
19
- s.summary = %q{Chain a date range to any named_scope on any date field with specified white listed fields}
36
+ s.rubygems_version = %q{1.3.5}
37
+ s.summary = %q{Simple filtering by date ranges for ActiveRecord}
38
+ s.test_files = [
39
+ "spec/fixtures/models.rb",
40
+ "spec/rangetastic_spec.rb",
41
+ "spec/spec_helper.rb",
42
+ "spec/test_helper.rb"
43
+ ]
20
44
 
21
45
  if s.respond_to? :specification_version then
22
46
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
47
  s.specification_version = 3
24
48
 
25
49
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
50
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
26
51
  else
52
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
27
53
  end
28
54
  else
55
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
29
56
  end
30
57
  end
58
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rangetastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Herring
@@ -9,11 +9,20 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-12 00:00:00 +11:00
12
+ date: 2009-11-24 00:00:00 +11:00
13
13
  default_executable:
14
- dependencies: []
15
-
16
- description: Chain a date range to any named_scope on any date field with specified white listed fields
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rspec
17
+ type: :development
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.9
24
+ version:
25
+ description: Filter dates for ActiveRecord using very simple _between syntax
17
26
  email: chris.herring.iphone@gmail.com
18
27
  executables: []
19
28
 
@@ -21,12 +30,13 @@ extensions: []
21
30
 
22
31
  extra_rdoc_files:
23
32
  - README.markdown
24
- - lib/rangetastic.rb
25
33
  files:
34
+ - .gitignore
26
35
  - MIT-License
27
36
  - Manifest
28
37
  - README.markdown
29
38
  - Rakefile
39
+ - VERSION
30
40
  - lib/rangetastic.rb
31
41
  - rangetastic.gemspec
32
42
  - spec/fixtures/models.rb
@@ -40,12 +50,7 @@ licenses: []
40
50
 
41
51
  post_install_message:
42
52
  rdoc_options:
43
- - --line-numbers
44
- - --inline-source
45
- - --title
46
- - Rangetastic
47
- - --main
48
- - README.markdown
53
+ - --charset=UTF-8
49
54
  require_paths:
50
55
  - lib
51
56
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -58,14 +63,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
58
63
  requirements:
59
64
  - - ">="
60
65
  - !ruby/object:Gem::Version
61
- version: "1.2"
66
+ version: "0"
62
67
  version:
63
68
  requirements: []
64
69
 
65
- rubyforge_project: rangetastic
66
- rubygems_version: 1.3.4
70
+ rubyforge_project:
71
+ rubygems_version: 1.3.5
67
72
  signing_key:
68
73
  specification_version: 3
69
- summary: Chain a date range to any named_scope on any date field with specified white listed fields
70
- test_files: []
71
-
74
+ summary: Simple filtering by date ranges for ActiveRecord
75
+ test_files:
76
+ - spec/fixtures/models.rb
77
+ - spec/rangetastic_spec.rb
78
+ - spec/spec_helper.rb
79
+ - spec/test_helper.rb