hydra-collections 3.0.0.beta2 → 3.0.0.beta3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/app/controllers/concerns/hydra/collections_controller_behavior.rb +20 -19
- data/app/helpers/collections_search_helper.rb +1 -2
- data/app/models/concerns/hydra/collection.rb +18 -82
- data/app/models/datastreams/hydra/collection_rdf_datastream.rb +54 -0
- data/app/views/collections/_search_form.html.erb +16 -0
- data/hydra-collections.gemspec +2 -3
- data/lib/hydra/collections/accepts_batches.rb +5 -5
- data/lib/hydra/collections/collectible.rb +8 -15
- data/{app/controllers/concerns → lib}/hydra/collections/selects_collections.rb +8 -3
- data/lib/hydra/collections/solr_document_behavior.rb +15 -0
- data/lib/hydra/collections/version.rb +1 -1
- data/spec/controllers/catalog_controller_spec.rb +19 -5
- data/spec/controllers/collections_controller_spec.rb +154 -125
- data/spec/controllers/other_collections_controller_spec.rb +15 -13
- data/spec/controllers/selects_collections_spec.rb +48 -39
- data/spec/factories.rb +14 -0
- data/spec/factories/.gitkeep +0 -0
- data/spec/factories/users.rb +14 -0
- data/spec/helpers/collections_helper_spec.rb +16 -14
- data/spec/helpers/collections_search_helper_spec.rb +2 -4
- data/spec/lib/collectible_spec.rb +7 -7
- data/spec/models/collection_spec.rb +133 -78
- data/spec/spec_helper.rb +1 -12
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +0 -1
- data/tasks/hydra-collections-dev.rake +1 -19
- metadata +9 -21
- data/.rspec +0 -1
data/spec/spec_helper.rb
CHANGED
@@ -9,29 +9,18 @@ require 'hydra-collections'
|
|
9
9
|
FactoryGirl.definition_file_paths = [File.expand_path("../factories", __FILE__)]
|
10
10
|
FactoryGirl.find_definitions
|
11
11
|
|
12
|
-
# HttpLogger.logger = Logger.new(STDOUT)
|
13
|
-
# HttpLogger.ignore = [/localhost:8983\/solr/]
|
14
|
-
# HttpLogger.colorize = false
|
15
|
-
# # Patch for https://github.com/railsware/http_logger/issues/13
|
16
|
-
# HttpLogger::HTTP_METHODS_WITH_BODY = Set.new(%w(POST PUT GET PATCH))
|
17
|
-
|
18
12
|
module EngineRoutes
|
19
13
|
def self.included(base)
|
20
14
|
base.routes { Hydra::Collections::Engine.routes }
|
21
15
|
end
|
22
16
|
end
|
23
17
|
|
24
|
-
require 'active_fedora/cleaner'
|
25
18
|
RSpec.configure do |config|
|
26
19
|
config.use_transactional_fixtures = true
|
27
20
|
config.include Devise::TestHelpers, :type => :controller
|
28
|
-
config.before(:each, type
|
21
|
+
config.before(:each, :type=>"controller") { @routes = Hydra::Collections::Engine.routes }
|
29
22
|
config.include EngineRoutes, :type => :controller
|
30
23
|
config.infer_spec_type_from_file_location!
|
31
|
-
# Stub out test stuff.
|
32
|
-
config.before(:each) do
|
33
|
-
ActiveFedora::Cleaner.clean!
|
34
|
-
end
|
35
24
|
end
|
36
25
|
|
37
26
|
module FactoryGirl
|
@@ -3,13 +3,10 @@ require 'rspec/core/rake_task'
|
|
3
3
|
require 'jettywrapper'
|
4
4
|
require 'engine_cart/rake_task'
|
5
5
|
|
6
|
-
JETTY_ZIP_BASENAME = 'fedora-4/master'
|
7
|
-
Jettywrapper.url = "https://github.com/projecthydra/hydra-jetty/archive/#{JETTY_ZIP_BASENAME}.zip"
|
8
|
-
|
9
6
|
RSpec::Core::RakeTask.new(:spec)
|
10
7
|
|
11
8
|
desc 'Spin up hydra-jetty and run specs'
|
12
|
-
task ci: ['engine_cart:
|
9
|
+
task ci: ['engine_cart:generate', 'jetty:clean', 'jetty:config'] do
|
13
10
|
puts 'running continuous integration'
|
14
11
|
jetty_params = Jettywrapper.load_config
|
15
12
|
error = Jettywrapper.wrap(jetty_params) do
|
@@ -17,18 +14,3 @@ task ci: ['engine_cart:clean', 'engine_cart:generate', 'jetty:clean'] do
|
|
17
14
|
end
|
18
15
|
raise "test failures: #{error}" if error
|
19
16
|
end
|
20
|
-
|
21
|
-
EXTRA_GEMS =<<EOF
|
22
|
-
gem 'active-fedora', '9.0.0.beta3'
|
23
|
-
gem 'hydra-head', github: 'projecthydra/hydra-head', branch: 'fedora-4'
|
24
|
-
|
25
|
-
EOF
|
26
|
-
|
27
|
-
namespace :engine_cart do
|
28
|
-
# we're adding some extra stuff into the gemfile beyond what engine_cart gives us by default
|
29
|
-
task :inject_gemfile_extras do
|
30
|
-
open(File.expand_path('Gemfile', EngineCart.destination), 'a') do |f|
|
31
|
-
f.write EXTRA_GEMS
|
32
|
-
end
|
33
|
-
end
|
34
|
-
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-collections
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0.
|
4
|
+
version: 3.0.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carolyn Cole
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: blacklight
|
@@ -30,28 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 8.0.0.beta1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: deprecation
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
40
|
+
version: 8.0.0.beta1
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: engine_cart
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,7 +75,6 @@ extra_rdoc_files: []
|
|
89
75
|
files:
|
90
76
|
- ".gitignore"
|
91
77
|
- ".gitmodules"
|
92
|
-
- ".rspec"
|
93
78
|
- ".travis.yml"
|
94
79
|
- CONTRIBUTING.md
|
95
80
|
- Changelog.md
|
@@ -101,13 +86,13 @@ files:
|
|
101
86
|
- app/assets/javascripts/hydra_collections.js
|
102
87
|
- app/assets/stylesheets/hydra_collections.css.scss
|
103
88
|
- app/controllers/collections_controller.rb
|
104
|
-
- app/controllers/concerns/hydra/collections/selects_collections.rb
|
105
89
|
- app/controllers/concerns/hydra/collections_controller_behavior.rb
|
106
90
|
- app/helpers/batch_select_helper.rb
|
107
91
|
- app/helpers/collections_helper.rb
|
108
92
|
- app/helpers/collections_search_helper.rb
|
109
93
|
- app/models/collection.rb
|
110
94
|
- app/models/concerns/hydra/collection.rb
|
95
|
+
- app/models/datastreams/hydra/collection_rdf_datastream.rb
|
111
96
|
- app/models/solr_document.rb
|
112
97
|
- app/views/batch_select/_add_button.html.erb
|
113
98
|
- app/views/batch_select/_check_all.html.erb
|
@@ -138,6 +123,7 @@ files:
|
|
138
123
|
- lib/hydra/collections/accepts_batches.rb
|
139
124
|
- lib/hydra/collections/collectible.rb
|
140
125
|
- lib/hydra/collections/search_service.rb
|
126
|
+
- lib/hydra/collections/selects_collections.rb
|
141
127
|
- lib/hydra/collections/solr_document_behavior.rb
|
142
128
|
- lib/hydra/collections/version.rb
|
143
129
|
- solr_conf/conf/schema.xml
|
@@ -149,6 +135,7 @@ files:
|
|
149
135
|
- spec/controllers/other_collections_controller_spec.rb
|
150
136
|
- spec/controllers/selects_collections_spec.rb
|
151
137
|
- spec/factories.rb
|
138
|
+
- spec/factories/.gitkeep
|
152
139
|
- spec/factories/users.rb
|
153
140
|
- spec/helpers/collections_helper_spec.rb
|
154
141
|
- spec/helpers/collections_search_helper_spec.rb
|
@@ -166,7 +153,7 @@ files:
|
|
166
153
|
- spec/test_app_templates/lib/tasks/rspec.rake
|
167
154
|
- tasks/hydra-collections-dev.rake
|
168
155
|
- tasks/jetty.rake
|
169
|
-
homepage: https://github.com/
|
156
|
+
homepage: https://github.com/psu-stewardship/hydra-collections
|
170
157
|
licenses:
|
171
158
|
- APACHE2
|
172
159
|
metadata: {}
|
@@ -197,6 +184,7 @@ test_files:
|
|
197
184
|
- spec/controllers/other_collections_controller_spec.rb
|
198
185
|
- spec/controllers/selects_collections_spec.rb
|
199
186
|
- spec/factories.rb
|
187
|
+
- spec/factories/.gitkeep
|
200
188
|
- spec/factories/users.rb
|
201
189
|
- spec/helpers/collections_helper_spec.rb
|
202
190
|
- spec/helpers/collections_search_helper_spec.rb
|
data/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
--colour
|