hydra-editor 4.0.2 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/History.md +10 -0
- data/README.md +50 -3
- data/app/assets/stylesheets/hydra-editor/multi_value_fields.scss +2 -2
- data/app/presenters/hydra/presenter.rb +1 -3
- data/lib/hydra_editor/engine.rb +2 -2
- data/lib/hydra_editor/version.rb +1 -1
- metadata +154 -51
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5c6af404429980f90c5fecedf2a3bb472c082c6af87434cd28dc37d6e4ce7770
|
4
|
+
data.tar.gz: 13cccf003fc9a194d42dccc27a74cefca36cde19ec95bf00e8a424f4e7a4cc89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7708c2b37f92433894c4924d6fd262688f5af317c158b8d8371a5b6513c962d715cbefcb3ba9ea68cec94f05e1763aa97ccaaf7624dea86dc17cd087cd4d3219
|
7
|
+
data.tar.gz: 3f76d2f92b57be1c20366d3c1849df2bdd33792406816813e2cb6a06f087810001141abc63409372f601d16fbe7eb32465f4d136ded5d28c0fc8c49eded83538
|
data/History.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# History of hydra-editor releases
|
2
2
|
|
3
|
+
## 5.0.1
|
4
|
+
* 2019-09-30: Update the dependency for the `simple_form` Gem to 5.0.x releases
|
5
|
+
|
6
|
+
## 5.0.0
|
7
|
+
* 2019-03-26: Added CodeClimate [@cjcolvar]
|
8
|
+
* 2019-03-26: Updates testing for Rails support to releases 5.2.2, 5.1.6.1, and 5.0.7.1 [@cjcolvar]
|
9
|
+
* 2019-03-26: Updates simple_form to releases 4.1.0 (or later) [@cjcolvar]
|
10
|
+
* 2019-03-26: Updates engine_cart to release 2.2 [@cjcolvar]
|
11
|
+
* 2018-08-14: Updates the repository documentation in compliance with the guidelines of the Core Component Maintenance Working Group [@botimer]
|
12
|
+
|
3
13
|
## 4.0.2
|
4
14
|
* 2018-05-10: MultiValue gets values from object methods and attributes [afred]
|
5
15
|
|
data/README.md
CHANGED
@@ -1,4 +1,35 @@
|
|
1
|
-
# HydraEditor
|
1
|
+
# HydraEditor
|
2
|
+
|
3
|
+
Code:
|
4
|
+
[![Gem Version](https://badge.fury.io/rb/hydra-editor.png)](http://badge.fury.io/rb/hydra-editor)
|
5
|
+
[![Build Status](https://circleci.com/gh/samvera/hydra-editor.svg?style=svg)](https://circleci.com/gh/samvera/hydra-editor)
|
6
|
+
[![Coverage Status](https://coveralls.io/repos/github/samvera/hydra-editor/badge.svg?branch=master)](https://coveralls.io/github/samvera/hydra-editor?branch=master)
|
7
|
+
|
8
|
+
Docs:
|
9
|
+
[![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md)
|
10
|
+
[![Apache 2.0 License](http://img.shields.io/badge/APACHE2-license-blue.svg)](./LICENSE.txt)
|
11
|
+
|
12
|
+
Jump in: [![Slack Status](http://slack.samvera.org/badge.svg)](http://slack.samvera.org/)
|
13
|
+
|
14
|
+
# What is hydra-editor?
|
15
|
+
|
16
|
+
A basic metadata editor for Rails applications based on hydra-head.
|
17
|
+
|
18
|
+
## Product Owner & Maintenance
|
19
|
+
|
20
|
+
**hydra-editor** is a Core Component of the Samvera community. The documentation for
|
21
|
+
what this means can be found
|
22
|
+
[here](http://samvera.github.io/core_components.html#requirements-for-a-core-component).
|
23
|
+
|
24
|
+
### Product Owner
|
25
|
+
|
26
|
+
[jrgriffiniii](https://github.com/jrgriffiniii)
|
27
|
+
|
28
|
+
# Help
|
29
|
+
|
30
|
+
The Samvera community is here to help. Please see our [support guide](./SUPPORT.md).
|
31
|
+
|
32
|
+
# Getting Started
|
2
33
|
|
3
34
|
To use add to your gemfile:
|
4
35
|
|
@@ -125,8 +156,24 @@ end
|
|
125
156
|
|
126
157
|
If you are not mounting the engine or using its default routes, you can include RecordsControllerBehavior in your own controller and add the appropriate routes to your app's config/routes.rb.
|
127
158
|
|
128
|
-
|
159
|
+
## Releasing
|
160
|
+
|
161
|
+
1. `bundle install`
|
162
|
+
2. Increase the version number in `lib/hydra_editor/version.rb`
|
163
|
+
3. Increase the same version number in `.github_changelog_generator`
|
164
|
+
4. Update `CHANGELOG.md` by running this command:
|
165
|
+
|
166
|
+
```
|
167
|
+
github_changelog_generator --user samvera --project hydra-editor --token YOUR_GITHUB_TOKEN_HERE
|
168
|
+
```
|
169
|
+
|
170
|
+
5. Commit these changes to the master branch
|
171
|
+
|
172
|
+
6. Run `rake release`
|
173
|
+
|
174
|
+
# Acknowledgments
|
175
|
+
|
129
176
|
This software has been developed by and is brought to you by the Samvera community. Learn more at the
|
130
|
-
[Samvera website](
|
177
|
+
[Samvera website](http://samvera.org/).
|
131
178
|
|
132
179
|
![Samvera Logo](https://wiki.duraspace.org/download/thumbnails/87459292/samvera-fall-font2-200w.png?version=1&modificationDate=1498550535816&api=v2)
|
@@ -24,9 +24,7 @@ module Hydra
|
|
24
24
|
|
25
25
|
module ClassMethods
|
26
26
|
def model_name
|
27
|
-
if model_class.nil?
|
28
|
-
raise "You must set `self.model_class = ' after including Hydra::Presenter on #{self}."
|
29
|
-
end
|
27
|
+
raise "You must set `self.model_class = ' after including Hydra::Presenter on #{self}." if model_class.nil?
|
30
28
|
model_class.model_name
|
31
29
|
end
|
32
30
|
end
|
data/lib/hydra_editor/engine.rb
CHANGED
@@ -4,10 +4,10 @@ module HydraEditor
|
|
4
4
|
require 'sprockets/es6'
|
5
5
|
require 'almond-rails'
|
6
6
|
engine_name 'hydra_editor'
|
7
|
-
config.eager_load_paths += %W
|
7
|
+
config.eager_load_paths += %W[
|
8
8
|
#{config.root}/app/helpers/concerns
|
9
9
|
#{config.root}/app/presenters
|
10
|
-
|
10
|
+
]
|
11
11
|
initializer 'hydra-editor.initialize' do
|
12
12
|
require 'cancan'
|
13
13
|
Sprockets::ES6.configuration = { 'modules' => 'amd', 'moduleIds' => true }
|
data/lib/hydra_editor/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hydra-editor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 5.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Coyne
|
@@ -10,28 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
16
|
+
name: activerecord
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: 4.2.0
|
22
|
-
- - "<"
|
19
|
+
- - "~>"
|
23
20
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
21
|
+
version: '5.0'
|
25
22
|
type: :runtime
|
26
23
|
prerelease: false
|
27
24
|
version_requirements: !ruby/object:Gem::Requirement
|
28
25
|
requirements:
|
29
|
-
- - "
|
30
|
-
- !ruby/object:Gem::Version
|
31
|
-
version: 4.2.0
|
32
|
-
- - "<"
|
26
|
+
- - "~>"
|
33
27
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
28
|
+
version: '5.0'
|
35
29
|
- !ruby/object:Gem::Dependency
|
36
30
|
name: active-fedora
|
37
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -46,6 +40,20 @@ dependencies:
|
|
46
40
|
- - ">="
|
47
41
|
- !ruby/object:Gem::Version
|
48
42
|
version: 9.0.0
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: almond-rails
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.1'
|
50
|
+
type: :runtime
|
51
|
+
prerelease: false
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '0.1'
|
49
57
|
- !ruby/object:Gem::Dependency
|
50
58
|
name: cancancan
|
51
59
|
requirement: !ruby/object:Gem::Requirement
|
@@ -60,20 +68,60 @@ dependencies:
|
|
60
68
|
- - "~>"
|
61
69
|
- !ruby/object:Gem::Version
|
62
70
|
version: '1.8'
|
71
|
+
- !ruby/object:Gem::Dependency
|
72
|
+
name: rails
|
73
|
+
requirement: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - ">="
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '5'
|
78
|
+
- - "<"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '6'
|
81
|
+
type: :runtime
|
82
|
+
prerelease: false
|
83
|
+
version_requirements: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - ">="
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '5'
|
88
|
+
- - "<"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: '6'
|
63
91
|
- !ruby/object:Gem::Dependency
|
64
92
|
name: simple_form
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - ">="
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 4.1.0
|
98
|
+
- - "<"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '6.0'
|
101
|
+
type: :runtime
|
102
|
+
prerelease: false
|
103
|
+
version_requirements: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: 4.1.0
|
108
|
+
- - "<"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '6.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: sprockets
|
65
113
|
requirement: !ruby/object:Gem::Requirement
|
66
114
|
requirements:
|
67
115
|
- - "~>"
|
68
116
|
- !ruby/object:Gem::Version
|
69
|
-
version: '3.
|
117
|
+
version: '3.7'
|
70
118
|
type: :runtime
|
71
119
|
prerelease: false
|
72
120
|
version_requirements: !ruby/object:Gem::Requirement
|
73
121
|
requirements:
|
74
122
|
- - "~>"
|
75
123
|
- !ruby/object:Gem::Version
|
76
|
-
version: '3.
|
124
|
+
version: '3.7'
|
77
125
|
- !ruby/object:Gem::Dependency
|
78
126
|
name: sprockets-es6
|
79
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -89,61 +137,61 @@ dependencies:
|
|
89
137
|
- !ruby/object:Gem::Version
|
90
138
|
version: '0'
|
91
139
|
- !ruby/object:Gem::Dependency
|
92
|
-
name:
|
140
|
+
name: bixby
|
93
141
|
requirement: !ruby/object:Gem::Requirement
|
94
142
|
requirements:
|
95
143
|
- - "~>"
|
96
144
|
- !ruby/object:Gem::Version
|
97
|
-
version: '0
|
98
|
-
type: :
|
145
|
+
version: '3.0'
|
146
|
+
type: :development
|
99
147
|
prerelease: false
|
100
148
|
version_requirements: !ruby/object:Gem::Requirement
|
101
149
|
requirements:
|
102
150
|
- - "~>"
|
103
151
|
- !ruby/object:Gem::Version
|
104
|
-
version: '0
|
152
|
+
version: '3.0'
|
105
153
|
- !ruby/object:Gem::Dependency
|
106
|
-
name:
|
154
|
+
name: capybara
|
107
155
|
requirement: !ruby/object:Gem::Requirement
|
108
156
|
requirements:
|
109
157
|
- - "~>"
|
110
158
|
- !ruby/object:Gem::Version
|
111
|
-
version: '
|
159
|
+
version: '2.4'
|
112
160
|
type: :development
|
113
161
|
prerelease: false
|
114
162
|
version_requirements: !ruby/object:Gem::Requirement
|
115
163
|
requirements:
|
116
164
|
- - "~>"
|
117
165
|
- !ruby/object:Gem::Version
|
118
|
-
version: '
|
166
|
+
version: '2.4'
|
119
167
|
- !ruby/object:Gem::Dependency
|
120
|
-
name:
|
168
|
+
name: devise
|
121
169
|
requirement: !ruby/object:Gem::Requirement
|
122
170
|
requirements:
|
123
171
|
- - "~>"
|
124
172
|
- !ruby/object:Gem::Version
|
125
|
-
version: '
|
173
|
+
version: '4.0'
|
126
174
|
type: :development
|
127
175
|
prerelease: false
|
128
176
|
version_requirements: !ruby/object:Gem::Requirement
|
129
177
|
requirements:
|
130
178
|
- - "~>"
|
131
179
|
- !ruby/object:Gem::Version
|
132
|
-
version: '
|
180
|
+
version: '4.0'
|
133
181
|
- !ruby/object:Gem::Dependency
|
134
|
-
name:
|
182
|
+
name: engine_cart
|
135
183
|
requirement: !ruby/object:Gem::Requirement
|
136
184
|
requirements:
|
137
|
-
- - "
|
185
|
+
- - "~>"
|
138
186
|
- !ruby/object:Gem::Version
|
139
|
-
version: '
|
187
|
+
version: '2.2'
|
140
188
|
type: :development
|
141
189
|
prerelease: false
|
142
190
|
version_requirements: !ruby/object:Gem::Requirement
|
143
191
|
requirements:
|
144
|
-
- - "
|
192
|
+
- - "~>"
|
145
193
|
- !ruby/object:Gem::Version
|
146
|
-
version: '
|
194
|
+
version: '2.2'
|
147
195
|
- !ruby/object:Gem::Dependency
|
148
196
|
name: factory_bot_rails
|
149
197
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,49 +207,105 @@ dependencies:
|
|
159
207
|
- !ruby/object:Gem::Version
|
160
208
|
version: '4.8'
|
161
209
|
- !ruby/object:Gem::Dependency
|
162
|
-
name:
|
210
|
+
name: fcrepo_wrapper
|
163
211
|
requirement: !ruby/object:Gem::Requirement
|
164
212
|
requirements:
|
165
213
|
- - "~>"
|
166
214
|
- !ruby/object:Gem::Version
|
167
|
-
version: '
|
215
|
+
version: '0.5'
|
168
216
|
type: :development
|
169
217
|
prerelease: false
|
170
218
|
version_requirements: !ruby/object:Gem::Requirement
|
171
219
|
requirements:
|
172
220
|
- - "~>"
|
173
221
|
- !ruby/object:Gem::Version
|
174
|
-
version: '
|
222
|
+
version: '0.5'
|
175
223
|
- !ruby/object:Gem::Dependency
|
176
|
-
name:
|
224
|
+
name: hydra-head
|
177
225
|
requirement: !ruby/object:Gem::Requirement
|
178
226
|
requirements:
|
179
227
|
- - "~>"
|
180
228
|
- !ruby/object:Gem::Version
|
181
|
-
version: '
|
229
|
+
version: '10.5'
|
182
230
|
type: :development
|
183
231
|
prerelease: false
|
184
232
|
version_requirements: !ruby/object:Gem::Requirement
|
185
233
|
requirements:
|
186
234
|
- - "~>"
|
187
235
|
- !ruby/object:Gem::Version
|
188
|
-
version: '
|
236
|
+
version: '10.5'
|
189
237
|
- !ruby/object:Gem::Dependency
|
190
|
-
name:
|
238
|
+
name: jasmine
|
239
|
+
requirement: !ruby/object:Gem::Requirement
|
240
|
+
requirements:
|
241
|
+
- - "~>"
|
242
|
+
- !ruby/object:Gem::Version
|
243
|
+
version: '2.3'
|
244
|
+
type: :development
|
245
|
+
prerelease: false
|
246
|
+
version_requirements: !ruby/object:Gem::Requirement
|
247
|
+
requirements:
|
248
|
+
- - "~>"
|
249
|
+
- !ruby/object:Gem::Version
|
250
|
+
version: '2.3'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: pry-byebug
|
191
253
|
requirement: !ruby/object:Gem::Requirement
|
192
254
|
requirements:
|
193
255
|
- - ">="
|
194
256
|
- !ruby/object:Gem::Version
|
195
|
-
version: '
|
257
|
+
version: '0'
|
196
258
|
type: :development
|
197
259
|
prerelease: false
|
198
260
|
version_requirements: !ruby/object:Gem::Requirement
|
199
261
|
requirements:
|
200
262
|
- - ">="
|
201
263
|
- !ruby/object:Gem::Version
|
202
|
-
version: '
|
264
|
+
version: '0'
|
203
265
|
- !ruby/object:Gem::Dependency
|
204
|
-
name:
|
266
|
+
name: rails-controller-testing
|
267
|
+
requirement: !ruby/object:Gem::Requirement
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
version: '0'
|
272
|
+
type: :development
|
273
|
+
prerelease: false
|
274
|
+
version_requirements: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
- !ruby/object:Gem::Dependency
|
280
|
+
name: rspec_junit_formatter
|
281
|
+
requirement: !ruby/object:Gem::Requirement
|
282
|
+
requirements:
|
283
|
+
- - ">="
|
284
|
+
- !ruby/object:Gem::Version
|
285
|
+
version: '0'
|
286
|
+
type: :development
|
287
|
+
prerelease: false
|
288
|
+
version_requirements: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: '0'
|
293
|
+
- !ruby/object:Gem::Dependency
|
294
|
+
name: rspec-rails
|
295
|
+
requirement: !ruby/object:Gem::Requirement
|
296
|
+
requirements:
|
297
|
+
- - "~>"
|
298
|
+
- !ruby/object:Gem::Version
|
299
|
+
version: '3.1'
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - "~>"
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '3.1'
|
307
|
+
- !ruby/object:Gem::Dependency
|
308
|
+
name: sdoc
|
205
309
|
requirement: !ruby/object:Gem::Requirement
|
206
310
|
requirements:
|
207
311
|
- - "~>"
|
@@ -215,47 +319,47 @@ dependencies:
|
|
215
319
|
- !ruby/object:Gem::Version
|
216
320
|
version: '1.0'
|
217
321
|
- !ruby/object:Gem::Dependency
|
218
|
-
name:
|
322
|
+
name: simplecov
|
219
323
|
requirement: !ruby/object:Gem::Requirement
|
220
324
|
requirements:
|
221
325
|
- - "~>"
|
222
326
|
- !ruby/object:Gem::Version
|
223
|
-
version: '0.
|
327
|
+
version: '0.16'
|
224
328
|
type: :development
|
225
329
|
prerelease: false
|
226
330
|
version_requirements: !ruby/object:Gem::Requirement
|
227
331
|
requirements:
|
228
332
|
- - "~>"
|
229
333
|
- !ruby/object:Gem::Version
|
230
|
-
version: '0.
|
334
|
+
version: '0.16'
|
231
335
|
- !ruby/object:Gem::Dependency
|
232
|
-
name:
|
336
|
+
name: solr_wrapper
|
233
337
|
requirement: !ruby/object:Gem::Requirement
|
234
338
|
requirements:
|
235
339
|
- - "~>"
|
236
340
|
- !ruby/object:Gem::Version
|
237
|
-
version: '0.
|
341
|
+
version: '0.15'
|
238
342
|
type: :development
|
239
343
|
prerelease: false
|
240
344
|
version_requirements: !ruby/object:Gem::Requirement
|
241
345
|
requirements:
|
242
346
|
- - "~>"
|
243
347
|
- !ruby/object:Gem::Version
|
244
|
-
version: '0.
|
348
|
+
version: '0.15'
|
245
349
|
- !ruby/object:Gem::Dependency
|
246
|
-
name:
|
350
|
+
name: sqlite3
|
247
351
|
requirement: !ruby/object:Gem::Requirement
|
248
352
|
requirements:
|
249
353
|
- - "~>"
|
250
354
|
- !ruby/object:Gem::Version
|
251
|
-
version: '
|
355
|
+
version: '1.3'
|
252
356
|
type: :development
|
253
357
|
prerelease: false
|
254
358
|
version_requirements: !ruby/object:Gem::Requirement
|
255
359
|
requirements:
|
256
360
|
- - "~>"
|
257
361
|
- !ruby/object:Gem::Version
|
258
|
-
version: '
|
362
|
+
version: '1.3'
|
259
363
|
description: A basic metadata editor for hydra-head
|
260
364
|
email:
|
261
365
|
- samvera-tech@googlegroups.com
|
@@ -313,8 +417,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
313
417
|
- !ruby/object:Gem::Version
|
314
418
|
version: '0'
|
315
419
|
requirements: []
|
316
|
-
|
317
|
-
rubygems_version: 2.6.14
|
420
|
+
rubygems_version: 3.1.2
|
318
421
|
signing_key:
|
319
422
|
specification_version: 4
|
320
423
|
summary: A basic metadata editor for hydra-head
|