hydra-access-controls 9.6.0 → 9.7.0

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: d858683ef55ada03ab8db4ae2236c36b842895cf
4
- data.tar.gz: 1607be72ddad76b1f526ca62181d50a7724950bc
3
+ metadata.gz: 7c58ea8bad5ed33299fd0f5480b6d86c24632222
4
+ data.tar.gz: 8ab1983715088d885525195e9b83650820640957
5
5
  SHA512:
6
- metadata.gz: 74f0875cd669674a81eecc48586fdb10ec1c900ece56e76611ec7258acb4d2411c2b46a2ee08c637fa06b177f9f8f149f626dcf933101f3b6ad1a94fe6115009
7
- data.tar.gz: 41d8e8afbcc05366e4116e808b99f3c4d4c693754652426e258c72cd3357a4018bea46981d2f913ea0ec831d45cbe051ca0a1fc665a4fc98beebf43f88e74cea
6
+ metadata.gz: 6ed852d469c5f272c5ece361d6cc022b30c9a5eade790210193a5cdbcda488a5f039ad778b9d015547aa6460108700b4fe0b8e574dd554e8806c22d24d4bfaa0
7
+ data.tar.gz: abb73fcfe4ea54c55a8a7fdb794120cb62484c4a029f9a4930c085a8893fcedd4497735ef2dcf62bd6df9b35c3b53d86943d21325070f8cc56ca0bc5ab0cd4f3
data/Rakefile CHANGED
@@ -3,7 +3,6 @@ require "bundler/gem_tasks"
3
3
  require 'rspec/core/rake_task'
4
4
 
5
5
  APP_ROOT= File.expand_path(File.join(File.dirname(__FILE__),".."))
6
- require 'jettywrapper'
7
6
  # re-using hydra_jetty.rake from hydra-head
8
7
  import "tasks/hydra-access-controls.rake"
9
8
 
data/config/fedora.yml CHANGED
@@ -1,10 +1,10 @@
1
1
  development:
2
2
  user: fedoraAdmin
3
3
  password: fedoraAdmin
4
- url: http://localhost:8983/fedora/rest
4
+ url: http://localhost:8984/rest
5
5
  base_path: /dev
6
6
  test:
7
7
  user: fedoraAdmin
8
8
  password: fedoraAdmin
9
- url: http://localhost:8983/fedora/rest
9
+ url: http://localhost:8986/rest
10
10
  base_path: /test
data/config/solr.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  development:
2
2
  url: http://localhost:<%= ENV['TEST_JETTY_PORT'] || 8983 %>/solr/development
3
- test:
4
- url: http://localhost:<%= ENV['TEST_JETTY_PORT'] || 8983 %>/solr/test
3
+ test:
4
+ url: http://localhost:<%= ENV['TEST_JETTY_PORT'] || 8985 %>/solr/hydra-test
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.required_ruby_version = '>= 1.9.3'
20
20
 
21
21
  gem.add_dependency 'activesupport', '~> 4.0'
22
- gem.add_dependency "active-fedora", '~> 9.0'
22
+ gem.add_dependency "active-fedora", '~> 9.8'
23
23
  gem.add_dependency 'cancancan', '~> 1.8'
24
24
  gem.add_dependency 'deprecation', '~> 0.2'
25
25
  gem.add_dependency "blacklight", '>= 5.16'
@@ -19,7 +19,6 @@ module Hydra
19
19
  autoload :RoleMapperBehavior
20
20
  autoload :PermissionsQuery
21
21
  autoload :PermissionsCache
22
- autoload :PermissionsSolrDocument
23
22
  autoload :IpBasedGroups
24
23
 
25
24
  class << self
@@ -3,4 +3,4 @@ development:
3
3
  url: http://localhost:<%= ENV['TEST_JETTY_PORT'] || 8983 %>/solr/development
4
4
  test:
5
5
  adapter: solr
6
- url: http://localhost:<%= ENV['TEST_JETTY_PORT'] || 8983 %>/solr/test
6
+ url: http://localhost:<%= ENV['TEST_JETTY_PORT'] || 8985 %>/solr/hydra-test
@@ -1,18 +1,16 @@
1
1
  namespace "hydra-access" do
2
2
  desc "Run Continuous Integration"
3
- task "ci" do
4
- require 'jettywrapper'
5
- jetty_params = Jettywrapper.load_config.merge(
6
- {:jetty_home => File.expand_path(File.dirname(__FILE__) + '/../../jetty'),
7
- :startup_wait => 15,
8
- :jetty_port => ENV['TEST_JETTY_PORT'] || 8983
9
- }
10
- )
11
- Rake::Task['jetty:config'].invoke
12
- error = nil
13
- error = Jettywrapper.wrap(jetty_params) do
14
- Rake::Task['spec'].invoke
3
+ task :ci do
4
+ ENV['environment'] = "test"
5
+ solr_params = { port: 8985, verbose: true, managed: true }
6
+ fcrepo_params = { port: 8986, verbose: true, managed: true,
7
+ no_jms: true, fcrepo_home_dir: 'fcrepo4-test-data' }
8
+ SolrWrapper.wrap(solr_params) do |solr|
9
+ solr.with_collection(name: 'hydra-test', dir: File.join(File.expand_path("../..", File.dirname(__FILE__)), "solr", "config")) do
10
+ FcrepoWrapper.wrap(fcrepo_params) do
11
+ Rake::Task['spec'].invoke
12
+ end
13
+ end
15
14
  end
16
- raise "test failures: #{error}" if error
17
15
  end
18
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hydra-access-controls
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.6.0
4
+ version: 9.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Beer
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-01-21 00:00:00.000000000 Z
13
+ date: 2016-02-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activesupport
@@ -32,14 +32,14 @@ dependencies:
32
32
  requirements:
33
33
  - - "~>"
34
34
  - !ruby/object:Gem::Version
35
- version: '9.0'
35
+ version: '9.8'
36
36
  type: :runtime
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - "~>"
41
41
  - !ruby/object:Gem::Version
42
- version: '9.0'
42
+ version: '9.8'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: cancancan
45
45
  requirement: !ruby/object:Gem::Requirement
@@ -151,6 +151,7 @@ files:
151
151
  - app/models/hydra/access_controls/embargo.rb
152
152
  - app/models/hydra/access_controls/lease.rb
153
153
  - app/models/hydra/access_controls/permission.rb
154
+ - app/models/hydra/permissions_solr_document.rb
154
155
  - app/models/role_mapper.rb
155
156
  - app/services/hydra/embargo_service.rb
156
157
  - app/services/hydra/lease_service.rb
@@ -170,7 +171,6 @@ files:
170
171
  - lib/hydra/ip_based_groups.rb
171
172
  - lib/hydra/permissions_cache.rb
172
173
  - lib/hydra/permissions_query.rb
173
- - lib/hydra/permissions_solr_document.rb
174
174
  - lib/hydra/policy_aware_ability.rb
175
175
  - lib/hydra/policy_aware_access_controls_enforcement.rb
176
176
  - lib/hydra/role_mapper_behavior.rb
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
226
226
  version: '0'
227
227
  requirements: []
228
228
  rubyforge_project:
229
- rubygems_version: 2.5.1
229
+ rubygems_version: 2.4.5.1
230
230
  signing_key:
231
231
  specification_version: 4
232
232
  summary: Access controls for project hydra