active-fedora 4.2.0 → 4.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe ActiveFedora::Base do
4
4
  before :all do
5
5
  class CallbackStub < ActiveFedora::Base
6
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"someData" do |m|
6
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"someData" do |m|
7
7
  m.field "fubar", :string
8
8
  m.field "swank", :text
9
9
  end
@@ -73,11 +73,11 @@ describe ActiveFedora::Datastreams do
73
73
  describe "creates datastreams" do
74
74
  before do
75
75
  class FooHistory < ActiveFedora::Base
76
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"someData" do |m|
76
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"someData" do |m|
77
77
  m.field "fubar", :string
78
78
  m.field "swank", :text
79
79
  end
80
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"withText2", :label=>"withLabel" do |m|
80
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"withText2", :label=>"withLabel" do |m|
81
81
  m.field "fubar", :text
82
82
  end
83
83
  end
@@ -97,8 +97,8 @@ describe ActiveFedora::Datastreams do
97
97
 
98
98
  it "should create specified datastreams with specified fields" do
99
99
  @n.datastreams["someData"].should_not be_nil
100
- @n.datastreams["someData"].fubar_values='bar'
101
- @n.datastreams["someData"].fubar_values.should == ['bar']
100
+ @n.datastreams["someData"].fubar='bar'
101
+ @n.datastreams["someData"].fubar.should == ['bar']
102
102
  @n.datastreams["withText2"].dsLabel.should == "withLabel"
103
103
  end
104
104
  end
@@ -121,7 +121,7 @@ describe ActiveFedora::Datastreams do
121
121
  has_metadata :name => "DC", :type => ActiveFedora::NokogiriDatastream, :label=>"DC admin metadata"
122
122
 
123
123
  # A place to put extra metadata values
124
- has_metadata :name => "properties", :label=>"Workflow properties", :type => ActiveFedora::MetadataDatastream do |m|
124
+ has_metadata :name => "properties", :label=>"Workflow properties", :type => ActiveFedora::SimpleDatastream do |m|
125
125
  m.field 'collection', :string
126
126
  m.field 'depositor', :string
127
127
  end
@@ -152,7 +152,7 @@ describe ActiveFedora::Datastreams do
152
152
 
153
153
  it "should allow :control_group => 'E' with a :url option" do
154
154
  class MoreFooHistory < ActiveFedora::Base
155
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"externalDisseminator",:control_group => "E", :url => "http://exampl.com/mypic.jpg"
155
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"externalDisseminator",:control_group => "E", :url => "http://exampl.com/mypic.jpg"
156
156
  end
157
157
  stub_ingest(@this_pid)
158
158
  @n = MoreFooHistory.new
@@ -164,7 +164,7 @@ describe ActiveFedora::Datastreams do
164
164
  describe "control_group E without a url" do
165
165
  before do
166
166
  class MoreFooHistory < ActiveFedora::Base
167
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"externalDisseminator",:control_group => "E"
167
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"externalDisseminator",:control_group => "E"
168
168
  end
169
169
  stub_ingest(@this_pid)
170
170
  @n = MoreFooHistory.new
@@ -201,7 +201,7 @@ describe ActiveFedora::Datastreams do
201
201
  it "should allow :control_group => 'R' with a :url option" do
202
202
  stub_ingest(@this_pid)
203
203
  class MoreFooHistory < ActiveFedora::Base
204
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"externalDisseminator",:control_group => "R", :url => "http://exampl.com/mypic.jpg"
204
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"externalDisseminator",:control_group => "R", :url => "http://exampl.com/mypic.jpg"
205
205
  end
206
206
  @n = MoreFooHistory.new
207
207
  MoreFooHistory.stubs(:assign_pid).returns(@this_pid)
@@ -211,7 +211,7 @@ describe ActiveFedora::Datastreams do
211
211
  describe "control_group R without url" do
212
212
  before do
213
213
  class MoreFooHistory < ActiveFedora::Base
214
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"externalDisseminator",:control_group => "R"
214
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"externalDisseminator",:control_group => "R"
215
215
  end
216
216
  MoreFooHistory.stubs(:assign_pid).returns(@this_pid)
217
217
  stub_ingest(@this_pid)
@@ -2,18 +2,14 @@ require 'spec_helper'
2
2
 
3
3
  describe ActiveFedora::Base do
4
4
  before(:each) do
5
- #Fedora::Repository.instance.stubs(:nextid).returns("_nextid_")
6
5
  class Foo < ActiveFedora::Base
7
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"foostream" do|m|
6
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"foostream" do|m|
8
7
  m.field "foostream", :string
9
8
  end
