hydra-core 6.4.2 → 6.5.0.rc2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bfc10f2caedd654bbf136fc596a5abce3f287896
4
- data.tar.gz: ff88b04dfd7d0c8c6a6306ddfd202fc8e8fdf062
3
+ metadata.gz: 44187ec5c96d9328f05c2c23cb651d0e271f4aa3
4
+ data.tar.gz: 44f3c8e4493d072cd466a5763ff877f0b709d4fb
5
5
  SHA512:
6
- metadata.gz: 369b83e34479aa15f8641f52cfbd3a7a337e39069b4315f52c9cf0761dd57df374f105cfc805b6bb09b552b25fec2a018f0cdbe29accfc262616cc58ea9fae2d
7
- data.tar.gz: b76b05a6874330f0720c76193021ce515c2b7a38f8b603f322c45c7560063bff5afdcaf33d79b36138a6621bd794e56da15902860c60ad9aa2686b9257cec1e0
6
+ metadata.gz: ee6f4754df8e88d9cf6a8ac1a7930f2b3759a5b2b18bdb7a2d010d8a9137963dfbfba07596fa937f856405e0bc323f28b795fcde8a2caf80e71522800208cfa8
7
+ data.tar.gz: dfac686d7d22f862c4cd4a5f440c06dc37a535be72ab7567ffc7f18f02cd13d6c603321d01c5324cfd41312f84b3d57123c8459df2ce8db2ee910353993c72fd
data/hydra-core.gemspec CHANGED
@@ -19,10 +19,9 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.required_ruby_version = '>= 1.9.3'
21
21
 
22
-
23
22
  gem.add_dependency "rails", '>= 3.2.3', '< 5'
24
- gem.add_dependency "blacklight", '~> 4.0'
25
- gem.add_dependency "active-fedora"
23
+ gem.add_dependency "blacklight", '~> 4.7'
24
+ gem.add_dependency "active-fedora", '~> 6.7'
26
25
  gem.add_dependency 'block_helpers'
27
26
  gem.add_dependency 'deprecation', ">= 0.0.5"
28
27
  gem.add_dependency 'hydra-access-controls', version
data/lib/hydra-core.rb CHANGED
@@ -10,7 +10,6 @@ module Hydra
10
10
  autoload :Solr
11
11
  module ModelMixins
12
12
  # ModelMixins already loaded by hydra-access-controls
13
- autoload :CommonMetadata
14
13
  autoload :SolrDocumentExtension
15
14
  end
16
15
  autoload :Models
@@ -1,4 +1,4 @@
1
1
  module HydraHead
2
- VERSION = "6.4.2"
2
+ VERSION = "6.5.0.rc2"
3
3
  end
4
4
 
@@ -56,7 +56,7 @@ describe CatalogController do
56
56
  before(:all) do
57
57
  fq = "read_access_group_ssim:public OR edit_access_group_ssim:public OR discover_access_group_ssim:public"
58
58
  solr_opts = {:fq=>fq}
59
- response = Blacklight.solr.get('select', :params=> solr_opts)
59
+ response = ActiveFedora::SolrService.instance.conn.get('select', :params=>solr_opts)
60
60
  @public_only_results = Blacklight::SolrResponse.new(response, solr_opts)
61
61
  end
62
62
 
@@ -4,7 +4,7 @@ describe Hydra::ModelMethods do
4
4
 
5
5
  before :all do
6
6
  class TestModel < ActiveFedora::Base
7
- include Hydra::ModelMixins::CommonMetadata
7
+ include Hydra::AccessControls::Permissions
8
8
  include Hydra::ModelMethods
9
9
  has_metadata :name => "properties", :type => Hydra::Datastream::Properties
10
10
  end
@@ -6,7 +6,7 @@ describe Hydra::ModelMixins::SolrDocumentExtension do
6
6
  end
7
7
 
8
8
  it "should get_file_asset_count" do
9
-
9
+ Deprecation.stub(:warn).and_return(nil)
10
10
  mock_result = {'response'=>{'numFound'=>0}}
