sufia 3.1.2 → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/History.md +11 -0
- data/SUFIA_VERSION +1 -1
- data/app/controllers/authorities_controller.rb +0 -14
- data/app/controllers/batch_controller.rb +0 -14
- data/app/controllers/contact_form_controller.rb +0 -14
- data/app/controllers/dashboard_controller.rb +0 -14
- data/app/controllers/directory_controller.rb +0 -14
- data/app/controllers/downloads_controller.rb +0 -14
- data/app/controllers/errors_controller.rb +0 -14
- data/app/controllers/generic_files_controller.rb +0 -14
- data/app/controllers/mailbox_controller.rb +0 -14
- data/app/controllers/static_controller.rb +0 -14
- data/app/controllers/users_controller.rb +0 -14
- data/app/helpers/blacklight/render_constraints_helper_behavior.rb +0 -14
- data/app/helpers/contact_form_helper.rb +0 -14
- data/app/helpers/generic_file_helper.rb +0 -14
- data/app/helpers/sufia_helper.rb +0 -14
- data/app/helpers/trophy_helper.rb +0 -14
- data/app/jobs/content_delete_event_job.rb +0 -14
- data/app/jobs/content_deposit_event_job.rb +0 -14
- data/app/jobs/content_new_version_event_job.rb +0 -14
- data/app/jobs/content_restored_version_event_job.rb +0 -14
- data/app/jobs/content_update_event_job.rb +0 -14
- data/app/jobs/event_job.rb +0 -14
- data/app/jobs/user_edit_profile_event_job.rb +0 -14
- data/app/jobs/user_follow_event_job.rb +0 -14
- data/app/jobs/user_unfollow_event_job.rb +0 -14
- data/app/views/generic_files/_permission_form.html.erb +3 -3
- data/db/seeds.rb +0 -14
- data/lib/generators/sufia/templates/catalog_controller.rb +0 -14
- data/lib/generators/sufia/templates/config/action_dispatch_http_upload_monkey_patch.rb +0 -14
- data/lib/generators/sufia/templates/migrations/acts_as_follower_migration.rb +0 -14
- data/lib/generators/sufia/templates/migrations/add_avatars_to_users.rb +0 -14
- data/lib/generators/sufia/templates/migrations/add_groups_to_users.rb +0 -14
- data/lib/generators/sufia/templates/migrations/add_ldap_attrs_to_user.rb +0 -14
- data/lib/generators/sufia/templates/migrations/add_social_to_users.rb +0 -14
- data/lib/generators/sufia/templates/migrations/create_checksum_audit_logs.rb +0 -14
- data/lib/generators/sufia/templates/migrations/create_local_authorities.rb +0 -14
- data/lib/generators/sufia/templates/migrations/create_version_committers.rb +0 -14
- data/lib/sufia/contact_form_controller_behavior.rb +0 -14
- data/lib/sufia/controller.rb +0 -14
- data/lib/sufia/downloads_controller_behavior.rb +0 -14
- data/lib/sufia/files_controller/upload_complete_behavior.rb +5 -0
- data/lib/sufia/files_controller_behavior.rb +2 -1
- data/lib/sufia/role_mapper.rb +0 -14
- data/lib/sufia/version.rb +1 -1
- data/lib/tasks/fixtures.rake +0 -14
- data/spec/factories/checksum_audit_logs.rb +0 -14
- data/spec/lib/sufia/upload_complete_behavior_spec.rb +10 -0
- data/spec/models/access_right_spec.rb +57 -0
- data/spec/models/generic_file_spec.rb +1 -1
- data/spec/support/uploaded_file_monkeypatch.rb +0 -14
- data/sufia-models/app/models/batch.rb +0 -14
- data/sufia-models/app/models/concerns/sufia/models/access_right.rb +79 -0
- data/sufia-models/app/models/concerns/sufia/models/with_access_right.rb +33 -0
- data/sufia-models/app/models/datastreams/batch_rdf_datastream.rb +0 -14
- data/sufia-models/app/models/datastreams/fits_datastream.rb +0 -14
- data/sufia-models/app/models/datastreams/generic_file_rdf_datastream.rb +0 -14
- data/sufia-models/app/models/datastreams/properties_datastream.rb +0 -14
- data/sufia-models/app/models/follow.rb +0 -14
- data/sufia-models/app/models/subject_local_authority_entry.rb +0 -14
- data/sufia-models/lib/sufia/models/generic_file/visibility.rb +30 -26
- data/sufia-models/lib/sufia/models/id_service.rb +0 -14
- data/sufia-models/lib/sufia/models/jobs/audit_job.rb +0 -14
- data/sufia-models/lib/sufia/models/jobs/characterize_job.rb +0 -14
- data/sufia-models/lib/sufia/models/jobs/resolrize_job.rb +0 -14
- data/sufia-models/lib/sufia/models/jobs/unzip_job.rb +0 -14
- data/sufia-models/lib/sufia/models/noid.rb +0 -14
- data/sufia-models/lib/sufia/models/solr_document_behavior.rb +0 -14
- data/sufia-models/lib/sufia/models/user.rb +0 -14
- data/sufia-models/lib/sufia/models/utils.rb +0 -14
- data/sufia-models/lib/sufia/models/version.rb +1 -1
- data/sufia-models/lib/tasks/resque.rake +0 -14
- data/tasks/sufia-db.rake +0 -14
- data/tasks/sufia-fixtures.rake +0 -14
- data/tasks/sufia.rake +0 -14
- metadata +8 -4
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
class CharacterizeJob < ActiveFedoraPidBasedJob
|
|
16
2
|
|
|
17
3
|
def queue_name
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
class ResolrizeJob
|
|
16
2
|
def queue_name
|
|
17
3
|
:resolrize
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
class UnzipJob < ActiveFedoraPidBasedJob
|
|
16
2
|
def queue_name
|
|
17
3
|
:unzip
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
module Sufia
|
|
16
2
|
module Noid
|
|
17
3
|
def Noid.noidify(identifier)
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
# -*- encoding : utf-8 -*-
|
|
16
2
|
module Sufia
|
|
17
3
|
module SolrDocumentBehavior
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
module Sufia::User
|
|
16
2
|
extend ActiveSupport::Concern
|
|
17
3
|
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
module Sufia
|
|
16
2
|
module Utils
|
|
17
3
|
extend ActiveSupport::Concern
|
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
require 'resque/pool/tasks'
|
|
16
2
|
|
|
17
3
|
# This provides access to the Rails env within all Resque workers
|
data/tasks/sufia-db.rake
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
namespace :sufia do
|
|
16
2
|
namespace :db do
|
|
17
3
|
desc "delete all Generic Files in Fedora and Solr (This may take some time...)."
|
data/tasks/sufia-fixtures.rake
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
# sufia-fixtures
|
|
16
2
|
#
|
|
17
3
|
# This was extracted from the original Hydra version in
|
data/tasks/sufia.rake
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
# Copyright © 2012 The Pennsylvania State University
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
1
|
require 'rdf'
|
|
16
2
|
require 'rdf/rdfxml'
|
|
17
3
|
require 'rubygems'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sufia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.1.
|
|
4
|
+
version: 3.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Coyne
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-08-
|
|
11
|
+
date: 2013-08-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sufia-models
|
|
@@ -16,14 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - '='
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: 3.1.
|
|
19
|
+
version: 3.1.3
|
|
20
20
|
type: :runtime
|
|
21
21
|
prerelease: false
|
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
23
23
|
requirements:
|
|
24
24
|
- - '='
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
|
-
version: 3.1.
|
|
26
|
+
version: 3.1.3
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
|
28
28
|
name: blacklight
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -581,6 +581,7 @@ files:
|
|
|
581
581
|
- spec/jobs/ingest_local_file_job_spec.rb
|
|
582
582
|
- spec/lib/sufia/id_service_spec.rb
|
|
583
583
|
- spec/lib/sufia/upload_complete_behavior_spec.rb
|
|
584
|
+
- spec/models/access_right_spec.rb
|
|
584
585
|
- spec/models/audit_job_spec.rb
|
|
585
586
|
- spec/models/batch_spec.rb
|
|
586
587
|
- spec/models/batch_update_job_spec.rb
|
|
@@ -617,6 +618,8 @@ files:
|
|
|
617
618
|
- sufia-models/Rakefile
|
|
618
619
|
- sufia-models/app/models/batch.rb
|
|
619
620
|
- sufia-models/app/models/checksum_audit_log.rb
|
|
621
|
+
- sufia-models/app/models/concerns/sufia/models/access_right.rb
|
|
622
|
+
- sufia-models/app/models/concerns/sufia/models/with_access_right.rb
|
|
620
623
|
- sufia-models/app/models/datastreams/batch_rdf_datastream.rb
|
|
621
624
|
- sufia-models/app/models/datastreams/file_content_datastream.rb
|
|
622
625
|
- sufia-models/app/models/datastreams/fits_datastream.rb
|
|
@@ -830,6 +833,7 @@ test_files:
|
|
|
830
833
|
- spec/jobs/ingest_local_file_job_spec.rb
|
|
831
834
|
- spec/lib/sufia/id_service_spec.rb
|
|
832
835
|
- spec/lib/sufia/upload_complete_behavior_spec.rb
|
|
836
|
+
- spec/models/access_right_spec.rb
|
|
833
837
|
- spec/models/audit_job_spec.rb
|
|
834
838
|
- spec/models/batch_spec.rb
|
|
835
839
|
- spec/models/batch_update_job_spec.rb
|