cul_scv_hydra 0.22.3 → 0.22.4

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
  SHA1:
3
- metadata.gz: 978a755b275967be31524d7f5353f87bb5f8b1f6
4
- data.tar.gz: 3472e7787729f6d4e55fd342ad02904fa7fcaae4
3
+ metadata.gz: d6a57f9a4a7917ae647e29a986a83dd7f794963c
4
+ data.tar.gz: 109faf64878014a8926d63ea65e849933b5259e9
5
5
  SHA512:
6
- metadata.gz: 751f9996118553e9750610bd8f03eee3bf5783e5d23b79a78e62e98531700a0796b17afb3af7277780350dddef55ea2aecdae22f4671d2199ab9675e4e504e64
7
- data.tar.gz: 8e107fea323d41e5ff4b1b87ef54a7e0a9c1d61db2fa3f38a355dec6bdaaf0d7a23f5e4f5c5d3021a282c73faff61d597aad05ad3c9b70549f138122551aee82
6
+ metadata.gz: c82aecc63e1c174b62ef352d4f2e802169d4b8cdc18756ca02652a1572357d2f0c3de7bcdcf09a1865709b56190e1f8405fd91938e53a2de3e80666ad35bb0c5
7
+ data.tar.gz: 286fe512649eb1ddc3efc6282eb614788a09cf77f99ed42d203138e6065d7c9ef516d701017cb6593132b36b696b6d6408dcfb4c86fd868cc285d340682927f2
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.22.3'
5
+ VERSION = '0.22.4'
6
6
  def self.version
7
7
  VERSION
8
8
  end
@@ -2,7 +2,7 @@
2
2
  module Cul
3
3
  module Scv
4
4
  module Hydra
5
- VERSION = '0.22.2'
5
+ VERSION = '0.22.3'
6
6
  def self.version
7
7
  VERSION
8
8
  end
data/lib/tasks/index.rake CHANGED
@@ -9,8 +9,6 @@ namespace :cul_scv_hydra do
9
9
  puts 'Solr URL: ' + ActiveFedora.solr_config[:url]
10
10
  puts '---------------------------'
11
11
 
12
- START_TIME = Time.now
13
-
14
12
  ENV["RAILS_ENV"] ||= Rails.env
15
13
 
16
14
  if ENV['PIDS']
@@ -54,13 +52,16 @@ namespace :cul_scv_hydra do
54
52
  next
55
53
  end
56
54
 
57
- START_TIME = Time.now
55
+ start_time = Time.now
58
56
  pids = Cul::Scv::Hydra::RisearchMembers.get_project_constituent_pids(project_pid, true)
59
-
60
- puts "Found #{pids.length} project members."
57
+ total = pids.length
58
+ puts "Found #{total} project members."
59
+ counter = 0
61
60
 
62
61
  pids.each do |pid|
63
62
  Cul::Scv::Hydra::Indexer.index_pid(pid, false, false)
63
+ counter += 1
64
+ puts "Indexed #{counter} of #{total} | #{Time.now - start_time} seconds"
64
65
  end
65
66
 
66
67
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cul_scv_hydra
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.3
4
+ version: 0.22.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Benjamin Armintor