cohort_scope 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.4
1
+ 0.0.5
@@ -0,0 +1,60 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{cohort_scope}
8
+ s.version = "0.0.5"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Seamus Abshere", "Andy Rossmeissl", "Derek Kastner"]
12
+ s.date = %q{2010-07-13}
13
+ s.description = %q{Provides big_cohort, which widens by finding the constraint that eliminates the most records and removing it. Also provides strict_cohort, which widens by eliminating constraints in order.}
14
+ s.email = %q{seamus@abshere.net}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.rdoc",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "cohort_scope.gemspec",
27
+ "lib/cohort_scope.rb",
28
+ "test/helper.rb",
29
+ "test/test_cohort_scope.rb"
30
+ ]
31
+ s.homepage = %q{http://github.com/seamusabshere/cohort_scope}
32
+ s.rdoc_options = ["--charset=UTF-8"]
33
+ s.require_paths = ["lib"]
34
+ s.rubygems_version = %q{1.3.7}
35
+ s.summary = %q{Provides cohorts (in the form of ActiveRecord scopes) that dynamically widen until they contain a certain number of records.}
36
+ s.test_files = [
37
+ "test/helper.rb",
38
+ "test/test_cohort_scope.rb"
39
+ ]
40
+
41
+ if s.respond_to? :specification_version then
42
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
43
+ s.specification_version = 3
44
+
45
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
46
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0.beta2"])
47
+ s.add_runtime_dependency(%q<activerecord>, [">= 3.0.0.beta2"])
48
+ s.add_development_dependency(%q<shoulda>, [">= 2.10.3"])
49
+ else
50
+ s.add_dependency(%q<activesupport>, [">= 3.0.0.beta2"])
51
+ s.add_dependency(%q<activerecord>, [">= 3.0.0.beta2"])
52
+ s.add_dependency(%q<shoulda>, [">= 2.10.3"])
53
+ end
54
+ else
55
+ s.add_dependency(%q<activesupport>, [">= 3.0.0.beta2"])
56
+ s.add_dependency(%q<activerecord>, [">= 3.0.0.beta2"])
57
+ s.add_dependency(%q<shoulda>, [">= 2.10.3"])
58
+ end
59
+ end
60
+
data/lib/cohort_scope.rb CHANGED
@@ -66,7 +66,7 @@ module CohortScope
66
66
  raise RuntimeError, "You need to set #{name}.minimum_cohort_size = X" unless minimum_cohort_size.present?
67
67
 
68
68
  if constraints.values.none? # failing base case
69
- return scoped.where('false')
69
+ return scoped.where(false)
70
70
  end
71
71
 
72
72
  this_hash = _cohort_constraints constraints
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cohort_scope
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 21
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 4
9
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - Seamus Abshere
@@ -16,16 +17,18 @@ autorequire:
16
17
  bindir: bin
17
18
  cert_chain: []
18
19
 
19
- date: 2010-05-10 00:00:00 -04:00
20
+ date: 2010-07-13 00:00:00 -04:00
20
21
  default_executable:
21
22
  dependencies:
22
23
  - !ruby/object:Gem::Dependency
23
24
  name: activesupport
24
25
  prerelease: false
25
26
  requirement: &id001 !ruby/object:Gem::Requirement
27
+ none: false
26
28
  requirements:
27
29
  - - ">="
28
30
  - !ruby/object:Gem::Version
31
+ hash: -1848230022
29
32
  segments:
30
33
  - 3
31
34
  - 0
@@ -38,9 +41,11 @@ dependencies:
38
41
  name: activerecord
39
42
  prerelease: false
40
43
  requirement: &id002 !ruby/object:Gem::Requirement
44
+ none: false
41
45
  requirements:
42
46
  - - ">="
43
47
  - !ruby/object:Gem::Version
48
+ hash: -1848230022
44
49
  segments:
45
50
  - 3
46
51
  - 0
@@ -53,9 +58,11 @@ dependencies:
53
58
  name: shoulda
54
59
  prerelease: false
55
60
  requirement: &id003 !ruby/object:Gem::Requirement
61
+ none: false
56
62
  requirements:
57
63
  - - ">="
58
64
  - !ruby/object:Gem::Version
65
+ hash: 33
59
66
  segments:
60
67
  - 2
61
68
  - 10
@@ -79,6 +86,7 @@ files:
79
86
  - README.rdoc
80
87
  - Rakefile
81
88
  - VERSION
89
+ - cohort_scope.gemspec
82
90
  - lib/cohort_scope.rb
83
91
  - test/helper.rb
84
92
  - test/test_cohort_scope.rb
@@ -92,23 +100,27 @@ rdoc_options:
92
100
  require_paths:
93
101
  - lib
94
102
  required_ruby_version: !ruby/object:Gem::Requirement
103
+ none: false
95
104
  requirements:
96
105
  - - ">="
97
106
  - !ruby/object:Gem::Version
107
+ hash: 3
98
108
  segments:
99
109
  - 0
100
110
  version: "0"
101
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
+ none: false
102
113
  requirements:
103
114
  - - ">="
104
115
  - !ruby/object:Gem::Version
116
+ hash: 3
105
117
  segments:
106
118
  - 0
107
119
  version: "0"
108
120
  requirements: []
109
121
 
110
122
  rubyforge_project:
111
- rubygems_version: 1.3.6
123
+ rubygems_version: 1.3.7
112
124
  signing_key:
113
125
  specification_version: 3
114
126
  summary: Provides cohorts (in the form of ActiveRecord scopes) that dynamically widen until they contain a certain number of records.