active-fedora 1.2.4 → 1.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -21,5 +21,6 @@ tmtags
21
21
  coverage
22
22
  rdoc
23
23
  pkg
24
+ /.bundle
24
25
 
25
26
  ## PROJECT::SPECIFIC
data/Gemfile ADDED
@@ -0,0 +1,16 @@
1
+ source "http://rubygems.org"
2
+
3
+ gem 'solr-ruby', '>= 0.0.6'
4
+ gem 'xml-simple', '>= 1.0.12'
5
+ gem 'mime-types', '>= 1.16'
6
+ gem 'multipart-post'
7
+ gem 'nokogiri'
8
+ gem 'om', '>= 1.0'
9
+ gem 'solrizer', '>=0.3.0'
10
+ # gem 'yaml'
11
+
12
+ group :development, :test do
13
+ gem "rspec", ">= 1.2.9"
14
+ gem "mocha", ">= 0.9.8"
15
+ gem "ruby-debug"
16
+ end
@@ -0,0 +1,58 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ active-fedora (1.2.4)
5
+ mime-types (>= 1.16)
6
+ multipart-post
7
+ nokogiri
8
+ om (>= 1.0)
9
+ solr-ruby (>= 0.0.6)
10
+ xml-simple (>= 1.0.12)
11
+ columnize (0.3.1)
12
+ diff-lcs (1.1.2)
13
+ facets (2.9.0)
14
+ linecache (0.43)
15
+ mime-types (1.16)
16
+ mocha (0.9.9)
17
+ rake
18
+ multipart-post (1.0.1)
19
+ nokogiri (1.4.3.1)
20
+ om (1.0.0)
21
+ facets
22
+ nokogiri (>= 1.4.2)
23
+ rake (0.8.7)
24
+ rspec (2.0.1)
25
+ rspec-core (~> 2.0.1)
26
+ rspec-expectations (~> 2.0.1)
27
+ rspec-mocks (~> 2.0.1)
28
+ rspec-core (2.0.1)
29
+ rspec-expectations (2.0.1)
30
+ diff-lcs (>= 1.1.2)
31
+ rspec-mocks (2.0.1)
32
+ rspec-core (~> 2.0.1)
33
+ rspec-expectations (~> 2.0.1)
34
+ ruby-debug (0.10.3)
35
+ columnize (>= 0.1)
36
+ ruby-debug-base (~> 0.10.3.0)
37
+ ruby-debug-base (0.10.3)
38
+ linecache (>= 0.3)
39
+ solr-ruby (0.0.8)
40
+ solrizer (0.3.0)
41
+ active-fedora (>= 1.1.5)
42
+ om (>= 1.0.0)
43
+ xml-simple (1.0.12)
44
+
45
+ PLATFORMS
46
+ ruby
47
+
48
+ DEPENDENCIES
49
+ mime-types (>= 1.16)
50
+ mocha (>= 0.9.8)
51
+ multipart-post
52
+ nokogiri
53
+ om (>= 1.0)
54
+ rspec (>= 1.2.9)
55
+ ruby-debug
56
+ solr-ruby (>= 0.0.6)
57
+ solrizer (>= 0.3.0)
58
+ xml-simple (>= 1.0.12)
data/Rakefile CHANGED
@@ -14,21 +14,6 @@ begin
14
14
  gem.homepage = "http://yourmediashelf.com/activefedora"
15
15
  gem.authors = ["Matt Zumwalt", "McClain Looney"]
16
16
  gem.rubyforge_project = 'rubyfedora'
17
-
18
- gem.add_dependency('solr-ruby', '>= 0.0.6')
19
- gem.add_dependency('xml-simple', '>= 1.0.12')
20
- gem.add_dependency('mime-types', '>= 1.16')
21
- gem.add_dependency('multipart-post')
22
- gem.add_dependency('nokogiri')
23
- # gem.add_dependency('om', '>= 0.1.9')
24
- gem.add_dependency('om', '>= 1.0')
25
- # gem.add_dependency('solrizer', '>=0.1.4')
26
- # gem.add_dependency('yaml')
27
-
28
- gem.add_development_dependency "rspec", ">= 1.2.9"
29
- gem.add_development_dependency "mocha", ">= 0.9.8"
30
- gem.add_development_dependency "ruby-debug"
31
-
32
17
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
33
18
  end
34
19
  Jeweler::GemcutterTasks.new
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active-fedora}
8
- s.version = "1.2.4"
8
+ s.version = "1.2.5"
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{2010-10-20}
12
+ s.date = %q{2010-10-26}
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 = [
@@ -169,6 +169,8 @@ Gem::Specification.new do |s|
169
169
  ".hgtags",
170
170
  "COPYING.txt",
171
171
  "COYING.LESSER.txt",
172
+ "Gemfile",
173
+ "Gemfile.lock",
172
174
  "History.txt",
173
175
  "LICENSE",
174
176
  "License.txt",
@@ -348,6 +350,8 @@ Gem::Specification.new do |s|
348
350
  s.add_runtime_dependency(%q<multipart-post>, [">= 0"])
349
351
  s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
350
352
  s.add_runtime_dependency(%q<om>, [">= 1.0"])
353
+ s.add_runtime_dependency(%q<solrizer>, [">= 0.3.0"])
354
+ s.add_runtime_dependency(%q<activeresource>, ["< 3.0.0"])
351
355
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
352
356
  s.add_development_dependency(%q<mocha>, [">= 0.9.8"])
353
357
  s.add_development_dependency(%q<ruby-debug>, [">= 0"])
@@ -358,6 +362,8 @@ Gem::Specification.new do |s|
358
362
  s.add_dependency(%q<multipart-post>, [">= 0"])
359
363
  s.add_dependency(%q<nokogiri>, [">= 0"])
360
364
  s.add_dependency(%q<om>, [">= 1.0"])
365
+ s.add_dependency(%q<solrizer>, [">= 0.3.0"])
366
+ s.add_dependency(%q<activeresource>, ["< 3.0.0"])
361
367
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
362
368
  s.add_dependency(%q<mocha>, [">= 0.9.8"])
363
369
  s.add_dependency(%q<ruby-debug>, [">= 0"])
@@ -369,6 +375,8 @@ Gem::Specification.new do |s|
369
375
  s.add_dependency(%q<multipart-post>, [">= 0"])
370
376
  s.add_dependency(%q<nokogiri>, [">= 0"])
371
377
  s.add_dependency(%q<om>, [">= 1.0"])
378
+ s.add_dependency(%q<solrizer>, [">= 0.3.0"])
379
+ s.add_dependency(%q<activeresource>, ["< 3.0.0"])
372
380
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
373
381
  s.add_dependency(%q<mocha>, [">= 0.9.8"])
374
382
  s.add_dependency(%q<ruby-debug>, [">= 0"])
@@ -7,7 +7,7 @@ test:
7
7
  fedora:
8
8
  url: http://fedoraAdmin:fedoraAdmin@127.0.0.1:8983/fedora
9
9
  solr:
10
- url: http://127.0.0.1:8983/solr/test
10
+ url: http://127.0.0.1:8983/solr/development
11
11
  production:
12
12
  fedora:
13
13
  url: http://fedoraAdmin:fedoraAdmin@127.0.0.1:8080/fedora
@@ -878,7 +878,7 @@ module ActiveFedora
878
878
  #need to call rels_ext once so it exists when iterating over datastreams
879
879
  obj.rels_ext
880
880
  obj.datastreams.each_value do |ds|
881
- if ds.respond_to? (:from_solr)
881
+ if ds.respond_to?(:from_solr)
882
882
  ds.from_solr(solr_doc) if ds.kind_of?(ActiveFedora::MetadataDatastream) || ds.kind_of?(ActiveFedora::NokogiriDatastream) || ( ds.kind_of?(ActiveFedora::RelsExtDatastream))
883
883
  end
884
884
  end
@@ -84,11 +84,6 @@ class ActiveFedora::NokogiriDatastream < ActiveFedora::Datastream
84
84
  #do nothing for now
85
85
  end
86
86
 
87
- #overriding this method just so metadatahelper method does not get called
88
- def from_solr(solr_doc)
89
- #do nothing for now
90
- end
91
-
92
87
  def solrize_accessor(accessor_name, accessor_info, opts={})
93
88
  solr_doc = opts.fetch(:solr_doc, Solr::Document.new)
94
89
  parents = opts.fetch(:parents, [])
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 4
10
- version: 1.2.4
9
+ - 5
10
+ version: 1.2.5
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: 2010-10-20 00:00:00 -05:00
19
+ date: 2010-10-26 00:00:00 -05:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -110,9 +110,41 @@ dependencies:
110
110
  type: :runtime
111
111
  version_requirements: *id006
112
112
  - !ruby/object:Gem::Dependency
113
- name: rspec
113
+ name: solrizer
114
114
  prerelease: false
115
115
  requirement: &id007 !ruby/object:Gem::Requirement
116
+ none: false
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ hash: 19
121
+ segments:
122
+ - 0
123
+ - 3
124
+ - 0
125
+ version: 0.3.0
126
+ type: :runtime
127
+ version_requirements: *id007
128
+ - !ruby/object:Gem::Dependency
129
+ name: activeresource
130
+ prerelease: false
131
+ requirement: &id008 !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - <
135
+ - !ruby/object:Gem::Version
136
+ hash: 7
137
+ segments:
138
+ - 3
139
+ - 0
140
+ - 0
141
+ version: 3.0.0
142
+ type: :runtime
143
+ version_requirements: *id008
144
+ - !ruby/object:Gem::Dependency
145
+ name: rspec
146
+ prerelease: false
147
+ requirement: &id009 !ruby/object:Gem::Requirement
116
148
  none: false
117
149
  requirements:
118
150
  - - ">="
@@ -124,11 +156,11 @@ dependencies:
124
156
  - 9
125
157
  version: 1.2.9
126
158
  type: :development
127
- version_requirements: *id007
159
+ version_requirements: *id009
128
160
  - !ruby/object:Gem::Dependency
129
161
  name: mocha
130
162
  prerelease: false
131
- requirement: &id008 !ruby/object:Gem::Requirement
163
+ requirement: &id010 !ruby/object:Gem::Requirement
132
164
  none: false
133
165
  requirements:
134
166
  - - ">="
@@ -140,11 +172,11 @@ dependencies:
140
172
  - 8
141
173
  version: 0.9.8
142
174
  type: :development
143
- version_requirements: *id008
175
+ version_requirements: *id010
144
176
  - !ruby/object:Gem::Dependency
145
177
  name: ruby-debug
146
178
  prerelease: false
147
- requirement: &id009 !ruby/object:Gem::Requirement
179
+ requirement: &id011 !ruby/object:Gem::Requirement
148
180
  none: false
149
181
  requirements:
150
182
  - - ">="
@@ -154,7 +186,7 @@ dependencies:
154
186
  - 0
155
187
  version: "0"
156
188
  type: :development
157
- version_requirements: *id009
189
+ version_requirements: *id011
158
190
  description: ActiveFedora provides for creating and managing objects in the Fedora Repository Architecture.
159
191
  email: matt.zumwalt@yourmediashelf.com
160
192
  executables: []
@@ -317,6 +349,8 @@ files:
317
349
  - .hgtags
318
350
  - COPYING.txt
319
351
  - COYING.LESSER.txt
352
+ - Gemfile
353
+ - Gemfile.lock
320
354
  - History.txt
321
355
  - LICENSE
322
356
  - License.txt