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: 51e106549a813b6bf42150ec4287e9579e171dad
4
- data.tar.gz: 987fd56596a1da6b517205ddb9581b8c21fae645
3
+ metadata.gz: c298d5e01fec3e19368cbcf8c9dab669675fef6d
4
+ data.tar.gz: 5f35bbef30f86ed7c770fdc9fb2864eeb9d98ef3
5
5
  SHA512:
6
- metadata.gz: c1fd765adfeacd91d0ccb197e4b9920f82d3ddf1aba32d1fabf0c403ea35eb0c6d28b3a7304e3b3850abf1a1ddec9c67b1076c764cf5e13b1388674cff138417
7
- data.tar.gz: 3b399d52d64a204e6151833a0bb87bb22e61b50464767faba06e3d67084d6ddaa11acfe9abfd2047ec08b36251b372c059cabc0183fc6c7672421d292ca96943
6
+ metadata.gz: caa1ef71957cc6aa759a7a41d22cf99468f334aa86b0a3cce30badc6d488a6aa1eb5b2830708add33cdb5356ff8c3fe507c8771374e91da7f1ffe2c232e05442
7
+ data.tar.gz: 0f21473f2cb5f7ad5be47ee563ca8ee2a70ef02357121683a0f528ea1566b9ed529ad659efc5678b64f973b217647f4ff8685bef40e513b837d1b1be118a1b44
@@ -39,6 +39,7 @@ module Sufia
39
39
  can :create, TinymceAsset
40
40
  can [:create, :update], ContentBlock
41
41
  end
42
+ can :read, ContentBlock
42
43
  end
43
44
 
44
45
  def stats_abilities
@@ -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. Installs Blacklight gallery
14
- 7. Runs full-text generator
15
- 8. Runs proxies generator
16
- 9. Runs cached stats generator
17
- 10. Runs ORCID field generator
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"
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Sufia
2
2
  module Models
3
- VERSION = "6.0.0.rc3"
3
+ VERSION = "6.0.0.rc4"
4
4
  end
5
5
  end
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.rc3
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-01-30 00:00:00.000000000 Z
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.2.2
461
+ rubygems_version: 2.4.5
462
462
  signing_key:
463
463
  specification_version: 4
464
464
  summary: Models and services for sufia