active-fedora 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active-fedora}
8
- s.version = "2.0.2"
8
+ s.version = "2.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Matt Zumwalt", "McClain Looney"]
12
- s.date = %q{2011-03-11}
12
+ s.date = %q{2011-03-15}
13
13
  s.description = %q{ActiveFedora provides for creating and managing objects in the Fedora Repository Architecture.}
14
14
  s.email = %q{matt.zumwalt@yourmediashelf.com}
15
15
  s.extra_rdoc_files = [
@@ -359,6 +359,10 @@ Gem::Specification.new do |s|
359
359
  s.add_development_dependency(%q<rspec>, ["< 2.0.0"])
360
360
  s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
361
361
  s.add_development_dependency(%q<ruby-debug>, [">= 0"])
362
+ s.add_development_dependency(%q<jeweler>, [">= 0"])
363
+ s.add_development_dependency(%q<rspec>, ["< 2.0.0"])
364
+ s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
365
+ s.add_development_dependency(%q<ruby-debug>, [">= 0"])
362
366
  s.add_runtime_dependency(%q<solr-ruby>, [">= 0.0.6"])
363
367
  s.add_runtime_dependency(%q<xml-simple>, [">= 1.0.12"])
364
368
  s.add_runtime_dependency(%q<mime-types>, [">= 1.16"])
@@ -383,6 +387,10 @@ Gem::Specification.new do |s|
383
387
  s.add_dependency(%q<rspec>, ["< 2.0.0"])
384
388
  s.add_dependency(%q<mocha>, [">= 0.9.8"])
385
389
  s.add_dependency(%q<ruby-debug>, [">= 0"])
390
+ s.add_dependency(%q<jeweler>, [">= 0"])
391
+ s.add_dependency(%q<rspec>, ["< 2.0.0"])
392
+ s.add_dependency(%q<mocha>, [">= 0.9.8"])
393
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
386
394
  s.add_dependency(%q<solr-ruby>, [">= 0.0.6"])
387
395
  s.add_dependency(%q<xml-simple>, [">= 1.0.12"])
388
396
  s.add_dependency(%q<mime-types>, [">= 1.16"])
@@ -408,6 +416,10 @@ Gem::Specification.new do |s|
408
416
  s.add_dependency(%q<rspec>, ["< 2.0.0"])
409
417
  s.add_dependency(%q<mocha>, [">= 0.9.8"])
410
418
  s.add_dependency(%q<ruby-debug>, [">= 0"])
419
+ s.add_dependency(%q<jeweler>, [">= 0"])
420
+ s.add_dependency(%q<rspec>, ["< 2.0.0"])
421
+ s.add_dependency(%q<mocha>, [">= 0.9.8"])
422
+ s.add_dependency(%q<ruby-debug>, [">= 0"])
411
423
  s.add_dependency(%q<solr-ruby>, [">= 0.0.6"])
412
424
  s.add_dependency(%q<xml-simple>, [">= 1.0.12"])
413
425
  s.add_dependency(%q<mime-types>, [">= 1.16"])
@@ -49,7 +49,7 @@ module ActiveFedora
49
49
  # Returns a ruby class corresponding to the given uri if one can be found.
50
50
  # Returns false if no corresponding class can be found.
51
51
  def self.uri_to_ruby_class( uri )
52
- classname = uri.gsub("info:fedora/afmodel:", "")
52
+ classname = uri.split(':')[-1].titlecase
53
53
 
54
54
  if class_exists?(classname)
55
55
  Kernel.const_get(classname)
@@ -9,6 +9,9 @@ describe ActiveFedora::ContentModel do
9
9
  before(:all) do
10
10
  class SampleModel < ActiveFedora::Base
11
11
  end
12
+
13
+ class GenericContent < ActiveFedora::Base
14
+ end
12
15
  end
13
16
 
14
17
  before(:each) do
@@ -96,6 +99,7 @@ describe ActiveFedora::ContentModel do
96
99
  ActiveFedora::ContentModel.uri_to_ruby_class("info:fedora/afmodel:SampleModel").should == SampleModel
97
100
  ActiveFedora::ContentModel.uri_to_ruby_class("info:fedora/afmodel:NonDefinedModel").should == false
98
101
  ActiveFedora::ContentModel.uri_to_ruby_class("info:fedora/afmodel:String").should == String
102
+ ActiveFedora::ContentModel.uri_to_ruby_class("info:fedora/hydra-cModel:genericContent").should == GenericContent
99
103
  end
100
104
  end
101
105
 
@@ -104,6 +108,7 @@ describe ActiveFedora::ContentModel do
104
108
  ActiveFedora::ContentModel.uri_to_model_class("info:fedora/afmodel:SampleModel").should == SampleModel
105
109
  ActiveFedora::ContentModel.uri_to_model_class("info:fedora/afmodel:NonDefinedModel").should == false
106
110
  ActiveFedora::ContentModel.uri_to_model_class("info:fedora/afmodel:String").should == false
111
+ ActiveFedora::ContentModel.uri_to_model_class("info:fedora/hydra-cModel:genericContent").should == GenericContent
107
112
  end
108
113
  end
109
114
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 2
10
- version: 2.0.2
9
+ - 3
10
+ version: 2.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Zumwalt
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-11 00:00:00 -06:00
19
+ date: 2011-03-15 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -213,11 +213,71 @@ dependencies:
213
213
  - 0
214
214
  version: "0"
215
215
  requirement: *id013
216
+ - !ruby/object:Gem::Dependency
217
+ type: :development
218
+ prerelease: false
219
+ name: jeweler
220
+ version_requirements: &id014 !ruby/object:Gem::Requirement
221
+ none: false
222
+ requirements:
223
+ - - ">="
224
+ - !ruby/object:Gem::Version
225
+ hash: 3
226
+ segments:
227
+ - 0
228
+ version: "0"
229
+ requirement: *id014
230
+ - !ruby/object:Gem::Dependency
231
+ type: :development
232
+ prerelease: false
233
+ name: rspec
234
+ version_requirements: &id015 !ruby/object:Gem::Requirement
235
+ none: false
236
+ requirements:
237
+ - - <
238
+ - !ruby/object:Gem::Version
239
+ hash: 15
240
+ segments:
241
+ - 2
242
+ - 0
243
+ - 0
244
+ version: 2.0.0
245
+ requirement: *id015
246
+ - !ruby/object:Gem::Dependency
247
+ type: :development
248
+ prerelease: false
249
+ name: mocha
250
+ version_requirements: &id016 !ruby/object:Gem::Requirement
251
+ none: false
252
+ requirements:
253
+ - - ">="
254
+ - !ruby/object:Gem::Version
255
+ hash: 43
256
+ segments:
257
+ - 0
258
+ - 9
259
+ - 8
260
+ version: 0.9.8
261
+ requirement: *id016
262
+ - !ruby/object:Gem::Dependency
263
+ type: :development
264
+ prerelease: false
265
+ name: ruby-debug
266
+ version_requirements: &id017 !ruby/object:Gem::Requirement
267
+ none: false
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ hash: 3
272
+ segments:
273
+ - 0
274
+ version: "0"
275
+ requirement: *id017
216
276
  - !ruby/object:Gem::Dependency
217
277
  type: :runtime
218
278
  prerelease: false
219
279
  name: solr-ruby
220
- version_requirements: &id014 !ruby/object:Gem::Requirement
280
+ version_requirements: &id018 !ruby/object:Gem::Requirement
221
281
  none: false
222
282
  requirements:
223
283
  - - ">="
@@ -228,12 +288,12 @@ dependencies:
228
288
  - 0
229
289
  - 6
230
290
  version: 0.0.6
231
- requirement: *id014
291
+ requirement: *id018
232
292
  - !ruby/object:Gem::Dependency
233
293
  type: :runtime
234
294
  prerelease: false
235
295
  name: xml-simple
236
- version_requirements: &id015 !ruby/object:Gem::Requirement
296
+ version_requirements: &id019 !ruby/object:Gem::Requirement
237
297
  none: false
238
298
  requirements:
239
299
  - - ">="
@@ -244,12 +304,12 @@ dependencies:
244
304
  - 0
245
305
  - 12
246
306
  version: 1.0.12
247
- requirement: *id015
307
+ requirement: *id019
248
308
  - !ruby/object:Gem::Dependency
249
309
  type: :runtime
250
310
  prerelease: false
251
311
  name: mime-types
252
- version_requirements: &id016 !ruby/object:Gem::Requirement
312
+ version_requirements: &id020 !ruby/object:Gem::Requirement
253
313
  none: false
254
314
  requirements:
255
315
  - - ">="
@@ -259,12 +319,12 @@ dependencies:
259
319
  - 1
260
320
  - 16
261
321
  version: "1.16"
262
- requirement: *id016
322
+ requirement: *id020
263
323
  - !ruby/object:Gem::Dependency
264
324
  type: :runtime
265
325
  prerelease: false
266
326
  name: multipart-post
267
- version_requirements: &id017 !ruby/object:Gem::Requirement
327
+ version_requirements: &id021 !ruby/object:Gem::Requirement
268
328
  none: false
269
329
  requirements:
270
330
  - - ">="
@@ -273,12 +333,12 @@ dependencies:
273
333
  segments:
274
334
  - 0
275
335
  version: "0"
276
- requirement: *id017
336
+ requirement: *id021
277
337
  - !ruby/object:Gem::Dependency
278
338
  type: :runtime
279
339
  prerelease: false
280
340
  name: nokogiri
281
- version_requirements: &id018 !ruby/object:Gem::Requirement
341
+ version_requirements: &id022 !ruby/object:Gem::Requirement
282
342
  none: false
283
343
  requirements:
284
344
  - - ">="
@@ -287,12 +347,12 @@ dependencies:
287
347
  segments:
288
348
  - 0
289
349
  version: "0"
290
- requirement: *id018
350
+ requirement: *id022
291
351
  - !ruby/object:Gem::Dependency
292
352
  type: :runtime
293
353
  prerelease: false
294
354
  name: om
295
- version_requirements: &id019 !ruby/object:Gem::Requirement
355
+ version_requirements: &id023 !ruby/object:Gem::Requirement
296
356
  none: false
297
357
  requirements:
298
358
  - - ">="
@@ -302,12 +362,12 @@ dependencies:
302
362
  - 1
303
363
  - 0
304
364
  version: "1.0"
305
- requirement: *id019
365
+ requirement: *id023
306
366
  - !ruby/object:Gem::Dependency
307
367
  type: :runtime
308
368
  prerelease: false
309
369
  name: solrizer
310
- version_requirements: &id020 !ruby/object:Gem::Requirement
370
+ version_requirements: &id024 !ruby/object:Gem::Requirement
311
371
  none: false
312
372
  requirements:
313
373
  - - ">"
@@ -318,12 +378,12 @@ dependencies:
318
378
  - 0
319
379
  - 0
320
380
  version: 1.0.0
321
- requirement: *id020
381
+ requirement: *id024
322
382
  - !ruby/object:Gem::Dependency
323
383
  type: :runtime
324
384
  prerelease: false
325
385
  name: activeresource
326
- version_requirements: &id021 !ruby/object:Gem::Requirement
386
+ version_requirements: &id025 !ruby/object:Gem::Requirement
327
387
  none: false
328
388
  requirements:
329
389
  - - ">="
@@ -332,12 +392,12 @@ dependencies:
332
392
  segments:
333
393
  - 0
334
394
  version: "0"
335
- requirement: *id021
395
+ requirement: *id025
336
396
  - !ruby/object:Gem::Dependency
337
397
  type: :runtime
338
398
  prerelease: false
339
399
  name: mediashelf-loggable
340
- version_requirements: &id022 !ruby/object:Gem::Requirement
400
+ version_requirements: &id026 !ruby/object:Gem::Requirement
341
401
  none: false
342
402
  requirements:
343
403
  - - ">="
@@ -346,12 +406,12 @@ dependencies:
346
406
  segments:
347
407
  - 0
348
408
  version: "0"
349
- requirement: *id022
409
+ requirement: *id026
350
410
  - !ruby/object:Gem::Dependency
351
411
  type: :runtime
352
412
  prerelease: false
353
413
  name: equivalent-xml
354
- version_requirements: &id023 !ruby/object:Gem::Requirement
414
+ version_requirements: &id027 !ruby/object:Gem::Requirement
355
415
  none: false
356
416
  requirements:
357
417
  - - ">="
@@ -360,7 +420,7 @@ dependencies:
360
420
  segments:
361
421
  - 0
362
422
  version: "0"
363
- requirement: *id023
423
+ requirement: *id027
364
424
  description: ActiveFedora provides for creating and managing objects in the Fedora Repository Architecture.
365
425
  email: matt.zumwalt@yourmediashelf.com
366
426
  executables: []