11
11
  ActiveFedora::SolrService.should_receive(:query).with("is_part_of_t:\"changeme\\:99\"", :rows=>0, :raw=>true).and_return(mock_result)
12
12
  @doc.get_file_asset_count.should == 0
@@ -12,15 +12,10 @@ class TestAppGenerator < Rails::Generators::Base
12
12
  end
13
13
 
14
14
  def copy_test_fixtures
15
- copy_file "app/models/generic_content.rb"
16
-
17
15
  # Download controller
18
16
  copy_file "app/controllers/downloads_controller.rb"
19
17
 
20
18
  copy_file "spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml"
21
-
22
- # For testing Hydra::SubmissionWorkflow
23
- copy_file "spec/fixtures/hydra_test_generic_content.foxml.xml"
24
19
  end
25
20
 
26
21
  def copy_rspec_rake_task
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.2
4
+ version: 6.5.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Zumwalt, Bess Sadler, Julie Meloni, Naomi Dushay, Jessie Keck, John Scofield,
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-05 00:00:00.000000000 Z
12
+ date: 2014-02-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -37,28 +37,28 @@ dependencies:
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '4.0'
40
+ version: '4.7'
41
41
  type: :runtime
42
42
  prerelease: false
43
43
  version_requirements: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '4.0'
47
+ version: '4.7'
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: active-fedora
50
50
  requirement: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '6.7'
55
55
  type: :runtime
56
56
  prerelease: false
57
57
  version_requirements: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '6.7'
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: block_helpers
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -93,14 +93,14 @@ dependencies:
93
93
  requirements:
94
94
  - - '='
95
95
  - !ruby/object:Gem::Version
96
- version: 6.4.2
96
+ version: 6.5.0.rc2
97
97
  type: :runtime
98
98
  prerelease: false
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - '='
102
102
  - !ruby/object:Gem::Version
103
- version: 6.4.2
103
+ version: 6.5.0.rc2
104
104
  - !ruby/object:Gem::Dependency
105
105
  name: jettywrapper
106
106
  requirement: !ruby/object:Gem::Requirement
@@ -245,7 +245,6 @@ files:
245
245
  - spec/spec.opts
246
246
  - spec/spec_helper.rb
247
247
  - spec/support/app/controllers/downloads_controller.rb
248
- - spec/support/app/models/generic_content.rb
249
248
  - spec/support/app/models/sample.rb
250
249
  - spec/support/app/models/solr_document.rb
251
250
  - spec/support/db/migrate/20111101221803_create_searches.rb
@@ -253,7 +252,6 @@ files:
253
252
  - spec/support/lib/tasks/rspec.rake
254
253
  - spec/support/matchers/helper_matcher.rb
255
254
  - spec/support/matchers/solr_matchers.rb
256
- - spec/support/spec/fixtures/hydra_test_generic_content.foxml.xml
257
255
  - spec/support/spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml
258
256
  - spec/unit/hydra-head-engine_spec.rb
259
257
  - spec/unit/hydra-head_spec.rb
@@ -275,12 +273,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
275
273
  version: 1.9.3
276
274
  required_rubygems_version: !ruby/object:Gem::Requirement
277
275
  requirements:
278
- - - '>='
276
+ - - '>'
279
277
  - !ruby/object:Gem::Version
280
- version: '0'
278
+ version: 1.3.1
281
279
  requirements: []
282
280
  rubyforge_project:
283
- rubygems_version: 2.0.14
281
+ rubygems_version: 2.2.2
284
282
  signing_key:
285
283
  specification_version: 4
286
284
  summary: Hydra-Head Rails Engine (requires Rails3)
@@ -305,7 +303,6 @@ test_files:
305
303
  - spec/spec.opts
306
304
  - spec/spec_helper.rb
307
305
  - spec/support/app/controllers/downloads_controller.rb
308
- - spec/support/app/models/generic_content.rb
309
306
  - spec/support/app/models/sample.rb
310
307
  - spec/support/app/models/solr_document.rb
