bulk_ops 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ca22890f1ad64017c266506d40ec4da8a457534bab1a129b8a19b2e49081bbc
4
- data.tar.gz: dca608af70c35c1d1afb2def0c5afbdbf015d035f4ee15d4d7e58baaaf89f1a8
3
+ metadata.gz: 27e024c3955dfd63304f5d7f9cda8ec5c60f8529a6011d847da3905a169c680f
4
+ data.tar.gz: a94141de13111a2694aabd684a3a185642bea83d93f6fecb0a3e9fa131aa6b9c
5
5
  SHA512:
6
- metadata.gz: 7b3f8b03cd80cc8e24a1f135ebf8dadac1dc274d8c49d7fb0b1f968f41b5836aa2c92353d40e24a3a9d6dd48e32543ffe8ab83195c1cd8702cc481901bfd6d21
7
- data.tar.gz: 9252201c835571f0a2c9d5a8027cd45c03acf95ffc865e5e5eebdbdab1c765d6c97c7515175874de2aede0a5950037a55b395fd47ed5ec590139501801f75751
6
+ metadata.gz: bfb20c3e45cc9b4dbd1a4b1326115832925c4619dcc9b1d282053391e0071ca471e7f1b51ff91acf9981096b2b1f0f23745d4a9c9492b3266dd01a8a0b2decbf
7
+ data.tar.gz: f0b4616a4a049388ffc407dc235566cb600c15384d428d838b190ef5e7a651f923e153830a69d89af0fa6636fe06311cc2e19c515ee0f4fbe8f47be0e5ae80dd
@@ -1,3 +1,3 @@
1
1
  module BulkOps
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
@@ -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.all.first)
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.5
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-17 00:00:00.000000000 Z
11
+ date: 2019-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails