dm-is-select 0.0.9 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +36 -12
- data/Gemfile +23 -0
- data/Guardfile +13 -0
- data/{LICENSE → LICENSE.txt} +1 -1
- data/README.rdoc +32 -7
- data/Rakefile +33 -69
- data/VERSION +1 -1
- data/dm-is-select.gemspec +94 -44
- data/docs/apple-touch-icon.png +0 -0
- data/docs/classes/DataMapper.html +81 -0
- data/docs/classes/DataMapper/Is.html +81 -0
- data/docs/classes/DataMapper/Is/Select.html +205 -0
- data/docs/classes/DataMapper/Is/Select/ClassMethods.html +258 -0
- data/docs/created.rid +4 -0
- data/docs/css/github.css +129 -0
- data/docs/css/main.css +333 -0
- data/docs/css/panel.css +384 -0
- data/docs/css/reset.css +48 -0
- data/docs/favicon.ico +0 -0
- data/docs/files/README_rdoc.html +272 -0
- data/docs/files/lib/dm-is-select_rb.html +88 -0
- data/docs/files/lib/is/select_rb.html +94 -0
- data/docs/i/arrows.png +0 -0
- data/docs/i/results_bg.png +0 -0
- data/docs/i/tree_bg.png +0 -0
- data/docs/index.html +13 -0
- data/docs/js/highlight.pack.js +1 -0
- data/docs/js/jquery-1.3.2.min.js +19 -0
- data/docs/js/jquery-effect.js +593 -0
- data/docs/js/main.js +24 -0
- data/docs/js/navigation.js +142 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/searchdoc.js +449 -0
- data/docs/js/searcher.js +228 -0
- data/docs/panel/index.html +73 -0
- data/docs/panel/links.html +12 -0
- data/docs/panel/tree.js +1 -0
- data/lib/dm-is-select.rb +5 -11
- data/lib/{dm-is-select/is → is}/select.rb +12 -10
- data/spec/{integration/select_spec.rb → dm-is-select_spec.rb} +25 -13
- data/spec/spec_helper.rb +10 -8
- metadata +278 -94
- data/History.rdoc +0 -24
- data/TODO +0 -0
- data/lib/dm-is-select/is/version.rb +0 -7
data/spec/spec_helper.rb
CHANGED
@@ -1,12 +1,10 @@
|
|
1
|
-
|
1
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
3
|
require 'rubygems'
|
3
|
-
|
4
|
-
|
5
|
-
require 'dm-validations'
|
6
|
-
require 'dm-migrations'
|
4
|
+
require 'rspec'
|
5
|
+
require 'data_mapper'
|
7
6
|
require 'dm-is-tree'
|
8
|
-
|
9
|
-
require Pathname(__FILE__).dirname.expand_path.parent + 'lib/dm-is-select'
|
7
|
+
require_relative './../lib/dm-is-select'
|
10
8
|
|
11
9
|
def load_driver(name, default_uri)
|
12
10
|
return false if ENV['ADAPTER'] != name.to_s
|
@@ -21,8 +19,12 @@ def load_driver(name, default_uri)
|
|
21
19
|
end
|
22
20
|
end
|
23
21
|
|
22
|
+
# support Mac OS X MAMP installation of MySQL
|
23
|
+
socket_path = test(?d, "/Applications/MAMP/") ? '?socket=/Applications/MAMP/tmp/mysql/mysql.sock' : ''
|
24
|
+
|
24
25
|
ENV['ADAPTER'] ||= 'sqlite3'
|
26
|
+
# ENV['ADAPTER'] ||= 'mysql'
|
25
27
|
|
26
28
|
HAS_SQLITE3 = load_driver(:sqlite3, 'sqlite3::memory:')
|
27
|
-
HAS_MYSQL = load_driver(:mysql,
|
29
|
+
HAS_MYSQL = load_driver(:mysql, "mysql://root:root@localhost/dm_core_test#{socket_path}")
|
28
30
|
HAS_POSTGRES = load_driver(:postgres, 'postgres://postgres@localhost/dm_core_test')
|
metadata
CHANGED
@@ -1,132 +1,316 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: dm-is-select
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 0
|
8
|
-
- 9
|
9
|
-
version: 0.0.9
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.0
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- kematzy
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
12
|
+
date: 2013-03-10 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: activesupport
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 3.2.7
|
22
|
+
type: :runtime
|
22
23
|
prerelease: false
|
23
|
-
|
24
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
25
27
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 3.2.7
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: data_mapper
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - '='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 1.2.0
|
38
|
+
type: :runtime
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - '='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.2.0
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: dm-is-tree
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - '='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.2.0
|
32
54
|
type: :runtime
|
33
|
-
|
34
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.2.0
|
62
|
+
- !ruby/object:Gem::Dependency
|
35
63
|
name: rspec
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.12.0
|
70
|
+
type: :development
|
36
71
|
prerelease: false
|
37
|
-
|
38
|
-
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 2.12.0
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: rdoc
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
39
83
|
- - ~>
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
|
42
|
-
- 1
|
43
|
-
- 3
|
44
|
-
version: "1.3"
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: 3.12.2
|
45
86
|
type: :development
|
46
|
-
version_requirements: *id002
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: dm-migrations
|
49
87
|
prerelease: false
|
50
|
-
|
51
|
-
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
52
91
|
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 3.12.2
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: sdoc
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.3.16
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 0.3.16
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: bundler
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 1.2.1
|
59
118
|
type: :development
|
60
|
-
version_requirements: *id003
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: dm-validations
|
63
119
|
prerelease: false
|
64
|
-
|
65
|
-
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ~>
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: 1.2.1
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: jeweler
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
66
131
|
- - ~>
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
|
69
|
-
- 1
|
70
|
-
- 0
|
71
|
-
- 0
|
72
|
-
version: 1.0.0
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 1.8.4
|
73
134
|
type: :development
|
74
|
-
|
75
|
-
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ~>
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: 1.8.4
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: dm-mysql-adapter
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - '='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 1.2.0
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - '='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: 1.2.0
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: dm-sqlite-adapter
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - '='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: 1.2.0
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - '='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 1.2.0
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: growl
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :development
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: rb-fsevent
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ~>
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0.9'
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ~>
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0.9'
|
206
|
+
- !ruby/object:Gem::Dependency
|
207
|
+
name: guard
|
208
|
+
requirement: !ruby/object:Gem::Requirement
|
209
|
+
none: false
|
210
|
+
requirements:
|
211
|
+
- - ! '>='
|
212
|
+
- !ruby/object:Gem::Version
|
213
|
+
version: '0'
|
214
|
+
type: :development
|
215
|
+
prerelease: false
|
216
|
+
version_requirements: !ruby/object:Gem::Requirement
|
217
|
+
none: false
|
218
|
+
requirements:
|
219
|
+
- - ! '>='
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0'
|
222
|
+
- !ruby/object:Gem::Dependency
|
223
|
+
name: guard-rspec
|
224
|
+
requirement: !ruby/object:Gem::Requirement
|
225
|
+
none: false
|
226
|
+
requirements:
|
227
|
+
- - ! '>='
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
none: false
|
234
|
+
requirements:
|
235
|
+
- - ! '>='
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
description: A DataMapper plugin that makes getting the <tt>select</tt> options from
|
239
|
+
a Model easier.
|
76
240
|
email: kematzy@gmail.com
|
77
241
|
executables: []
|
78
|
-
|
79
242
|
extensions: []
|
80
|
-
|
81
|
-
extra_rdoc_files:
|
82
|
-
- History.rdoc
|
83
|
-
- LICENSE
|
243
|
+
extra_rdoc_files:
|
84
244
|
- README.rdoc
|
85
|
-
|
86
|
-
files:
|
245
|
+
files:
|
87
246
|
- .gitignore
|
88
|
-
-
|
89
|
-
-
|
247
|
+
- Gemfile
|
248
|
+
- Guardfile
|
249
|
+
- LICENSE.txt
|
90
250
|
- README.rdoc
|
91
251
|
- Rakefile
|
92
|
-
- TODO
|
93
252
|
- VERSION
|
94
253
|
- dm-is-select.gemspec
|
254
|
+
- docs/apple-touch-icon.png
|
255
|
+
- docs/classes/DataMapper.html
|
256
|
+
- docs/classes/DataMapper/Is.html
|
257
|
+
- docs/classes/DataMapper/Is/Select.html
|
258
|
+
- docs/classes/DataMapper/Is/Select/ClassMethods.html
|
259
|
+
- docs/created.rid
|
260
|
+
- docs/css/github.css
|
261
|
+
- docs/css/main.css
|
262
|
+
- docs/css/panel.css
|
263
|
+
- docs/css/reset.css
|
264
|
+
- docs/favicon.ico
|
265
|
+
- docs/files/README_rdoc.html
|
266
|
+
- docs/files/lib/dm-is-select_rb.html
|
267
|
+
- docs/files/lib/is/select_rb.html
|
268
|
+
- docs/i/arrows.png
|
269
|
+
- docs/i/results_bg.png
|
270
|
+
- docs/i/tree_bg.png
|
271
|
+
- docs/index.html
|
272
|
+
- docs/js/highlight.pack.js
|
273
|
+
- docs/js/jquery-1.3.2.min.js
|
274
|
+
- docs/js/jquery-effect.js
|
275
|
+
- docs/js/main.js
|
276
|
+
- docs/js/navigation.js
|
277
|
+
- docs/js/search_index.js
|
278
|
+
- docs/js/searchdoc.js
|
279
|
+
- docs/js/searcher.js
|
280
|
+
- docs/panel/index.html
|
281
|
+
- docs/panel/links.html
|
282
|
+
- docs/panel/tree.js
|
95
283
|
- lib/dm-is-select.rb
|
96
|
-
- lib/
|
97
|
-
-
|
98
|
-
- spec/integration/select_spec.rb
|
284
|
+
- lib/is/select.rb
|
285
|
+
- spec/dm-is-select_spec.rb
|
99
286
|
- spec/spec_helper.rb
|
100
|
-
has_rdoc: true
|
101
287
|
homepage: http://github.com/kematzy/dm-is-select
|
102
|
-
licenses:
|
103
|
-
|
288
|
+
licenses:
|
289
|
+
- MIT
|
104
290
|
post_install_message:
|
105
|
-
rdoc_options:
|
106
|
-
|
107
|
-
require_paths:
|
291
|
+
rdoc_options: []
|
292
|
+
require_paths:
|
108
293
|
- lib
|
109
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
294
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
295
|
+
none: false
|
296
|
+
requirements:
|
297
|
+
- - ! '>='
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '0'
|
300
|
+
segments:
|
114
301
|
- 0
|
115
|
-
|
116
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
version: "0"
|
302
|
+
hash: -3858943466576000056
|
303
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
304
|
+
none: false
|
305
|
+
requirements:
|
306
|
+
- - ! '>='
|
307
|
+
- !ruby/object:Gem::Version
|
308
|
+
version: '0'
|
123
309
|
requirements: []
|
124
|
-
|
125
310
|
rubyforge_project:
|
126
|
-
rubygems_version: 1.
|
311
|
+
rubygems_version: 1.8.23
|
127
312
|
signing_key:
|
128
313
|
specification_version: 3
|
129
|
-
summary: A DataMapper plugin that makes getting the <tt>select</tt> options from a
|
130
|
-
|
131
|
-
|
132
|
-
- spec/spec_helper.rb
|
314
|
+
summary: A DataMapper plugin that makes getting the <tt>select</tt> options from a
|
315
|
+
Model easier.
|
316
|
+
test_files: []
|
data/History.rdoc
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
=== 0.0.1 / 2009-07-12
|
2
|
-
|
3
|
-
* Release!
|
4
|
-
|
5
|
-
=== 0.0.2 / 2009-07-15
|
6
|
-
|
7
|
-
* Added Top Level Parent support in output.
|
8
|
-
|
9
|
-
=== 0.0.3 / 2009-08-20
|
10
|
-
|
11
|
-
* Fixed rendering bug in gem server when the description contained the <tt><select></tt> tag
|
12
|
-
* Converted History.txt to .rdoc
|
13
|
-
* Improved the Rakefile docs output
|
14
|
-
* Added support for custom SQL queries.
|
15
|
-
|
16
|
-
|
17
|
-
=== 0.0.4 / 2009-10-30
|
18
|
-
|
19
|
-
* Changed the output order of options array from [key, value] to [value, key] to link with options better.
|
20
|
-
|
21
|
-
=== 0.0.5 / 2009-10-30
|
22
|
-
|
23
|
-
* Somehow reintroduced the rendering bug in the gemspec description fixed in 0.0.3
|
24
|
-
* Updated History.rdoc
|