311
308
  - spec/support/db/migrate/20111101221803_create_searches.rb
@@ -313,7 +310,6 @@ test_files:
313
310
  - spec/support/lib/tasks/rspec.rake
314
311
  - spec/support/matchers/helper_matcher.rb
315
312
  - spec/support/matchers/solr_matchers.rb
316
- - spec/support/spec/fixtures/hydra_test_generic_content.foxml.xml
317
313
  - spec/support/spec/fixtures/hydrangea_fixture_mods_article1.foxml.xml
318
314
  - spec/unit/hydra-head-engine_spec.rb
319
315
  - spec/unit/hydra-head_spec.rb
@@ -1,21 +0,0 @@
1
- # GenericContent: EXAMPLE Model that conforms to the Hydra genericContent and genericMetadata cModels
2
- require 'deprecation'
3
- class GenericContent < ActiveFedora::Base
4
- extend Deprecation
5
-
6
- # Uses the Hydra Rights Metadata Schema for tracking access permissions & copyright
7
- # FIXME: should this have "include Hydra::ModelMixins::CommonMetadata" instead?
8
- has_metadata :name => "rightsMetadata", :type => Hydra::Datastream::RightsMetadata
9
-
10
- # A place to put extra metadata values, e.g. the user id of the object depositor (for permissions)
11
- has_metadata :name => "properties", :type => Hydra::Datastream::Properties
12
-
13
- # adds helpful methods for basic hydra objects.
14
- # FIXME: redundate with GenericContent include above??
15
- include Hydra::ModelMethods
16
-
17
- def initialize( attrs={} )
18
- Deprecation.warn(GenericContent, "GenericContent is deprecated and will be removed in hydra-head 5.x")
19
- super
20
- end
21
- end
@@ -1,138 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <foxml:digitalObject VERSION="1.1" PID="hydra:test_generic_content" xmlns:foxml="info:fedora/fedora-system:def/foxml#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="info:fedora/fedora-system:def/foxml# http://www.fedora.info/definitions/1/0/foxml1-1.xsd">
3
- <foxml:objectProperties>
4
- <foxml:property NAME="info:fedora/fedora-system:def/model#state" VALUE="Active"/>
5
- <foxml:property NAME="info:fedora/fedora-system:def/model#label" VALUE=""/>
6
- <foxml:property NAME="info:fedora/fedora-system:def/model#ownerId" VALUE="fedoraAdmin"/>
7
- <foxml:property NAME="info:fedora/fedora-system:def/model#createdDate" VALUE="2011-07-14T01:28:47.221Z"/>
8
- <foxml:property NAME="info:fedora/fedora-system:def/view#lastModifiedDate" VALUE="2011-07-14T01:30:56.432Z"/>
9
- </foxml:objectProperties>
10
- <foxml:datastream ID="DC" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
11
- <foxml:datastreamVersion ID="DC1.0" LABEL="Dublin Core Record for this object" CREATED="2011-07-14T01:28:47.221Z" MIMETYPE="text/xml" FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" SIZE="341">
12
- <foxml:xmlContent>
13
- <oai_dc:dc xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/ http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
14
- <dc:identifier>hydra:test_generic_content</dc:identifier>
15
- <dc:description>A test object using the GenericContent (active)fedora model</dc:description>
16
- </oai_dc:dc>
17
- </foxml:xmlContent>
18
- </foxml:datastreamVersion>
19
- </foxml:datastream>
20
- <foxml:datastream ID="descMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
21
- <foxml:datastreamVersion ID="descMetadata.1" LABEL="" CREATED="2011-07-14T01:30:13.169Z" MIMETYPE="text/xml" SIZE="1552">
22
- <foxml:xmlContent>
23
- <mods xmlns="http://www.loc.gov/mods/v3" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.3" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-3.xsd">
24
- <titleInfo lang="">
25
- <title>generic content</title>
26
- </titleInfo>
27
- <name type="personal">
28
- <namePart type="given">Orlob</namePart>
29
- <namePart type="family">Gryphon</namePart>
30
- <affiliation>Fantasy</affiliation>
31
- <role>
32
- <roleTerm authority="marcrelator" type="text"/>
33
- </role>
34
- <description>Mythical Creatures</description>
35
- </name>
36
- <typeOfResource/>
37
- <genre authority="marcgt"/>
38
- <language>
39
- <languageTerm authority="iso639-2b" type="code"/>
40
- </language>
41
- <physicalDescription>
42
- <extent/>
43
- </physicalDescription>
44
- <abstract>A test object using the GenericContent (active)fedora model</abstract>
45
- <subject>
46
- <topic>flying creatures</topic>
47
- </subject>
48
- <relatedItem type="host">
49
- <titleInfo>
50
- <title/>
51
- </titleInfo>
52
- <identifier type="issn"/>
53
- <originInfo>
54
- <publisher/>
55
- <dateIssued/>
56
- </originInfo>
57
- <part>
58
- <detail type="volume">
59
- <number/>
60
- </detail>
61
- <detail type="number">
62
- <number/>
63
- </detail>
64
- <extent unit="pages">
65
- <start/>
66
- <end/>
67
- </extent>
68
- <date/>
69
- </part>
70
- </relatedItem>
71
- <location>
72
- <url/>
73
- </location>
74
- </mods>
75
- </foxml:xmlContent>
76
- </foxml:datastreamVersion>
77
- </foxml:datastream>
78
- <foxml:datastream ID="RELS-EXT" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
79
- <foxml:datastreamVersion ID="RELS-EXT.0" LABEL="" CREATED="2011-07-14T01:28:49.031Z" MIMETYPE="text/xml" SIZE="277">
80
- <foxml:xmlContent>
81
- <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
82
- <rdf:Description rdf:about="info:fedora/hydra:test_generic_content">
83
- <hasModel xmlns="info:fedora/fedora-system:def/model#" rdf:resource="info:fedora/afmodel:GenericContent"/>
84
- </rdf:Description>
85
- </rdf:RDF>
86
- </foxml:xmlContent>
87
- </foxml:datastreamVersion>
88
- </foxml:datastream>
89
- <foxml:datastream ID="rightsMetadata" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
90
- <foxml:datastreamVersion ID="rightsMetadata.1" LABEL="" CREATED="2011-07-14T01:30:56.432Z" MIMETYPE="text/xml" SIZE="777">
91
- <foxml:xmlContent>
92
- <rightsMetadata xmlns="http://hydra-collab.stanford.edu/schemas/rightsMetadata/v1" version="0.1">
93
- <copyright>
94
- <human/>
95
- <machine>
96
- <uvalicense>no</uvalicense>
97
- </machine>
98
- </copyright>
99
- <access type="discover">
100
- <human/>
101
- <machine/>
102
- </access>
103
- <access type="read">
104
- <human/>
105
- <machine>
106
- <group>researcher</group>
107
- <group>public</group>
108
- <group>patron</group>
109
- <group>donor</group>
110
- </machine>
111
- </access>
112
- <access type="edit">
113
- <human/>
114
- <machine>
115
- <person>archivist1</person>
116
- <group>archivist</group>
117
- <group>admin_policy_object_editor</group>
118
- </machine>
119
- </access>
120
- <embargo>
121
- <human/>
122
- <machine/>
123
- </embargo>
124
- </rightsMetadata>
125
- </foxml:xmlContent>
126
- </foxml:datastreamVersion>
127
- </foxml:datastream>
128
- <foxml:datastream ID="properties" STATE="A" CONTROL_GROUP="X" VERSIONABLE="true">
129
- <foxml:datastreamVersion ID="properties.0" LABEL="" CREATED="2011-07-14T01:28:49.367Z" MIMETYPE="text/xml" SIZE="99">
130
- <foxml:xmlContent>
131
- <fields>
132
- <collection>generic_content</collection>
133
- <depositor>archivist1</depositor>
134
- </fields>
135
- </foxml:xmlContent>
136
- </foxml:datastreamVersion>
137
- </foxml:datastream>
138
- </foxml:digitalObject>