sufia-models 4.0.0.beta1 → 4.0.0.beta2

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: 301cddec8289b8f56306d83bacadcf50b0941c72
4
- data.tar.gz: 7e994e58c86d1b11f27c121ee7705875a4e136a7
3
+ metadata.gz: 0bc499ef1c7cbf4fe681e9100f2b46bb7ace0a77
4
+ data.tar.gz: 90aa258a254bb929ab5631e96d253a42509f8c1e
5
5
  SHA512:
6
- metadata.gz: 9eb36508044dd1d918bebf9a96fd82c0db4b1d8a815a8c37c477a39e6c6db57c3bb8c346be9135e37b6abe87f7fdefb57fcdbd3589bd4a85f3f04ee9f5cd94ff
7
- data.tar.gz: 336e723cfbe0fa1a1c447ef05175e9537427d272712e6fd208acd3cd0b12dd8f0f6a1927f88316123ee0fc2fc4d9aa94d0e962ffcc80587a8124bebfda846058
6
+ metadata.gz: 5cc9ac7548fa1270e2a8c0a8fdf7100b7792978c946f8d5fe3ab190db32db42ef5f7f150993aa47beea7379567c433423680381379a22a5c93eab11f4b6cfa75
7
+ data.tar.gz: 6f2aa0666ec2b61c65711666712c77cc0796875519690eb225c0acb766a090f22dde459f0d1f3772eaa0ed5b8dbf912b7eeaf8889d26d72e376cf1118ab3cb9a
@@ -74,9 +74,8 @@ This generator makes the following changes to your application:
74
74
  end
75
75
 
76
76
  def create_configuration_files
77
- inject_into_file 'config/initializers/mime_types.rb',
78
- "\nMime::Type.register 'application/x-endnote-refer', :endnote",
79
- { :after => /# Mime::Type.register_alias "text\/html", :iphone/, :verbose => false }
77
+ append_file 'config/initializers/mime_types.rb',
78
+ "\nMime::Type.register 'application/x-endnote-refer', :endnote", {verbose: false }
80
79
  copy_file 'config/sufia.rb', 'config/initializers/sufia.rb'
81
80
  copy_file 'config/redis.yml', 'config/redis.yml'
82
81
  copy_file 'config/redis_config.rb', 'config/initializers/redis_config.rb'
@@ -80,7 +80,11 @@ Sufia.config do |config|
80
80
 
81
81
  # If browse-everything has been configured, load the configs. Otherwise, set to nil.
82
82
  begin
83
- config.browse_everything = BrowseEverything.config
83
+ if defined? BrowseEverything
84
+ config.browse_everything = BrowseEverything.config
85
+ else
86
+ logger.warn "BrowseEverything is not installed"
87
+ end
84
88
  rescue Errno::ENOENT
85
89
  config.browse_everything = nil
86
90
  end
@@ -1,5 +1,6 @@
1
- require 'sufia/virus_found_error'
2
1
  module Sufia
2
+ autoload :VirusFoundError, 'sufia/models/virus_found_error'
3
+
3
4
  module GenericFile
4
5
  extend ActiveSupport::Concern
5
6
  extend ActiveSupport::Autoload
@@ -1,5 +1,5 @@
1
1
  module Sufia
2
2
  module Models
3
- VERSION = "4.0.0.beta1"
3
+ VERSION = "4.0.0.beta2"
4
4
  end
5
5
  end
@@ -0,0 +1,4 @@
1
+ module Sufia
2
+ class VirusFoundError < StandardError
3
+ end
4
+ end
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency "bundler", "~> 1.3"
27
27
  spec.add_development_dependency "rake"
28
28
 
29
- spec.add_dependency 'rails', '~> 4.0.0'
29
+ spec.add_dependency 'rails', '~> 4.0', '< 5.0.0'
30
30
  spec.add_dependency 'activeresource', "~>4.0.0" # No longer a dependency of rails 4.0
31
31
 
32
32
  spec.add_dependency "hydra-head", "~> 7.0.1"
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: 4.0.0.beta1
4
+ version: 4.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Friesen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
11
+ date: 2014-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,20 @@ dependencies:
44
44
  requirements:
45
45
  - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: 4.0.0
47
+ version: '4.0'
48
+ - - <
49
+ - !ruby/object:Gem::Version
50
+ version: 5.0.0
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
55
  - - ~>
53
56
  - !ruby/object:Gem::Version
54
- version: 4.0.0
57
+ version: '4.0'
58
+ - - <
59
+ - !ruby/object:Gem::Version
60
+ version: 5.0.0
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: activeresource
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -359,6 +365,7 @@ files:
359
365
  - lib/sufia/models/user_local_directory_behavior.rb
360
366
  - lib/sufia/models/utils.rb
361
367
  - lib/sufia/models/version.rb
368
+ - lib/sufia/models/virus_found_error.rb
362
369
  - lib/tasks/resque.rake
363
370
  - lib/tasks/sufia-models_tasks.rake
364
371
  - sufia-models.gemspec
@@ -382,7 +389,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
382
389
  version: 1.3.1
383
390
  requirements: []
384
391
  rubyforge_project:
385
- rubygems_version: 2.2.1
392
+ rubygems_version: 2.2.2
386
393
  signing_key:
387
394
  specification_version: 4
388
395
  summary: Models and services for sufia