bulk_ops 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bulk_ops/version.rb +1 -1
- data/lib/bulk_ops/work_proxy.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 27e024c3955dfd63304f5d7f9cda8ec5c60f8529a6011d847da3905a169c680f
|
4
|
+
data.tar.gz: a94141de13111a2694aabd684a3a185642bea83d93f6fecb0a3e9fa131aa6b9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfb20c3e45cc9b4dbd1a4b1326115832925c4619dcc9b1d282053391e0071ca471e7f1b51ff91acf9981096b2b1f0f23745d4a9c9492b3266dd01a8a0b2decbf
|
7
|
+
data.tar.gz: f0b4616a4a049388ffc407dc235566cb600c15384d428d838b190ef5e7a651f923e153830a69d89af0fa6636fe06311cc2e19c515ee0f4fbe8f47be0e5ae80dd
|
data/lib/bulk_ops/version.rb
CHANGED
data/lib/bulk_ops/work_proxy.rb
CHANGED
@@ -83,7 +83,7 @@ class BulkOps::WorkProxy < ActiveRecord::Base
|
|
83
83
|
col = find_collection(collection)
|
84
84
|
return col if col
|
85
85
|
return false if collection.to_i > 0
|
86
|
-
col = Collection.create(title: [collection.to_s], depositor: operation.user.email, collection_type: Hyrax::CollectionType.
|
86
|
+
col = Collection.create(title: [collection.to_s], depositor: operation.user.email, collection_type: Hyrax::CollectionType.find_by(title:"User Collection"))
|
87
87
|
end
|
88
88
|
|
89
89
|
def get_remote_id(value, authority: nil, property: nil)
|
@@ -396,7 +396,7 @@ class BulkOps::WorkProxy < ActiveRecord::Base
|
|
396
396
|
|
397
397
|
def localIdToUrl(id,auth_name)
|
398
398
|
hostname = Socket.gethostname
|
399
|
-
hostname = "localhost" unless hostname.include?('
|
399
|
+
hostname = "localhost" unless hostname.include?('.')
|
400
400
|
protocol = (Rails.env == "production") ? "https" : "http"
|
401
401
|
return "#{protocol}://#{hostname}/authorities/show/local/#{auth_name}/#{id}"
|
402
402
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bulk_ops
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ned Henry, UCSC Library Digital Initiatives
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-06-
|
11
|
+
date: 2019-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|