dm-ambition 1.0.0 → 1.1.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +77 -0
- data/LICENSE +1 -1
- data/README.rdoc +15 -6
- data/Rakefile +3 -9
- data/TODO +13 -0
- data/dm-ambition.gemspec +70 -56
- data/lib/dm-ambition/collection.rb +18 -48
- data/lib/dm-ambition/model.rb +1 -0
- data/lib/dm-ambition/query/filter_processor.rb +149 -255
- data/lib/dm-ambition/query.rb +4 -5
- data/lib/dm-ambition/version.rb +1 -1
- data/lib/dm-ambition.rb +7 -0
- data/spec/public/collection_spec.rb +102 -68
- data/spec/public/model_spec.rb +8 -11
- data/spec/public/shared/filter_shared_spec.rb +45 -9
- data/spec/semipublic/query_spec.rb +283 -67
- data/spec/spec_helper.rb +9 -41
- data/tasks/local_gemfile.rake +16 -0
- data/tasks/spec.rake +0 -3
- metadata +82 -63
- data/.gitignore +0 -35
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-ambition
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 0
|
10
|
-
version: 1.0.0
|
4
|
+
prerelease: 6
|
5
|
+
version: 1.1.0.rc1
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Dan Kubb
|
@@ -15,88 +10,119 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date:
|
13
|
+
date: 2011-02-28 00:00:00 -08:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
23
|
-
prerelease: false
|
17
|
+
name: activesupport
|
24
18
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
19
|
none: false
|
26
20
|
requirements:
|
27
21
|
- - ~>
|
28
22
|
- !ruby/object:Gem::Version
|
29
|
-
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 0
|
33
|
-
- 0
|
34
|
-
version: 1.0.0
|
23
|
+
version: 3.0.4
|
35
24
|
type: :runtime
|
25
|
+
prerelease: false
|
36
26
|
version_requirements: *id001
|
37
27
|
- !ruby/object:Gem::Dependency
|
38
|
-
name:
|
39
|
-
prerelease: false
|
28
|
+
name: i18n
|
40
29
|
requirement: &id002 !ruby/object:Gem::Requirement
|
41
30
|
none: false
|
42
31
|
requirements:
|
43
32
|
- - ~>
|
44
33
|
- !ruby/object:Gem::Version
|
45
|
-
|
46
|
-
segments:
|
47
|
-
- 3
|
48
|
-
- 0
|
49
|
-
- 5
|
50
|
-
version: 3.0.5
|
34
|
+
version: 0.5.0
|
51
35
|
type: :runtime
|
36
|
+
prerelease: false
|
52
37
|
version_requirements: *id002
|
53
38
|
- !ruby/object:Gem::Dependency
|
54
|
-
name:
|
55
|
-
prerelease: false
|
39
|
+
name: dm-core
|
56
40
|
requirement: &id003 !ruby/object:Gem::Requirement
|
57
41
|
none: false
|
58
42
|
requirements:
|
59
43
|
- - ~>
|
60
44
|
- !ruby/object:Gem::Version
|
61
|
-
|
62
|
-
segments:
|
63
|
-
- 1
|
64
|
-
- 2
|
65
|
-
- 4
|
66
|
-
version: 1.2.4
|
45
|
+
version: 1.0.2
|
67
46
|
type: :runtime
|
47
|
+
prerelease: false
|
68
48
|
version_requirements: *id003
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: ParseTree
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
52
|
+
none: false
|
53
|
+
requirements:
|
54
|
+
- - ~>
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 3.0.7
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: *id004
|
60
|
+
- !ruby/object:Gem::Dependency
|
61
|
+
name: ruby2ruby
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: 1.2.5
|
68
|
+
type: :runtime
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: *id005
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: sourcify
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.4.2
|
79
|
+
type: :runtime
|
80
|
+
prerelease: false
|
81
|
+
version_requirements: *id006
|
69
82
|
- !ruby/object:Gem::Dependency
|
70
83
|
name: dm-migrations
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.0.2
|
90
|
+
type: :development
|
71
91
|
prerelease: false
|
72
|
-
|
92
|
+
version_requirements: *id007
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: jeweler
|
95
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
73
96
|
none: false
|
74
97
|
requirements:
|
75
98
|
- - ~>
|
76
99
|
- !ruby/object:Gem::Version
|
77
|
-
|
78
|
-
segments:
|
79
|
-
- 1
|
80
|
-
- 0
|
81
|
-
- 0
|
82
|
-
version: 1.0.0
|
100
|
+
version: 1.5.2
|
83
101
|
type: :development
|
84
|
-
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: *id008
|
85
104
|
- !ruby/object:Gem::Dependency
|
86
|
-
name:
|
105
|
+
name: rake
|
106
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
107
|
+
none: false
|
108
|
+
requirements:
|
109
|
+
- - ~>
|
110
|
+
- !ruby/object:Gem::Version
|
111
|
+
version: 0.8.7
|
112
|
+
type: :development
|
87
113
|
prerelease: false
|
88
|
-
|
114
|
+
version_requirements: *id009
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: rspec
|
117
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
89
118
|
none: false
|
90
119
|
requirements:
|
91
120
|
- - ~>
|
92
121
|
- !ruby/object:Gem::Version
|
93
|
-
|
94
|
-
segments:
|
95
|
-
- 1
|
96
|
-
- 3
|
97
|
-
version: "1.3"
|
122
|
+
version: 1.3.1
|
98
123
|
type: :development
|
99
|
-
|
124
|
+
prerelease: false
|
125
|
+
version_requirements: *id010
|
100
126
|
description: DataMapper plugin providing an Ambition-like API
|
101
127
|
email: dan.kubb@gmail.com
|
102
128
|
executables: []
|
@@ -109,7 +135,7 @@ extra_rdoc_files:
|
|
109
135
|
- TODO
|
110
136
|
files:
|
111
137
|
- .document
|
112
|
-
-
|
138
|
+
- Gemfile
|
113
139
|
- LICENSE
|
114
140
|
- Manifest.txt
|
115
141
|
- README.rdoc
|
@@ -132,6 +158,7 @@ files:
|
|
132
158
|
- tasks/ci.rake
|
133
159
|
- tasks/clean.rake
|
134
160
|
- tasks/heckle.rake
|
161
|
+
- tasks/local_gemfile.rake
|
135
162
|
- tasks/metrics.rake
|
136
163
|
- tasks/spec.rake
|
137
164
|
- tasks/yard.rake
|
@@ -141,8 +168,8 @@ homepage: http://github.com/dkubb/dm-ambition
|
|
141
168
|
licenses: []
|
142
169
|
|
143
170
|
post_install_message:
|
144
|
-
rdoc_options:
|
145
|
-
|
171
|
+
rdoc_options: []
|
172
|
+
|
146
173
|
require_paths:
|
147
174
|
- lib
|
148
175
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -150,25 +177,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
150
177
|
requirements:
|
151
178
|
- - ~>
|
152
179
|
- !ruby/object:Gem::Version
|
153
|
-
|
154
|
-
segments:
|
155
|
-
- 1
|
156
|
-
- 8
|
157
|
-
- 6
|
158
|
-
version: 1.8.6
|
180
|
+
version: 1.8.7
|
159
181
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
182
|
none: false
|
161
183
|
requirements:
|
162
|
-
- - "
|
184
|
+
- - ">"
|
163
185
|
- !ruby/object:Gem::Version
|
164
|
-
|
165
|
-
segments:
|
166
|
-
- 0
|
167
|
-
version: "0"
|
186
|
+
version: 1.3.1
|
168
187
|
requirements: []
|
169
188
|
|
170
189
|
rubyforge_project: dm-ambition
|
171
|
-
rubygems_version: 1.
|
190
|
+
rubygems_version: 1.5.2
|
172
191
|
signing_key:
|
173
192
|
specification_version: 3
|
174
193
|
summary: DataMapper plugin providing an Ambition-like API
|
data/.gitignore
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
## MAC OS
|
2
|
-
.DS_Store
|
3
|
-
|
4
|
-
## TEXTMATE
|
5
|
-
*.tmproj
|
6
|
-
tmtags
|
7
|
-
|
8
|
-
## EMACS
|
9
|
-
*~
|
10
|
-
\#*
|
11
|
-
.\#*
|
12
|
-
|
13
|
-
## VIM
|
14
|
-
*.swp
|
15
|
-
|
16
|
-
## Rubinius
|
17
|
-
*.rbc
|
18
|
-
|
19
|
-
## PROJECT::GENERAL
|
20
|
-
*.gem
|
21
|
-
coverage
|
22
|
-
rdoc
|
23
|
-
pkg
|
24
|
-
tmp
|
25
|
-
doc
|
26
|
-
log
|
27
|
-
.yardoc
|
28
|
-
measurements
|
29
|
-
|
30
|
-
## BUNDLER
|
31
|
-
.bundle
|
32
|
-
Gemfile.local
|
33
|
-
Gemfile.lock
|
34
|
-
|
35
|
-
## PROJECT::SPECIFIC
|