hydra-editor 4.0.1 → 5.0.3

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
- SHA1:
3
- metadata.gz: 29586ab094387a98528c46f14838b7eee43af9e4
4
- data.tar.gz: 420f5db0c3ab51aa9ad3929c3aa097da5fc2bbdc
2
+ SHA256:
3
+ metadata.gz: 28189bd481c411f2b5793c5331577f90dbd1caa9f00a6bc856f42cab0e36853f
4
+ data.tar.gz: 9d691176c86a8366afecbe0e09675e8fd936d5376ea1610c240af0f3dc7e0865
5
5
  SHA512:
6
- metadata.gz: 2308e0d0260e14de104d680011af09cf0bd0cdc0ba39e42098d30b4d20091d2dae2e725ef80464f9f07a6deb24348c05562d2ec977f6dc12732e16a8ae196473
7
- data.tar.gz: 5ae0ac966fdbf43318fe7625188bce2244a27feec248b77efd981af204bfaf2e98bb3dcf247ca652a8fa8e152d7f65075b91e50f29d8d408b75f32e615277e2b
6
+ metadata.gz: 1e7df3b2a7524af8fb74a108ef460daa42fca19505a669b08f42b6caaa890a8fae8396844c46516c951f2c68229af55bc9c6ae52eefab3963a09a91d80dedff7
7
+ data.tar.gz: 7e7ea72cf88838300e72d8b7675852427367cee00175bc88c695e481fd53cf05d3fabcd00b11a80f4f68dceeff82c884e3659e0c0a3a7ed819309b6fad3973c4
data/History.md CHANGED
@@ -1,5 +1,18 @@
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
+
13
+ ## 4.0.2
14
+ * 2018-05-10: MultiValue gets values from object methods and attributes [afred]
15
+
3
16
  ## 4.0.1
4
17
  * 2018-04-25: Updated the gemspec for authors, email, and homepage
5
18
 
data/README.md CHANGED
@@ -1,4 +1,35 @@
1
- # HydraEditor [![Gem Version](https://badge.fury.io/rb/hydra-editor.png)](http://badge.fury.io/rb/hydra-editor) [![Build Status](https://travis-ci.org/samvera/hydra-editor.png)](https://travis-ci.org/samvera/hydra-editor)
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
- # Samvera
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](https://samvera.org/)
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)
@@ -75,7 +75,7 @@ class MultiValueInput < SimpleForm::Inputs::CollectionInput
75
75
 
76
76
  def collection
77
77
  @collection ||= begin
78
- val = object[attribute_name]
78
+ val = object.send(attribute_name)
79
79
  col = val.respond_to?(:to_ary) ? val.to_ary : val
80
80
  col.reject { |value| value.to_s.strip.blank? } + ['']
81
81
  end
@@ -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
@@ -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 }
@@ -1,3 +1,3 @@
1
1
  module HydraEditor
2
- VERSION = '4.0.1'.freeze
2
+ VERSION = '5.0.3'.freeze
3
3
  end
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.0.1
4
+ version: 5.0.3
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: 2018-04-25 00:00:00.000000000 Z
13
+ date: 2020-08-05 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rails
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: '6'
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: '6'
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.2'
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.2'
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: almond-rails
140
+ name: bixby
93
141
  requirement: !ruby/object:Gem::Requirement
94
142
  requirements:
95
143
  - - "~>"
96
144
  - !ruby/object:Gem::Version
97
- version: '0.1'
98
- type: :runtime
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.1'
152
+ version: '3.0'
105
153
  - !ruby/object:Gem::Dependency
106
- name: sqlite3
154
+ name: capybara
107
155
  requirement: !ruby/object:Gem::Requirement
108
156
  requirements:
109
157
  - - "~>"
110
158
  - !ruby/object:Gem::Version
111
- version: '1.3'
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: '1.3'
166
+ version: '2.4'
119
167
  - !ruby/object:Gem::Dependency
120
- name: rspec-rails
168
+ name: devise
121
169
  requirement: !ruby/object:Gem::Requirement
122
170
  requirements:
123
171
  - - "~>"
124
172
  - !ruby/object:Gem::Version
125
- version: '3.1'
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: '3.1'
180
+ version: '4.0'
133
181
  - !ruby/object:Gem::Dependency
134
- name: rails-controller-testing
182
+ name: engine_cart
135
183
  requirement: !ruby/object:Gem::Requirement
136
184
  requirements:
137
- - - ">="
185
+ - - "~>"
138
186
  - !ruby/object:Gem::Version
139
- version: '0'
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: '0'
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: capybara
210
+ name: fcrepo_wrapper
163
211
  requirement: !ruby/object:Gem::Requirement
164
212
  requirements:
165
213
  - - "~>"
166
214
  - !ruby/object:Gem::Version
167
- version: '2.4'
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: '2.4'
222
+ version: '0.5'
175
223
  - !ruby/object:Gem::Dependency
176
- name: devise
224
+ name: hydra-head
177
225
  requirement: !ruby/object:Gem::Requirement
178
226
  requirements:
179
227
  - - "~>"
180
228
  - !ruby/object:Gem::Version
181
- version: '4.0'
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: '4.0'
236
+ version: '10.5'
189
237
  - !ruby/object:Gem::Dependency
190
- name: hydra-head
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: '9.0'
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: '9.0'
264
+ version: '0'
203
265
  - !ruby/object:Gem::Dependency
204
- name: engine_cart
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: solr_wrapper
322
+ name: simplecov
219
323
  requirement: !ruby/object:Gem::Requirement
220
324
  requirements:
221
325
  - - "~>"
222
326
  - !ruby/object:Gem::Version
223
- version: '0.15'
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.15'
334
+ version: '0.16'
231
335
  - !ruby/object:Gem::Dependency
232
- name: fcrepo_wrapper
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.5'
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.5'
348
+ version: '0.15'
245
349
  - !ruby/object:Gem::Dependency
246
- name: jasmine
350
+ name: sqlite3
247
351
  requirement: !ruby/object:Gem::Requirement
248
352
  requirements:
249
353
  - - "~>"
250
354
  - !ruby/object:Gem::Version
251
- version: '2.3'
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: '2.3'
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
- rubyforge_project:
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