sufia-models 6.0.0.rc3 → 6.0.0.rc4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c298d5e01fec3e19368cbcf8c9dab669675fef6d
|
4
|
+
data.tar.gz: 5f35bbef30f86ed7c770fdc9fb2864eeb9d98ef3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa1ef71957cc6aa759a7a41d22cf99468f334aa86b0a3cce30badc6d488a6aa1eb5b2830708add33cdb5356ff8c3fe507c8771374e91da7f1ffe2c232e05442
|
7
|
+
data.tar.gz: 0f21473f2cb5f7ad5be47ee563ca8ee2a70ef02357121683a0f528ea1566b9ed529ad659efc5678b64f973b217647f4ff8685bef40e513b837d1b1be118a1b44
|
@@ -10,12 +10,11 @@ This generator makes the following changes to your application:
|
|
10
10
|
3. Creates the sufia.rb configuration file
|
11
11
|
4. Generates mailboxer
|
12
12
|
5. Generates usage stats config
|
13
|
-
6.
|
14
|
-
7. Runs
|
15
|
-
8. Runs
|
16
|
-
9. Runs
|
17
|
-
10. Runs
|
18
|
-
11. Runs user stats generator
|
13
|
+
6. Runs full-text generator
|
14
|
+
7. Runs proxies generator
|
15
|
+
8. Runs cached stats generator
|
16
|
+
9. Runs ORCID field generator
|
17
|
+
10. Runs user stats generator
|
19
18
|
"""
|
20
19
|
def banner
|
21
20
|
say_status("warning", "GENERATING SUFIA MODELS", :yellow)
|
@@ -80,10 +79,6 @@ This generator makes the following changes to your application:
|
|
80
79
|
generate 'sufia:models:usagestats'
|
81
80
|
end
|
82
81
|
|
83
|
-
def install_blacklight_gallery
|
84
|
-
generate "blacklight_gallery:install"
|
85
|
-
end
|
86
|
-
|
87
82
|
# Sets up full-text indexing (Solr config + jars)
|
88
83
|
def full_text_indexing
|
89
84
|
generate "sufia:models:fulltext"
|
data/lib/sufia/models/resque.rb
CHANGED
@@ -10,11 +10,19 @@ module Sufia
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def push(job)
|
13
|
+
push_tries = 0
|
13
14
|
queue = job.respond_to?(:queue_name) ? job.queue_name : default_queue_name
|
14
15
|
begin
|
15
16
|
::Resque.enqueue_to queue, MarshaledJob, Base64.encode64(Marshal.dump(job))
|
16
17
|
rescue Redis::CannotConnectError
|
17
18
|
ActiveFedora::Base.logger.error "Redis is down!"
|
19
|
+
rescue Redis::TimeoutError => error
|
20
|
+
ActiveFedora::Base.logger.warn "Redis Timed out. Trying again! #{job.inspect}"
|
21
|
+
push_tries+=1
|
22
|
+
# fail for good if the tries is greater than 3
|
23
|
+
raise error if push_tries >=3
|
24
|
+
sleep 0.01
|
25
|
+
retry
|
18
26
|
end
|
19
27
|
end
|
20
28
|
end
|
data/lib/sufia/models/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sufia-models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.0.
|
4
|
+
version: 6.0.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy Friesen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -458,7 +458,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
458
458
|
version: 1.3.1
|
459
459
|
requirements: []
|
460
460
|
rubyforge_project:
|
461
|
-
rubygems_version: 2.
|
461
|
+
rubygems_version: 2.4.5
|
462
462
|
signing_key:
|
463
463
|
specification_version: 4
|
464
464
|
summary: Models and services for sufia
|