basic_named_scopes 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/basic_named_scopes.rb +1 -1
- metadata +49 -20
- data/.gitignore +0 -21
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.2.0
|
data/lib/basic_named_scopes.rb
CHANGED
|
@@ -52,7 +52,7 @@ module BasicNamedScopes
|
|
|
52
52
|
FIND_PARAMETERS = [:conditions, :order, :group, :having, :limit, :offset, :joins, :select, :from]
|
|
53
53
|
|
|
54
54
|
# These are aliased parameters. The keys are scope names, the values are the option they represent.
|
|
55
|
-
FIND_ALIASES = { :where => :conditions, :with => :include }
|
|
55
|
+
FIND_ALIASES = { :where => :conditions, :with => :include, :includes => :include, :sel => :select }
|
|
56
56
|
|
|
57
57
|
# These are the parameters that want a boolean.
|
|
58
58
|
FIND_BOOLEAN_SWITCHES = [:readonly, :lock]
|
metadata
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: basic_named_scopes
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
|
|
4
|
+
hash: 23
|
|
5
|
+
prerelease:
|
|
6
|
+
segments:
|
|
7
|
+
- 0
|
|
8
|
+
- 2
|
|
9
|
+
- 0
|
|
10
|
+
version: 0.2.0
|
|
5
11
|
platform: ruby
|
|
6
12
|
authors:
|
|
7
13
|
- Iain Hecker
|
|
@@ -9,39 +15,57 @@ autorequire:
|
|
|
9
15
|
bindir: bin
|
|
10
16
|
cert_chain: []
|
|
11
17
|
|
|
12
|
-
date:
|
|
18
|
+
date: 2011-01-05 00:00:00 +01:00
|
|
13
19
|
default_executable:
|
|
14
20
|
dependencies:
|
|
15
21
|
- !ruby/object:Gem::Dependency
|
|
16
22
|
name: rspec
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
prerelease: false
|
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
20
26
|
requirements:
|
|
21
27
|
- - ">="
|
|
22
28
|
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 13
|
|
30
|
+
segments:
|
|
31
|
+
- 1
|
|
32
|
+
- 2
|
|
33
|
+
- 9
|
|
23
34
|
version: 1.2.9
|
|
24
|
-
|
|
35
|
+
type: :development
|
|
36
|
+
version_requirements: *id001
|
|
25
37
|
- !ruby/object:Gem::Dependency
|
|
26
38
|
name: temping
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
39
|
+
prerelease: false
|
|
40
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
|
41
|
+
none: false
|
|
30
42
|
requirements:
|
|
31
43
|
- - ">="
|
|
32
44
|
- !ruby/object:Gem::Version
|
|
45
|
+
hash: 27
|
|
46
|
+
segments:
|
|
47
|
+
- 1
|
|
48
|
+
- 3
|
|
49
|
+
- 0
|
|
33
50
|
version: 1.3.0
|
|
34
|
-
|
|
51
|
+
type: :development
|
|
52
|
+
version_requirements: *id002
|
|
35
53
|
- !ruby/object:Gem::Dependency
|
|
36
54
|
name: activerecord
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
55
|
+
prerelease: false
|
|
56
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
|
57
|
+
none: false
|
|
40
58
|
requirements:
|
|
41
59
|
- - <
|
|
42
60
|
- !ruby/object:Gem::Version
|
|
61
|
+
hash: 961915916
|
|
62
|
+
segments:
|
|
63
|
+
- 3
|
|
64
|
+
- 0
|
|
65
|
+
- pre
|
|
43
66
|
version: 3.0.pre
|
|
44
|
-
|
|
67
|
+
type: :development
|
|
68
|
+
version_requirements: *id003
|
|
45
69
|
description: Make your queries prettier and more reusable by having a named scope for every find-parameter. As easy as Post.include(:author, :comments)
|
|
46
70
|
email: iain@iain.nl
|
|
47
71
|
executables: []
|
|
@@ -52,7 +76,6 @@ extra_rdoc_files:
|
|
|
52
76
|
- README.rdoc
|
|
53
77
|
files:
|
|
54
78
|
- .document
|
|
55
|
-
- .gitignore
|
|
56
79
|
- README.rdoc
|
|
57
80
|
- Rakefile
|
|
58
81
|
- VERSION
|
|
@@ -66,26 +89,32 @@ homepage: http://github.com/iain/basic_named_scopes
|
|
|
66
89
|
licenses: []
|
|
67
90
|
|
|
68
91
|
post_install_message:
|
|
69
|
-
rdoc_options:
|
|
70
|
-
|
|
92
|
+
rdoc_options: []
|
|
93
|
+
|
|
71
94
|
require_paths:
|
|
72
95
|
- lib
|
|
73
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
97
|
+
none: false
|
|
74
98
|
requirements:
|
|
75
99
|
- - ">="
|
|
76
100
|
- !ruby/object:Gem::Version
|
|
101
|
+
hash: 3
|
|
102
|
+
segments:
|
|
103
|
+
- 0
|
|
77
104
|
version: "0"
|
|
78
|
-
version:
|
|
79
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
|
+
none: false
|
|
80
107
|
requirements:
|
|
81
108
|
- - ">="
|
|
82
109
|
- !ruby/object:Gem::Version
|
|
110
|
+
hash: 3
|
|
111
|
+
segments:
|
|
112
|
+
- 0
|
|
83
113
|
version: "0"
|
|
84
|
-
version:
|
|
85
114
|
requirements: []
|
|
86
115
|
|
|
87
116
|
rubyforge_project:
|
|
88
|
-
rubygems_version: 1.
|
|
117
|
+
rubygems_version: 1.4.1
|
|
89
118
|
signing_key:
|
|
90
119
|
specification_version: 3
|
|
91
120
|
summary: Basic named scopes for ActiveRecord makes all find-parameters a named scope
|