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.
Files changed (45) hide show
  1. data/.gitignore +36 -12
  2. data/Gemfile +23 -0
  3. data/Guardfile +13 -0
  4. data/{LICENSE → LICENSE.txt} +1 -1
  5. data/README.rdoc +32 -7
  6. data/Rakefile +33 -69
  7. data/VERSION +1 -1
  8. data/dm-is-select.gemspec +94 -44
  9. data/docs/apple-touch-icon.png +0 -0
  10. data/docs/classes/DataMapper.html +81 -0
  11. data/docs/classes/DataMapper/Is.html +81 -0
  12. data/docs/classes/DataMapper/Is/Select.html +205 -0
  13. data/docs/classes/DataMapper/Is/Select/ClassMethods.html +258 -0
  14. data/docs/created.rid +4 -0
  15. data/docs/css/github.css +129 -0
  16. data/docs/css/main.css +333 -0
  17. data/docs/css/panel.css +384 -0
  18. data/docs/css/reset.css +48 -0
  19. data/docs/favicon.ico +0 -0
  20. data/docs/files/README_rdoc.html +272 -0
  21. data/docs/files/lib/dm-is-select_rb.html +88 -0
  22. data/docs/files/lib/is/select_rb.html +94 -0
  23. data/docs/i/arrows.png +0 -0
  24. data/docs/i/results_bg.png +0 -0
  25. data/docs/i/tree_bg.png +0 -0
  26. data/docs/index.html +13 -0
  27. data/docs/js/highlight.pack.js +1 -0
  28. data/docs/js/jquery-1.3.2.min.js +19 -0
  29. data/docs/js/jquery-effect.js +593 -0
  30. data/docs/js/main.js +24 -0
  31. data/docs/js/navigation.js +142 -0
  32. data/docs/js/search_index.js +1 -0
  33. data/docs/js/searchdoc.js +449 -0
  34. data/docs/js/searcher.js +228 -0
  35. data/docs/panel/index.html +73 -0
  36. data/docs/panel/links.html +12 -0
  37. data/docs/panel/tree.js +1 -0
  38. data/lib/dm-is-select.rb +5 -11
  39. data/lib/{dm-is-select/is → is}/select.rb +12 -10
  40. data/spec/{integration/select_spec.rb → dm-is-select_spec.rb} +25 -13
  41. data/spec/spec_helper.rb +10 -8
  42. metadata +278 -94
  43. data/History.rdoc +0 -24
  44. data/TODO +0 -0
  45. data/lib/dm-is-select/is/version.rb +0 -7
@@ -1,12 +1,10 @@
1
- require 'pathname'
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
3
  require 'rubygems'
3
-
4
- # require 'spec'
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, 'mysql://localhost/dm_core_test')
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
- prerelease: false
5
- segments:
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
- date: 2010-06-09 00:00:00 +08:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: dm-core
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
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
25
27
  - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 0
30
- - 0
31
- version: 1.0.0
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
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
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
- requirement: &id002 !ruby/object:Gem::Requirement
38
- requirements:
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
- segments:
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
- requirement: &id003 !ruby/object:Gem::Requirement
51
- requirements:
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
52
91
  - - ~>
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 1
56
- - 0
57
- - 0
58
- version: 1.0.0
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
- requirement: &id004 !ruby/object:Gem::Requirement
65
- requirements:
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
- segments:
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
- version_requirements: *id004
75
- description: A DataMapper plugin that makes getting the <tt>select</tt> options from a Model easier.
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
- - TODO
86
- files:
245
+ files:
87
246
  - .gitignore
88
- - History.rdoc
89
- - LICENSE
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/dm-is-select/is/select.rb
97
- - lib/dm-is-select/is/version.rb
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
- - --charset=UTF-8
107
- require_paths:
291
+ rdoc_options: []
292
+ require_paths:
108
293
  - lib
109
- required_ruby_version: !ruby/object:Gem::Requirement
110
- requirements:
111
- - - ">="
112
- - !ruby/object:Gem::Version
113
- segments:
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
- version: "0"
116
- required_rubygems_version: !ruby/object:Gem::Requirement
117
- requirements:
118
- - - ">="
119
- - !ruby/object:Gem::Version
120
- segments:
121
- - 0
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.3.6
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 Model easier.
130
- test_files:
131
- - spec/integration/select_spec.rb
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: []
@@ -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