hydra-editor 5.0.5 → 6.0.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
  SHA256:
3
- metadata.gz: 38ab055d213de3b1299c69bf11aa8265b72ba8f979857db58b9be7500c3f72b2
4
- data.tar.gz: 3a2203ee73f2bf7362e155cb1f33d911d5a3a59cbc15e12ea26d8e5eac9a15d6
3
+ metadata.gz: d2f14a25dd5b1f7422276f3b2444e9eae0d3a4a6659118a3e135e569f94133fd
4
+ data.tar.gz: c73020a6e58ca935be57e5f05dafd08d14f24cf3701a81d33ace9e2250b22b81
5
5
  SHA512:
6
- metadata.gz: 239f99bb9ab19061d074397e59b7e172f59cd14fac316ac3bc25d7a03c53370eaac8720baaa46d96aee409274ac5065b1acd0b7cebaebe5dcc27610be877a4de
7
- data.tar.gz: 989a22a789fc9f71e59fbda9930d9b0259828a831bb696115307f5fbfc1268d738030a235d9c8434d69c0ae626487e5fb20953168a6a2dc4559bde8b9f5e641b
6
+ metadata.gz: e2a9cfd99d79904a596af647be09e28f69d09871a0464d1097076091ff032bb1fffb646b94cdb4eac91e8041af75da2fdac08863276908346159f93954b75817
7
+ data.tar.gz: e6533f7dda3881358059d421be824d4a29eaade81f4707541f4f481bc16b903ea135ed08d30d29e5157bad2b343f26ef3ff63c0f0dd3eb2b3d87b66175b0dd14
data/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Code:
4
4
  [![Gem Version](https://badge.fury.io/rb/hydra-editor.png)](http://badge.fury.io/rb/hydra-editor)
5
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)
6
+ [![Coverage Status](https://coveralls.io/repos/github/samvera/hydra-editor/badge.svg?branch=main)](https://coveralls.io/github/samvera/hydra-editor?branch=main)
7
7
 
8
8
  Docs:
9
9
  [![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md)
@@ -167,7 +167,7 @@ If you are not mounting the engine or using its default routes, you can include
167
167
  github_changelog_generator --user samvera --project hydra-editor --token YOUR_GITHUB_TOKEN_HERE
168
168
  ```
169
169
 
170
- 5. Commit these changes to the master branch
170
+ 5. Commit these changes to the main branch
171
171
 
172
172
  6. Run `rake release`
173
173
 
data/Rakefile CHANGED
@@ -30,13 +30,6 @@ require 'fcrepo_wrapper'
30
30
  require 'active_fedora/rake_support'
31
31
  require 'engine_cart/rake_task'
32
32
 
33
- require 'jasmine'
34
- load 'jasmine/tasks/jasmine.rake'
35
-
36
- import "#{Gem.loaded_specs['jasmine'].full_gem_path}/lib/jasmine/tasks/jasmine.rake"
37
-
38
- # Set up the test application prior to running jasmine tasks.
39
- task 'jasmine:require' => :setup_test_server
40
33
  task :setup_test_server do
41
34
  require 'engine_cart'
42
35
  EngineCart.load_application!
@@ -146,8 +146,7 @@ export class FieldManager {
146
146
  getFieldLabel($element, options) {
147
147
  var label = '';
148
148
  var $label = $element.find("label").first();
149
-
150
- if ($label.size && options.labelControls) {
149
+ if ($label.length && options.labelControls) {
151
150
  var label = $label.data('label') || $.trim($label.contents().filter(function() { return this.nodeType === 3; }).text());
152
151
  label = ' ' + label;
153
152
  }
@@ -170,7 +169,7 @@ export class FieldManager {
170
169
 
171
170
  createNewChildren(clone) {
172
171
  let $newChildren = $(clone).children(this.inputTypeClass);
173
- $newChildren.val('').removeProp('required');
172
+ $newChildren.val('').removeAttr('required');
174
173
  $newChildren.first().focus();
175
174
  return $newChildren.first();
176
175
  }
@@ -1,3 +1,3 @@
1
1
  module HydraEditor
2
- VERSION = '5.0.5'.freeze
2
+ VERSION = '6.0.0'.freeze
3
3
  end
@@ -2,3 +2,12 @@
2
2
  # task :hydra-editor do
3
3
  # # Task goes here
4
4
  # end
5
+
6
+ desc "Run rake tasks with internal test app"
7
+ namespace :hydra_editor do
8
+ task recompile_js: [:environment] do
9
+ within_test_app do
10
+ system "bundle exec rake assets:clobber assets:precompile"
11
+ end
12
+ end
13
+ 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: 5.0.5
4
+ version: 6.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -10,22 +10,28 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-08-13 00:00:00.000000000 Z
13
+ date: 2021-12-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: activerecord
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - "~>"
19
+ - - ">="
20
+ - !ruby/object:Gem::Version
21
+ version: '5.2'
22
+ - - "<"
20
23
  - !ruby/object:Gem::Version
21
- version: '5.0'
24
+ version: '6.1'
22
25
  type: :runtime
23
26
  prerelease: false
24
27
  version_requirements: !ruby/object:Gem::Requirement
25
28
  requirements:
26
- - - "~>"
29
+ - - ">="
30
+ - !ruby/object:Gem::Version
31
+ version: '5.2'
32
+ - - "<"
27
33
  - !ruby/object:Gem::Version
28
- version: '5.0'
34
+ version: '6.1'
29
35
  - !ruby/object:Gem::Dependency
30
36
  name: active-fedora
31
37
  requirement: !ruby/object:Gem::Requirement
@@ -74,20 +80,20 @@ dependencies:
74
80
  requirements:
75
81
  - - ">="
76
82
  - !ruby/object:Gem::Version
77
- version: '5'
83
+ version: '5.2'
78
84
  - - "<"
79
85
  - !ruby/object:Gem::Version
80
- version: '6'
86
+ version: '6.1'
81
87
  type: :runtime
82
88
  prerelease: false
83
89
  version_requirements: !ruby/object:Gem::Requirement
84
90
  requirements:
85
91
  - - ">="
86
92
  - !ruby/object:Gem::Version
87
- version: '5'
93
+ version: '5.2'
88
94
  - - "<"
89
95
  - !ruby/object:Gem::Version
90
- version: '6'
96
+ version: '6.1'
91
97
  - !ruby/object:Gem::Dependency
92
98
  name: simple_form
93
99
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +118,14 @@ dependencies:
112
118
  name: sprockets
113
119
  requirement: !ruby/object:Gem::Requirement
114
120
  requirements:
115
- - - "~>"
121
+ - - ">="
116
122
  - !ruby/object:Gem::Version
117
123
  version: '3.7'
118
124
  type: :runtime
119
125
  prerelease: false
120
126
  version_requirements: !ruby/object:Gem::Requirement
121
127
  requirements:
122
- - - "~>"
128
+ - - ">="
123
129
  - !ruby/object:Gem::Version
124
130
  version: '3.7'
125
131
  - !ruby/object:Gem::Dependency
@@ -224,30 +230,16 @@ dependencies:
224
230
  name: hydra-head
225
231
  requirement: !ruby/object:Gem::Requirement
226
232
  requirements:
227
- - - "~>"
233
+ - - ">="
228
234
  - !ruby/object:Gem::Version
229
235
  version: '10.5'
230
236
  type: :development
231
237
  prerelease: false
232
238
  version_requirements: !ruby/object:Gem::Requirement
233
239
  requirements:
234
- - - "~>"
240
+ - - ">="
235
241
  - !ruby/object:Gem::Version
236
242
  version: '10.5'
237
- - !ruby/object:Gem::Dependency
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
243
  - !ruby/object:Gem::Dependency
252
244
  name: pry-byebug
253
245
  requirement: !ruby/object:Gem::Requirement
@@ -294,16 +286,16 @@ dependencies:
294
286
  name: rspec-rails
295
287
  requirement: !ruby/object:Gem::Requirement
296
288
  requirements:
297
- - - "~>"
289
+ - - ">="
298
290
  - !ruby/object:Gem::Version
299
- version: '3.1'
291
+ version: '4'
300
292
  type: :development
301
293
  prerelease: false
302
294
  version_requirements: !ruby/object:Gem::Requirement
303
295
  requirements:
304
- - - "~>"
296
+ - - ">="
305
297
  - !ruby/object:Gem::Version
306
- version: '3.1'
298
+ version: '4'
307
299
  - !ruby/object:Gem::Dependency
308
300
  name: sdoc
309
301
  requirement: !ruby/object:Gem::Requirement
@@ -417,7 +409,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
417
409
  - !ruby/object:Gem::Version
418
410
  version: '0'
419
411
  requirements: []
420
- rubygems_version: 3.1.4
412
+ rubygems_version: 3.1.6
421
413
  signing_key:
422
414
  specification_version: 4
423
415
  summary: A basic metadata editor for hydra-head