10
9
  has_metadata :type=>ActiveFedora::QualifiedDublinCoreDatastream, :name=>"dcstream"
11
- # do|m|
12
- # m.field "fz", :string
13
- # end
14
10
  end
15
11
  class Bar < ActiveFedora::Base
16
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"barstream" do |m|
12
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"barstream" do |m|
17
13
  m.field "barfield", :string
18
14
  end
19
15
  end
@@ -23,9 +19,9 @@ describe ActiveFedora::Base do
23
19
  f = Foo.new
24
20
  f.datastreams.size.should == 3
25
21
  streams = f.datastreams.values.map{|x| x.class.to_s}.sort
22
+ streams.pop.should == "ActiveFedora::SimpleDatastream"
26
23
  streams.pop.should == "ActiveFedora::RelsExtDatastream"
27
24
  streams.pop.should == "ActiveFedora::QualifiedDublinCoreDatastream"
28
- streams.pop.should == "ActiveFedora::MetadataDatastream"
29
25
  end
30
26
 
31
27
  it "should work for multiple types" do
@@ -0,0 +1,56 @@
1
+ require 'spec_helper'
2
+
3
+ describe ActiveFedora::SimpleDatastream do
4
+
5
+ before do
6
+ @sample_xml = "<fields><coverage>coverage1</coverage><coverage>coverage2</coverage><creation_date>fake-date</creation_date><mydate>fake-date</mydate><publisher>publisher1</publisher></fields>"
7
+ @test_ds = ActiveFedora::SimpleDatastream.from_xml(@sample_xml )
8
+ @test_ds.field :coverage
9
+ @test_ds.field :creation_date, :date
10
+ @test_ds.field :mydate
11
+ @test_ds.field :publisher
12
+
13
+ end
14
+ it "from_xml should parse everything correctly" do
15
+ @test_ds.ng_xml.should be_equivalent_to @sample_xml
16
+ end
17
+
18
+
19
+ describe '#new' do
20
+ describe "model methods" do
21
+
22
+ [:coverage, :creation_date, :mydate, :publisher].each do |el|
23
+ it "should respond to getters and setters for #{el} element" do
24
+ value = "Hey #{el}"
25
+ @test_ds.send("#{el.to_s}=", value)
26
+ @test_ds.send(el).first.should == value #Looking at first because creator has 2 nodes
27
+ end
28
+ end
29
+ end
30
+ end
31
+
32
+ describe '.to_xml' do
33
+ it 'should output the fields hash as Qualified Dublin Core XML' do
34
+ @test_ds.publisher= "charlie"
35
+ @test_ds.coverage= ["80%", "20%"]
36
+
37
+ @test_ds.to_xml.should be_equivalent_to('
38
+ <fields>
39
+ <coverage>80%</coverage>
40
+ <coverage>20%</coverage>
41
+ <creation_date>fake-date</creation_date>
42
+ <mydate>fake-date</mydate>
43
+ <publisher>charlie</publisher>
44
+ </fields>')
45
+ end
46
+ end
47
+
48
+ describe "#to_solr" do
49
+ it "should have title" do
50
+ solr = @test_ds.to_solr
51
+ solr["publisher_t"].should == ["publisher1"]
52
+ solr["creation_date_dt"].should == ["fake-date"]
53
+ end
54
+ end
55
+
56
+ end
@@ -67,7 +67,7 @@ describe ActiveFedora do
67
67
  end
68
68
 
69
69
  it "should prevent Base.save from calling update_index if false" do
70
- dirty_ds = ActiveFedora::MetadataDatastream.new(@test_object.inner_object, 'ds1')
70
+ dirty_ds = ActiveFedora::SimpleDatastream.new(@test_object.inner_object, 'ds1')
71
71
  @test_object.datastreams['ds1'] = dirty_ds
72
72
  @test_object.stubs(:datastreams).returns({:ds1 => dirty_ds})
73
73
  @test_object.expects(:update_index).never
@@ -3,7 +3,7 @@ require 'spec_helper'
3
3
  describe ActiveFedora::Base do
4
4
  before :all do
5
5
  class ValidationStub < ActiveFedora::Base
6
- has_metadata :type=>ActiveFedora::MetadataDatastream, :name=>"someData" do |m|
6
+ has_metadata :type=>ActiveFedora::SimpleDatastream, :name=>"someData" do |m|
7
7
  m.field "fubar", :string
8
8
  m.field "swank", :text
9
9
  end
metadata CHANGED
@@ -1,338 +1,348 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: active-fedora
3
- version: !ruby/object:Gem::Version
4
- hash: 55
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.3.0
5
5
  prerelease:
6
- segments:
7
- - 4
8
- - 2
9
- - 0
10
- version: 4.2.0
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Matt Zumwalt
14
9
  - McClain Looney
15
10
  - Justin Coyne
16
11
  autorequire:
17
12
  bindir: bin
18
13
  cert_chain: []
19
-
20
- date: 2012-06-12 00:00:00 Z
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
14
+ date: 2012-06-21 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
23
17
  name: rsolr
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
18
+ requirement: !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '0'
34
24
  type: :runtime
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: xml-simple
38
25
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 15
45
- segments:
46
- - 1
47
- - 0
48
- - 12
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ none: false
28
+ requirements:
29
+ - - ! '>='
30
+ - !ruby/object:Gem::Version
31
+ version: '0'
32
+ - !ruby/object:Gem::Dependency
33
+ name: xml-simple
34
+ requirement: !ruby/object:Gem::Requirement
35
+ none: false
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
49
39
  version: 1.0.12
50
40
  type: :runtime
51
- version_requirements: *id002
52
- - !ruby/object:Gem::Dependency
53
- name: mime-types
54
41
  prerelease: false
55
- requirement: &id003 !ruby/object:Gem::Requirement
56
- none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- hash: 47
61
- segments:
62
- - 1
63
- - 16
64
- version: "1.16"
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ none: false
44
+ requirements:
45
+ - - ! '>='
46
+ - !ruby/object:Gem::Version
47
+ version: 1.0.12
48
+ - !ruby/object:Gem::Dependency
49
+ name: mime-types
50
+ requirement: !ruby/object:Gem::Requirement
51
+ none: false
52
+ requirements:
53
+ - - ! '>='
54
+ - !ruby/object:Gem::Version
55
+ version: '1.16'
65
56
  type: :runtime
66
- version_requirements: *id003
67
- - !ruby/object:Gem::Dependency
68
- name: multipart-post
69
57
  prerelease: false
70
- requirement: &id004 !ruby/object:Gem::Requirement
71
- none: false
72
- requirements:
73
- - - "="
74
- - !ruby/object:Gem::Version
75
- hash: 23
76
- segments:
77
- - 1
78
- - 1
79
- - 2
80
- version: 1.1.2
58
+ version_requirements: !ruby/object:Gem::Requirement
59
+ none: false
60
+ requirements:
61
+ - - ! '>='
62
+ - !ruby/object:Gem::Version
63
+ version: '1.16'
64
+ - !ruby/object:Gem::Dependency
65
+ name: multipart-post
66
+ requirement: !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ! '>='
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
81
72
  type: :runtime
82
- version_requirements: *id004
83
- - !ruby/object:Gem::Dependency
84
- name: nokogiri
85
73
  prerelease: false
86
- requirement: &id005 !ruby/object:Gem::Requirement
87
- none: false
88
- requirements:
89
- - - ">="
90
- - !ruby/object:Gem::Version
91
- hash: 3
92
- segments:
93
- - 0
94
- version: "0"
74
+ version_requirements: !ruby/object:Gem::Requirement
75
+ none: false
76
+ requirements:
77
+ - - ! '>='
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ - !ruby/object:Gem::Dependency
81
+ name: nokogiri
82
+ requirement: !ruby/object:Gem::Requirement
83
+ none: false
84
+ requirements:
85
+ - - ! '>='
86
+ - !ruby/object:Gem::Version
87
+ version: '0'
95
88
  type: :runtime
96
- version_requirements: *id005
97
- - !ruby/object:Gem::Dependency
98
- name: om
99
89
  prerelease: false
100
- requirement: &id006 !ruby/object:Gem::Requirement
90
+ version_requirements: !ruby/object:Gem::Requirement
101
91
  none: false
102
- requirements:
92
+ requirements:
93
+ - - ! '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: om
98
+ requirement: !ruby/object:Gem::Requirement
99
+ none: false
100
+ requirements:
103
101
  - - ~>
104
- - !ruby/object:Gem::Version
105
- hash: 15
106
- segments:
107
- - 1
108
- - 6
109
- - 0
102
+ - !ruby/object:Gem::Version
110
103
  version: 1.6.0
111
104
  type: :runtime
112
- version_requirements: *id006
113
- - !ruby/object:Gem::Dependency
114
- name: solrizer
115
105
  prerelease: false
116
- requirement: &id007 !ruby/object:Gem::Requirement
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ none: false
108
+ requirements:
109
+ - - ~>
110
+ - !ruby/object:Gem::Version
111
+ version: 1.6.0
112
+ - !ruby/object:Gem::Dependency
113
+ name: solrizer
114
+ requirement: !ruby/object:Gem::Requirement
117
115
  none: false
118
- requirements:
116
+ requirements:
119
117
  - - ~>
120
- - !ruby/object:Gem::Version
121
- hash: 31
122
- segments:
123
- - 1
124
- - 2
125
- - 0
118
+ - !ruby/object:Gem::Version
126
119
  version: 1.2.0
127
120
  type: :runtime
128
- version_requirements: *id007
129
- - !ruby/object:Gem::Dependency
130
- name: activeresource
131
121
  prerelease: false
132
- requirement: &id008 !ruby/object:Gem::Requirement
133
- none: false
134
- requirements:
135
- - - ">="
136
- - !ruby/object:Gem::Version
137
- hash: 7
138
- segments:
139
- - 3
140
- - 0
141
- - 0
122
+ version_requirements: !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ~>
126
+ - !ruby/object:Gem::Version
127
+ version: 1.2.0
128
+ - !ruby/object:Gem::Dependency
129
+ name: activeresource
130
+ requirement: !ruby/object:Gem::Requirement
131
+ none: false
132
+ requirements:
133
+ - - ! '>='
134
+ - !ruby/object:Gem::Version
142
135
  version: 3.0.0
143
136
  type: :runtime
144
- version_requirements: *id008
145
- - !ruby/object:Gem::Dependency
146
- name: activesupport
147
137
  prerelease: false
148
- requirement: &id009 !ruby/object:Gem::Requirement
149
- none: false
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- hash: 7
154
- segments:
155
- - 3
156
- - 0
157
- - 0
138
+ version_requirements: !ruby/object:Gem::Requirement
139
+ none: false
140
+ requirements:
141
+ - - ! '>='
142
+ - !ruby/object:Gem::Version
143
+ version: 3.0.0
144
+ - !ruby/object:Gem::Dependency
145
+ name: activesupport
146
+ requirement: !ruby/object:Gem::Requirement
147
+ none: false
148
+ requirements:
149
+ - - ! '>='
150
+ - !ruby/object:Gem::Version
158
151
  version: 3.0.0
159
152
  type: :runtime
160
- version_requirements: *id009
161
- - !ruby/object:Gem::Dependency
162
- name: mediashelf-loggable
163
153
  prerelease: false
164
- requirement: &id010 !ruby/object:Gem::Requirement
165
- none: false
166
- requirements:
167
- - - ">="
168
- - !ruby/object:Gem::Version
169
- hash: 3
170
- segments:
171
- - 0
172
- version: "0"
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ none: false
156
+ requirements:
157
+ - - ! '>='
158
+ - !ruby/object:Gem::Version
159
+ version: 3.0.0
160
+ - !ruby/object:Gem::Dependency
161
+ name: mediashelf-loggable
162
+ requirement: !ruby/object:Gem::Requirement
163
+ none: false
164
+ requirements:
165
+ - - ! '>='
166
+ - !ruby/object:Gem::Version
167
+ version: '0'
173
168
  type: :runtime
174
- version_requirements: *id010
175
- - !ruby/object:Gem::Dependency
176
- name: equivalent-xml
177
169
  prerelease: false
178
- requirement: &id011 !ruby/object:Gem::Requirement
179
- none: false
180
- requirements:
181
- - - ">="
182
- - !ruby/object:Gem::Version
183
- hash: 3
184
- segments:
185
- - 0
186
- version: "0"
170
+ version_requirements: !ruby/object:Gem::Requirement
171
+ none: false
172
+ requirements:
173
+ - - ! '>='
174
+ - !ruby/object:Gem::Version
175
+ version: '0'
176
+ - !ruby/object:Gem::Dependency
177
+ name: equivalent-xml
178
+ requirement: !ruby/object:Gem::Requirement
179
+ none: false
180
+ requirements:
181
+ - - ! '>='
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
187
184
  type: :runtime
188
- version_requirements: *id011
189
- - !ruby/object:Gem::Dependency
190
- name: rubydora
191
185
  prerelease: false
192
- requirement: &id012 !ruby/object:Gem::Requirement
186
+ version_requirements: !ruby/object:Gem::Requirement
193
187
  none: false
194
- requirements:
188
+ requirements:
189
+ - - ! '>='
190
+ - !ruby/object:Gem::Version
191
+ version: '0'
192
+ - !ruby/object:Gem::Dependency
193
+ name: rubydora
194
+ requirement: !ruby/object:Gem::Requirement
195
+ none: false
196
+ requirements:
195
197
  - - ~>
196
- - !ruby/object:Gem::Version
197
- hash: 25
198
- segments:
199
- - 0
200
- - 5
201
- - 9
198
+ - !ruby/object:Gem::Version
202
199
  version: 0.5.9
203
200
  type: :runtime
204
- version_requirements: *id012
205
- - !ruby/object:Gem::Dependency
206
- name: rdf
207
201
  prerelease: false
208
- requirement: &id013 !ruby/object:Gem::Requirement
209
- none: false
210
- requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- hash: 3
214
- segments:
215
- - 0
216
- version: "0"
202
+ version_requirements: !ruby/object:Gem::Requirement
203
+ none: false
204
+ requirements:
205
+ - - ~>
206
+ - !ruby/object:Gem::Version
207
+ version: 0.5.9
208
+ - !ruby/object:Gem::Dependency
209
+ name: rdf
210
+ requirement: !ruby/object:Gem::Requirement
211
+ none: false
212
+ requirements:
213
+ - - ! '>='
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
217
216
  type: :runtime
218
- version_requirements: *id013
219
- - !ruby/object:Gem::Dependency
220
- name: rdf-rdfxml
221
217
  prerelease: false
222
- requirement: &id014 !ruby/object:Gem::Requirement
218
+ version_requirements: !ruby/object:Gem::Requirement
223
219
  none: false
224
- requirements:
220
+ requirements:
221
+ - - ! '>='
222
+ - !ruby/object:Gem::Version
223
+ version: '0'
224
+ - !ruby/object:Gem::Dependency
225
+ name: rdf-rdfxml
226
+ requirement: !ruby/object:Gem::Requirement
227
+ none: false
228
+ requirements:
225
229
  - - ~>
226
- - !ruby/object:Gem::Version
227
- hash: 3
228
- segments:
229
- - 0
230
- - 3
231
- - 8
230
+ - !ruby/object:Gem::Version
232
231
  version: 0.3.8
233
232
  type: :runtime
234
- version_requirements: *id014
235
- - !ruby/object:Gem::Dependency
236
- name: yard
237
233
  prerelease: false
238
- requirement: &id015 !ruby/object:Gem::Requirement
239
- none: false
240
- requirements:
241
- - - ">="
242
- - !ruby/object:Gem::Version
243
- hash: 3
244
- segments:
245
- - 0
246
- version: "0"
234
+ version_requirements: !ruby/object:Gem::Requirement
235
+ none: false
236
+ requirements:
237
+ - - ~>
238
+ - !ruby/object:Gem::Version
239
+ version: 0.3.8
240
+ - !ruby/object:Gem::Dependency
241
+ name: yard
242
+ requirement: !ruby/object:Gem::Requirement
243
+ none: false
244
+ requirements:
245
+ - - ! '>='
246
+ - !ruby/object:Gem::Version
247
+ version: '0'
247
248
  type: :development
248
- version_requirements: *id015
249
- - !ruby/object:Gem::Dependency
250
- name: RedCloth
251
249
  prerelease: false
252
- requirement: &id016 !ruby/object:Gem::Requirement
253
- none: false
254
- requirements:
255
- - - ">="
256
- - !ruby/object:Gem::Version
257
- hash: 3
258
- segments:
259
- - 0
260
- version: "0"
250
+ version_requirements: !ruby/object:Gem::Requirement
251
+ none: false
252
+ requirements:
253
+ - - ! '>='
254
+ - !ruby/object:Gem::Version
255
+ version: '0'
256
+ - !ruby/object:Gem::Dependency
257
+ name: RedCloth
258
+ requirement: !ruby/object:Gem::Requirement
259
+ none: false
260
+ requirements:
261
+ - - ! '>='
262
+ - !ruby/object:Gem::Version
263
+ version: '0'
261
264
  type: :development
262
- version_requirements: *id016
263
- - !ruby/object:Gem::Dependency
264
- name: rake
265
265
  prerelease: false
266
- requirement: &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"
266
+ version_requirements: !ruby/object:Gem::Requirement
267
+ none: false
268
+ requirements:
269
+ - - ! '>='
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ - !ruby/object:Gem::Dependency
273
+ name: rake
274
+ requirement: !ruby/object:Gem::Requirement
275
+ none: false
276
+ requirements:
277
+ - - ! '>='
278
+ - !ruby/object:Gem::Version
279
+ version: '0'
275
280
  type: :development
276
- version_requirements: *id017
277
- - !ruby/object:Gem::Dependency
278
- name: jettywrapper
279
281
  prerelease: false
280
- requirement: &id018 !ruby/object:Gem::Requirement
281
- none: false
282
- requirements:
283
- - - ">="
284
- - !ruby/object:Gem::Version
285
- hash: 31
286
- segments:
287
- - 1
288
- - 2
289
- - 0
282
+ version_requirements: !ruby/object:Gem::Requirement
283
+ none: false
284
+ requirements:
285
+ - - ! '>='
286
+ - !ruby/object:Gem::Version
287
+ version: '0'
288
+ - !ruby/object:Gem::Dependency
289
+ name: jettywrapper
290
+ requirement: !ruby/object:Gem::Requirement
291
+ none: false
292
+ requirements:
293
+ - - ! '>='
294
+ - !ruby/object:Gem::Version
290
295
  version: 1.2.0
291
296
  type: :development
292
- version_requirements: *id018
293
- - !ruby/object:Gem::Dependency
294
- name: rspec
295
297
  prerelease: false
296
- requirement: &id019 !ruby/object:Gem::Requirement
297
- none: false
298
- requirements:
299
- - - ">="
300
- - !ruby/object:Gem::Version
301
- hash: 43
302
- segments:
303
- - 2
304
- - 9
305
- - 0
298
+ version_requirements: !ruby/object:Gem::Requirement
299
+ none: false
300
+ requirements:
301
+ - - ! '>='
302
+ - !ruby/object:Gem::Version
303
+ version: 1.2.0
304
+ - !ruby/object:Gem::Dependency
305
+ name: rspec
306
+ requirement: !ruby/object:Gem::Requirement
307
+ none: false
308
+ requirements:
309
+ - - ! '>='
310
+ - !ruby/object:Gem::Version
306
311
  version: 2.9.0
307
312
  type: :development
308
- version_requirements: *id019
309
- - !ruby/object:Gem::Dependency
310
- name: mocha
311
313
  prerelease: false
312
- requirement: &id020 !ruby/object:Gem::Requirement
313
- none: false
314
- requirements:
315
- - - "="
316
- - !ruby/object:Gem::Version
317
- hash: 61
318
- segments:
319
- - 0
320
- - 10
321
- - 5
314
+ version_requirements: !ruby/object:Gem::Requirement
315
+ none: false
316
+ requirements:
317
+ - - ! '>='
318
+ - !ruby/object:Gem::Version
319
+ version: 2.9.0
320
+ - !ruby/object:Gem::Dependency
321
+ name: mocha
322
+ requirement: !ruby/object:Gem::Requirement
323
+ none: false
324
+ requirements:
325
+ - - '='
326
+ - !ruby/object:Gem::Version
322
327
  version: 0.10.5
323
328
  type: :development
324
- version_requirements: *id020
325
- description: ActiveFedora provides for creating and managing objects in the Fedora Repository Architecture.
326
- email:
329
+ prerelease: false
330
+ version_requirements: !ruby/object:Gem::Requirement
331
+ none: false
332
+ requirements:
333
+ - - '='
334
+ - !ruby/object:Gem::Version
335
+ version: 0.10.5
336
+ description: ActiveFedora provides for creating and managing objects in the Fedora
337
+ Repository Architecture.
338
+ email:
327
339
  - matt.zumwalt@yourmediashelf.com
328
340
  executables: []
329
-
330
341
  extensions: []
331
-
332
- extra_rdoc_files:
342
+ extra_rdoc_files:
333
343
  - LICENSE
334
344
  - README.textile
335
- files:
345
+ files:
336
346
  - .document
337
347
  - .gitignore
338
348
  - .gitmodules
@@ -404,6 +414,7 @@ files:
404
414
  - lib/active_fedora/rubydora_connection.rb
405
415
  - lib/active_fedora/semantic_node.rb
406
416
  - lib/active_fedora/service_definitions.rb
417
+ - lib/active_fedora/simple_datastream.rb
407
418
  - lib/active_fedora/solr_digital_object.rb
408
419
  - lib/active_fedora/solr_service.rb
409
420
  - lib/active_fedora/unsaved_digital_object.rb
@@ -511,6 +522,7 @@ files:
511
522
  - spec/unit/base_cma_spec.rb
512
523
  - spec/unit/base_datastream_management_spec.rb
513
524
  - spec/unit/base_delegate_spec.rb
525
+ - spec/unit/base_delegate_to_spec.rb
514
526
  - spec/unit/base_extra_spec.rb
515
527
  - spec/unit/base_file_management_spec.rb
516
528
  - spec/unit/base_spec.rb
@@ -539,6 +551,7 @@ files:
539
551
  - spec/unit/rubydora_connection_spec.rb
540
552
  - spec/unit/semantic_node_spec.rb
541
553
  - spec/unit/service_definitions_spec.rb
554
+ - spec/unit/simple_datastream_spec.rb
542
555
  - spec/unit/solr_config_options_spec.rb
543
556
  - spec/unit/solr_digital_object_spec.rb
544
557
  - spec/unit/solr_service_spec.rb
@@ -546,160 +559,33 @@ files:
546
559
  - spec/unit/validations_spec.rb
547
560
  homepage: https://github.com/projecthydra/active_fedora
548
561
  licenses: []
549
-
550
562
  post_install_message:
551
563
  rdoc_options: []
552
-
553
- require_paths:
564
+ require_paths:
554
565
  - lib
555
- required_ruby_version: !ruby/object:Gem::Requirement
566
+ required_ruby_version: !ruby/object:Gem::Requirement
556
567
  none: false
557
- requirements:
558
- - - ">="
559
- - !ruby/object:Gem::Version
560
- hash: 3
561
- segments:
568
+ requirements:
569
+ - - ! '>='
570
+ - !ruby/object:Gem::Version
571
+ version: '0'
572
+ segments:
562
573
  - 0
563
- version: "0"
564
- required_rubygems_version: !ruby/object:Gem::Requirement
574
+ hash: 801135923
575
+ required_rubygems_version: !ruby/object:Gem::Requirement
565
576
  none: false
566
- requirements:
567
- - - ">="
568
- - !ruby/object:Gem::Version
569
- hash: 3
570
- segments:
577
+ requirements:
578
+ - - ! '>='
579
+ - !ruby/object:Gem::Version
580
+ version: '0'
581
+ segments:
571
582
  - 0
572
- version: "0"
583
+ hash: 801135923
573
584
  requirements: []
574
-
575
585
  rubyforge_project: rubyfedora
576
586
  rubygems_version: 1.8.24
577
587
  signing_key:
578
588
  specification_version: 3
579
589
  summary: A convenience libary for manipulating documents in the Fedora Repository.
580
- test_files:
581
- - spec/config_helper.rb
582
- - spec/fixtures/changeme155.xml
583
- - spec/fixtures/dino.jpg
584
- - spec/fixtures/dino_jpg_no_file_ext
585
- - spec/fixtures/dublin_core_rdf_descMetadata.nt
586
- - spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml
587
- - spec/fixtures/minivan.jpg
588
- - spec/fixtures/mixed_rdf_descMetadata.nt
589
- - spec/fixtures/mods_articles/hydrangea_article1.xml
590
- - spec/fixtures/rails_root/config/fake_fedora.yml
591
- - spec/fixtures/rails_root/config/fedora.yml
592
- - spec/fixtures/rails_root/config/predicate_mappings.yml
593
- - spec/fixtures/rails_root/config/solr.yml
594
- - spec/fixtures/rails_root/config/solr_mappings.yml
595
- - spec/fixtures/rails_root/config/solr_mappings_af_0.1.yml
596
- - spec/fixtures/rails_root/config/solr_mappings_bl_2.4.yml
597
- - spec/fixtures/sharded_fedora.yml
598
- - spec/fixtures/solr_rdf_descMetadata.nt
599
- - spec/fixtures/test_12.foxml.xml
600
- - spec/hydrangea_fixture_mods_article1.foxml.xml
601
- - spec/integration/associations_spec.rb
602
- - spec/integration/base_file_management_spec.rb
603
- - spec/integration/base_find_by_fields_spec.rb
604
- - spec/integration/base_spec.rb
605
- - spec/integration/bug_spec.rb
606
- - spec/integration/datastream_collections_spec.rb
607
- - spec/integration/datastream_spec.rb
608
- - spec/integration/full_featured_model_spec.rb
609
- - spec/integration/metadata_datastream_helper_spec.rb
610
- - spec/integration/metadata_datastream_spec.rb
611
- - spec/integration/model_spec.rb
612
- - spec/integration/mods_article_integration_spec.rb
613
- - spec/integration/nested_attribute_spec.rb
614
- - spec/integration/nokogiri_datastream_spec.rb
615
- - spec/integration/ntriples_datastream_spec.rb
616
- - spec/integration/rels_ext_datastream_spec.rb
617
- - spec/integration/semantic_node_spec.rb
618
- - spec/integration/solr_service_spec.rb
619
- - spec/rails3_test_app/.gitignore
620
- - spec/rails3_test_app/.rspec
621
- - spec/rails3_test_app/.rvmrc
622
- - spec/rails3_test_app/Gemfile
623
- - spec/rails3_test_app/Gemfile.lock
624
- - spec/rails3_test_app/Rakefile
625
- - spec/rails3_test_app/app/controllers/application_controller.rb
626
- - spec/rails3_test_app/app/helpers/application_helper.rb
627
- - spec/rails3_test_app/app/views/layouts/application.html.erb
628
- - spec/rails3_test_app/config.ru
629
- - spec/rails3_test_app/config/application.rb
630
- - spec/rails3_test_app/config/boot.rb
631
- - spec/rails3_test_app/config/database.yml
632
- - spec/rails3_test_app/config/environment.rb
633
- - spec/rails3_test_app/config/environments/development.rb
634
- - spec/rails3_test_app/config/environments/production.rb
635
- - spec/rails3_test_app/config/environments/test.rb
636
- - spec/rails3_test_app/config/initializers/backtrace_silencers.rb
637
- - spec/rails3_test_app/config/initializers/inflections.rb
638
- - spec/rails3_test_app/config/initializers/mime_types.rb
639
- - spec/rails3_test_app/config/initializers/secret_token.rb
640
- - spec/rails3_test_app/config/initializers/session_store.rb
641
- - spec/rails3_test_app/config/locales/en.yml
642
- - spec/rails3_test_app/config/routes.rb
643
- - spec/rails3_test_app/db/seeds.rb
644
- - spec/rails3_test_app/run_tests
645
- - spec/rails3_test_app/script/rails
646
- - spec/rails3_test_app/spec/spec_helper.rb
647
- - spec/rails3_test_app/spec/unit/rails_3_init.rb
648
- - spec/rcov.opts
649
- - spec/samples/hydra-mods_article_datastream.rb
650
- - spec/samples/hydra-rights_metadata_datastream.rb
651
- - spec/samples/marpa-dc_datastream.rb
652
- - spec/samples/models/audio_record.rb
653
- - spec/samples/models/hydrangea_article.rb
654
- - spec/samples/models/image.rb
655
- - spec/samples/models/oral_history.rb
656
- - spec/samples/models/seminar.rb
657
- - spec/samples/models/seminar_audio_file.rb
658
- - spec/samples/oral_history_sample.xml
659
- - spec/samples/oral_history_sample_model.rb
660
- - spec/samples/oral_history_xml.xml
661
- - spec/samples/samples.rb
662
- - spec/samples/special_thing.rb
663
- - spec/spec.opts
664
- - spec/spec_helper.rb
665
- - spec/support/mock_fedora.rb
666
- - spec/unit/active_fedora_spec.rb
667
- - spec/unit/association_proxy_spec.rb
668
- - spec/unit/base_active_model_spec.rb
669
- - spec/unit/base_cma_spec.rb
670
- - spec/unit/base_datastream_management_spec.rb
671
- - spec/unit/base_delegate_spec.rb
672
- - spec/unit/base_extra_spec.rb
673
- - spec/unit/base_file_management_spec.rb
674
- - spec/unit/base_spec.rb
675
- - spec/unit/callback_spec.rb
676
- - spec/unit/code_configurator_spec.rb
677
- - spec/unit/config_spec.rb
678
- - spec/unit/content_model_spec.rb
679
- - spec/unit/datastream_collections_spec.rb
680
- - spec/unit/datastream_spec.rb
681
- - spec/unit/datastreams_spec.rb
682
- - spec/unit/file_configurator_spec.rb
683
- - spec/unit/has_many_collection_spec.rb
684
- - spec/unit/inheritance_spec.rb
685
- - spec/unit/metadata_datastream_spec.rb
686
- - spec/unit/model_spec.rb
687
- - spec/unit/nokogiri_datastream_spec.rb
688
- - spec/unit/ntriples_datastream_spec.rb
689
- - spec/unit/predicates_spec.rb
690
- - spec/unit/property_spec.rb
691
- - spec/unit/qualified_dublin_core_datastream_spec.rb
692
- - spec/unit/rdf_xml_writer_spec.rb
693
- - spec/unit/rdfxml_rdf_datastream_spec.rb
694
- - spec/unit/relationship_graph_spec.rb
695
- - spec/unit/relationships_spec.rb
696
- - spec/unit/rels_ext_datastream_spec.rb
697
- - spec/unit/rubydora_connection_spec.rb
698
- - spec/unit/semantic_node_spec.rb
699
- - spec/unit/service_definitions_spec.rb
700
- - spec/unit/solr_config_options_spec.rb
701
- - spec/unit/solr_digital_object_spec.rb
702
- - spec/unit/solr_service_spec.rb
703
- - spec/unit/unsaved_digital_object_spec.rb
704
- - spec/unit/validations_spec.rb
590
+ test_files: []
705
591
  has_rdoc: