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.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +11 -0
  3. data/SUFIA_VERSION +1 -1
  4. data/app/controllers/authorities_controller.rb +0 -14
  5. data/app/controllers/batch_controller.rb +0 -14
  6. data/app/controllers/contact_form_controller.rb +0 -14
  7. data/app/controllers/dashboard_controller.rb +0 -14
  8. data/app/controllers/directory_controller.rb +0 -14
  9. data/app/controllers/downloads_controller.rb +0 -14
  10. data/app/controllers/errors_controller.rb +0 -14
  11. data/app/controllers/generic_files_controller.rb +0 -14
  12. data/app/controllers/mailbox_controller.rb +0 -14
  13. data/app/controllers/static_controller.rb +0 -14
  14. data/app/controllers/users_controller.rb +0 -14
  15. data/app/helpers/blacklight/render_constraints_helper_behavior.rb +0 -14
  16. data/app/helpers/contact_form_helper.rb +0 -14
  17. data/app/helpers/generic_file_helper.rb +0 -14
  18. data/app/helpers/sufia_helper.rb +0 -14
  19. data/app/helpers/trophy_helper.rb +0 -14
  20. data/app/jobs/content_delete_event_job.rb +0 -14
  21. data/app/jobs/content_deposit_event_job.rb +0 -14
  22. data/app/jobs/content_new_version_event_job.rb +0 -14
  23. data/app/jobs/content_restored_version_event_job.rb +0 -14
  24. data/app/jobs/content_update_event_job.rb +0 -14
  25. data/app/jobs/event_job.rb +0 -14
  26. data/app/jobs/user_edit_profile_event_job.rb +0 -14
  27. data/app/jobs/user_follow_event_job.rb +0 -14
  28. data/app/jobs/user_unfollow_event_job.rb +0 -14
  29. data/app/views/generic_files/_permission_form.html.erb +3 -3
  30. data/db/seeds.rb +0 -14
  31. data/lib/generators/sufia/templates/catalog_controller.rb +0 -14
  32. data/lib/generators/sufia/templates/config/action_dispatch_http_upload_monkey_patch.rb +0 -14
  33. data/lib/generators/sufia/templates/migrations/acts_as_follower_migration.rb +0 -14
  34. data/lib/generators/sufia/templates/migrations/add_avatars_to_users.rb +0 -14
  35. data/lib/generators/sufia/templates/migrations/add_groups_to_users.rb +0 -14
  36. data/lib/generators/sufia/templates/migrations/add_ldap_attrs_to_user.rb +0 -14
  37. data/lib/generators/sufia/templates/migrations/add_social_to_users.rb +0 -14
  38. data/lib/generators/sufia/templates/migrations/create_checksum_audit_logs.rb +0 -14
  39. data/lib/generators/sufia/templates/migrations/create_local_authorities.rb +0 -14
  40. data/lib/generators/sufia/templates/migrations/create_version_committers.rb +0 -14
  41. data/lib/sufia/contact_form_controller_behavior.rb +0 -14
  42. data/lib/sufia/controller.rb +0 -14
  43. data/lib/sufia/downloads_controller_behavior.rb +0 -14
  44. data/lib/sufia/files_controller/upload_complete_behavior.rb +5 -0
  45. data/lib/sufia/files_controller_behavior.rb +2 -1
  46. data/lib/sufia/role_mapper.rb +0 -14
  47. data/lib/sufia/version.rb +1 -1
  48. data/lib/tasks/fixtures.rake +0 -14
  49. data/spec/factories/checksum_audit_logs.rb +0 -14
  50. data/spec/lib/sufia/upload_complete_behavior_spec.rb +10 -0
  51. data/spec/models/access_right_spec.rb +57 -0
  52. data/spec/models/generic_file_spec.rb +1 -1
  53. data/spec/support/uploaded_file_monkeypatch.rb +0 -14
  54. data/sufia-models/app/models/batch.rb +0 -14
  55. data/sufia-models/app/models/concerns/sufia/models/access_right.rb +79 -0
  56. data/sufia-models/app/models/concerns/sufia/models/with_access_right.rb +33 -0
  57. data/sufia-models/app/models/datastreams/batch_rdf_datastream.rb +0 -14
  58. data/sufia-models/app/models/datastreams/fits_datastream.rb +0 -14
  59. data/sufia-models/app/models/datastreams/generic_file_rdf_datastream.rb +0 -14
  60. data/sufia-models/app/models/datastreams/properties_datastream.rb +0 -14
  61. data/sufia-models/app/models/follow.rb +0 -14
  62. data/sufia-models/app/models/subject_local_authority_entry.rb +0 -14
  63. data/sufia-models/lib/sufia/models/generic_file/visibility.rb +30 -26
  64. data/sufia-models/lib/sufia/models/id_service.rb +0 -14
  65. data/sufia-models/lib/sufia/models/jobs/audit_job.rb +0 -14
  66. data/sufia-models/lib/sufia/models/jobs/characterize_job.rb +0 -14
  67. data/sufia-models/lib/sufia/models/jobs/resolrize_job.rb +0 -14
  68. data/sufia-models/lib/sufia/models/jobs/unzip_job.rb +0 -14
  69. data/sufia-models/lib/sufia/models/noid.rb +0 -14
  70. data/sufia-models/lib/sufia/models/solr_document_behavior.rb +0 -14
  71. data/sufia-models/lib/sufia/models/user.rb +0 -14
  72. data/sufia-models/lib/sufia/models/utils.rb +0 -14
  73. data/sufia-models/lib/sufia/models/version.rb +1 -1
  74. data/sufia-models/lib/tasks/resque.rake +0 -14
  75. data/tasks/sufia-db.rake +0 -14
  76. data/tasks/sufia-fixtures.rake +0 -14
  77. data/tasks/sufia.rake +0 -14
  78. 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,5 +1,5 @@
1
1
  module Sufia
2
2
  module Models
3
- VERSION = "3.1.2"
3
+ VERSION = "3.1.3"
4
4
  end
5
5
  end
@@ -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
@@ -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...)."
@@ -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
@@ -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.2
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-27 00:00:00.000000000 Z
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.2
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.2
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